clearai-dsh 0.5.8 → 0.5.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project are recorded here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [0.5.9] — 2026-11-06
6
+
7
+ - Keep inline objects as historical text and the Research/Ontology panes as independent native tabs. Exclude unsupported cross-pane navigation rather than displaying fallback controls; render evidence actions only when the host provides them.
8
+ - Refine the research timeline and both panels with shared typography, restrained status accents, compact object links, and quieter expandable provenance.
9
+ - Defer view registration until the previous Session binding is released; confirm native message receipt before reporting a sent request, and reject stale-session actions.
10
+
11
+ - Add a separate, versioned UI projection of committed research events and official DSH Chat node rendering. Hypotheses, structural definitions, entity assertions, validation, review handoffs and outcomes retain their source sequence and evidence entry points.
12
+ - Deduplicate the kernel's tool-result and internal fact channels. Display records are absent from model prompts; replay runs without model calls. Native execution, controls, questions and subagent views remain host-owned.
13
+ - Explain consequential findings in existing replies and distinguish received requests from committed scope changes. Preserve historical records when hypotheses change.
14
+ - Validate one native end-to-end task with real DeepSeek execution and independent evaluation: 35 calls, verified usage, USD 0.056577348 new modeled cost. Retain the first invalid audit and retry; cumulative historical spending reservations remain charged.
15
+ - Add a deterministic example replay in an isolated real DSH profile, screenshots and video. This is example evidence, not a real research result or a completed release gate. See `docs/optimization/0.5.9/README.md` for remaining validation.
16
+
5
17
  ## [0.5.8] — 2026-11-06
6
18
 
7
19
  **DSH 0.2.2-rc.1 兼容性、可复核审计与完整性检测,以及研究 / 本体双面板和图谱升级。**
package/README.md CHANGED
@@ -20,10 +20,12 @@ ClearAI is an **ontology discovery and exploration platform**, built on two core
20
20
 
21
21
  > Keep structural definitions distinct from evidence-backed assertions; a valid citation alone does not establish truth.
22
22
 
23
+ > 0.5.9 uses official DSH research events and independent Research/Ontology tabs. [Release validation](docs/optimization/0.5.9-release/README.md) records the real end-to-end task, costs and limitations.
24
+
23
25
  ```bash
24
26
  # Install (npm package, prebuilt — no build step, no allowBuilds prompt)
25
- dsh plugin --profile web add clearai-dsh@0.5.8
26
- # or in the app: Plugins → Add plugin → clearai-dsh@0.5.8
27
+ dsh plugin --profile web add clearai-dsh@0.5.9
28
+ # or in the app: Plugins → Add plugin → clearai-dsh@0.5.9
27
29
  ```
28
30
 
29
31
  Restart `dsh web`, then pick **ClearAI** in the preset picker at the top of a new session. That is the whole setup. [Full install notes ↓](#install-and-use)
@@ -82,16 +84,16 @@ ClearAI does **not** claim recursive self-improvement. It provides the epistemic
82
84
 
83
85
  ## Install and use
84
86
 
85
- **Requirements:** DSH ≥ `0.2.2-rc.1`, the target host for 0.5.8. Evaluators use `startActivation` and the dedicated evaluator preset; older dispatch APIs are not supported.
87
+ **Requirements:** DSH ≥ `0.2.2-rc.1`, the target host for 0.5.9. Evaluators use `startActivation` and the dedicated evaluator preset; older dispatch APIs are not supported.
86
88
 
87
89
  **Recommended — install it in the app, with the version pinned:**
88
90
 
89
- In the sidebar open **Plugins → Add plugin**, enter `clearai-dsh@0.5.8`, and install. That is DSH's own plugin manager: it hands what you type to pnpm, checks that the package declares a bundle and is compatible with this host, and applies it live. (The Settings page **插件列表 / Plugins** is the read-only inventory — installing happens on the sidebar's Plugins page.)
91
+ In the sidebar open **Plugins → Add plugin**, enter `clearai-dsh@0.5.9`, and install. That is DSH's own plugin manager: it hands what you type to pnpm, checks that the package declares a bundle and is compatible with this host, and applies it live. (The Settings page **插件列表 / Plugins** is the read-only inventory — installing happens on the sidebar's Plugins page.)
90
92
 
91
93
  **Or from a terminal — the same install:**
92
94
 
93
95
  ```bash
94
- dsh plugin --profile web add clearai-dsh@0.5.8
96
+ dsh plugin --profile web add clearai-dsh@0.5.9
95
97
  ```
96
98
 
97
99
  This installs the prebuilt package from the npm registry. Nothing is compiled on your machine, so there is no `allowBuilds` grant to approve — the plugin is ready the moment the command returns.
package/README.zh-CN.md CHANGED
@@ -20,10 +20,12 @@ ClearAI 是一个**本体发现与探索平台**,核心由两个概念支撑
20
20
 
21
21
  > 结构定义与有证据支持的断言分开呈现;引用存在不等于内容真实。
22
22
 
23
+ > 0.5.9 使用 DSH 官方行内研究事件,研究与本体保留独立页签。[发布验收](docs/optimization/0.5.9-release/README.md)记录真实端到端任务、费用与限制。
24
+
23
25
  ```bash
24
26
  # 安装(npm 包,预构建——无需构建步骤,不会触发 allowBuilds 授权)
25
- dsh plugin --profile web add clearai-dsh@0.5.8
26
- # 或在应用里:侧栏「插件」→ 添加插件 → clearai-dsh@0.5.8
27
+ dsh plugin --profile web add clearai-dsh@0.5.9
28
+ # 或在应用里:侧栏「插件」→ 添加插件 → clearai-dsh@0.5.9
27
29
  ```
28
30
 
29
31
  重启 `dsh web`,在新建会话顶部的模式选择器里选 **ClearAI** 即可。这就是全部步骤。[完整安装说明 ↓](#安装与使用)
@@ -86,12 +88,12 @@ ClearAI **不**声称递归自我改进。它提供的是自我改进系统所
86
88
 
87
89
  **推荐——在应用里装,并把版本钉住:**
88
90
 
89
- 侧栏打开**「插件」→ 添加插件**,填 `clearai-dsh@0.5.8`,安装。这就是 DSH 自己的插件管理器:它把你填的东西交给 pnpm,校验这个包声明了组合包、与当前宿主兼容,然后当场生效。(设置里的**插件列表**是**只读清单**;安装入口在侧栏那个「插件」页。)
91
+ 侧栏打开**「插件」→ 添加插件**,填 `clearai-dsh@0.5.9`,安装。这就是 DSH 自己的插件管理器:它把你填的东西交给 pnpm,校验这个包声明了组合包、与当前宿主兼容,然后当场生效。(设置里的**插件列表**是**只读清单**;安装入口在侧栏那个「插件」页。)
90
92
 
91
93
  **或者开终端——同一次安装:**
92
94
 
93
95
  ```bash
94
- dsh plugin --profile web add clearai-dsh@0.5.8
96
+ dsh plugin --profile web add clearai-dsh@0.5.9
95
97
  ```
96
98
 
97
99
  从 npm registry 装预构建产物。本机不跑任何编译,因此不需要批准 `allowBuilds` 授权——命令返回时插件就已经可用。
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: 席位跟着会话预设进出","适用":"适用","超出适用范围":"超出适用范围","超出取值范围":"超出取值范围","本次条件未声明":"本次条件未声明","条目未声明适用范围":"条目未声明适用范围","口径已变更":"口径已变更","已撤回":"已撤回","本次不能直接沿用,需重新检验":"本次不能直接沿用,需重新检验","补充本次条件后重新判定":"补充本次条件后重新判定","沿用时需自行确认":"沿用时需自行确认","按新口径换算或重新检验":"按新口径换算或重新检验","先复检再沿用":"先复检再沿用","不得沿用":"不得沿用","已确立":"已确立","初步排除":"初步排除","测量或方法缺陷":"测量或方法缺陷","已解释":"已解释","已判定无关":"已判定无关","已提交您处理":"已提交您处理","请求复检":"请求复检","请复检条目「":"请复检条目「","」(":"」(","请求撤回":"请求撤回","请撤回条目「":"请撤回条目「","),并说明对已有结论的影响。":"),并说明对已有结论的影响。","请求修改适用范围":"请求修改适用范围","请与我确认条目「":"请与我确认条目「",")的适用范围应如何修改。":")的适用范围应如何修改。","推翻证据 ":"推翻证据 "," · 独立核验 ":" · 独立核验 ","受质疑":"受质疑","已发送请求,由模型处理后更新。":"已发送请求,由模型处理后更新。","适用边界":"适用边界","测量与口径":"测量与口径","校准关系":"校准关系","未解释的现象":"未解释的现象","经验":"经验","该实体暂无沉淀的知识。":"该实体暂无沉淀的知识。","引用的已有知识(":"引用的已有知识(","引用的已有知识":"引用的已有知识","引用者:":"引用者:","将沉淀的内容":"将沉淀的内容","已写入的排除与未解释项;结案时待独立核验的结论":"已写入的排除与未解释项;结案时待独立核验的结论","待独立核验":"待独立核验","已确立 ":"已确立 ","已排除 ":"已排除 ","未解释 ":"未解释 ","经验 ":"经验 ","本次沉淀":"本次沉淀","点击查看可发出的请求":"点击查看可发出的请求","初步排除(":"初步排除(","测量或方法缺陷 ":"测量或方法缺陷 ","研究":"研究","研究工作台":"研究工作台","知识地图":"知识地图","从问题到证据,逐步推进。":"从问题到证据,逐步推进。","连接概念,理解已形成的知识。":"连接概念,理解已形成的知识。","概念与关系定义,不代表事实已验证。":"概念与关系定义,不代表事实已验证。","对象与断言,核验状态以证据记录为准。":"对象与断言,核验状态以证据记录为准。","结构定义":"结构定义","层级关系":"层级关系","搜索名称或标识…":"搜索名称或标识…","搜索图谱":"搜索图谱","图谱":"图谱","列表":"列表","邻域":"邻域","聚焦所选":"聚焦所选","恢复视图":"恢复视图","概览":"概览","没有匹配的对象":"没有匹配的对象","选择对象查看定义、关系与证据。":"选择对象查看定义、关系与证据。","拖动平移 · 滚轮缩放":"拖动平移 · 滚轮缩放","可读视图":"可读视图","个对象":"个对象","条连接":"条连接","图谱目录":"图谱目录","打开对象详情":"打开对象详情","在图中打开":"在图中打开","知识概览":"知识概览","研究进展":"研究进展","当前焦点":"当前焦点","相关连接":"相关连接","按 Enter 或空格查看详情,方向键移动节点。":"按 Enter 或空格查看详情,方向键移动节点。","按 Enter 或空格查看关系详情。":"按 Enter 或空格查看关系详情。","缩小":"缩小","放大":"放大","对象":"对象","知识文件需要复核":"知识文件需要复核","以下文件未登记或内容已变化,暂不作为可信知识使用。":"以下文件未登记或内容已变化,暂不作为可信知识使用。","复跑不可用":"复跑不可用","复跑副本未能建立;相关裁决不能据此通过。":"复跑副本未能建立;相关裁决不能据此通过。"}
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: ","研究":"Research","研究工作台":"Research workspace","知识地图":"Knowledge map","从问题到证据,逐步推进。":"Follow the question. Build the evidence.","连接概念,理解已形成的知识。":"Connect concepts. Explore what is known.","概念与关系定义,不代表事实已验证。":"Concepts and relation definitions; not verified facts.","对象与断言,核验状态以证据记录为准。":"Objects and assertions, with evidence-based review status.","结构定义":"Definition","层级关系":"Hierarchy","搜索名称或标识…":"Search names or IDs…","搜索图谱":"Search the graph","图谱":"Graph","列表":"List","邻域":"Neighborhood","聚焦所选":"Focus selection","恢复视图":"Reset view","概览":"Overview","没有匹配的对象":"No matching objects","选择对象查看定义、关系与证据。":"Select an object to inspect its definition, relationships and evidence.","拖动平移 · 滚轮缩放":"Drag to pan · Scroll to zoom","可读视图":"Readable view","个对象":"objects","条连接":"connections","图谱目录":"Graph directory","打开对象详情":"Open object details","在图中打开":"Open in graph","知识概览":"Knowledge overview","研究进展":"Research progress","当前焦点":"Current focus","相关连接":"Related connections","按 Enter 或空格查看详情,方向键移动节点。":"Press Enter or Space for details. Use arrow keys to move the node.","按 Enter 或空格查看关系详情。":"Press Enter or Space for relationship details.","缩小":"Zoom out","放大":"Zoom in","对象":"Object","知识文件需要复核":"Knowledge files need review","以下文件未登记或内容已变化,暂不作为可信知识使用。":"These files are unregistered or changed and are excluded from trusted knowledge.","复跑不可用":"Re-run unavailable","复跑副本未能建立;相关裁决不能据此通过。":"The re-run copy could not be created; affected criteria cannot pass on this basis."}
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: 席位跟着会话预设进出","适用":"适用","超出适用范围":"超出适用范围","超出取值范围":"超出取值范围","本次条件未声明":"本次条件未声明","条目未声明适用范围":"条目未声明适用范围","口径已变更":"口径已变更","已撤回":"已撤回","本次不能直接沿用,需重新检验":"本次不能直接沿用,需重新检验","补充本次条件后重新判定":"补充本次条件后重新判定","沿用时需自行确认":"沿用时需自行确认","按新口径换算或重新检验":"按新口径换算或重新检验","先复检再沿用":"先复检再沿用","不得沿用":"不得沿用","已确立":"已确立","初步排除":"初步排除","测量或方法缺陷":"测量或方法缺陷","已解释":"已解释","已判定无关":"已判定无关","已提交您处理":"已提交您处理","请求复检":"请求复检","请复检条目「":"请复检条目「","」(":"」(","请求撤回":"请求撤回","请撤回条目「":"请撤回条目「","),并说明对已有结论的影响。":"),并说明对已有结论的影响。","请求修改适用范围":"请求修改适用范围","请与我确认条目「":"请与我确认条目「",")的适用范围应如何修改。":")的适用范围应如何修改。","推翻证据 ":"推翻证据 "," · 独立核验 ":" · 独立核验 ","受质疑":"受质疑","已发送请求,由模型处理后更新。":"已发送请求,由模型处理后更新。","适用边界":"适用边界","测量与口径":"测量与口径","校准关系":"校准关系","未解释的现象":"未解释的现象","经验":"经验","该实体暂无沉淀的知识。":"该实体暂无沉淀的知识。","引用的已有知识(":"引用的已有知识(","引用的已有知识":"引用的已有知识","引用者:":"引用者:","将沉淀的内容":"将沉淀的内容","已写入的排除与未解释项;结案时待独立核验的结论":"已写入的排除与未解释项;结案时待独立核验的结论","待独立核验":"待独立核验","已确立 ":"已确立 ","已排除 ":"已排除 ","未解释 ":"未解释 ","经验 ":"经验 ","本次沉淀":"本次沉淀","点击查看可发出的请求":"点击查看可发出的请求","初步排除(":"初步排除(","测量或方法缺陷 ":"测量或方法缺陷 ","研究":"研究","研究工作台":"研究工作台","知识地图":"知识地图","从问题到证据,逐步推进。":"从问题到证据,逐步推进。","连接概念,理解已形成的知识。":"连接概念,理解已形成的知识。","概念与关系定义,不代表事实已验证。":"概念与关系定义,不代表事实已验证。","对象与断言,核验状态以证据记录为准。":"对象与断言,核验状态以证据记录为准。","结构定义":"结构定义","层级关系":"层级关系","搜索名称或标识…":"搜索名称或标识…","搜索图谱":"搜索图谱","图谱":"图谱","列表":"列表","邻域":"邻域","聚焦所选":"聚焦所选","恢复视图":"恢复视图","概览":"概览","没有匹配的对象":"没有匹配的对象","选择对象查看定义、关系与证据。":"选择对象查看定义、关系与证据。","拖动平移 · 滚轮缩放":"拖动平移 · 滚轮缩放","可读视图":"可读视图","个对象":"个对象","条连接":"条连接","图谱目录":"图谱目录","打开对象详情":"打开对象详情","在图中打开":"在图中打开","知识概览":"知识概览","研究进展":"研究进展","当前焦点":"当前焦点","相关连接":"相关连接","按 Enter 或空格查看详情,方向键移动节点。":"按 Enter 或空格查看详情,方向键移动节点。","按 Enter 或空格查看关系详情。":"按 Enter 或空格查看关系详情。","缩小":"缩小","放大":"放大","对象":"对象","知识文件需要复核":"知识文件需要复核","以下文件未登记或内容已变化,暂不作为可信知识使用。":"以下文件未登记或内容已变化,暂不作为可信知识使用。","复跑不可用":"复跑不可用","复跑副本未能建立;相关裁决不能据此通过。":"复跑副本未能建立;相关裁决不能据此通过。","提出或修订假设":"提出或修订假设","知识结构变化":"知识结构变化","实体与断言变化":"实体与断言变化","验证结果":"验证结果","独立评估交接":"独立评估交接","独立裁决":"独立裁决","阶段成果":"阶段成果","完整性异常":"完整性异常","已交接":"已交接","证据不足":"证据不足","需要复核":"需要复核","研究事件详情":"研究事件详情","来源事件":"来源事件","变更数量":"变更数量","原始记录":"原始记录","已放弃":"已放弃","失败":"失败","通过":"通过","独立评估":"独立评估","正在发送请求…":"正在发送请求…","假设":"假设"}
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: ","研究":"Research","研究工作台":"Research workspace","知识地图":"Knowledge map","从问题到证据,逐步推进。":"Follow the question. Build the evidence.","连接概念,理解已形成的知识。":"Connect concepts. Explore what is known.","概念与关系定义,不代表事实已验证。":"Concepts and relation definitions; not verified facts.","对象与断言,核验状态以证据记录为准。":"Objects and assertions, with evidence-based review status.","结构定义":"Definition","层级关系":"Hierarchy","搜索名称或标识…":"Search names or IDs…","搜索图谱":"Search the graph","图谱":"Graph","列表":"List","邻域":"Neighborhood","聚焦所选":"Focus selection","恢复视图":"Reset view","概览":"Overview","没有匹配的对象":"No matching objects","选择对象查看定义、关系与证据。":"Select an object to inspect its definition, relationships and evidence.","拖动平移 · 滚轮缩放":"Drag to pan · Scroll to zoom","可读视图":"Readable view","个对象":"objects","条连接":"connections","图谱目录":"Graph directory","打开对象详情":"Open object details","在图中打开":"Open in graph","知识概览":"Knowledge overview","研究进展":"Research progress","当前焦点":"Current focus","相关连接":"Related connections","按 Enter 或空格查看详情,方向键移动节点。":"Press Enter or Space for details. Use arrow keys to move the node.","按 Enter 或空格查看关系详情。":"Press Enter or Space for relationship details.","缩小":"Zoom out","放大":"Zoom in","对象":"Object","知识文件需要复核":"Knowledge files need review","以下文件未登记或内容已变化,暂不作为可信知识使用。":"These files are unregistered or changed and are excluded from trusted knowledge.","复跑不可用":"Re-run unavailable","复跑副本未能建立;相关裁决不能据此通过。":"The re-run copy could not be created; affected criteria cannot pass on this basis.","提出或修订假设":"Hypothesis proposed or revised","知识结构变化":"Knowledge structure changed","实体与断言变化":"Entities and assertions changed","验证结果":"Validation result","独立评估交接":"Independent review handoff","独立裁决":"Independent assessment","阶段成果":"Stage outcome","完整性异常":"Integrity issue","已交接":"Handed off","证据不足":"Insufficient evidence","需要复核":"Review required","研究事件详情":"Research event details","来源事件":"Source event","变更数量":"Changes","原始记录":"Original record","已放弃":"Abandoned","失败":"Failed","通过":"Passed","独立评估":"Independent review","正在发送请求…":"Sending request…","假设":"Hypothesis"}
190
190
 
191
191
  /**
192
192
  * 翻译函数:**由原生 locale 座位绑定**(`ctx.locale.bind`),不是我们自建的一套 i18n。
@@ -610,6 +610,33 @@ window.__ModuleLoader__.load({
610
610
  .clearai-edge-quiet:hover .react-flow__edge-textwrapper,.clearai-edge-quiet:focus .react-flow__edge-textwrapper{opacity:1}
611
611
  .clearai-graph[data-detail="overview"] .react-flow__edge-textwrapper{display:none}
612
612
 
613
+
614
+ /* 0.5.9 reading system: quiet timeline, shared typography and restrained surfaces. */
615
+ .clearai-research-event{--event-accent:var(--dsw-alias-label-secondary);position:relative;margin:8px 0 20px;padding:2px 0 2px 24px;border-inline-start:1px solid var(--dsw-alias-border-l2);font:14px/1.75 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}
616
+ .clearai-research-event[data-category="hypothesis"],.clearai-research-event[data-category="outcome"]{--event-accent:var(--dsw-alias-brand-primary)}
617
+ .clearai-research-event[data-status="fail"],.clearai-research-event[data-status="insufficient"],.clearai-research-event[data-category="integrity"]{--event-accent:var(--dsw-alias-state-warn-primary)}
618
+ .clearai-event-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:6px;font-size:12px;line-height:1.6;color:var(--dsw-alias-label-secondary)}
619
+ .clearai-event-heading strong{font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--dsw-alias-label-primary)}
620
+ .clearai-event-icon{position:absolute;inset-inline-start:-9px;top:3px;width:17px;height:20px;display:grid;place-items:center;background:var(--dsw-alias-bg-base);color:var(--event-accent)}
621
+ .clearai-event-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--event-accent)}
622
+ .clearai-event-status:before{content:"";width:3px;height:3px;background:currentColor;border-radius:50%;margin-inline-end:2px}
623
+ .clearai-event-example{margin-inline-start:auto;font-size:10px;letter-spacing:.06em;color:var(--dsw-alias-label-tertiary)}
624
+ .clearai-event-copy{margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.8;letter-spacing:.005em}
625
+ .clearai-event-objects{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
626
+ .clearai-event-object{display:inline-block;max-width:100%;padding:0;color:var(--dsw-alias-label-secondary);font:inherit;font-size:11px;overflow-wrap:anywhere}
627
+ .clearai-event-object+.clearai-event-object:before{content:"·";margin-inline-end:6px;color:var(--dsw-alias-label-tertiary)}
628
+ .clearai-event-count{font-size:11px;color:var(--dsw-alias-label-tertiary);margin-inline-start:4px}
629
+ .clearai-event-details{font-size:12px;margin-top:9px;color:var(--dsw-alias-label-secondary)}
630
+ .clearai-event-details>summary{display:list-item;width:fit-content;cursor:pointer;font-size:11px;color:var(--dsw-alias-label-tertiary);padding:3px 0}
631
+ .clearai-event-details[open]{padding-bottom:8px}.clearai-event-details[open]>summary{color:var(--dsw-alias-label-secondary);margin-bottom:8px}
632
+ .clearai-event-details p{margin:5px 0;line-height:1.7}
633
+ .clearai-research-event :focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:3px}
634
+ .clearai-atlas{padding-top:40px;letter-spacing:.003em}.clearai-head{position:relative;padding-bottom:30px;margin-bottom:30px;gap:12px}.clearai-eyebrow{font-size:11px;letter-spacing:.07em}.clearai-page-note{font-size:12px;line-height:1.7}.clearai-question{font-weight:550;line-height:1.5;letter-spacing:-.025em}.clearai-box{border-radius:10px;box-shadow:none}.clearai-box-head{padding:18px 20px}.clearai-box-title{font-size:15px;font-weight:550}.clearai-next{border-radius:10px;background:var(--dsw-alias-bg-base);border-color:var(--dsw-alias-border-l1)}.clearai-section-head{font-size:13px;letter-spacing:.02em}.clearai-graph{border-radius:12px;box-shadow:none}.clearai-map-heading h2{font-size:16px;font-weight:550}.clearai-process{border-color:var(--dsw-alias-border-l1)}
635
+ @media(min-width:1100px){.clearai-research-grid{grid-template-columns:minmax(0,1fr) minmax(220px,.38fr);gap:24px}}
636
+ @media(max-width:600px){.clearai-research-event{padding-inline-start:18px;margin-bottom:18px}.clearai-event-copy{font-size:14px}.clearai-event-heading{gap:6px}.clearai-event-example{font-size:9px}.clearai-atlas{padding-top:24px}.clearai-event-object{display:inline-block;max-width:100%;padding:0;color:var(--dsw-alias-label-secondary);font:inherit;font-size:11px;overflow-wrap:anywhere}
637
+ .clearai-event-object+.clearai-event-object:before{content:"·";margin-inline-end:6px;color:var(--dsw-alias-label-tertiary)}
638
+ @media(prefers-reduced-motion:reduce){.clearai-research-event *{transition:none!important;animation:none!important}}
639
+
613
640
  `
614
641
  /** 把上面那段 CSS 挂进页面(带 data-plugin 标记,宿主按包名记账,卸载时收掉)。 */
615
642
  function installStyles() {
@@ -1238,6 +1265,9 @@ window.__ModuleLoader__.load({
1238
1265
  const [filter, setFilter] = React.useState(null)
1239
1266
  const [focusNode, setFocusNode] = React.useState(null)
1240
1267
  const incoming = useFocus(factsFocus)
1268
+ React.useEffect(() => {
1269
+ if (incoming?.graph) { setLayer(incoming.layer); setFocusNode(incoming.graph) }
1270
+ }, [incoming])
1241
1271
  /** 样式表由 `apply` 挂;面板被单独挂载(截图、预览)时也自己挂一次——同一个标记,不会挂两份。 */
1242
1272
  React.useEffect(() => {
1243
1273
  installStyles()
@@ -1250,7 +1280,7 @@ window.__ModuleLoader__.load({
1250
1280
  const rows = conclusionsOf(data).filter((row) => row.trust === 'credible')
1251
1281
  const lexicon = data.lexicon ?? null
1252
1282
  /** 世界树那边点进来的聚焦优先;手动点行仍然有效。 */
1253
- const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
1283
+ const focused = incoming?.hypothesis ?? (incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step))
1254
1284
  const open = focused ?? manual
1255
1285
  const filterTerm = filter === null ? null : ((lexicon?.terms ?? []).find((item) => item.id === filter) ?? (lexicon?.predicates ?? []).find((item) => item.id === filter) ?? { id: filter, label: filter, aliases: [] })
1256
1286
  const shown = filterTerm === null ? rows : rows.filter((row) => termMatches(filterTerm, row))
@@ -1415,13 +1445,19 @@ window.__ModuleLoader__.load({
1415
1445
  * 「立为问题 / 暂缓」:替人发一句话给模型(模型用 Frame 修订落账),界面自己不写状态。
1416
1446
  * 发不出去(拿不到会话的对话服务)就如实说请在对话中说明,不假装发了。
1417
1447
  */
1448
+ async function submitIntent(send, text, report, success = 'sent') {
1449
+ report('sending')
1450
+ try { report(typeof send === 'function' && await send(text) === true ? success : 'failed') }
1451
+ catch { report('failed') }
1452
+ }
1418
1453
  function EmergentActions(props) {
1419
1454
  const { question } = props
1420
1455
  const sent = props.sent?.[question.id] ?? null
1456
+ if (sent === 'sending') return h('div', { className: 'clearai-emergent-done', role: 'status' }, t('正在发送请求…'))
1421
1457
  if (sent === 'pursue') return h('div', { className: 'clearai-emergent-done' }, t('已请求立为问题,待模型修订立题后生效。'))
1422
1458
  if (sent === 'park') return h('div', { className: 'clearai-emergent-done' }, t('已请求暂缓,结案时列入「尚未确定的事项」。'))
1423
1459
  if (sent === 'failed') return h('div', { className: 'clearai-emergent-done' }, t('无法自动发送,请在对话中说明。'))
1424
- const ask = (kind, text) => props.onSent?.(question.id, typeof props.send === 'function' && props.send(text) === true ? kind : 'failed')
1460
+ const ask = (kind, text) => submitIntent(props.send, text, state => props.onSent?.(question.id, state), kind)
1425
1461
  return h(
1426
1462
  'div',
1427
1463
  { className: 'clearai-emergent' },
@@ -1543,8 +1579,8 @@ window.__ModuleLoader__.load({
1543
1579
  const goal = data.goal ?? null
1544
1580
  const rows = conclusionsOf(data)
1545
1581
  const openFacts = () => props.openFacts?.()
1546
- const onSent = (id, kind) => setSent({ ...sent, [id]: kind })
1547
- const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
1582
+ const onSent = (id, kind) => setSent(previous => ({ ...previous, [id]: kind }))
1583
+ const focused = incoming?.hypothesis ?? (incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step))
1548
1584
  const opened = focused ?? manual
1549
1585
  const showProcess = processOpen || focused !== null
1550
1586
  if (goal === null) {
@@ -1683,8 +1719,8 @@ window.__ModuleLoader__.load({
1683
1719
  asks.length === 0
1684
1720
  ? null
1685
1721
  : done !== undefined
1686
- ? h('div', { className: 'clearai-kitem-meta' }, sent[`${item.kind}:${item.id}:${done[0]}`] === 'failed' ? t('无法自动发送,请在对话中说明。') : t('已发送请求,由模型处理后更新。'))
1687
- : 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))),
1722
+ ? h('div', { className: 'clearai-kitem-meta' }, sent[`${item.kind}:${item.id}:${done[0]}`] === 'sending' ? t('正在发送请求…') : sent[`${item.kind}:${item.id}:${done[0]}`] === 'failed' ? t('无法自动发送,请在对话中说明。') : t('已发送请求,由模型处理后更新。'))
1723
+ : h('div', { className: 'clearai-kitem-asks' }, ...asks.map(([key, label, say]) => h('button', { key, type: 'button', className: 'clearai-btn', 'data-small': '1', onClick: () => submitIntent(props.send, say(item), state => props.onSent?.(`${item.kind}:${item.id}:${key}`, state)) }, label))),
1688
1724
  )
1689
1725
  }
1690
1726
 
@@ -3146,7 +3182,7 @@ window.__ModuleLoader__.load({
3146
3182
  : h(
3147
3183
  'div',
3148
3184
  { className: 'clearai-graph-side' },
3149
- 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,
3185
+ picked.kind === 'node' && picked.node.layer === 'entity' && picked.node.kind === 'instance' ? h(EntityCard, { node: picked.node, data, send, sent: asked, onSent: (key, kind) => setAsked(previous => ({ ...previous, [key]: kind })) }) : null,
3150
3186
  h(GraphInspector, { selection: inspection, sessionId, names: entityNames, onFilter: () => { if (filterTarget) onFilter?.(filterTarget) }, onClose: () => setPicked(null) }),
3151
3187
  ),
3152
3188
  ),
@@ -3189,6 +3225,48 @@ window.__ModuleLoader__.load({
3189
3225
  // 这四个服务都声明在 `inject` 里,所以这里直接用属性读(Cordis 保证就位);
3190
3226
  // 用 `ctx.get()` 也读得到,但属性形式同时受 inject 的「服务重载后重新激活」保护。
3191
3227
  const { slots, sessions, sidebarRight } = ctx
3228
+ // Register through the host's event assembler; keep native tool rows and controls.
3229
+ if (typeof ctx.inject === 'function') ctx.inject(['uiConversation'], child => {
3230
+ const kind = 'clearai-research-event'
3231
+ const labels = { hypothesis: '提出或修订假设', structure: '知识结构变化', entities: '实体与断言变化', validation: '验证结果', handoff: '独立评估交接', adjudication: '独立裁决', outcome: '阶段成果', integrity: '完整性异常' }
3232
+ const statuses = { pending: '待核验', definition: '结构定义', superseded: '已替换', dispatched: '已交接', unknown: '证据不足', inconclusive: '证据不足', insufficient: '证据不足', pass: '通过', fail: '失败', support: '支持', refute: '推翻', supported: '支持', refuted: '推翻', completed: '已完成', abandoned: '已放弃', 'review-required': '需要复核' }
3233
+ const EMPTY_EVENTS = []
3234
+ function ResearchEventRow(props) {
3235
+ useLocaleTick()
3236
+ const seq = props.node.data.seq
3237
+ const rows = props.useProjection('clearaiResearch', value => value?.bySeq?.[seq] ?? EMPTY_EVENTS, (a, b) => a === b || JSON.stringify(a) === JSON.stringify(b))
3238
+ const objectLabel = (row, item) => {
3239
+ if (item.label !== item.id) return item.label
3240
+ return t({ hypothesis: '假设', evidence: '证据', audit: '独立评估', goal: '目标' }[item.kind] ?? '对象')
3241
+ }
3242
+ const icon = category => h('svg', { width: 14, height: 14, viewBox: '0 0 16 16', fill: 'none', stroke: 'currentColor', strokeWidth: 1.25, 'aria-hidden': true },
3243
+ h('path', { d: { hypothesis: 'M8 2 14 8 8 14 2 8Z', structure: 'M3 3h4v4H3zM9 9h4v4H9zM5 7v4h4', entities: 'M8 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6M3 14v-1a5 4 0 0 1 10 0v1', validation: 'M3 8l3 3 7-7', handoff: 'M2 8h11M9 4l4 4-4 4', adjudication: 'M8 2v12M3 4h10M3 4 1 9h4L3 4M13 4l-2 5h4l-2-5', outcome: 'M3 2v12M3 3h10l-2 3 2 3H3', integrity: 'M8 2 15 14H1ZM8 6v4M8 11v1' }[category] ?? 'M8 2 14 8 8 14 2 8Z', strokeLinejoin: 'round', strokeLinecap: 'round' }))
3244
+ return h(React.Fragment, null, ...rows.map(row => h('section', { key: row.id, className: 'clearai-research-event', 'data-category': row.category, 'data-status': row.status, 'aria-label': t(labels[row.category] ?? row.category) },
3245
+ h('header', { className: 'clearai-event-heading' }, h('span', { className: 'clearai-event-icon' }, icon(row.category)), h('strong', null, t(labels[row.category] ?? row.category)), h('span', { className: 'clearai-event-status' }, t(statuses[row.status] ?? row.status)), row.example ? h('span', { className: 'clearai-event-example', title: '示例 / Example · 无模型调用 / No model calls' }, 'DEMO') : null),
3246
+ row.summary.length ? h('p', { className: 'clearai-event-copy' }, row.summary.join(' · ')) : null,
3247
+ h('div', { className: 'clearai-event-objects' }, ...row.objects.slice(0, 3).map(item => h('span', { key: `${item.kind}:${item.id}`, className: 'clearai-event-object' }, objectLabel(row, item))), row.changes ? h('span', { className: 'clearai-event-count' }, `${t('变更数量')} ${row.changes}`) : null),
3248
+ h('details', { className: 'clearai-event-details' }, h('summary', null, t('研究事件详情')),
3249
+ row.example ? h('p', null, '示例 / Example · 无模型调用 / No model calls') : null,
3250
+ ...row.summary.map((line, index) => h('p', { key: index }, line)),
3251
+ h('p', null, row.objects.map(item => `${item.label} (${item.id})`).join(' · ')),
3252
+ h('p', null, `${t('来源事件')}: ${row.sourceSeq} · ${row.sourceTypes.join(', ')}`),
3253
+ ...row.links.map((link, index) => h('div', { key: index },
3254
+ link.path && typeof props.openFile === 'function' ? h('button', { type: 'button', className: 'clearai-link', onClick: () => props.openFile?.(link.path) }, link.path) : link.sessionId ? h('button', { type: 'button', className: 'clearai-link', onClick: () => openSpectator(link.sessionId) }, t('查看评估者')) : null)),
3255
+ row.sourceCallId && props.inspectCall ? h('button', { type: 'button', className: 'clearai-link', onClick: () => props.inspectCall(row.sourceCallId) }, t('原始记录')) : null))))
3256
+ }
3257
+ child.uiConversation.events.register({
3258
+ kind, target: 'chat',
3259
+ match: event => {
3260
+ const source = event.type === 'hook/result' && event.data?.point === 'ClearAIFact' ? event.data?.notice?.source : event.type === 'user/message' ? event.data?.source : null
3261
+ const relevant = event.type === 'tool/result' && event.data?.meta?.kind === 'clearai' || (source?.kind === 'plugin:clearai' || source?.kind === 'plugin' && source?.plugin === 'clearai') && source?.sections?.some(section => section?.name === 'clearai/mutations')
3262
+ return relevant ? { id: String(event.seq), role: 'start', ...(event.data?.meta?.example === true ? { exclusive: true } : {}) } : null
3263
+ },
3264
+ start: (_context, match) => ({ seq: match.event.seq, location: match.location }),
3265
+ update: context => context.state,
3266
+ buildViewNode: context => ({ key: context.key, id: context.id, kind, target: 'chat', data: { seq: context.state.seq }, anchorSeq: context.state.seq, location: context.state.location, visibility: 'visible', groupTree: 'turn' }),
3267
+ })
3268
+ child.slots.inject('conversation.chat.node', () => child.slots.register({ name: 'conversation.chat.node', key: kind }, ResearchEventRow))
3269
+ })
3192
3270
  /**
3193
3271
  * 语言:接 DSH 原生的 locale 座位(可选 —— 老宿主或测试桩里没有它,面板退化成中文)。
3194
3272
  * 词典以**源文**为键注册进那个座位,于是 `t('已提出')` 走的是宿主那条查找链:
@@ -3261,6 +3339,12 @@ window.__ModuleLoader__.load({
3261
3339
  }
3262
3340
 
3263
3341
  const seats = []
3342
+ let seatTimer = null
3343
+ const scheduleSeats = () => {
3344
+ if (seatTimer !== null) clearTimeout(seatTimer)
3345
+ seatTimer = setTimeout(() => { seatTimer = null; for (const sync of seats) sync() }, 0)
3346
+ }
3347
+ ctx.effect(() => () => { if (seatTimer !== null) clearTimeout(seatTimer) }, 'clearai: pending view registration')
3264
3348
  /**
3265
3349
  * `options` 可以是对象,也可以是**函数**。为什么要有函数这一路:座位上的标签在
3266
3350
  * 注册那一刻就被求值了,传对象等于把语言冻住(失效模式:整页切成中文,页签还写着英文)。
@@ -3320,20 +3404,24 @@ window.__ModuleLoader__.load({
3320
3404
  * 对话服务按会话作用域取(`sessions.scope(id)` 上的 `conversation`);拿不到就返回 false,
3321
3405
  * 界面如实说「请在对话中说明」。这里不写任何账:状态由模型的 Frame 修订落下。
3322
3406
  */
3323
- const sendFor = (props) => (text) => {
3407
+ const sendFor = (props) => {
3408
+ const owner = focusOwner()
3409
+ return async (text) => {
3410
+ if (owner !== focusOwner()) return false
3324
3411
  const id = sessionIdFor(props)
3325
3412
  if (typeof id !== 'string' || typeof sessions.scope !== 'function') return false
3326
3413
  try {
3327
3414
  const scoped = sessions.scope(id)
3328
3415
  const conversation = typeof scoped?.get === 'function' ? scoped.get('conversation') : scoped?.conversation
3329
3416
  if (conversation === undefined || conversation === null || typeof conversation.send !== 'function') return false
3330
- Promise.resolve(conversation.send(text)).catch(() => {})
3331
- return true
3417
+ await conversation.send(text)
3418
+ return owner === focusOwner()
3332
3419
  } catch {
3333
3420
  return false
3334
3421
  }
3335
3422
  }
3336
3423
 
3424
+ }
3337
3425
  /**
3338
3426
  * 这条行所属的会话 id —— 预览地址里那一段**必须是它**。
3339
3427
  *
@@ -3372,8 +3460,19 @@ window.__ModuleLoader__.load({
3372
3460
  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') }))
3373
3461
  // Plan progress uses DSH's native todo dock; no composer chip or shadow plan slot.
3374
3462
 
3463
+ const focusOwner = () => {
3464
+ const row = currentSessionRow()
3465
+ return row ? `${row.id}:${row.projectionValues?.clearai?.goal?.id ?? ''}` : null
3466
+ }
3467
+ let lastFocusOwner = focusOwner()
3375
3468
  ctx.effect(() => sessions.list.subscribe(() => {
3376
- for (const sync of seats) sync()
3469
+ const owner = focusOwner()
3470
+ if (owner !== lastFocusOwner) {
3471
+ lastFocusOwner = owner
3472
+ factsFocus.set(null)
3473
+ treeFocus.set(null)
3474
+ }
3475
+ scheduleSeats()
3377
3476
  }), t('clearai-loop: 席位跟着会话预设进出'))
3378
3477
  }
3379
3478
 
@@ -3390,6 +3489,7 @@ window.__ModuleLoader__.load({
3390
3489
  * 真的跑一遍渲染路径(捕 undefined 字段访问这类只有渲染时才炸的错)。
3391
3490
  * 仍然不是给别的包用的接口。
3392
3491
  */
3492
+ exports.__submitIntent = submitIntent
3393
3493
  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 }
3394
3494
  /**
3395
3495
  * 测试缝之三:命题那一列的**派生**是纯函数(分组、处境、来路、证据链),
package/lib/host.js CHANGED
@@ -21,6 +21,7 @@ import { ONTOLOGY_SCHEMA, checkOntologyFile, describeDomainShelf, fingerprintDef
21
21
  import { knowledgeView as knowledgeViewOf } from './knowledge-view.js'
22
22
  import { install as installInvariants } from './invariant.js'
23
23
  import { detectLanguage, tr, withLanguage } from './lang.js'
24
+ import { RESEARCH_EVENT_VERSION, applyResearchProjection, emptyResearchProjection, researchProjectionView } from './research-events.js'
24
25
 
25
26
  export const name = 'clearai-host'
26
27
  /** 投影注册表与会话存储:两个都是宿主服务,这里只消费。 */
@@ -56,6 +57,18 @@ const viewSchema = z.looseObject({
56
57
  })
57
58
 
58
59
  export function apply(ctx) {
60
+ ctx.effect(() => {
61
+ const projections = ctx.get('sessionProjections')
62
+ if (typeof projections?.register !== 'function') return () => {}
63
+ const handle = projections.register({
64
+ key: 'clearaiResearch', stateVersion: RESEARCH_EVENT_VERSION,
65
+ stateSchema: z.looseObject({ sessionId: z.string(), v: z.number(), seen: z.record(z.string(), z.unknown()), bySeq: z.record(z.string(), z.unknown()) }),
66
+ init: header => emptyResearchProjection(String(header.id)),
67
+ apply: applyResearchProjection,
68
+ wire: { summary: false, viewSchema: z.looseObject({ sessionId: z.string(), v: z.number(), bySeq: z.record(z.string(), z.unknown()) }), view: researchProjectionView },
69
+ })
70
+ return typeof handle === 'function' ? handle : () => handle?.dispose?.()
71
+ }, 'clearai: research event projection')
59
72
  /**
60
73
  * **把自己的不变量交给宿主**(`@deepseek-ai/dsh-invariants`)——但只在它挂了的时候。
61
74
  *
@@ -0,0 +1,45 @@
1
+ import type { SessionProjectionSummaryExcluded } from '@deepseek-ai/dsh-session-projection/types'
2
+
3
+ export type ResearchEventCategory = 'hypothesis' | 'structure' | 'entities' | 'validation' | 'handoff' | 'adjudication' | 'outcome' | 'integrity'
4
+ export interface ResearchEventRecord {
5
+ v: number
6
+ id: string
7
+ category: ResearchEventCategory
8
+ sourceSeq: number
9
+ sourceCallId: string | null
10
+ example: boolean
11
+ turn: number | null
12
+ step: number | null
13
+ taskId: string | null
14
+ time: number | null
15
+ objects: { kind: string; id: string; label: string }[]
16
+ summary: string[]
17
+ status: string
18
+ links: { kind: string; path?: string; sessionId?: string }[]
19
+ revision: number | null
20
+ replaces: string | null
21
+ sourceTypes: string[]
22
+ changes?: number
23
+ }
24
+ export interface ResearchProjectionView {
25
+ sessionId: string
26
+ v: number
27
+ bySeq: Record<string, ResearchEventRecord[]>
28
+ }
29
+ export interface ResearchProjectionState extends ResearchProjectionView {
30
+ taskId: string | null
31
+ seen: Record<string, number>
32
+ objectTasks: Record<string, string | null>
33
+ }
34
+ export const RESEARCH_EVENT_VERSION: number
35
+ export function mutationsFromResearchEvent(event: unknown): Record<string, unknown>[]
36
+ export function researchEvents(event: unknown, mutations?: Record<string, unknown>[]): ResearchEventRecord[]
37
+ export function emptyResearchProjection(sessionId: string): ResearchProjectionState
38
+ export function applyResearchProjection(state: ResearchProjectionState, event: unknown): ResearchProjectionState
39
+ export function researchProjectionView(state: ResearchProjectionState): ResearchProjectionView
40
+
41
+ declare module '@deepseek-ai/dsh-session-projection/types' {
42
+ interface SessionProjectionMap {
43
+ clearaiResearch: SessionProjectionSummaryExcluded<ResearchProjectionView>
44
+ }
45
+ }
@@ -0,0 +1,138 @@
1
+ import { checkOntologyFile } from './domain-language.js'
2
+ import { createHash } from 'node:crypto'
3
+
4
+ /** UI-only projection. Source metadata remains the authority; never used as model input. */
5
+ export const RESEARCH_EVENT_VERSION = 3
6
+
7
+ const list = value => Array.isArray(value) ? value : []
8
+ const text = value => typeof value === 'string' ? value : ''
9
+ const object = (kind, id, label) => ({ kind, id: text(id), label: text(label) || text(id) })
10
+
11
+ /** Project only committed kernel mutation metadata, never tool argument fragments or files. */
12
+ export function mutationsFromResearchEvent(event) {
13
+ if (!Number.isSafeInteger(event?.seq)) return []
14
+ if (event.type === 'tool/result') {
15
+ const meta = event.data?.meta
16
+ return meta?.kind === 'clearai' && meta.v === 1 ? list(meta.mutations ?? (meta.mutation ? [meta.mutation] : [])) : []
17
+ }
18
+ const data = event.type === 'hook/result' && event.data?.point === 'ClearAIFact' && event.data?.handlerId?.startsWith('clearai-fact-') && event.data?.decision === 'pass' ? event.data.notice : event.type === 'user/message' ? event.data : null
19
+ const source = data?.source
20
+ if (!(source?.kind === 'plugin:clearai' || (source?.kind === 'plugin' && source?.plugin === 'clearai'))) return []
21
+ const section = list(source.sections).find(item => item?.name === 'clearai/mutations')
22
+ try { return list(JSON.parse(section?.text).mutations) } catch { return [] }
23
+ }
24
+
25
+ export function researchEvents(event, mutations = mutationsFromResearchEvent(event)) {
26
+ const output = []
27
+ const add = (category, mutation, index, objects, summary, status, links = []) => {
28
+ output.push({
29
+ v: RESEARCH_EVENT_VERSION, id: `${event.seq}:${index}:${category}`, category,
30
+ sourceSeq: event.seq, sourceCallId: event.data?.message?.toolCallId ?? null, example: event.data?.meta?.example === true,
31
+ turn: event.data?.turn ?? null, step: event.data?.step ?? null,
32
+ taskId: text(mutation.goal_id) || text(mutation.goal) || (mutation.t === 'goal/set' || mutation.t === 'goal/closed' ? text(mutation.id) : null),
33
+ time: typeof event.time === 'number' ? event.time : null,
34
+ objects: objects.filter(item => item.id), summary: summary.filter(Boolean), status,
35
+ links, revision: mutation.revision ?? null, replaces: mutation.t === 'hypothesis/superseded' ? text(mutation.id) : null,
36
+ sourceTypes: [mutation.t],
37
+ })
38
+ }
39
+ const structure = [], entities = []
40
+ mutations.forEach((mutation, index) => {
41
+ if (!mutation || typeof mutation.t !== 'string') return
42
+ const m = mutation
43
+ if (m.t === 'goal/set') {
44
+ list(m.hypotheses).forEach((hypothesis, offset) => {
45
+ if (!text(hypothesis.id) || !text(hypothesis.claim)) return
46
+ add('hypothesis', m, `${index}.${offset}`, [object('hypothesis', hypothesis.id, hypothesis.name)], [hypothesis.claim, hypothesis.retests, hypothesis.refute_when, m.reason], 'pending')
47
+ })
48
+ } else if (m.t === 'hypothesis/superseded') {
49
+ add('hypothesis', m, index, [object('hypothesis', m.id)], [text(m.claim), text(m.reason), text(m.by)], 'superseded')
50
+ } else if (/^ontology\/(term|predicate)_(added|revised|deprecated)$/.test(m.t)) {
51
+ structure.push({ mutation: m, index })
52
+ } else if (m.t === 'workspace/synced') {
53
+ list(m.changes).forEach(change => {
54
+ if (change?.error || change?.removed || !change?.data || typeof change.data !== 'object') return
55
+ const match = /^clear\/ontology\/(concepts|relations|entities)\/(?:.*\/)?([^/]+)\.json$/.exec(text(change.path))
56
+ if (!match || checkOntologyFile(change.path, change.data).length) return
57
+ const row = { mutation: { t: m.t, id: match[2], label: change.data.label, basis: change.data.basis, path: change.path }, index }
58
+ ;(match[1] === 'entities' ? entities : structure).push(row)
59
+ })
60
+ if (list(m.integrity).length) add('integrity', m, index, [], list(m.integrity).map(item => text(item.path) + ': ' + text(item.code)), 'review-required')
61
+ } else if (m.t === 'entity/registered' || m.t === 'entity/asserted') {
62
+ entities.push({ mutation: m, index })
63
+ } else if (m.t === 'evidence/recorded') {
64
+ add('validation', m, index, [object('hypothesis', m.hypothesis), object('evidence', m.id)], [text(m.basis)], text(m.verdict) || 'unknown', list(m.origins))
65
+ } else if (m.t === 'audit/dispatched') {
66
+ add('handoff', m, index, [object('audit', m.id)], [text(m.reason), ...list(m.criteria).map(item => typeof item === 'string' ? item : text(item?.text))], 'dispatched', text(m.evaluator_session) ? [{ kind: 'evaluator-session', sessionId: m.evaluator_session }] : [])
67
+ } else if (m.t === 'audit/settled') {
68
+ add('adjudication', m, index, [object('audit', m.id)], [text(m.basis), ...list(m.shortfalls).map(item => typeof item === 'string' ? item : text(item?.detail))], text(m.verdict) || 'unknown', text(m.card_path) ? [{ kind: 'audit-card', path: m.card_path }] : [])
69
+ } else if (m.t === 'goal/closed') {
70
+ add('outcome', m, index, [object('goal', m.id)], list(m.answers).flatMap(answer => [text(answer.conclusion), ...list(answer.basis).map(text), ...list(answer.open).map(item => text(item?.effect) || text(item))]), text(m.status) || 'unknown')
71
+ }
72
+ })
73
+ for (const [category, rows] of [['structure', structure], ['entities', entities]]) {
74
+ if (!rows.length) continue
75
+ const objects = rows.map(({ mutation: m }) => category === 'structure'
76
+ ? object(m.t.includes('predicate') || m.path?.includes('/relations/') ? 'predicate' : 'term', m.id, m.label)
77
+ : object('entity', m.id ?? m.subject?.id, m.label))
78
+ const basis = rows.map(({ mutation: m }) => text(m.basis)).filter(Boolean)
79
+ add(category, rows[0].mutation, rows[0].index, objects, basis, category === 'structure' ? 'definition' : 'pending')
80
+ output.at(-1).changes = rows.length
81
+ output.at(-1).sourceTypes = [...new Set(rows.map(row => row.mutation.t))]
82
+ output.at(-1).links = rows.filter(row => row.mutation.path).map(row => ({ kind: 'artifact', path: row.mutation.path }))
83
+ }
84
+ return output.sort((a, b) => Number.parseInt(a.id.split(':')[1]) - Number.parseInt(b.id.split(':')[1]))
85
+ }
86
+
87
+ const canonical = value => JSON.stringify(value, (_key, item) => item && typeof item === 'object' && !Array.isArray(item) ? Object.fromEntries(Object.keys(item).filter(key => key !== 'at').sort().map(key => [key, item[key]])) : item)
88
+ const fingerprint = mutation => createHash('sha256').update(canonical(mutation)).digest('hex')
89
+
90
+ /** Session-owned, disposable UI cache. Replaying it never executes tools or changes research. */
91
+ export function emptyResearchProjection(sessionId) {
92
+ return { sessionId, v: RESEARCH_EVENT_VERSION, taskId: null, objectTasks: {}, seen: {}, bySeq: {} }
93
+ }
94
+
95
+ export function applyResearchProjection(state, event) {
96
+ const candidates = mutationsFromResearchEvent(event)
97
+ if (!candidates.length) return state
98
+ const accepted = new Set(Object.keys(state.seen))
99
+ const fresh = candidates.filter(mutation => {
100
+ const key = fingerprint(mutation)
101
+ if (accepted.has(key)) return false
102
+ accepted.add(key)
103
+ return true
104
+ })
105
+ if (!fresh.length) return state
106
+ const hypothesisKeys = []
107
+ const displayMutations = fresh.map(mutation => mutation.t !== 'goal/set' ? mutation : {
108
+ ...mutation,
109
+ hypotheses: list(mutation.hypotheses).filter(hypothesis => {
110
+ const key = 'hypothesis:' + fingerprint({ goal: mutation.id, hypothesis })
111
+ if (Object.hasOwn(state.seen, key)) return false
112
+ hypothesisKeys.push(key)
113
+ return true
114
+ }),
115
+ })
116
+ const records = researchEvents(event, displayMutations)
117
+ const taskId = [...fresh].reverse().find(mutation => mutation.t === 'goal/set')?.id ?? state.taskId
118
+ if (!records.length) return taskId !== state.taskId ? { ...state, taskId } : state
119
+ const objectTasks = { ...state.objectTasks }
120
+ for (const mutation of fresh) {
121
+ if (mutation.t === 'goal/set') for (const hypothesis of list(mutation.hypotheses)) objectTasks[`hypothesis:${hypothesis.id}`] = mutation.id
122
+ if (mutation.t === 'audit/dispatched') objectTasks[`audit:${mutation.id}`] = mutation.goal_id ?? mutation.goal ?? taskId
123
+ }
124
+ for (const record of records) if (!record.taskId) {
125
+ const sourceTask = record.objects.map(item => objectTasks[`${item.kind}:${item.id}`]).find(Boolean)
126
+ record.taskId = sourceTask ?? (['validation', 'adjudication'].includes(record.category) ? null : taskId)
127
+ }
128
+ const seen = { ...state.seen }
129
+ for (const mutation of fresh) seen[fingerprint(mutation)] = event.seq
130
+ for (const key of hypothesisKeys) seen[key] = event.seq
131
+ return { ...state, taskId, objectTasks, seen, bySeq: { ...state.bySeq, [event.seq]: records } }
132
+ }
133
+
134
+ const views = new WeakMap()
135
+ export function researchProjectionView(state) {
136
+ if (!views.has(state.bySeq)) views.set(state.bySeq, { sessionId: state.sessionId, v: state.v, bySeq: state.bySeq })
137
+ return views.get(state.bySeq)
138
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clearai-dsh",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "ClearAI: an ontology-first DSH agent preset — evidence-checked research that grows into a domain ontology.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -54,7 +54,9 @@
54
54
  "inject": [
55
55
  "@deepseek-ai/dsh-api-session-controller",
56
56
  "@deepseek-ai/dsh-client-ui-sidebar-right",
57
- "@deepseek-ai/dsh-client-locale"
57
+ "@deepseek-ai/dsh-client-locale",
58
+ "@deepseek-ai/dsh-client-ui-conversation",
59
+ "@deepseek-ai/dsh-client-ui-chat"
58
60
  ]
59
61
  }
60
62
  },
@@ -77,13 +77,15 @@ Meet a problem → retrieve existing knowledge and check that it applies → pro
77
77
 
78
78
  - 用人正在用的语言和人的词,不用机制名;代码、路径、报错原文照录。
79
79
  - 汇报按这个顺序:结论 / 依据 / 尚未确定的事项 / 待您决策;写明排除了哪些可能、结论在什么范围内成立,能信到什么程度就说到什么程度。
80
- - 过程只在人问起或需要人决定时说。提到文件写完整相对路径,如 \`@reports/summary.md\`。
80
+ - 在已有回复中简短说明会影响研究方向的发现、当前未验证的部分和下一步;有合理默认路径时说明后继续。只展示公开计划、证据与结果,不展示内部思维过程。提到文件写完整相对路径,如 \`@reports/summary.md\`。
81
+ - 用户补充要求时区分已收到、等待处理与已生效;只有实际提交修订后才说已生效。目标变化沿用现有目标修订流程,不能静默替换目标。最终回复收束为成果、依据、不确定性和研究/本体面板入口,避免重述整段历史。
81
82
  - 需要人决定时用 \`ask_user_question\`:一次一题,带上猜想、依据和推荐;能自己查到的不问人。`,
82
83
  en: `# Talking to people
83
84
 
84
85
  - Use the person's language and words, not mechanism names; quote code, paths and error text verbatim.
85
86
  - Report in this order: conclusion / basis / open points / decisions for the person; say which possibilities were ruled out and where the conclusion holds, and say exactly as much as can be trusted.
86
- - Talk about the process only when asked or when a person needs to decide. Give files their full relative path, like \`@reports/summary.md\`.
87
+ - In existing replies, briefly explain findings that change the research direction, what remains unverified, and the next step. State a reasonable default and continue. Show public plans, evidence and results, without exposing internal reasoning. Give files their full relative path, like \`@reports/summary.md\`.
88
+ - Distinguish receipt, pending handling and effective changes when the person adds a request; call it effective only after the revision commits. Use the existing goal revision process for goal changes. Close with outcomes, evidence, uncertainty and Research/Ontology panel entry points without repeating the full history.
87
89
  - When a person needs to decide, use \`ask_user_question\`: one question at a time, with your guess, its basis and your recommendation; do not ask about what you can look up yourself.`,
88
90
  },
89
91
  },