clearai-dsh 0.5.0 → 0.5.1

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
@@ -82,11 +82,11 @@ var Wt=Object.create;var Le=Object.defineProperty;var Pt=Object.getOwnPropertyDe
82
82
  * clearai-dsh —— 浏览器半(ClearAI 的面板)。
83
83
  *
84
84
  * 它注册三个座位:
85
- * 中栏 `conversation.view` 本体(页眉 + 本体图 / 实体图 + 按可信度分组的结论)
86
- * 右栏 `sidebarRightTabs` 世界树(计划的步骤,一行一步)
87
- * 输入框 `conversation.input` 计划芯片(步数 + 「待处理 N」)
85
+ * 中栏 `conversation.view` 探索(问题 → 候选假设 → 下一步;过程记录里有判断列表与计划的世界树)
86
+ * 中栏 `conversation.view` 本体(结论四部分 + 本体图 / 实体图 + 已确立的事实 + 经验)
87
+ * 输入框 `conversation.input` 计划芯片(「问题 1/2 · 待检验假设 N 个」+ 「待处理 N」,点击打开探索货架)
88
88
  * 交付与文件改动走 DSH 原生的卡片,技能走原生技能目录,这里都不另做一份。
89
- * 面板**只读**:没有写入口。要人拍板的事由开门的那次工具调用当场问人,要改词汇就在对话里说。
89
+ * 面板**只读**:没有写入口。要人拍板的事由开门的那次工具调用当场问人;「立为问题 / 暂缓」只替人往对话里发一句话。
90
90
  *
91
91
  * 面板自己不取数、不重算:宿主半注册的**会话投影单元** `clearai`(见 `lib/index.js`)把算好的
92
92
  * 视图推下来,`useProjection('clearai')` 读它。投影为空(`undefined`)时渲染平静的空态,
@@ -185,8 +185,8 @@ window.__ModuleLoader__.load({
185
185
 
186
186
  /** 语言命名空间。表按**源文**索引:键就是中文原文,所以漏翻译一条只会退回中文,不会把 key 显示给人。 */
187
187
  const LOCALE_NS = 'clearai'
188
- const LOCALE_ZH = {":":":"," · 改过 ":" · 改过 "," · 最近一次修订的独立裁决:":" · 最近一次修订的独立裁决:"," 次":" 次"," 次评估者":" 次评估者"," 步":" 步"," 步)":" 步)"," 看核验记录":" 看核验记录"," 看核验过程":" 看核验过程"," 轮":" 轮","(点一下开右栏「世界树」)":"(点一下开右栏「世界树」)","(点一下开右栏「世界树」看拓扑)":"(点一下开右栏「世界树」看拓扑)","(缺)":"(缺)","clearai 面板:右栏页签类型注册失败 ":"clearai 面板:右栏页签类型注册失败 ","clearai-loop: 席位跟着会话预设进出":"clearai-loop: 席位跟着会话预设进出","」相关的":"」相关的","一句话":"一句话","一步检验":"一步检验","上位":"上位","下一步:找一步去检验它":"下一步:找一步去检验它","下一步:换个办法再检验":"下一步:换个办法再检验","下一步:独立核验通过 → 已验证":"下一步:独立核验通过 → 已验证","下一步:结案时写进长期知识":"下一步:结案时写进长期知识","下位":"下位","不确定":"不确定","世界树":"世界树","主语":"主语","事实":"事实","产物":"产物","人撤回":"人撤回","人放行":"人放行","代码":"代码","依据":"依据","值的形态":"值的形态","做什么":"做什么","入本体":"入本体","全屏":"全屏","全文在 ":"全文在 ","公式":"公式","关系":"关系","关闭":"关闭","写进长期知识":"写进长期知识","出自":"出自","切回历史的世界树(计划都还在,文档也归档在 clear/goals/plans/)":"切回历史的世界树(计划都还在,文档也归档在 clear/goals/plans/)","判据":"判据","判据:":"判据:","判断":"判断","原生预览打开它":"原生预览打开它","原生预览打开它(计划声明的产物)":"原生预览打开它(计划声明的产物)","取不到":"取不到","取值":"取值","只看与「":"只看与「","只看相关":"只看相关","可信度怎么变的":"可信度怎么变的","可复算":"可复算","命题":"命题","图组件不可用":"图组件不可用","在图上找它":"在图上找它","在检验这一站被推翻,不再往下走。":"在检验这一站被推翻,不再往下走。","实体图":"实体图","实体图还空着。":"实体图还空着。","实例":"实例","审批记录":"审批记录","已交付":"已交付","已作废":"已作废","已推翻":"已推翻","已提出":"已提出","已收尾 · 存档可看":"已收尾 · 存档可看","已替换":"已替换","已被替换,不再往下走。":"已被替换,不再往下走。","已验证":"已验证","引用":"引用","引用已有材料":"引用已有材料","待推进":"待推进","待核验":"待核验","打开「本体」那一格并展开这条结论":"打开「本体」那一格并展开这条结论","打开目标文档(原生预览)":"打开目标文档(原生预览)","打开计划文档(原生预览)":"打开计划文档(原生预览)","推翻":"推翻","提出":"提出","支持":"支持","收起":"收起","收起详情":"收起详情","放行":"放行","未解释":"未解释","数值":"数值","暂无计划。建立后此处显示计划的步骤与闸门。":"暂无计划。建立后此处显示计划的步骤与闸门。","有 ":"有 ","有矛盾":"有矛盾","未声明":"未声明","本体":"本体","本体图":"本体图","查看此步骤的证据":"查看此步骤的证据","查看步骤详情":"查看步骤详情","查看评估者":"查看评估者","检验":"检验","检验结果:":"检验结果:","概念":"概念","正在取…":"正在取…","正在裁决":"正在裁决","步 ":"步 ","清除":"清除","点击查看详情":"点击查看详情","点开看进度和来历":"点开看进度和来历","状态":"状态","独立核验":"独立核验","独立核验:":"独立核验:","用到它的结论":"用到它的结论","盘上没有这个文件":"盘上没有这个文件","目标":"目标","相关":"相关","看核验":"看核验","看记录":"看记录","矛盾":"矛盾","第 n 步":"第 n 步","算错":"算错","类型":"类型","结论":"结论","结论照常可读。":"结论照常可读。","背景(不参与判定):":"背景(不参与判定):","自己推了一遍":"自己推了一遍","自己检验":"自己检验","范围":"范围","范围:":"范围:","补充":"补充","观测":"观测","计划":"计划","计划 ":"计划 ","计划受阻,等人处置":"计划受阻,等人处置","计划已交付 ":"计划已交付 ","计划已收尾(":"计划已收尾(","计划文档":"计划文档","计划的步骤与闸门":"计划的步骤与闸门","证据":"证据","评 ":"评 ","评估":"评估","评估卡":"评估卡","起过 ":"起过 ","还没有内容。发第一条消息后,这里显示本体图和结论。":"还没有内容。发第一条消息后,这里显示本体图和结论。","还没有立目标":"还没有立目标","还没有结论。模型立下判断之后,这里一行一条。":"还没有结论。模型立下判断之后,这里一行一条。","这一项已经不在当前的词里了(可能刚被废止)。":"这一项已经不在当前的词里了(可能刚被废止)。","这个词已废止,旧结论里的用法照样可读。":"这个词已废止,旧结论里的用法照样可读。","进度":"进度","退出全屏":"退出全屏","适配":"适配","释义":"释义","待处理":"待处理","待处理 ":"待处理 ","验证":"验证","验证中":"验证中","展开下一层":"展开下一层","收起下一层":"收起下一层","本体文件有 ":"本体文件有 "," 处问题(这些不进图)":" 处问题(这些不进图)"," 个断言的主语还没写成实体文件。":" 个断言的主语还没写成实体文件。","clear/ontology/entities/ 下的实体文件、写进长期知识的断言会出现在这里。":"clear/ontology/entities/ 下的实体文件、写进长期知识的断言会出现在这里。","本体图还空着。模型在 clear/ontology/concepts/ 和 relations/ 下写概念与关系文件之后,它们会长在这里。":"本体图还空着。模型在 clear/ontology/concepts/ 和 relations/ 下写概念与关系文件之后,它们会长在这里。"}
189
- const LOCALE_EN = {":":": "," · 改过 ":" · changed "," · 最近一次修订的独立裁决:":" · latest revision decided by an independent verdict: "," 次":" times"," 次评估者":" evaluators"," 步":" steps"," 步)":" steps)"," 看核验记录":" Review record"," 看核验过程":" Watch the review"," 轮":" rounds","(点一下开右栏「世界树」)":" (click to open the World Tree)","(点一下开右栏「世界树」看拓扑)":" (click to see the steps in the World Tree)","(缺)":" (missing)","clearai 面板:右栏页签类型注册失败 ":"clearai panel: failed to register the right-sidebar tab type ","clearai-loop: 席位跟着会话预设进出":"clearai-loop: seats come and go with the session's preset","」相关的":"\"","一句话":"Statement","一步检验":"A test","上位":"Broader","下一步:找一步去检验它":"Next: test it in a step","下一步:换个办法再检验":"Next: test it another way","下一步:独立核验通过 → 已验证":"Next: independent check passes → Verified","下一步:结案时写进长期知识":"Next: written to long-term knowledge at close","下位":"Narrower","不确定":"Uncertain","世界树":"World Tree","主语":"Subject","事实":"Facts","产物":"Deliverables","人撤回":"Withdrawn by a person","人放行":"Released by a person","代码":"Code","依据":"Basis","值的形态":"Value form","做什么":"What it does","入本体":"In ontology","全屏":"Full screen","全文在 ":"Full text at ","公式":"Formula","关系":"Relation","关闭":"Close","写进长期知识":"Written to long-term knowledge","出自":"From","切回历史的世界树(计划都还在,文档也归档在 clear/goals/plans/)":"Switch back to an earlier World Tree (the plans are all still here, and their documents are archived under clear/goals/plans/)","判据":"Criterion","判据:":"Criterion: ","判断":"Judgment","原生预览打开它":"Open it in the native preview","原生预览打开它(计划声明的产物)":"Open it in the native preview (an artifact declared by the plan)","取不到":"Unavailable","取值":"Value","只看与「":"Only related to \"","只看相关":"Only related","可信度怎么变的":"How trust changed","可复算":"Reproducible","命题":"Propositions","图组件不可用":"The graph component is unavailable","在图上找它":"Find it on the graph","在检验这一站被推翻,不再往下走。":"Refuted at the test stage; it goes no further.","实体图":"Entity graph","实体图还空着。":"The entity graph is empty. ","实例":"Instances","审批记录":"approval record","已交付":"delivered","已作废":"voided","已推翻":"Refuted","已提出":"proposed","已收尾 · 存档可看":"closed · archived and readable","已替换":"Replaced","已被替换,不再往下走。":"Replaced; it goes no further.","已验证":"Verified","引用":"Reference","引用已有材料":"Cites existing material","待推进":"to advance","待核验":"Awaiting check","打开「本体」那一格并展开这条结论":"Open the Ontology pane and expand this conclusion","打开目标文档(原生预览)":"Open the goal document (native preview)","打开计划文档(原生预览)":"Open the plan document (native preview)","推翻":"Refute","提出":"Proposed","支持":"Support","收起":"Collapse","收起详情":"Collapse details","放行":"release","未解释":"Unexplained","数值":"Quantity","暂无计划。建立后此处显示计划的步骤与闸门。":"No plan yet. Once created, its steps show here.","有 ":"","有矛盾":"Conflicting","未声明":"not declared","本体":"Ontology","本体图":"Ontology graph","查看此步骤的证据":"see the evidence for this step","查看步骤详情":"view step details","查看评估者":"view evaluator","检验":"Test","检验结果:":"Result: ","概念":"concepts","正在取…":"Loading…","正在裁决":"Deciding","步 ":"step ","清除":"Clear","点击查看详情":"click for details","点开看进度和来历":"Open to see progress and history","状态":"Status","独立核验":"Independent check","独立核验:":"Independent check: ","用到它的结论":"Conclusions using it","盘上没有这个文件":"this file is not on disk","目标":"Goal","相关":"Related","看核验":"See check","看记录":"See record","矛盾":"Conflicts","第 n 步":"Step n","算错":"Wrong if","类型":"Type","结论":"CONCLUSIONS","结论照常可读。":"conclusions are still readable.","背景(不参与判定):":"Background (not part of the verdict): ","自己推了一遍":"Reasoned through alone","自己检验":"Self-tested","范围":"Scope","范围:":"Scope: ","补充":"More","观测":"Observation","计划":"Plan","计划 ":"Plan ","计划受阻,等人处置":"plan blocked, waiting for a person","计划已交付 ":"Plan delivered ","计划已收尾(":"Plan closed (","计划文档":"Plan document","计划的步骤与闸门":"Plan steps","证据":"Evidence","评 ":"E","评估":"Evaluation","评估卡":"evaluation card","起过 ":"ran ","还没有内容。发第一条消息后,这里显示本体图和结论。":"Nothing yet. After the first message, the graph and conclusions show here.","还没有立目标":"No goal yet","还没有结论。模型立下判断之后,这里一行一条。":"No conclusions yet. Each judgment gets one line here.","这一项已经不在当前的词里了(可能刚被废止)。":"This item is no longer in the vocabulary (it may have just been deprecated).","这个词已废止,旧结论里的用法照样可读。":"This term is deprecated; older conclusions still read fine.","进度":"Progress","退出全屏":"Exit full screen","适配":"Fit","释义":"Gloss","待处理":"To handle","待处理 ":"to handle ","验证":"Verification","验证中":"Testing","展开下一层":"Expand the next level","收起下一层":"Collapse the next level","本体文件有 ":"Ontology files have "," 处问题(这些不进图)":" problems (these stay off the graph)"," 个断言的主语还没写成实体文件。":" assertion subjects have no entity file yet. ","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 writes files under clear/ontology/concepts/ and relations/."}
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"}
190
190
 
191
191
  /**
192
192
  * 翻译函数:**由原生 locale 座位绑定**(`ctx.locale.bind`),不是我们自建的一套 i18n。
@@ -220,7 +220,7 @@ window.__ModuleLoader__.load({
220
220
  * 依赖的客户端服务,**必须全部声明在这里**。
221
221
  *
222
222
  * 这不是洁癖,是行为约束:客户端模块在 `slots` 一出现就被激活
223
- * (`slots` 是平台 seed,启动时就有),而 `sessions` / `sidebarRightTabs` 是**后来**
223
+ * (`slots` 是平台 seed,启动时就有),而 `sessions` / `sidebarRight` 是**后来**
224
224
  * 才由各自的插件 `provide` 的。只声明 `slots` 的话,我们的 `apply()` 会在它们之前跑,
225
225
  * 读不到会话服务 → 早退 → **一个插座都不注册**,而且不报错:右栏只剩宿主自带的「文件」,
226
226
  * 中栏没有「产物」。宿主那侧一切正常(模块图里有我们、bundle 正常送达),
@@ -229,9 +229,9 @@ window.__ModuleLoader__.load({
229
229
  * 声明之后 Cordis 会把插件**挂起**到这些服务就位再激活(原生插件同样是这么写的,
230
230
  * 例如 `dsh-client-ui-sidebar-files` 声明 slots + sidebarRightTabs + remote + locale)。
231
231
  */
232
- const inject = ['slots', 'sessions', 'sidebarRightTabs', 'sidebarRight']
232
+ const inject = ['slots', 'sessions', 'sidebarRight']
233
233
 
234
- const STEP = lazyTable(() => ({ open: t('待推进'), advanced: t('已交付'), void: t('已作废') }))
234
+ const STEP = lazyTable(() => ({ open: t('待执行'), advanced: t('已交付'), void: t('已作废') }))
235
235
  const VERDICT = lazyTable(() => ({ support: t('支持'), refute: t('推翻'), inconclusive: t('不确定') }))
236
236
 
237
237
  /** 「第 n 步」:整句做一个词条,英文才排得成 Step n。 */
@@ -392,6 +392,75 @@ window.__ModuleLoader__.load({
392
392
  .clearai-kv>span:nth-child(odd){color:var(--dsw-alias-label-tertiary)}
393
393
  .clearai-chips{display:inline-flex;gap:6px;flex-wrap:wrap}
394
394
  .clearai-quiet{color:var(--dsw-alias-label-secondary);font-size:12.5px;padding:6px 0}
395
+ /* ── 探索货架:问题 → 候选假设 → 下一步;过程记录默认折叠。颜色只用主题令牌。 ── */
396
+ .clearai-head-kind{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
397
+ .clearai-pills{display:flex;flex-wrap:wrap;gap:6px;font-size:12px}
398
+ .clearai-pill{padding:1px 10px;border-radius:999px;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary)}
399
+ .clearai-waiting{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;padding:8px 12px;margin-bottom:14px;border-radius:8px;border:.5px solid var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-bg-layer-1);font-size:12.5px}
400
+ .clearai-waiting b{color:var(--dsw-alias-state-warn-primary);font-weight:600}
401
+ .clearai-box{display:flex;flex-direction:column;margin-bottom:14px;border:.5px solid var(--dsw-alias-border-l2);border-radius:10px;overflow:hidden}
402
+ .clearai-box-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:10px 14px;background:var(--dsw-alias-bg-layer-1)}
403
+ .clearai-box[data-compact="1"] .clearai-box-head{background:transparent}
404
+ .clearai-box-kind{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
405
+ .clearai-box-title{flex:1 1 220px;font-size:14px;font-weight:600}
406
+ .clearai-box-note{font-size:12px;color:var(--dsw-alias-label-secondary)}
407
+ .clearai-box-foot{display:flex;flex-direction:column;gap:4px;padding:8px 14px;font-size:12px;color:var(--dsw-alias-label-tertiary);border-top:.5px solid var(--dsw-alias-border-l1)}
408
+ .clearai-parked{display:inline-flex;gap:8px;align-items:baseline}
409
+ .clearai-cand{border-top:.5px solid var(--dsw-alias-border-l1)}
410
+ .clearai-cand-head{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:9px 14px;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer}
411
+ .clearai-cand-head[data-static="1"]{cursor:default}
412
+ .clearai-cand-head:not([data-static="1"]):hover{background:var(--dsw-alias-interactive-bg-hover)}
413
+ .clearai-cand-name{font-weight:500}
414
+ .clearai-cand[data-s="excluded"] .clearai-cand-name{text-decoration:line-through;color:var(--dsw-alias-label-tertiary)}
415
+ .clearai-cand-note{flex:1 1 220px;min-width:0;font-size:12px;color:var(--dsw-alias-label-secondary)}
416
+ .clearai-cand-chevron{margin-left:auto;font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
417
+ .clearai-cand-detail{display:flex;flex-direction:column;gap:3px;padding:0 14px 12px}
418
+ .clearai-kvrow{display:grid;grid-template-columns:64px 1fr;gap:10px;font-size:12.5px}
419
+ .clearai-kvrow>span:first-child{color:var(--dsw-alias-label-tertiary)}
420
+ .clearai-state{flex:0 0 auto;display:inline-block;font-size:11px;line-height:16px;padding:0 7px;border-radius:6px;border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);white-space:nowrap}
421
+ .clearai-state[data-s="examining"],.clearai-state[data-s="in_progress"]{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary)}
422
+ .clearai-state[data-s="excluded"]{border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}
423
+ .clearai-state[data-s="adopted"],.clearai-state[data-s="clear"]{background:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-primary);color:var(--dsw-alias-label-primary-inverted)}
424
+ .clearai-state[data-s="set_aside"]{border-style:dashed}
425
+ .clearai-emergent{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 14px 10px;padding:8px 10px;border-radius:8px;border:.5px solid var(--dsw-alias-brand-primary);background:var(--dsw-alias-bg-layer-1)}
426
+ .clearai-emergent-kind{font-size:11.5px;font-weight:600;color:var(--dsw-alias-brand-primary)}
427
+ .clearai-emergent-text{flex:1 1 200px;font-weight:500}
428
+ .clearai-emergent-actions{display:inline-flex;gap:8px}
429
+ .clearai-emergent-done{margin:0 14px 10px;font-size:12px;color:var(--dsw-alias-label-secondary)}
430
+ .clearai-btn{min-height:30px;padding:0 12px;border-radius:8px;border:.5px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);font:inherit;font-size:12.5px;cursor:pointer}
431
+ .clearai-btn[data-primary="1"]{background:var(--dsw-alias-brand-primary);border-color:var(--dsw-alias-brand-primary);color:#fff}
432
+ .clearai-next{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;padding:12px 14px;border-radius:10px;border:.5px solid var(--dsw-alias-brand-primary);background:var(--dsw-alias-bg-layer-1)}
433
+ .clearai-next-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
434
+ .clearai-next-kind{font-size:11.5px;font-weight:600;color:var(--dsw-alias-brand-primary)}
435
+ .clearai-next-title{font-size:14px;font-weight:600}
436
+ .clearai-preds{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
437
+ .clearai-pred{padding:8px 10px;border-radius:8px;border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base)}
438
+ .clearai-pred-if{font-size:11.5px;color:var(--dsw-alias-label-secondary)}
439
+ .clearai-pred-value{font-size:13.5px;font-weight:600}
440
+ .clearai-next-note{font-size:12px;color:var(--dsw-alias-label-secondary)}
441
+ .clearai-next-warn{font-size:12px;color:var(--dsw-alias-state-warn-primary);font-weight:600}
442
+ .clearai-anomaly{display:flex;flex-wrap:wrap;gap:4px 12px;padding:7px 14px;border-top:.5px solid var(--dsw-alias-border-l1);font-size:12.5px}
443
+ .clearai-anomaly-meta{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
444
+ .clearai-process{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:4px}
445
+ .clearai-process-head{width:100%;min-height:38px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:0;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer}
446
+ .clearai-process-head span{font-size:12px;color:var(--dsw-alias-label-secondary)}
447
+ .clearai-process-body{display:flex;flex-direction:column;gap:14px;padding:6px 0}
448
+ .clearai-judgments-head{display:flex;flex-direction:column;gap:4px}
449
+ /* 本体货架的结论卡:四部分 */
450
+ .clearai-answers{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
451
+ .clearai-qtab{min-height:28px;padding:0 12px;border-radius:999px;border:.5px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;cursor:pointer}
452
+ .clearai-qtab[aria-pressed="true"]{background:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-primary);color:var(--dsw-alias-label-primary-inverted)}
453
+ .clearai-answer{display:flex;flex-direction:column;border:.5px solid var(--dsw-alias-border-l2);border-radius:10px;overflow:hidden}
454
+ .clearai-answer-part{display:flex;flex-direction:column;gap:4px;padding:10px 14px;border-top:.5px solid var(--dsw-alias-border-l1)}
455
+ .clearai-answer-part:first-child{border-top:0}
456
+ .clearai-answer-part[data-warm="1"]{background:var(--dsw-alias-bg-layer-1)}
457
+ .clearai-answer-label{font-size:11.5px;font-weight:600;color:var(--dsw-alias-label-tertiary)}
458
+ .clearai-answer-part[data-warm="1"] .clearai-answer-label{color:var(--dsw-alias-state-warn-primary)}
459
+ .clearai-answer-main{font-size:15px;font-weight:600}
460
+ .clearai-answer-lines{display:flex;flex-direction:column;gap:3px;font-size:12.5px}
461
+ .clearai-lesson{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:12.5px}
462
+ .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
+ .clearai-lesson-meta{font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
395
464
  `
396
465
  /** 把上面那段 CSS 挂进页面(带 data-plugin 标记,宿主按包名记账,卸载时收掉)。 */
397
466
  function installStyles() {
@@ -583,7 +652,7 @@ window.__ModuleLoader__.load({
583
652
  h(
584
653
  'div',
585
654
  { style: S.head },
586
- `${t('判据')} · ${criteriaLines.length}${history.length === 0 ? '' : `${t(' · 改过 ')}${history.length}${t(' 次')}${lastAudit === null || lastAudit === undefined ? '' : `${t(' · 最近一次修订的独立裁决:')}${String(lastAudit)}`}`}`,
655
+ `${t('判据')} · ${criteriaLines.length}${history.length === 0 ? '' : `${t(' · 已修订 ')}${history.length}${t(' 次')}${lastAudit === null || lastAudit === undefined ? '' : `${t(' · 最近一次修订的独立裁决:')}${String(lastAudit)}`}`}`,
587
656
  ),
588
657
  ...criteriaLines.map((line, index) => h('div', { key: `criteria-${index}`, style: S.criteriaRow }, `${index + 1}. ${line}`)),
589
658
  // 全文的家与卡上那句指针是同一个路径(不各自拼一遍);沿用计划文档那条既有做法
@@ -606,7 +675,7 @@ window.__ModuleLoader__.load({
606
675
  evaluation: t('评估'),
607
676
  evidence: t('证据'),
608
677
  fact: t('事实'),
609
- release: t('放行'),
678
+ release: t('批准'),
610
679
  anomaly: t('未解释'),
611
680
  }))
612
681
 
@@ -748,22 +817,22 @@ window.__ModuleLoader__.load({
748
817
  */
749
818
  const TRUST_ORDER = ['credible', 'pending', 'testing', 'unclear', 'refuted', 'replaced']
750
819
  const TRUST_WORD = lazyTable(() => ({ credible: t('已验证'), pending: t('待核验'), testing: t('验证中'), unclear: t('不确定'), refuted: t('已推翻'), replaced: t('已替换') }))
751
- const LEVEL_WORD = lazyTable(() => ({ L0: t('自己检验'), L1: t('自己检验'), L2: t('自己检验'), L3: t('独立核验'), L4: t('人放行') }))
820
+ const LEVEL_WORD = lazyTable(() => ({ L0: t('自行检验'), L1: t('自行检验'), L2: t('自行检验'), L3: t('独立核验'), L4: t('人工批准') }))
752
821
  /** 进度轨的四站。顺序即一条结论要走的路。 */
753
- const STATIONS = () => [t('判断'), t('检验'), t('已验证'), t('入本体')]
822
+ const STATIONS = () => [t('判断'), t('检验'), t('已验证'), t('纳入本体')]
754
823
  /** 还没走完时,下一步是什么(时间线末尾那条虚点)。 */
755
824
  const NEXT_STEP = lazyTable(() => ({
756
- testing: t('下一步:找一步去检验它'),
757
- pending: t('下一步:独立核验通过 → 已验证'),
758
- unclear: t('下一步:换个办法再检验'),
759
- credible: t('下一步:结案时写进长期知识'),
825
+ testing: t('下一步:安排步骤对其进行检验'),
826
+ pending: t('下一步:通过独立核验后标记为已验证'),
827
+ unclear: t('下一步:改用其他方法重新检验'),
828
+ credible: t('下一步:结案时写入长期知识'),
760
829
  }))
761
830
  /** 值的形态(本体图上的小方块):内部词换成人话。 */
762
- const FORM_WORD = lazyTable(() => ({ statement: t('一句话'), quantity: t('数值'), formula: t('公式'), code: t('代码'), reference: t('引用') }))
763
- const KIND_WORD = lazyTable(() => ({ concept: t('概念'), value_type: t('值的形态'), instance: t('实例'), literal: t('取值'), edge: t('关系') }))
831
+ const FORM_WORD = lazyTable(() => ({ statement: t('陈述'), quantity: t('数值'), formula: t('公式'), code: t('代码'), reference: t('引用') }))
832
+ const KIND_WORD = lazyTable(() => ({ concept: t('概念'), value_type: t('取值形态'), instance: t('实例'), literal: t('取值'), edge: t('关系') }))
764
833
 
765
834
  /** 一步检验是怎么做的:独立核验直接说;自己做的,说到了哪一级(可复算 / 引用材料 / 推了一遍)。 */
766
- const howOf = (row) => (row.evaluator === 'independent' ? t('独立核验') : (LEVEL_WORD[row.level] ?? t('自己检验')))
835
+ const howOf = (row) => (row.evaluator === 'independent' ? t('独立核验') : (LEVEL_WORD[row.level] ?? t('自行检验')))
767
836
 
768
837
  /**
769
838
  * **结论行的模型**(纯函数,导出给测试)。
@@ -856,7 +925,7 @@ window.__ModuleLoader__.load({
856
925
  ...names.map((_, index) => h('span', { key: `seg-${index}`, 'data-state': index < reached ? (stopped && index === reached - 1 ? 'broken' : 'done') : index === reached && !stopped ? 'next' : 'todo' })),
857
926
  ),
858
927
  h('div', { className: 'clearai-stations-names' }, ...names.map((name, index) => h('span', { key: `name-${index}`, 'data-now': index === reached - 1 ? '1' : '0' }, name))),
859
- stopped ? h('div', { className: 'clearai-stations-note' }, props.trust === 'refuted' ? t('在检验这一站被推翻,不再往下走。') : t('已被替换,不再往下走。')) : null,
928
+ stopped ? h('div', { className: 'clearai-stations-note' }, props.trust === 'refuted' ? t('在检验阶段被推翻,不再推进。') : t('已被替换,不再推进。')) : null,
860
929
  )
861
930
  }
862
931
 
@@ -866,9 +935,9 @@ window.__ModuleLoader__.load({
866
935
  const lines = rows.map((row, index) => {
867
936
  let text = ''
868
937
  if (row.kind === 'proposed') text = t('提出')
869
- else if (row.kind === 'evidence') text = `${row.ordinal === null || row.ordinal === undefined ? t('一步检验') : `${nth(row.ordinal)}`}${t(':')}${VERDICT[row.verdict] ?? row.verdict} · ${howOf(row)}`
870
- else if (row.kind === 'promoted') text = t('写进长期知识')
871
- else if (row.kind === 'retracted') text = `${t('人撤回')}${row.reason ? `:${brief(row.reason, 40)}` : ''}`
938
+ else if (row.kind === 'evidence') text = `${row.ordinal === null || row.ordinal === undefined ? t('单步检验') : `${nth(row.ordinal)}`}${t(':')}${VERDICT[row.verdict] ?? row.verdict} · ${howOf(row)}`
939
+ else if (row.kind === 'promoted') text = t('写入长期知识')
940
+ else if (row.kind === 'retracted') text = `${t('人工撤回')}${row.reason ? `:${brief(row.reason, 40)}` : ''}`
872
941
  const moved = row.from !== undefined && row.from !== row.to
873
942
  return h(
874
943
  'div',
@@ -895,10 +964,10 @@ window.__ModuleLoader__.load({
895
964
  'div',
896
965
  { className: 'clearai-detail' },
897
966
  part(1, t('进度'), h(StationBar, { station: row.station, trust: row.trust })),
898
- part(2, t('可信度怎么变的'), h(TrustTimeline, { history: row.history, station: row.station, trust: row.trust })),
967
+ part(2, t('可信度变化'), h(TrustTimeline, { history: row.history, station: row.station, trust: row.trust })),
899
968
  part(
900
969
  3,
901
- t('补充'),
970
+ t('补充说明'),
902
971
  h(
903
972
  'div',
904
973
  { className: 'clearai-kv' },
@@ -923,20 +992,20 @@ window.__ModuleLoader__.load({
923
992
  onClick: () => (origin.session !== null && origin.kind === 'evaluator-session' ? data.openSpectator?.(origin.session) : data.openPreview?.(origin.path)),
924
993
  title: origin.path ?? '',
925
994
  },
926
- origin.kind === 'audit-card' || origin.kind === 'evaluator-session' ? t('看核验') : t('看记录'),
995
+ origin.kind === 'audit-card' || origin.kind === 'evaluator-session' ? t('查看核验') : t('查看记录'),
927
996
  ),
928
997
  ),
929
998
  ),
930
999
  ),
931
1000
  ...kv(t('范围'), row.scope === row.refuteWhen ? null : row.scope),
932
- ...kv(t('算错'), row.refuteWhen),
1001
+ ...kv(t('推翻条件'), row.refuteWhen),
933
1002
  ...kv(
934
1003
  t('相关'),
935
1004
  subjects.length === 0
936
1005
  ? null
937
- : h('span', { className: 'clearai-chips' }, ...subjects.map((id) => h('span', { key: id, className: 'clearai-chip', onClick: () => props.onFocus?.(id), title: t('在图上找它') }, labelOfEntity(data, id)))),
1006
+ : h('span', { className: 'clearai-chips' }, ...subjects.map((id) => h('span', { key: id, className: 'clearai-chip', onClick: () => props.onFocus?.(id), title: t('在图中定位') }, labelOfEntity(data, id)))),
938
1007
  ),
939
- ...kv(t('出自'), row.step === null ? null : `${nth(row.step)}`),
1008
+ ...kv(t('来源'), row.step === null ? null : `${nth(row.step)}`),
940
1009
  ),
941
1010
  ),
942
1011
  )
@@ -954,7 +1023,7 @@ window.__ModuleLoader__.load({
954
1023
  { className: 'clearai-row', 'data-open': open ? '1' : '0', 'data-trust': row.trust },
955
1024
  h(
956
1025
  'div',
957
- { className: 'clearai-row-head', onClick: () => props.onToggle(row.key), title: open ? t('收起') : t('点开看进度和来历') },
1026
+ { className: 'clearai-row-head', onClick: () => props.onToggle(row.key), title: open ? t('收起') : t('点击查看进度与来源') },
958
1027
  h(TrustTag, { trust: row.trust }),
959
1028
  h('span', { className: 'clearai-row-title' }, title),
960
1029
  sub === null ? null : h('span', { className: 'clearai-row-sub' }, sub),
@@ -967,7 +1036,7 @@ window.__ModuleLoader__.load({
967
1036
  /** 结论列表:按可信度分组,空组不出现。 */
968
1037
  function ConclusionList(props) {
969
1038
  const rows = props.rows
970
- if (rows.length === 0) return h('div', { className: 'clearai-quiet' }, t('还没有结论。模型立下判断之后,这里一行一条。'))
1039
+ if (rows.length === 0) return h('div', { className: 'clearai-quiet' }, props.empty ?? t('暂无结论。模型提出判断后,将在此逐条列出。'))
971
1040
  return h(
972
1041
  'div',
973
1042
  { className: 'clearai-list' },
@@ -984,31 +1053,13 @@ window.__ModuleLoader__.load({
984
1053
  )
985
1054
  }
986
1055
 
987
- /** 页眉:在回答什么 · 一行计数 · 待处理 · 迷你进度轨。 */
1056
+ /** 页眉:在回答什么(计数、待处理与进度轨归探索货架)。 */
988
1057
  function AtlasHeader(props) {
989
- const { data, rows } = props
990
- const live = rows.filter((row) => row.trust !== 'replaced')
991
- const counts = TRUST_ORDER.filter((trust) => trust !== 'replaced')
992
- .map((trust) => [trust, rows.filter((row) => row.trust === trust).length])
993
- .filter(([, count]) => count > 0)
994
- const stations = STATIONS().map((name, index) => [name, live.filter((row) => row.station >= index + 1).length])
995
- const needYou = Array.isArray(data?.needYou) ? data.needYou : []
1058
+ const { data } = props
996
1059
  return h(
997
1060
  'div',
998
1061
  { className: 'clearai-head' },
999
- h('div', { className: 'clearai-question', title: String(data?.goal?.claim ?? '') }, data?.goal ? String(data.knowledgeView?.goal?.headline ?? data.goal.claim ?? '') : t('还没有立目标')),
1000
- counts.length === 0 ? null : h('div', { className: 'clearai-counts' }, counts.map(([trust, count]) => `${TRUST_WORD[trust]} ${count}`).join(' · ')),
1001
- ...needYou.map((item, index) => h('div', { key: `need-${index}`, className: 'clearai-need' }, h('b', null, t('待处理')), String(item?.text ?? ''))),
1002
- live.length === 0
1003
- ? null
1004
- : h(
1005
- 'div',
1006
- { className: 'clearai-track' },
1007
- ...stations.flatMap(([name, count], index) => [
1008
- index === 0 ? null : h('span', { key: `line-${index}`, className: 'clearai-track-line', 'data-on': count > 0 ? '1' : '0' }),
1009
- h('span', { key: `st-${index}`, className: 'clearai-track-stop', 'data-on': count > 0 ? '1' : '0' }, h('i', null), `${name} ${count}`),
1010
- ]),
1011
- ),
1062
+ h('div', { className: 'clearai-question', title: String(data?.goal?.claim ?? '') }, data?.goal ? String(data.knowledgeView?.goal?.headline ?? data.goal.claim ?? '') : t('尚未设立目标')),
1012
1063
  )
1013
1064
  }
1014
1065
 
@@ -1031,10 +1082,11 @@ window.__ModuleLoader__.load({
1031
1082
  installStyles()
1032
1083
  }, [])
1033
1084
  if (projected === undefined || projected === null) {
1034
- return h('div', { className: 'clearai-atlas' }, h(Empty, null, t('还没有内容。发第一条消息后,这里显示本体图和结论。')))
1085
+ return h('div', { className: 'clearai-atlas' }, h(Empty, null, t('暂无内容。发送第一条消息后,此处将显示本体图与结论。')))
1035
1086
  }
1036
- const data = { ...projected, openPreview: props.openPreview, openRail: props.openRail, openSpectator: props.openSpectator }
1037
- const rows = conclusionsOf(data)
1087
+ const data = { ...projected, openPreview: props.openPreview, openSpectator: props.openSpectator }
1088
+ /** 本体货架只放结果:已确立的事实(判断的全部过程在探索货架的「过程记录」里)。 */
1089
+ const rows = conclusionsOf(data).filter((row) => row.trust === 'credible')
1038
1090
  const lexicon = data.lexicon ?? null
1039
1091
  /** 世界树那边点进来的聚焦优先;手动点行仍然有效。 */
1040
1092
  const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
@@ -1046,7 +1098,8 @@ window.__ModuleLoader__.load({
1046
1098
  return h(
1047
1099
  'div',
1048
1100
  { className: 'clearai-atlas' },
1049
- h(AtlasHeader, { data, rows }),
1101
+ h(AtlasHeader, { data }),
1102
+ h(AnswerCards, { data, openExplore: props.openExplore }),
1050
1103
  h(GraphBand, {
1051
1104
  lexicon,
1052
1105
  layer,
@@ -1063,12 +1116,13 @@ window.__ModuleLoader__.load({
1063
1116
  : h(
1064
1117
  'div',
1065
1118
  { className: 'clearai-filter' },
1066
- `${t('只看与「')}${String(filterTerm.label ?? filterTerm.id)}${t('」相关的')}${t(':')}${shown.length}/${rows.length}`,
1119
+ `${t('仅显示与「')}${String(filterTerm.label ?? filterTerm.id)}${t('」相关的内容')}${t(':')}${shown.length}/${rows.length}`,
1067
1120
  h('span', { className: 'clearai-link', onClick: () => setFilter(null) }, t('清除')),
1068
1121
  ),
1069
- h('div', { className: 'clearai-section-head' }, t('结论')),
1122
+ h('div', { className: 'clearai-section-head' }, t('已确立的事实')),
1070
1123
  h(ConclusionList, {
1071
1124
  rows: shown,
1125
+ empty: t('暂无已确立的事实。判断经检验与独立核验后,将在此列出;检验过程见探索货架。'),
1072
1126
  open,
1073
1127
  data,
1074
1128
  onToggle: (key) => {
@@ -1083,6 +1137,378 @@ window.__ModuleLoader__.load({
1083
1137
  }
1084
1138
  },
1085
1139
  }),
1140
+ (data.lessons ?? []).length === 0 ? null : h('div', { className: 'clearai-section-head' }, `${t('经验(')}${data.lessons.length}${t(')')}`),
1141
+ h(LessonList, { data }),
1142
+ )
1143
+ }
1144
+
1145
+ /**
1146
+ * **探索货架**(中栏视图,紧挨「本体」):过程在这里,结果在本体货架。
1147
+ *
1148
+ * 主轴是 问题 → 候选假设(定向求解)或 调研板块 → 新发现的问题(广度调研),
1149
+ * 读的是宿主算好的 `exploration`(与运行态卡上「当前位置」同一份派生)。
1150
+ * 候选的状态只从证据来;界面不写任何状态。「立为问题 / 暂缓」两个按钮只是**替人发一句话**
1151
+ * 给模型,由模型用 Frame 修订落账——与「要改什么就在对话里说」是同一条路。
1152
+ */
1153
+ const MODE_WORD = lazyTable(() => ({ survey: t('广度调研'), solve: t('定向求解'), survey_then_solve: t('先调研后求解') }))
1154
+ const CANDIDATE_WORD = lazyTable(() => ({ examining: t('考察中'), excluded: t('已排除'), adopted: t('已采纳'), set_aside: t('暂不考察') }))
1155
+ const AREA_WORD = lazyTable(() => ({ not_started: t('未开始'), in_progress: t('调研中'), clear: t('已厘清') }))
1156
+ const LESSON_WORD = lazyTable(() => ({ trap: t('常见误区'), check: t('前置核查'), shortcut: t('不可取的捷径'), prior: t('先验知识') }))
1157
+
1158
+ /** 关系 id → 名字(本体里登记的 label);找不到就如实给 id。 */
1159
+ const relationLabel = (data, id) => String((data?.lexicon?.predicates ?? []).find((item) => item.id === id)?.label ?? id)
1160
+
1161
+ /** 一条候选最近一条某种结论的依据(排除依据 / 采纳依据都从证据里来)。 */
1162
+ const latestBasis = (data, hypothesis, verdict) => {
1163
+ const rows = (Array.isArray(data?.evidence) ? data.evidence : []).filter((item) => item.hypothesis === hypothesis && item.verdict === verdict)
1164
+ return rows.length === 0 ? null : String(rows[rows.length - 1].basis ?? '') || null
1165
+ }
1166
+
1167
+ /** 候选假设展开后的几行(标签按界面用语规范:提出依据 / 推翻条件 / 预测 / 排除依据 / 采纳依据 / 关联记录)。 */
1168
+ function candidateDetail(data, candidate, prediction) {
1169
+ const rows = []
1170
+ const push = (label, value) => {
1171
+ if (value !== null && value !== undefined && value !== '') rows.push([label, value])
1172
+ }
1173
+ push(t('提出依据'), candidate.from === null ? t('未注明(直觉)') : candidate.from === '直觉' || candidate.from === 'intuition' ? t('直觉') : `${t('本体关系「')}${relationLabel(data, candidate.from)}${t('」')}`)
1174
+ push(t('主张'), candidate.claim !== candidate.name ? candidate.claim : null)
1175
+ push(t('推翻条件'), candidate.refuteWhen)
1176
+ push(t('预测'), prediction)
1177
+ if (candidate.state === 'excluded') push(t('排除依据'), latestBasis(data, candidate.id, 'refute'))
1178
+ if (candidate.state === 'adopted') push(t('采纳依据'), latestBasis(data, candidate.id, 'support'))
1179
+ const support = (Array.isArray(data?.evidence) ? data.evidence : []).filter((item) => item.hypothesis === candidate.id && item.verdict === 'support').length
1180
+ push(t('关联记录'), `${t('支持 ')}${support}${t(' 条 · 推翻 ')}${candidate.refutations}${t(' 条 · 无法判定 ')}${candidate.inconclusive}${t(' 条')}`)
1181
+ return rows
1182
+ }
1183
+
1184
+ /** 状态小签:候选与板块各用自己的一套词,颜色按状态族走(进行中 / 否定 / 肯定 / 搁置)。 */
1185
+ function StateTag(props) {
1186
+ return h('span', { className: 'clearai-state', 'data-s': props.state }, props.children)
1187
+ }
1188
+
1189
+ /** 一个问题:标题、计数、候选列表(可展开)、暂不考察的放在页脚。 */
1190
+ function QuestionBox(props) {
1191
+ const { data, question, index, next, open, onToggle } = props
1192
+ const shown = question.candidates.filter((candidate) => candidate.state !== 'set_aside')
1193
+ const parked = question.candidates.filter((candidate) => candidate.state === 'set_aside')
1194
+ const counts = ['examining', 'excluded', 'adopted'].filter((key) => (question.counts?.[key] ?? 0) > 0).map((key) => `${CANDIDATE_WORD[key]} ${question.counts[key]}`)
1195
+ const predictionOf = (id) => (next?.predictions ?? []).find((item) => item.hypothesis === id)?.expect ?? null
1196
+ const status =
1197
+ question.status === 'answered'
1198
+ ? h('span', { className: 'clearai-link', onClick: () => props.openFacts?.(), title: t('在本体货架中展开此结论') }, t('已得出结论 · 查看结论'))
1199
+ : question.status === 'parked'
1200
+ ? h('span', null, t('已暂缓'))
1201
+ : question.status === 'emergent'
1202
+ ? h('span', null, t('新发现,待您决定'))
1203
+ : h('span', null, shown.length === 0 ? t('尚无候选假设') : `${t('候选假设 ')}${question.candidates.length}${t(' 个:')}${counts.join(' · ')}`)
1204
+ const compact = shown.length === 0 && question.status !== 'emergent'
1205
+ return h(
1206
+ 'section',
1207
+ { className: 'clearai-box', 'data-compact': compact ? '1' : '0', 'data-current': props.current ? '1' : '0' },
1208
+ h(
1209
+ 'div',
1210
+ { className: 'clearai-box-head' },
1211
+ question.implicit ? null : h('span', { className: 'clearai-box-kind' }, `${t('问题 ')}${index + 1}`),
1212
+ h('span', { className: 'clearai-box-title' }, question.implicit ? t('候选假设') : question.text),
1213
+ h('span', { className: 'clearai-box-note' }, status),
1214
+ ),
1215
+ question.status === 'emergent' ? h(EmergentActions, { question, send: props.send, sent: props.sent, onSent: props.onSent }) : null,
1216
+ ...shown.map((candidate) => {
1217
+ const isOpen = open === candidate.id
1218
+ return h(
1219
+ 'div',
1220
+ { key: candidate.id, className: 'clearai-cand', 'data-open': isOpen ? '1' : '0', 'data-s': candidate.state },
1221
+ h(
1222
+ 'button',
1223
+ { type: 'button', className: 'clearai-cand-head', 'aria-expanded': isOpen ? 'true' : 'false', onClick: () => onToggle(isOpen ? null : candidate.id) },
1224
+ h(StateTag, { state: candidate.state }, CANDIDATE_WORD[candidate.state] ?? candidate.state),
1225
+ h('span', { className: 'clearai-cand-name' }, candidate.name),
1226
+ candidate.claim !== candidate.name ? h('span', { className: 'clearai-cand-note' }, brief(candidate.claim, 80)) : null,
1227
+ h('span', { className: 'clearai-cand-chevron', 'aria-hidden': 'true' }, isOpen ? t('收起') : t('展开')),
1228
+ ),
1229
+ isOpen
1230
+ ? h(
1231
+ 'div',
1232
+ { className: 'clearai-cand-detail' },
1233
+ ...candidateDetail(data, candidate, predictionOf(candidate.id)).map(([label, value]) => h('div', { key: label, className: 'clearai-kvrow' }, h('span', null, label), h('span', null, value))),
1234
+ )
1235
+ : null,
1236
+ )
1237
+ }),
1238
+ parked.length === 0
1239
+ ? null
1240
+ : h(
1241
+ 'div',
1242
+ { className: 'clearai-box-foot' },
1243
+ ...parked.map((candidate) => h('span', { key: candidate.id, className: 'clearai-parked' }, h(StateTag, { state: 'set_aside' }, CANDIDATE_WORD.set_aside), h('s', null, candidate.name))),
1244
+ ),
1245
+ )
1246
+ }
1247
+
1248
+ /**
1249
+ * 「立为问题 / 暂缓」:替人发一句话给模型(模型用 Frame 修订落账),界面自己不写状态。
1250
+ * 发不出去(拿不到会话的对话服务)就如实说请在对话中说明,不假装发了。
1251
+ */
1252
+ function EmergentActions(props) {
1253
+ const { question } = props
1254
+ const sent = props.sent?.[question.id] ?? null
1255
+ if (sent === 'pursue') return h('div', { className: 'clearai-emergent-done' }, t('已请求立为问题,待模型修订立题后生效。'))
1256
+ if (sent === 'park') return h('div', { className: 'clearai-emergent-done' }, t('已请求暂缓,结案时列入「尚未确定的事项」。'))
1257
+ if (sent === 'failed') return h('div', { className: 'clearai-emergent-done' }, t('无法自动发送,请在对话中说明。'))
1258
+ const ask = (kind, text) => props.onSent?.(question.id, typeof props.send === 'function' && props.send(text) === true ? kind : 'failed')
1259
+ return h(
1260
+ 'div',
1261
+ { className: 'clearai-emergent' },
1262
+ h('span', { className: 'clearai-emergent-kind' }, t('新发现的问题')),
1263
+ h('span', { className: 'clearai-emergent-text' }, question.text),
1264
+ h(
1265
+ 'span',
1266
+ { className: 'clearai-emergent-actions' },
1267
+ h('button', { type: 'button', className: 'clearai-btn', 'data-primary': '1', onClick: () => ask('pursue', `${t('请将新发现的问题「')}${question.text}${t('」立为问题深入研究(问题 ')}${question.id}${t(')。')}`) }, t('立为问题')),
1268
+ h('button', { type: 'button', className: 'clearai-btn', onClick: () => ask('park', `${t('请暂缓问题「')}${question.text}${t('」(问题 ')}${question.id}${t('),结案时列入「尚未确定的事项」。')}`) }, t('暂缓')),
1269
+ ),
1270
+ )
1271
+ }
1272
+
1273
+ /** 广度调研:调研板块一行一个,板块下挂新发现的问题。 */
1274
+ function AreaBox(props) {
1275
+ const { exploration } = props
1276
+ const areas = exploration.areas ?? []
1277
+ const counts = ['clear', 'in_progress', 'not_started'].map((key) => [key, areas.filter((area) => area.state === key).length]).filter(([, count]) => count > 0)
1278
+ return h(
1279
+ 'section',
1280
+ { className: 'clearai-box' },
1281
+ h('div', { className: 'clearai-box-head' }, h('span', { className: 'clearai-box-title' }, t('调研板块')), h('span', { className: 'clearai-box-note' }, counts.map(([key, count]) => `${AREA_WORD[key]} ${count}`).join(' · '))),
1282
+ ...areas.map((area) => {
1283
+ const emergent = (exploration.questions ?? []).filter((question) => question.area === area.id && question.status === 'emergent')
1284
+ const note = [`${t('判断 ')}${area.judgments}${t(' 条 · 已采纳 ')}${area.verified}${t(' 条')}`, area.openAnomalies > 0 ? `${t('未解释的现象 ')}${area.openAnomalies}${t(' 项')}` : null].filter((item) => item !== null).join(' · ')
1285
+ return h(
1286
+ 'div',
1287
+ { key: area.id, className: 'clearai-cand', 'data-s': area.state },
1288
+ h('div', { className: 'clearai-cand-head', 'data-static': '1' }, h(StateTag, { state: area.state }, AREA_WORD[area.state] ?? area.state), h('span', { className: 'clearai-cand-name' }, area.name), h('span', { className: 'clearai-cand-note' }, note)),
1289
+ ...emergent.map((question) => h(EmergentActions, { key: question.id, question, send: props.send, sent: props.sent, onSent: props.onSent })),
1290
+ )
1291
+ }),
1292
+ )
1293
+ }
1294
+
1295
+ /** 下一步:做什么,以及各候选的预测;预测相同就如实说这一步区分不了。 */
1296
+ function NextBox(props) {
1297
+ const next = props.next
1298
+ if (next === null || next === undefined) return null
1299
+ const predictions = Array.isArray(next.predictions) ? next.predictions : []
1300
+ return h(
1301
+ 'section',
1302
+ { className: 'clearai-next' },
1303
+ h('div', { className: 'clearai-next-head' }, h('span', { className: 'clearai-next-kind' }, t('下一步')), h('span', { className: 'clearai-next-title' }, `${nth(next.ordinal)}${t(':')}${next.do}`)),
1304
+ predictions.length === 0
1305
+ ? next.expect
1306
+ ? h('div', { className: 'clearai-next-note' }, `${t('预测:')}${next.expect}`)
1307
+ : null
1308
+ : h(
1309
+ 'div',
1310
+ { className: 'clearai-preds' },
1311
+ ...predictions.map((item, index) => h('div', { key: `p-${index}`, className: 'clearai-pred' }, h('div', { className: 'clearai-pred-if' }, `${t('若「')}${item.name}${t('」成立,预测')}`), h('div', { className: 'clearai-pred-value' }, item.expect))),
1312
+ ),
1313
+ next.indistinct === true
1314
+ ? h('div', { className: 'clearai-next-warn' }, t('各候选假设的预测相同,此步骤无法区分它们。'))
1315
+ : h('div', { className: 'clearai-next-note' }, t('如需调整计划,请在对话中说明。')),
1316
+ )
1317
+ }
1318
+
1319
+ /** 未解释的现象:开着的逐条列出(结案时必须写进「尚未确定的事项」或先有去处)。 */
1320
+ function AnomalyBox(props) {
1321
+ const open = (Array.isArray(props.data?.anomalies) ? props.data.anomalies : []).filter((item) => item.status === 'open')
1322
+ if (open.length === 0) return null
1323
+ return h(
1324
+ 'section',
1325
+ { className: 'clearai-box' },
1326
+ h('div', { className: 'clearai-box-head' }, h('span', { className: 'clearai-box-title' }, `${t('未解释的现象(')}${open.length}${t(')')}`), h('span', { className: 'clearai-box-note' }, t('结案前须解释、排除或写入「尚未确定的事项」'))),
1327
+ ...open.map((item) =>
1328
+ h(
1329
+ 'div',
1330
+ { key: item.id, className: 'clearai-anomaly' },
1331
+ h('span', null, item.what),
1332
+ item.by === 'evaluator' ? h('span', { className: 'clearai-anomaly-meta' }, t('独立评估发现')) : null,
1333
+ (item.touches ?? []).length > 0 ? h('span', { className: 'clearai-anomaly-meta' }, `${t('涉及:')}${item.touches.join(t('、'))}`) : null,
1334
+ ),
1335
+ ),
1336
+ )
1337
+ }
1338
+
1339
+ /** 判断的计数与四站进度轨(原在本体货架页眉;过程信息归探索货架)。 */
1340
+ function JudgmentSummary(props) {
1341
+ const rows = props.rows
1342
+ const live = rows.filter((row) => row.trust !== 'replaced')
1343
+ const counts = TRUST_ORDER.filter((trust) => trust !== 'replaced')
1344
+ .map((trust) => [trust, rows.filter((row) => row.trust === trust).length])
1345
+ .filter(([, count]) => count > 0)
1346
+ const stations = STATIONS().map((name, index) => [name, live.filter((row) => row.station >= index + 1).length])
1347
+ return h(
1348
+ 'div',
1349
+ { className: 'clearai-judgments-head' },
1350
+ counts.length === 0 ? null : h('div', { className: 'clearai-counts' }, counts.map(([trust, count]) => `${TRUST_WORD[trust]} ${count}`).join(' · ')),
1351
+ live.length === 0
1352
+ ? null
1353
+ : h(
1354
+ 'div',
1355
+ { className: 'clearai-track' },
1356
+ ...stations.flatMap(([name, count], index) => [
1357
+ index === 0 ? null : h('span', { key: `line-${index}`, className: 'clearai-track-line', 'data-on': count > 0 ? '1' : '0' }),
1358
+ h('span', { key: `st-${index}`, className: 'clearai-track-stop', 'data-on': count > 0 ? '1' : '0' }, h('i', null), `${name} ${count}`),
1359
+ ]),
1360
+ ),
1361
+ )
1362
+ }
1363
+
1364
+ function ExploreView(props) {
1365
+ const projected = typeof props.useProjection === 'function' ? props.useProjection('clearai') : undefined
1366
+ const [open, setOpen] = React.useState(null)
1367
+ const [processOpen, setProcessOpen] = React.useState(false)
1368
+ const [manual, setManual] = React.useState(null)
1369
+ const [sent, setSent] = React.useState({})
1370
+ const incoming = useFocus(factsFocus)
1371
+ React.useEffect(() => {
1372
+ installStyles()
1373
+ }, [])
1374
+ if (projected === undefined || projected === null) return h('div', { className: 'clearai-atlas' }, h(Empty, null, t('暂无内容。发送第一条消息后,此处将显示问题、候选假设与下一步。')))
1375
+ const data = { ...projected, openPreview: props.openPreview, openSpectator: props.openSpectator }
1376
+ const exploration = data.exploration ?? null
1377
+ const goal = data.goal ?? null
1378
+ const rows = conclusionsOf(data)
1379
+ const openFacts = () => props.openFacts?.()
1380
+ const onSent = (id, kind) => setSent({ ...sent, [id]: kind })
1381
+ const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
1382
+ const opened = focused ?? manual
1383
+ const showProcess = processOpen || focused !== null
1384
+ if (goal === null) {
1385
+ return h('div', { className: 'clearai-atlas' }, h(Empty, null, t('尚未设立目标。模型立题后,此处将显示问题、候选假设与下一步。')))
1386
+ }
1387
+ const questions = Array.isArray(exploration?.questions) ? exploration.questions : []
1388
+ const declared = questions.filter((question) => !question.implicit)
1389
+ const areas = Array.isArray(exploration?.areas) ? exploration.areas : []
1390
+ const currentIndex = declared.findIndex((question) => question.id === exploration?.current)
1391
+ const plan = data.plan ?? null
1392
+ const steps = plan === null ? [] : (plan.steps ?? []).filter((step) => step.status !== 'void')
1393
+ const doneSteps = steps.filter((step) => step.status === 'advanced').length
1394
+ const chips = [
1395
+ exploration?.mode ? `${t('阶段 · ')}${MODE_WORD[exploration.mode] ?? exploration.mode}` : null,
1396
+ areas.length > 0 ? `${t('调研板块 ')}${areas.length}${t(' 个 · 已厘清 ')}${areas.filter((area) => area.state === 'clear').length}${t(' 个')}` : null,
1397
+ declared.length > 0 && currentIndex >= 0 ? `${t('当前问题 ')}${currentIndex + 1}${t(' / 共 ')}${declared.length}` : null,
1398
+ steps.length > 0 ? `${t('计划 已完成 ')}${doneSteps}${t(' / ')}${steps.length}${t(' 步')}` : null,
1399
+ ].filter((item) => item !== null)
1400
+ const needYou = Array.isArray(data.needYou) ? data.needYou : []
1401
+ const audits = (Array.isArray(data.audits) ? data.audits : []).length
1402
+ const openAnomalies = (Array.isArray(data.anomalies) ? data.anomalies : []).filter((item) => item.status === 'open').length
1403
+ const running = steps.find((step) => step.status === 'open') ?? null
1404
+ const summary = [`${t('判断 ')}${rows.length}${t(' 条')}`, `${t('独立评估 ')}${audits}${t(' 次')}`, `${t('未解释的现象 ')}${openAnomalies}${t(' 项')}`, steps.length > 0 ? `${t('计划共 ')}${steps.length}${t(' 步')}${running === null ? '' : `${t('(')}${nth(running.ordinal)}${t('进行中)')}`}` : null].filter((item) => item !== null).join(' · ')
1405
+ const questionList = questions.filter((question) => question.implicit || question.area === null || question.area === undefined || question.status !== 'emergent')
1406
+ return h(
1407
+ 'div',
1408
+ { className: 'clearai-atlas' },
1409
+ h(
1410
+ 'div',
1411
+ { className: 'clearai-head' },
1412
+ h('div', { className: 'clearai-head-kind' }, t('课题')),
1413
+ h('div', { className: 'clearai-question', title: String(goal.claim ?? '') }, String(goal.headline ?? data.knowledgeView?.goal?.headline ?? goal.claim ?? '')),
1414
+ chips.length === 0 ? null : h('div', { className: 'clearai-pills' }, ...chips.map((chip, index) => h('span', { key: `c-${index}`, className: 'clearai-pill' }, chip))),
1415
+ ),
1416
+ needYou.length === 0
1417
+ ? null
1418
+ : h(
1419
+ 'section',
1420
+ { className: 'clearai-waiting' },
1421
+ h('b', null, `${t('待您处理(')}${needYou.length}${t(')')}`),
1422
+ ...needYou.map((item, index) => h('span', { key: `need-${index}` }, String(item?.text ?? ''))),
1423
+ ),
1424
+ areas.length > 0 ? h(AreaBox, { exploration, send: props.send, sent, onSent }) : null,
1425
+ ...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
+ h(NextBox, { next: exploration?.next ?? null }),
1427
+ h(AnomalyBox, { data }),
1428
+ h(
1429
+ 'section',
1430
+ { className: 'clearai-process' },
1431
+ h(
1432
+ 'button',
1433
+ { type: 'button', className: 'clearai-process-head', 'aria-expanded': showProcess ? 'true' : 'false', onClick: () => {
1434
+ factsFocus.set(null)
1435
+ setProcessOpen(!showProcess)
1436
+ } },
1437
+ h('b', null, t('过程记录')),
1438
+ h('span', null, summary),
1439
+ h('span', { className: 'clearai-cand-chevron', 'aria-hidden': 'true' }, showProcess ? t('收起') : t('展开')),
1440
+ ),
1441
+ showProcess
1442
+ ? h(
1443
+ 'div',
1444
+ { className: 'clearai-process-body' },
1445
+ h(JudgmentSummary, { rows }),
1446
+ h(ConclusionList, {
1447
+ rows,
1448
+ open: opened,
1449
+ data,
1450
+ onToggle: (key) => {
1451
+ factsFocus.set(null)
1452
+ setManual(opened === key ? null : key)
1453
+ },
1454
+ onFocus: () => openFacts(),
1455
+ }),
1456
+ h(WorldTree, { data, openPreview: props.openPreview, openSpectator: props.openSpectator, openFacts: (stepId) => factsFocus.set({ step: stepId }) }),
1457
+ )
1458
+ : null,
1459
+ ),
1460
+ )
1461
+ }
1462
+
1463
+ /** 本体货架的结论卡:按问题切换,四部分(结论 / 依据 / 尚未确定的事项 / 待您决策)。 */
1464
+ function AnswerCards(props) {
1465
+ const answers = Array.isArray(props.data?.goal?.answers) ? props.data.goal.answers : []
1466
+ const [picked, setPicked] = React.useState(null)
1467
+ if (answers.length === 0) return null
1468
+ const questions = Array.isArray(props.data?.exploration?.questions) ? props.data.exploration.questions : []
1469
+ const textOf = (id) => questions.find((question) => question.id === id && !question.implicit)?.text ?? null
1470
+ const chosen = answers.find((answer) => answer.question === picked) ?? answers[0]
1471
+ const part = (label, body, warm = false) => h('div', { className: 'clearai-answer-part', 'data-warm': warm ? '1' : '0' }, h('span', { className: 'clearai-answer-label' }, label), body)
1472
+ const open = Array.isArray(chosen.open) ? chosen.open : []
1473
+ const decide = Array.isArray(chosen.decide) ? chosen.decide : []
1474
+ const basis = Array.isArray(chosen.basis) ? chosen.basis : []
1475
+ return h(
1476
+ 'div',
1477
+ { className: 'clearai-answers' },
1478
+ answers.length < 2
1479
+ ? null
1480
+ : h(
1481
+ 'div',
1482
+ { className: 'clearai-pills' },
1483
+ ...answers.map((answer, index) =>
1484
+ h(
1485
+ 'button',
1486
+ { key: `q-${index}`, type: 'button', className: 'clearai-qtab', 'aria-pressed': answer === chosen ? 'true' : 'false', onClick: () => setPicked(answer.question) },
1487
+ `${t('问题 ')}${index + 1}${textOf(answer.question) ? ` · ${brief(textOf(answer.question), 16)}` : ''}`,
1488
+ ),
1489
+ ),
1490
+ ),
1491
+ h(
1492
+ 'section',
1493
+ { className: 'clearai-answer' },
1494
+ part(t('结论'), h('span', { className: 'clearai-answer-main' }, chosen.conclusion || `${t('未能回答:')}${chosen.unanswered ?? ''}`)),
1495
+ basis.length === 0 ? null : part(t('依据'), h('div', { className: 'clearai-answer-lines' }, ...basis.map((line, index) => h('div', { key: `b-${index}` }, h('span', null, line), ' ', h('span', { className: 'clearai-link', onClick: () => props.openExplore?.() }, t('查看探索记录')))))),
1496
+ open.length === 0 ? null : part(t('尚未确定的事项'), h('div', { className: 'clearai-answer-lines' }, ...open.map((entry, index) => h('div', { key: `o-${index}` }, entry.effect)))),
1497
+ decide.length === 0 ? null : part(t('待您决策'), h('div', { className: 'clearai-answer-lines' }, ...decide.map((line, index) => h('div', { key: `d-${index}` }, line))), true),
1498
+ ),
1499
+ )
1500
+ }
1501
+
1502
+ /** 经验:以前结案时核过的「下次怎么做」(含别的会话留下的)。 */
1503
+ function LessonList(props) {
1504
+ const lessons = Array.isArray(props.data?.lessons) ? props.data.lessons : []
1505
+ if (lessons.length === 0) return null
1506
+ return h(
1507
+ 'div',
1508
+ { className: 'clearai-list' },
1509
+ ...lessons.map((lesson) =>
1510
+ h('div', { key: lesson.id, className: 'clearai-lesson' }, h('span', { className: 'clearai-lesson-kind' }, LESSON_WORD[lesson.kind] ?? lesson.kind), h('span', null, lesson.text), lesson.boundary ? h('span', { className: 'clearai-lesson-meta' }, `${t('不适用:')}${lesson.boundary}`) : null),
1511
+ ),
1086
1512
  )
1087
1513
  }
1088
1514
 
@@ -1293,10 +1719,13 @@ window.__ModuleLoader__.load({
1293
1719
  function WorldTree(props) {
1294
1720
  const sessions = props.useSessions
1295
1721
  const sessionId = props.sessionId
1722
+ /** 探索货架里直接把投影交下来(`data`);旧的独立挂法仍按会话快照取。 */
1296
1723
  const data =
1297
- typeof sessions === 'function' && typeof sessionId === 'string'
1298
- ? sessions((snapshot) => snapshot?.byId?.[sessionId]?.projectionValues?.clearai)
1299
- : undefined
1724
+ props.data !== undefined
1725
+ ? props.data
1726
+ : typeof sessions === 'function' && typeof sessionId === 'string'
1727
+ ? sessions((snapshot) => snapshot?.byId?.[sessionId]?.projectionValues?.clearai)
1728
+ : undefined
1300
1729
  const [manual, setManual] = React.useState(null)
1301
1730
  const [picked, setPicked] = React.useState(null)
1302
1731
  const focus = useFocus(treeFocus)
@@ -1310,7 +1739,7 @@ window.__ModuleLoader__.load({
1310
1739
  const chosen = wanted === null ? null : plans.find((item) => item.id === wanted) ?? null
1311
1740
  const plan = chosen ?? (data === null || data === undefined ? null : data.plan)
1312
1741
  if (plan === null || plan === undefined) {
1313
- return h('div', { style: S.wrap }, h('div', { style: S.bar }, h('span', { style: S.title }, t('世界树'))), h(Empty, null, t('暂无计划。建立后此处显示计划的步骤与闸门。')))
1742
+ return h('div', { style: S.wrap }, h('div', { style: S.bar }, h('span', { style: S.title }, t('计划'))), h(Empty, null, t('暂无计划。建立计划后,此处将显示计划的步骤与闸门。')))
1314
1743
  }
1315
1744
  const rows = treeRows(plan)
1316
1745
  /** 页眉那一句:计划的首个非空行,过长再截(整篇在 tooltip 与「计划文档」里)。 */
@@ -1383,7 +1812,7 @@ window.__ModuleLoader__.load({
1383
1812
  h(
1384
1813
  'div',
1385
1814
  { style: S.bar },
1386
- h('span', { style: S.title }, t('世界树')),
1815
+ h('span', { style: S.title }, t('计划')),
1387
1816
  /**
1388
1817
  * 页眉只放**一句话**:`brief` 常常是整篇 markdown 计划(真数据里这一行渲染出 1794 字 ✗),
1389
1818
  * 全文进 tooltip,要读整篇点「打开计划」(原生预览 `clear/goals/plans/<id>.md`)——
@@ -1405,7 +1834,7 @@ window.__ModuleLoader__.load({
1405
1834
  setPicked(event.target.value)
1406
1835
  setManual(null)
1407
1836
  },
1408
- title: t('切回历史的世界树(计划都还在,文档也归档在 clear/goals/plans/)'),
1837
+ title: t('切换到以前的计划(计划均保留,文档归档在 clear/goals/plans/)'),
1409
1838
  style: { font: 'inherit', fontSize: 11.5, color: 'var(--dsw-alias-label-secondary)', background: 'transparent', border: '.5px solid var(--dsw-alias-border-l2)', borderRadius: 6, padding: '1px 4px' },
1410
1839
  },
1411
1840
  ...plans.map((item, index) =>
@@ -1414,7 +1843,7 @@ window.__ModuleLoader__.load({
1414
1843
  ),
1415
1844
  chosen === null
1416
1845
  ? null
1417
- : h('span', { style: { ...S.faint, opacity: 0.8 } }, t('已收尾 · 存档可看')),
1846
+ : h('span', { style: { ...S.faint, opacity: 0.8 } }, t('已完成 · 可查看存档')),
1418
1847
  h(
1419
1848
  'span',
1420
1849
  { style: S.faint },
@@ -1483,7 +1912,7 @@ window.__ModuleLoader__.load({
1483
1912
  stat.marks.loops.rounds > 1
1484
1913
  ? h('span', { title: `${stat.marks.loops.rounds}${t(' 轮')}${stat.marks.loops.fails > 0 ? ` · 其中 ${stat.marks.loops.fails} 次被驳回` : ''}` }, `${stat.marks.loops.rounds}${t(' 轮')}`)
1485
1914
  : null,
1486
- stat.judges > 0 ? h('span', { title: `${t('起过 ')}${stat.judges}${t(' 次评估者')}` }, t('独立核验')) : null,
1915
+ stat.judges > 0 ? h('span', { title: `${t('已派出评估者 ')}${stat.judges}${t(' 次')}` }, t('独立核验')) : null,
1487
1916
  ),
1488
1917
  )
1489
1918
  }),
@@ -1514,7 +1943,7 @@ window.__ModuleLoader__.load({
1514
1943
  : h(
1515
1944
  'div',
1516
1945
  { style: S.kv },
1517
- h('span', { style: S.faint }, t('做什么')), h('span', null, step.do),
1946
+ h('span', { style: S.faint }, t('任务内容')), h('span', null, step.do),
1518
1947
  h('span', { style: S.faint }, t('判据')), h('span', null, `${step.doneCriteria}${step.voidReason === null || step.voidReason === undefined ? '' : `(作废:${step.voidReason})`}`),
1519
1948
  h('span', { style: S.faint }, t('状态')), h('span', null, `${gloss(STEP, step.status)}${step.level === null || step.level === undefined ? '' : ` · ${step.level}`}`),
1520
1949
  h(
@@ -1540,8 +1969,8 @@ window.__ModuleLoader__.load({
1540
1969
  'span',
1541
1970
  { key: `${path}-${index}`, style: { marginRight: 8 } },
1542
1971
  exists === false
1543
- ? h('span', { style: { ...S.mono, opacity: 0.6 }, title: t('盘上没有这个文件') }, `${path}${t('(缺)')}`)
1544
- : h(Link, { onClick: () => props.openPreview?.(path), title: exists === true ? t('原生预览打开它') : t('原生预览打开它(计划声明的产物)') }, h('span', { style: S.mono }, path)),
1972
+ ? h('span', { style: { ...S.mono, opacity: 0.6 }, title: t('磁盘上未找到该文件') }, `${path}${t('(缺失)')}`)
1973
+ : h(Link, { onClick: () => props.openPreview?.(path), title: exists === true ? t('在原生预览中打开') : t('在原生预览中打开(计划声明的产物)') }, h('span', { style: S.mono }, path)),
1545
1974
  )
1546
1975
  }),
1547
1976
  ),
@@ -1562,7 +1991,7 @@ window.__ModuleLoader__.load({
1562
1991
  Link,
1563
1992
  {
1564
1993
  onClick: () => props.openFacts(step.id),
1565
- title: t('打开「本体」那一格并展开这条结论'),
1994
+ title: t('在本体货架中展开此结论'),
1566
1995
  },
1567
1996
  t('查看此步骤的证据'),
1568
1997
  ),
@@ -1579,8 +2008,8 @@ window.__ModuleLoader__.load({
1579
2008
  'div',
1580
2009
  { key: item.id, style: S.faint },
1581
2010
  `${t('独立核验:')}${item.verdict === null || item.verdict === undefined ? t('正在裁决') : (VERDICT[item.verdict] ?? item.verdict)}`,
1582
- item.evaluatorSession === null || item.evaluatorSession === undefined ? null : h(Link, { onClick: () => props.openSpectator?.(item.evaluatorSession) }, h('span', null, t(' 看核验过程'))),
1583
- item.cardPath === null || item.cardPath === undefined ? null : h(Link, { onClick: () => props.openPreview?.(item.cardPath) }, h('span', null, t(' 看核验记录'))),
2011
+ item.evaluatorSession === null || item.evaluatorSession === undefined ? null : h(Link, { onClick: () => props.openSpectator?.(item.evaluatorSession) }, h('span', null, t(' 查看核验过程'))),
2012
+ item.cardPath === null || item.cardPath === undefined ? null : h(Link, { onClick: () => props.openPreview?.(item.cardPath) }, h('span', null, t(' 查看核验记录'))),
1584
2013
  ),
1585
2014
  ),
1586
2015
  ),
@@ -1653,9 +2082,24 @@ window.__ModuleLoader__.load({
1653
2082
  * 「待处理 N」就在这一格(`waiting`):门开着是**事实面**上最要紧的一句,
1654
2083
  * 而它可点——点一下开世界树,那里才看得到要裁什么。
1655
2084
  */
1656
- const symbol = `${done}/${total}`
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}`
1657
2101
  const brief = typeof plan.brief === 'string' && plan.brief.trim() !== '' ? plan.brief.trim() : null
1658
- const meaning = blocked ? t('计划受阻,等人处置') : plan.status === 'closed' ? `${t('计划已收尾(')}${done}/${total}${t(' 步)')}` : `${t('计划已交付 ')}${done}/${total}${t(' 步')}`
2102
+ const meaning = blocked ? t('计划受阻,待人工处理') : plan.status === 'closed' ? `${t('计划已收尾(')}${done}/${total}${t(' 步)')}` : `${t('计划已交付 ')}${done}/${total}${t(' 步')}`
1659
2103
  /**
1660
2104
  * 等人时**只说一句**:先「待处理 N」(人门计数),没有门才说续跑停着的原因。
1661
2105
  * 两者是同一根轴(为什么在等人)⇒ 一格只放一个,不并列。
@@ -1668,11 +2112,11 @@ window.__ModuleLoader__.load({
1668
2112
  type: 'button',
1669
2113
  className: 'clearai-toolctl',
1670
2114
  disabled: props.locked === true,
1671
- title: `${meaning}${waiting === null ? '' : ` · ${waiting}`} · ${plan.id}${brief === null ? '' : ` · ${brief}`}${t('(点一下开右栏「世界树」看拓扑)')}`,
1672
- 'aria-label': `${meaning}${waiting === null ? '' : ` · ${waiting}`}${t('(点一下开右栏「世界树」)')}`,
2115
+ title: `${meaning}${waiting === null ? '' : ` · ${waiting}`} · ${plan.id}${brief === null ? '' : ` · ${brief}`}${t('(点击打开探索货架)')}`,
2116
+ 'aria-label': `${meaning}${waiting === null ? '' : ` · ${waiting}`}${t('(点击打开探索货架)')}`,
1673
2117
  // 「要人注意」用与世界树同一族的琥珀(同一套主题令牌,不新造颜色)。
1674
2118
  style: attentionNow ? { color: 'rgb(var(--dsw-color-warning, 245 158 11))', fontWeight: 600 } : undefined,
1675
- onClick: () => props.openRail?.('clearai-worldtree'),
2119
+ onClick: () => props.openExplore?.(),
1676
2120
  },
1677
2121
  h(PlanGlyph, null),
1678
2122
  h('span', { style: { minWidth: 14, textAlign: 'center' } }, symbol),
@@ -1860,12 +2304,12 @@ window.__ModuleLoader__.load({
1860
2304
  h('span', { className: 'clearai-card-kind' }, KIND_WORD[selection.kind] ?? t('关系')),
1861
2305
  h('span', { className: 'clearai-card-title' }, title),
1862
2306
  h('span', { style: { flex: '1 1 auto' } }),
1863
- h('span', { className: 'clearai-link', onClick: onFilter }, t('只看相关')),
2307
+ h('span', { className: 'clearai-link', onClick: onFilter }, t('仅显示相关项')),
1864
2308
  h('span', { className: 'clearai-link', onClick: onClose }, t('关闭')),
1865
2309
  ),
1866
- busy === true ? h('div', { className: 'clearai-quiet' }, t('正在取…')) : null,
1867
- failure !== null ? h('div', { className: 'clearai-quiet' }, `${t('取不到')}${t(':')}${failure}`) : null,
1868
- busy === false && failure === null && data === null ? h('div', { className: 'clearai-quiet' }, t('这一项已经不在当前的词里了(可能刚被废止)。')) : null,
2310
+ busy === true ? h('div', { className: 'clearai-quiet' }, t('正在加载…')) : null,
2311
+ failure !== null ? h('div', { className: 'clearai-quiet' }, `${t('无法获取')}${t(':')}${failure}`) : null,
2312
+ busy === false && failure === null && data === null ? h('div', { className: 'clearai-quiet' }, t('该项已不在当前词表中(可能已被废止)。')) : null,
1869
2313
  data === null
1870
2314
  ? null
1871
2315
  : h(
@@ -1874,20 +2318,20 @@ window.__ModuleLoader__.load({
1874
2318
  ...kv(t('释义'), definition.gloss),
1875
2319
  ...kv(t('上位'), definition.parentLabel ?? definition.parent),
1876
2320
  ...kv(t('下位'), (relations.children ?? []).map((item) => item.label).join('、')),
1877
- ...kv(t('主语'), definition.domainLabel ?? definition.domain),
2321
+ ...kv(t('主体'), definition.domainLabel ?? definition.domain),
1878
2322
  ...kv(t('类型'), definition.typeLabel ?? definition.type),
1879
2323
  ...kv(t('取值'), value),
1880
2324
  ...kv(t('依据'), definition.basis),
1881
2325
  ...kv(t('关系'), (relations.edges ?? []).slice(0, 6).map((edge) => named(edge.chip)).join('、')),
1882
2326
  ...kv(t('实例'), (relations.instances ?? []).slice(0, 6).map((item) => item.label).join('、')),
1883
- definition.status === 'deprecated' ? h('span', { key: 'dep', style: { gridColumn: '1 / -1' }, className: 'clearai-quiet' }, t('这个词已废止,旧结论里的用法照样可读。')) : null,
2327
+ definition.status === 'deprecated' ? h('span', { key: 'dep', style: { gridColumn: '1 / -1' }, className: 'clearai-quiet' }, t('该术语已废止,既有结论中的用法仍可查看。')) : null,
1884
2328
  ),
1885
2329
  facts.length === 0
1886
2330
  ? null
1887
2331
  : h(
1888
2332
  'div',
1889
2333
  { className: 'clearai-card-facts' },
1890
- h('div', { className: 'clearai-group-head' }, t('用到它的结论'), h('span', null, `${facts.length}${data.factsTruncated > 0 ? '+' : ''}`)),
2334
+ h('div', { className: 'clearai-group-head' }, t('引用此项的结论'), h('span', null, `${facts.length}${data.factsTruncated > 0 ? '+' : ''}`)),
1891
2335
  ...facts.slice(0, 4).map((fact, index) =>
1892
2336
  h(
1893
2337
  'div',
@@ -2146,8 +2590,8 @@ window.__ModuleLoader__.load({
2146
2590
  const sideBySide = fullscreen === true
2147
2591
  const empty =
2148
2592
  layer === 'entity'
2149
- ? `${typeof unlanded === 'number' && unlanded > 0 ? `${t('有 ')}${unlanded}${t(' 个断言的主语还没写成实体文件。')}` : t('实体图还空着。')}${t('clear/ontology/entities/ 下的实体文件、写进长期知识的断言会出现在这里。')}`
2150
- : t('本体图还空着。模型在 clear/ontology/concepts/ 和 relations/ 下写概念与关系文件之后,它们会长在这里。')
2593
+ ? `${typeof unlanded === 'number' && unlanded > 0 ? `${t('共 ')}${unlanded}${t(' 条断言的主体尚未建立实体文件。')}` : t('实体图暂无内容。')}${t('clear/ontology/entities/ 下的实体文件与写入长期知识的断言将在此显示。')}`
2594
+ : t('本体图暂无内容。模型在 clear/ontology/concepts/ 与 relations/ 下建立概念与关系文件后,将在此显示。')
2151
2595
  return h(
2152
2596
  'div',
2153
2597
  { className: 'clearai-graph', 'data-full': fullscreen === true ? '1' : '0' },
@@ -2175,7 +2619,7 @@ window.__ModuleLoader__.load({
2175
2619
  'div',
2176
2620
  { className: 'clearai-graph-body', 'data-side': sideBySide ? '1' : '0' },
2177
2621
  XYFlow === null || XYFlow.ReactFlow === undefined || XYFlow.ReactFlow === null
2178
- ? h('div', { className: 'clearai-graph-empty' }, `${t('图组件不可用')}(${String(XYFLOW_LOAD.reason ?? '')}):${t('结论照常可读。')}`)
2622
+ ? h('div', { className: 'clearai-graph-empty' }, `${t('图组件不可用')}(${String(XYFLOW_LOAD.reason ?? '')}):${t('结论仍可正常查看。')}`)
2179
2623
  : allNodes.length === 0
2180
2624
  ? h('div', { className: 'clearai-graph-empty' }, empty)
2181
2625
  : h(
@@ -2223,7 +2667,7 @@ window.__ModuleLoader__.load({
2223
2667
  : h(
2224
2668
  'details',
2225
2669
  { className: 'clearai-graph-problems' },
2226
- h('summary', null, `${t('本体文件有 ')}${problems.length}${t(' 处问题(这些不进图)')}`),
2670
+ h('summary', null, `${t('本体文件有 ')}${problems.length}${t(' 项问题(不纳入图中)')}`),
2227
2671
  ...problems.slice(0, 12).map((item, index) =>
2228
2672
  h('div', { key: `${item.path ?? ''}#${index}`, 'data-sev': item.severity === 'error' ? 'error' : item.severity === 'info' ? 'info' : 'warning' }, h('code', null, String(item.path ?? '')), ` ${String(item.detail ?? item.code ?? '')}`),
2229
2673
  ),
@@ -2233,7 +2677,7 @@ window.__ModuleLoader__.load({
2233
2677
  }
2234
2678
 
2235
2679
  const LocalizedFacts = withLocale(Atlas)
2236
- const LocalizedWorldTree = withLocale(WorldTree)
2680
+ const LocalizedExplore = withLocale(ExploreView)
2237
2681
 
2238
2682
  /** 会话预设的 id:面板只在这个模式的会话里出现。 */
2239
2683
  const PRESET_ID = 'clearai'
@@ -2241,7 +2685,7 @@ window.__ModuleLoader__.load({
2241
2685
  function apply(ctx) {
2242
2686
  // 这四个服务都声明在 `inject` 里,所以这里直接用属性读(Cordis 保证就位);
2243
2687
  // 用 `ctx.get()` 也读得到,但属性形式同时受 inject 的「服务重载后重新激活」保护。
2244
- const { slots, sessions, sidebarRightTabs, sidebarRight } = ctx
2688
+ const { slots, sessions, sidebarRight } = ctx
2245
2689
  /**
2246
2690
  * 语言:接 DSH 原生的 locale 座位(可选 —— 老宿主或测试桩里没有它,面板退化成中文)。
2247
2691
  * 词典以**源文**为键注册进那个座位,于是 `t('已提出')` 走的是宿主那条查找链:
@@ -2344,113 +2788,43 @@ window.__ModuleLoader__.load({
2344
2788
  }
2345
2789
 
2346
2790
  /**
2347
- * 右栏三张页签(定案)。
2348
- *
2349
- * 为什么在右栏而不是中栏:`conversation.view` 是「一次看一个」的视图——看树时看不到对话;
2350
- * 而右栏能与对话并排,还能拖出成浮窗、能全屏(树的车道是横向铺开的)。
2351
- *
2352
- * 注册契约(照抄 `dsh-client-ui-sidebar-files` 的写法):
2353
- * · `sidebarRightTabs.register({id, kind, title, guide})` 注册**页签类型**;
2354
- * · 体与标题各自注册在 `sidebar.right.pane.tab` / `sidebar.right.pane.tab.title`(keyed,钥匙是类型 id);
2355
- * · `sidebarRight.openTab(kind)` 程序化打开(跨面跳转靠它)。
2356
- */
2357
- /**
2358
- * 图标挑法(原生那 75 个里选,语义要对得上):
2359
- * · 世界树 = `IconBranchOutline16`(计划拓扑与分叉,原生就用它画分支)
2360
- * · 技能 · 记忆 = `IconSkillOutline16`(原生专门有一枚技能图标)
2361
- * 拿不到就留空 ⇒ 原生默认字形。
2362
- */
2363
- /**
2364
- * 右栏只剩两格:**世界树**(计划的一切:脊柱、车道、闸门、要你拍板的那一下)
2365
- * 与 **技能 · 记忆**(外脑)。
2791
+ * **右栏不再注册页签**:世界树(计划的步骤与闸门)并入探索货架的「过程记录」。
2792
+ * 过程与结果各占中栏一格(探索 / 本体),人不必在右栏与中栏之间来回找。
2366
2793
  *
2367
- * 「进展」撤了:它原先装的四段各有归宿——计划与世界线的行归世界树,
2368
- * 假设/观测/证据/事实归中栏「事实」,目标与判据归世界树的页眉,
2369
- * 而"当下什么状态"由工具行那颗**计划芯片**回答(它一直在,不用切页签)。
2370
- * 页签越少,越不需要向人解释每个页签该在什么时候看。
2371
- */
2372
- /**
2373
- * 标签与说明必须是**函数**:页签类型只在预设生效时注册一次,而语言座位是**随后**才切到
2374
- * 用户偏好的——写成 `label: t('世界树')` 就把注册那一刻的语言固化了(界面中文、
2375
- * 右栏页签却是 Worldlines)。惰性取值让原生每次渲染现问一次,切换语言立刻跟上。
2794
+ * 切中栏视图走原生正门 `layout.selectPanel`;座位自己的 props 里有 `openView` 时优先用它。
2795
+ * `selectPanel` 对未注册的 key 会抛 ⇒ 包起来,点不动也不把面板带下水。
2376
2796
  */
2377
- const rightRail = [
2378
- { id: 'clearai-worldtree', kind: 'clearai-worldtree', label: () => t('世界树'), order: 15, description: () => t('计划的步骤与闸门'), icon: NATIVE_ICONS.IconBranchOutline16 },
2379
- ]
2380
- const shown = new Set()
2381
- const syncRail = () => {
2382
- const wanted = isCurrentPreset()
2383
- if (!wanted) {
2384
- for (const id of [...shown]) {
2385
- const entry = railDisposers.get(id)
2386
- if (entry !== undefined) entry()
2387
- railDisposers.delete(id)
2388
- shown.delete(id)
2389
- }
2390
- return
2391
- }
2392
- for (const tab of rightRail) {
2393
- if (shown.has(tab.id)) continue
2394
- shown.add(tab.id)
2395
- const own = []
2797
+ const openPanel = (props, id) => {
2798
+ if (typeof props?.openView === 'function') {
2396
2799
  try {
2397
- own.push(ctx.effect(() => sidebarRightTabs.register({
2398
- id: tab.id,
2399
- kind: tab.kind,
2400
- title: tab.label,
2401
- guide: [{ order: tab.order, title: tab.label, description: tab.description, icon: tab.icon }],
2402
- }), `clearai: rail type ${tab.id}`))
2403
- } catch (error) {
2404
- // 类型已注册(同名同 layer)不是致命:如实记一笔,继续。
2405
- console.warn?.(`${t('clearai 面板:右栏页签类型注册失败 ')}${String(error?.message ?? error)}`)
2800
+ props.openView(id)
2801
+ return true
2802
+ } catch {
2803
+ /* 退到 layout 那一路 */
2406
2804
  }
2407
- const body =
2408
- tab.body ??
2409
- ((props) =>
2410
- h(LocalizedWorldTree, {
2411
- ...props,
2412
- openPreview: openPreviewFor(props),
2413
- openSpectator,
2414
- /**
2415
- * 反向跳:记住要展开哪条命题,再用**原生正门**切中栏视图。
2416
- * `layout` 走可选读法(契约里就给了 `ctx.get('layout')` 这一路);
2417
- * `selectPanel` 对未注册的 key 会抛 ⇒ 包起来,别把整棵树带下水。
2418
- */
2419
- openFacts: (stepId) => {
2420
- factsFocus.set({ step: stepId })
2421
- const layout = ctx.get('layout')
2422
- if (layout === undefined || typeof layout.selectPanel !== 'function') return false
2423
- try {
2424
- layout.selectPanel('clearai-facts')
2425
- return true
2426
- } catch {
2427
- return false
2428
- }
2429
- },
2430
- }))
2431
- own.push(ctx.effect(() => slots.inject('sidebar.right.pane.tab', () => slots.register({ name: 'sidebar.right.pane.tab', key: tab.id }, body)), `clearai: rail body ${tab.id}`))
2432
- own.push(ctx.effect(() => slots.inject('sidebar.right.pane.tab.title', () => slots.register({ name: 'sidebar.right.pane.tab.title', key: tab.id }, () => tab.label)), `clearai: rail title ${tab.id}`))
2433
- railDisposers.set(tab.id, () => {
2434
- for (const dispose of own) {
2435
- try {
2436
- dispose()
2437
- } catch {
2438
- /* 已经放过的不重复处理 */
2439
- }
2440
- }
2441
- })
2805
+ }
2806
+ const layout = ctx.get('layout')
2807
+ if (layout === undefined || typeof layout.selectPanel !== 'function') return false
2808
+ try {
2809
+ layout.selectPanel(id)
2810
+ return true
2811
+ } catch {
2812
+ return false
2442
2813
  }
2443
2814
  }
2444
- const railDisposers = new Map()
2445
-
2446
2815
  /**
2447
- * 打开右栏的某张页签(跨面跳转:点「待处理 N」→ 进展)。
2448
- * 不再有我们自己的「预览」页签了:预览走**原生**的文档预览(`openNativePreview`)——
2449
- * 那一条既有 markdown/图片/pdf/html 的渲染,也有它自己的分页读盘。
2816
+ * 「立为问题 / 暂缓」:替人往这个会话里发一句话(与人在输入框里打字同一条路)。
2817
+ * 对话服务按会话作用域取(`sessions.scope(id)` 上的 `conversation`);拿不到就返回 false,
2818
+ * 界面如实说「请在对话中说明」。这里不写任何账:状态由模型的 Frame 修订落下。
2450
2819
  */
2451
- const openRail = (kind) => {
2820
+ const sendFor = (props) => (text) => {
2821
+ const id = sessionIdFor(props)
2822
+ if (typeof id !== 'string' || typeof sessions.scope !== 'function') return false
2452
2823
  try {
2453
- sidebarRight?.openTab?.(kind)
2824
+ const scoped = sessions.scope(id)
2825
+ const conversation = typeof scoped?.get === 'function' ? scoped.get('conversation') : scoped?.conversation
2826
+ if (conversation === undefined || conversation === null || typeof conversation.send !== 'function') return false
2827
+ Promise.resolve(conversation.send(text)).catch(() => {})
2454
2828
  return true
2455
2829
  } catch {
2456
2830
  return false
@@ -2483,19 +2857,16 @@ window.__ModuleLoader__.load({
2483
2857
  const openPreviewFor = (props) => (path) => openNativePreview(sidebarRight, sessionIdFor(props), path)
2484
2858
 
2485
2859
  /**
2486
- * 中栏视图:**事实**——整条闭环一屏看完(假设是起点,事实是沉淀)。
2487
- * 这一格与模型读的 `clear/knowledge/facts/INDEX.md` 是**同一张表**。
2488
- */
2489
- /**
2490
- * 注册时必须把**打开器**交下去:这一格的证据出处、事实原件、跳世界树
2491
- * 全靠这两个回调。漏了它们,界面看着能点、点了什么也不会发生——
2492
- * 漏了它,「点击证据没反应」。
2493
- */
2494
- /**
2495
- * 注册时必须把**打开器**都交下去:证据的四类出处、事实原件、跳世界树全靠它们。
2860
+ * 中栏两格:**探索**(过程:问题、候选假设、下一步、过程记录)与**本体**(结果:结论、本体图、
2861
+ * 已确立的事实、经验)。本体货架与模型读的 `clear/knowledge/facts/INDEX.md` 是**同一张表**。
2862
+ *
2863
+ * 注册时必须把**打开器**都交下去:证据的出处、事实原件、两格之间的跳转全靠它们。
2496
2864
  * 漏了它们,界面看着能点、点了什么也不会发生。
2497
2865
  */
2498
- occupy('conversation.view', () => ({ id: 'clearai-facts', order: 20, label: t('本体') }), (props) => h(LocalizedFacts, { ...props, openRail, openSpectator, openPreview: openPreviewFor(props) }))
2866
+ occupy('conversation.view', () => ({ id: 'clearai-explore', order: 19, label: t('探索') }), (props) =>
2867
+ h(LocalizedExplore, { ...props, openSpectator, openPreview: openPreviewFor(props), send: sendFor(props), openFacts: () => openPanel(props, 'clearai-facts') }),
2868
+ )
2869
+ occupy('conversation.view', () => ({ id: 'clearai-facts', order: 20, label: t('本体') }), (props) => h(LocalizedFacts, { ...props, openSpectator, openPreview: openPreviewFor(props), openExplore: () => openPanel(props, 'clearai-explore') }))
2499
2870
  /**
2500
2871
  * **计划面坐在原生 plan 那个座位上**。
2501
2872
  *
@@ -2512,18 +2883,16 @@ window.__ModuleLoader__.load({
2512
2883
  * · 遮蔽的代价是零——原生那个 occupant 在本模式下本来 `return null`。
2513
2884
  * 而我们只在**当前会话是本预设**时占座(`occupy`),会话切走就还给它。
2514
2885
  */
2515
- occupy('conversation.input.plan', { priority: -1 }, (props) => h(PlanChip, { ...props, openRail }))
2886
+ occupy('conversation.input.plan', { priority: -1 }, (props) => h(PlanChip, { ...props, openExplore: () => openPanel(props, 'clearai-explore') }))
2516
2887
  // 输入框下方的常驻派生条(运行态卡在人这一侧的对应物)
2517
2888
  /**
2518
2889
  * **输入框下那一条不再注册**:它说的话(阶段 / 完成度 / 当前步)与原生目标提示、
2519
2890
  * 与工具行那颗计划 chip 重复 ✗,却**独占一行把输入框顶上去** ✗。
2520
- * 唯一可点、且只有我们知道的那件事(「待处理 N」)已经并进计划 chip(同一行,一点直达世界树)。
2891
+ * 唯一可点、且只有我们知道的那件事(「待处理 N」)已经并进计划 chip(同一行,一点直达探索货架)。
2521
2892
  */
2522
2893
  ctx.effect(() => sessions.list.subscribe(() => {
2523
2894
  for (const sync of seats) sync()
2524
- syncRail()
2525
2895
  }), t('clearai-loop: 席位跟着会话预设进出'))
2526
- syncRail()
2527
2896
  }
2528
2897
 
2529
2898
  exports.apply = apply
@@ -2539,7 +2908,7 @@ window.__ModuleLoader__.load({
2539
2908
  * 真的跑一遍渲染路径(捕 undefined 字段访问这类只有渲染时才炸的错)。
2540
2909
  * 仍然不是给别的包用的接口。
2541
2910
  */
2542
- exports.__components = { PlanChip, WorldTree, GraphBand, GraphInspector, NeedYou, TreeDetail, Atlas, AtlasHeader, ConclusionList, ConclusionRow, ConclusionDetail, StationBar, TrustTimeline, ClearAIMark, LOOP_LABEL }
2911
+ exports.__components = { PlanChip, WorldTree, ExploreView, AnswerCards, QuestionBox, NextBox, EmergentActions, GraphBand, GraphInspector, NeedYou, TreeDetail, Atlas, AtlasHeader, ConclusionList, ConclusionRow, ConclusionDetail, StationBar, TrustTimeline, ClearAIMark, LOOP_LABEL }
2543
2912
  /**
2544
2913
  * 测试缝之三:命题那一列的**派生**是纯函数(分组、处境、来路、证据链),
2545
2914
  * 渲染本身没法在没浏览器的地方细究——把它导出去,让测试直接断言派生结果。