clearai-dsh 0.5.8 → 0.6.0
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 +62 -0
- package/README.md +35 -11
- package/README.zh-CN.md +34 -10
- package/lib/client.js +128 -16
- package/lib/domain-language.js +4 -4
- package/lib/fold.js +37 -3
- package/lib/host.js +13 -0
- package/lib/research-events.d.ts +46 -0
- package/lib/research-events.js +143 -0
- package/package.json +4 -2
- package/presets/clearai/agent.cordis.yml +8 -2
- package/presets/clearai/clearai.patch.yml +51 -2
- package/presets/clearai/evaluator.cordis.yml +4 -0
- package/presets/clearai/explorer.cordis.yml +31 -0
- package/presets/clearai/plugins/audit-material.js +16 -3
- package/presets/clearai/plugins/audit-schema.js +19 -1
- package/presets/clearai/plugins/clearai-evaluator-face.js +1 -1
- package/presets/clearai/plugins/clearai-kernel.js +273 -45
- package/presets/clearai/plugins/prompts.js +28 -24
- package/presets/clearai/plugins/read-evidence.js +80 -0
- package/presets/clearai/plugins/research-contract.d.ts +43 -0
- package/presets/clearai/plugins/research-contract.js +103 -0
- package/presets/clearai/skills/clearai-loop/SKILL.md +20 -0
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 = {"本目标事实":"Facts from this goal","已加载事实":"Loaded facts","待复核事实":"Facts requiring review","事实内断言":"Assertions in facts","实体记录":"Entity records","实体文件断言":"Entity-file assertions","实体记录与结构定义不等于独立认证;事实仍须匹配适用范围。":"Entity records and definitions are not independent certification; facts still require matching scope.","待执行":"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","推翻条件":"Refutation condition","相关":"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","已复用":"Reused"}
|
|
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
|
+
@container(min-width:850px){.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() {
|
|
@@ -1202,6 +1229,15 @@ window.__ModuleLoader__.load({
|
|
|
1202
1229
|
)
|
|
1203
1230
|
}
|
|
1204
1231
|
|
|
1232
|
+
function KnowledgeSummary({ data }) {
|
|
1233
|
+
const summary = data?.knowledgeFlow?.summary
|
|
1234
|
+
if (!summary) return null
|
|
1235
|
+
const counts = [['本目标事实', 'currentFacts'], ['已加载事实', 'loadedFacts'], ['待复核事实', 'pendingFacts'], ['事实内断言', 'factAssertions'], ['实体记录', 'entityRecords'], ['实体文件断言', 'entityAssertions']]
|
|
1236
|
+
return h('div', { className: 'clearai-page-note' },
|
|
1237
|
+
h('div', null, counts.map(([label, key]) => `${t(label)} ${summary[key] ?? 0}`).join(' · ')),
|
|
1238
|
+
h('div', null, t('实体记录与结构定义不等于独立认证;事实仍须匹配适用范围。')))
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1205
1241
|
/** 页眉:在回答什么(计数、待处理与进度轨归探索货架)。 */
|
|
1206
1242
|
function AtlasHeader(props) {
|
|
1207
1243
|
const { data } = props
|
|
@@ -1210,6 +1246,7 @@ window.__ModuleLoader__.load({
|
|
|
1210
1246
|
{ className: 'clearai-head' },
|
|
1211
1247
|
h('div', { className: 'clearai-eyebrow' }, h(ClearAIMark, { size: 16 }), t('知识概览')),
|
|
1212
1248
|
h('div', { className: 'clearai-page-note' }, t('连接概念,理解已形成的知识。')),
|
|
1249
|
+
h(KnowledgeSummary, { data }),
|
|
1213
1250
|
h('div', { className: 'clearai-question', title: String(data?.goal?.claim ?? '') }, data?.goal ? String(data.knowledgeView?.goal?.headline ?? data.goal.claim ?? '') : t('尚未设立目标')),
|
|
1214
1251
|
)
|
|
1215
1252
|
}
|
|
@@ -1238,6 +1275,9 @@ window.__ModuleLoader__.load({
|
|
|
1238
1275
|
const [filter, setFilter] = React.useState(null)
|
|
1239
1276
|
const [focusNode, setFocusNode] = React.useState(null)
|
|
1240
1277
|
const incoming = useFocus(factsFocus)
|
|
1278
|
+
React.useEffect(() => {
|
|
1279
|
+
if (incoming?.graph) { setLayer(incoming.layer); setFocusNode(incoming.graph) }
|
|
1280
|
+
}, [incoming])
|
|
1241
1281
|
/** 样式表由 `apply` 挂;面板被单独挂载(截图、预览)时也自己挂一次——同一个标记,不会挂两份。 */
|
|
1242
1282
|
React.useEffect(() => {
|
|
1243
1283
|
installStyles()
|
|
@@ -1250,7 +1290,7 @@ window.__ModuleLoader__.load({
|
|
|
1250
1290
|
const rows = conclusionsOf(data).filter((row) => row.trust === 'credible')
|
|
1251
1291
|
const lexicon = data.lexicon ?? null
|
|
1252
1292
|
/** 世界树那边点进来的聚焦优先;手动点行仍然有效。 */
|
|
1253
|
-
const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
|
|
1293
|
+
const focused = incoming?.hypothesis ?? (incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step))
|
|
1254
1294
|
const open = focused ?? manual
|
|
1255
1295
|
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
1296
|
const shown = filterTerm === null ? rows : rows.filter((row) => termMatches(filterTerm, row))
|
|
@@ -1415,13 +1455,19 @@ window.__ModuleLoader__.load({
|
|
|
1415
1455
|
* 「立为问题 / 暂缓」:替人发一句话给模型(模型用 Frame 修订落账),界面自己不写状态。
|
|
1416
1456
|
* 发不出去(拿不到会话的对话服务)就如实说请在对话中说明,不假装发了。
|
|
1417
1457
|
*/
|
|
1458
|
+
async function submitIntent(send, text, report, success = 'sent') {
|
|
1459
|
+
report('sending')
|
|
1460
|
+
try { report(typeof send === 'function' && await send(text) === true ? success : 'failed') }
|
|
1461
|
+
catch { report('failed') }
|
|
1462
|
+
}
|
|
1418
1463
|
function EmergentActions(props) {
|
|
1419
1464
|
const { question } = props
|
|
1420
1465
|
const sent = props.sent?.[question.id] ?? null
|
|
1466
|
+
if (sent === 'sending') return h('div', { className: 'clearai-emergent-done', role: 'status' }, t('正在发送请求…'))
|
|
1421
1467
|
if (sent === 'pursue') return h('div', { className: 'clearai-emergent-done' }, t('已请求立为问题,待模型修订立题后生效。'))
|
|
1422
1468
|
if (sent === 'park') return h('div', { className: 'clearai-emergent-done' }, t('已请求暂缓,结案时列入「尚未确定的事项」。'))
|
|
1423
1469
|
if (sent === 'failed') return h('div', { className: 'clearai-emergent-done' }, t('无法自动发送,请在对话中说明。'))
|
|
1424
|
-
const ask = (kind, text) =>
|
|
1470
|
+
const ask = (kind, text) => submitIntent(props.send, text, state => props.onSent?.(question.id, state), kind)
|
|
1425
1471
|
return h(
|
|
1426
1472
|
'div',
|
|
1427
1473
|
{ className: 'clearai-emergent' },
|
|
@@ -1543,8 +1589,8 @@ window.__ModuleLoader__.load({
|
|
|
1543
1589
|
const goal = data.goal ?? null
|
|
1544
1590
|
const rows = conclusionsOf(data)
|
|
1545
1591
|
const openFacts = () => props.openFacts?.()
|
|
1546
|
-
const onSent = (id, kind) => setSent({ ...
|
|
1547
|
-
const focused = incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step)
|
|
1592
|
+
const onSent = (id, kind) => setSent(previous => ({ ...previous, [id]: kind }))
|
|
1593
|
+
const focused = incoming?.hypothesis ?? (incoming === null || incoming === undefined ? null : propositionForStep(data, incoming.step))
|
|
1548
1594
|
const opened = focused ?? manual
|
|
1549
1595
|
const showProcess = processOpen || focused !== null
|
|
1550
1596
|
if (goal === null) {
|
|
@@ -1683,8 +1729,8 @@ window.__ModuleLoader__.load({
|
|
|
1683
1729
|
asks.length === 0
|
|
1684
1730
|
? null
|
|
1685
1731
|
: 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}`,
|
|
1732
|
+
? 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('已发送请求,由模型处理后更新。'))
|
|
1733
|
+
: 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
1734
|
)
|
|
1689
1735
|
}
|
|
1690
1736
|
|
|
@@ -3146,7 +3192,7 @@ window.__ModuleLoader__.load({
|
|
|
3146
3192
|
: h(
|
|
3147
3193
|
'div',
|
|
3148
3194
|
{ 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({ ...
|
|
3195
|
+
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
3196
|
h(GraphInspector, { selection: inspection, sessionId, names: entityNames, onFilter: () => { if (filterTarget) onFilter?.(filterTarget) }, onClose: () => setPicked(null) }),
|
|
3151
3197
|
),
|
|
3152
3198
|
),
|
|
@@ -3189,6 +3235,49 @@ window.__ModuleLoader__.load({
|
|
|
3189
3235
|
// 这四个服务都声明在 `inject` 里,所以这里直接用属性读(Cordis 保证就位);
|
|
3190
3236
|
// 用 `ctx.get()` 也读得到,但属性形式同时受 inject 的「服务重载后重新激活」保护。
|
|
3191
3237
|
const { slots, sessions, sidebarRight } = ctx
|
|
3238
|
+
// Register through the host's event assembler; keep native tool rows and controls.
|
|
3239
|
+
if (typeof ctx.inject === 'function') ctx.inject(['uiConversation'], child => {
|
|
3240
|
+
const kind = 'clearai-research-event'
|
|
3241
|
+
const labels = { hypothesis: '提出或修订假设', structure: '知识结构变化', entities: '实体与断言变化', validation: '验证结果', handoff: '独立评估交接', adjudication: '独立裁决', outcome: '阶段成果', integrity: '完整性异常' }
|
|
3242
|
+
const statuses = { pending: '待核验', definition: '结构定义', superseded: '已替换', dispatched: '已交接', unknown: '证据不足', inconclusive: '证据不足', insufficient: '证据不足', pass: '通过', fail: '失败', support: '支持', refute: '推翻', supported: '支持', refuted: '推翻', achieved: '已完成', reused: '已复用', completed: '已完成', abandoned: '已放弃', 'review-required': '需要复核' }
|
|
3243
|
+
const EMPTY_EVENTS = []
|
|
3244
|
+
function ResearchEventRow(props) {
|
|
3245
|
+
useLocaleTick()
|
|
3246
|
+
const seq = props.node.data.seq
|
|
3247
|
+
const rows = props.useProjection('clearaiResearch', value => value?.bySeq?.[seq] ?? EMPTY_EVENTS, (a, b) => a === b || JSON.stringify(a) === JSON.stringify(b))
|
|
3248
|
+
const objectLabel = (row, item) => {
|
|
3249
|
+
if (item.label !== item.id) return item.label
|
|
3250
|
+
return t({ hypothesis: '假设', evidence: '证据', audit: '独立评估', goal: '目标' }[item.kind] ?? '对象')
|
|
3251
|
+
}
|
|
3252
|
+
const icon = category => h('svg', { width: 14, height: 14, viewBox: '0 0 16 16', fill: 'none', stroke: 'currentColor', strokeWidth: 1.25, 'aria-hidden': true },
|
|
3253
|
+
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' }))
|
|
3254
|
+
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) },
|
|
3255
|
+
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),
|
|
3256
|
+
row.summary.length ? h('p', { className: 'clearai-event-copy' }, [...row.summary, ...(row.refutationCondition ? [`${t('推翻条件')}: ${row.refutationCondition}`] : [])].join(' · ')) : null,
|
|
3257
|
+
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),
|
|
3258
|
+
h('details', { className: 'clearai-event-details' }, h('summary', null, t('研究事件详情')),
|
|
3259
|
+
row.example ? h('p', null, '示例 / Example · 无模型调用 / No model calls') : null,
|
|
3260
|
+
...row.summary.map((line, index) => h('p', { key: index }, line)),
|
|
3261
|
+
row.refutationCondition ? h('p', null, `${t('推翻条件')}: ${row.refutationCondition}`) : null,
|
|
3262
|
+
h('p', null, row.objects.map(item => `${item.label} (${item.id})`).join(' · ')),
|
|
3263
|
+
h('p', null, `${t('来源事件')}: ${row.sourceSeq} · ${row.sourceTypes.join(', ')}`),
|
|
3264
|
+
...row.links.map((link, index) => h('div', { key: index },
|
|
3265
|
+
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)),
|
|
3266
|
+
row.sourceCallId && props.inspectCall ? h('button', { type: 'button', className: 'clearai-link', onClick: () => props.inspectCall(row.sourceCallId) }, t('原始记录')) : null))))
|
|
3267
|
+
}
|
|
3268
|
+
child.uiConversation.events.register({
|
|
3269
|
+
kind, target: 'chat',
|
|
3270
|
+
match: event => {
|
|
3271
|
+
const source = event.type === 'hook/result' && event.data?.point === 'ClearAIFact' ? event.data?.notice?.source : event.type === 'user/message' ? event.data?.source : null
|
|
3272
|
+
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')
|
|
3273
|
+
return relevant ? { id: String(event.seq), role: 'start', ...(event.data?.meta?.example === true ? { exclusive: true } : {}) } : null
|
|
3274
|
+
},
|
|
3275
|
+
start: (_context, match) => ({ seq: match.event.seq, location: match.location }),
|
|
3276
|
+
update: context => context.state,
|
|
3277
|
+
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' }),
|
|
3278
|
+
})
|
|
3279
|
+
child.slots.inject('conversation.chat.node', () => child.slots.register({ name: 'conversation.chat.node', key: kind }, ResearchEventRow))
|
|
3280
|
+
})
|
|
3192
3281
|
/**
|
|
3193
3282
|
* 语言:接 DSH 原生的 locale 座位(可选 —— 老宿主或测试桩里没有它,面板退化成中文)。
|
|
3194
3283
|
* 词典以**源文**为键注册进那个座位,于是 `t('已提出')` 走的是宿主那条查找链:
|
|
@@ -3261,6 +3350,12 @@ window.__ModuleLoader__.load({
|
|
|
3261
3350
|
}
|
|
3262
3351
|
|
|
3263
3352
|
const seats = []
|
|
3353
|
+
let seatTimer = null
|
|
3354
|
+
const scheduleSeats = () => {
|
|
3355
|
+
if (seatTimer !== null) return
|
|
3356
|
+
seatTimer = setTimeout(() => { seatTimer = null; for (const sync of seats) sync() }, 0)
|
|
3357
|
+
}
|
|
3358
|
+
ctx.effect(() => () => { if (seatTimer !== null) clearTimeout(seatTimer) }, 'clearai: pending view registration')
|
|
3264
3359
|
/**
|
|
3265
3360
|
* `options` 可以是对象,也可以是**函数**。为什么要有函数这一路:座位上的标签在
|
|
3266
3361
|
* 注册那一刻就被求值了,传对象等于把语言冻住(失效模式:整页切成中文,页签还写着英文)。
|
|
@@ -3282,12 +3377,13 @@ window.__ModuleLoader__.load({
|
|
|
3282
3377
|
// 插件被卸载时插座的等待与已经落下的席位一起收掉(原生插件同一写法)。
|
|
3283
3378
|
ctx.effect(() => slots.inject(name, sync), `clearai: seat ${name}`)
|
|
3284
3379
|
seats.push(sync)
|
|
3285
|
-
|
|
3380
|
+
const resyncLocale = () => {
|
|
3286
3381
|
if (disposer === null) return
|
|
3287
3382
|
disposer()
|
|
3288
3383
|
disposer = null
|
|
3289
3384
|
sync()
|
|
3290
|
-
}
|
|
3385
|
+
}
|
|
3386
|
+
ctx.effect(() => { localeResyncs.add(resyncLocale); return () => localeResyncs.delete(resyncLocale) }, 'clearai: locale seat listener')
|
|
3291
3387
|
}
|
|
3292
3388
|
|
|
3293
3389
|
/**
|
|
@@ -3320,20 +3416,24 @@ window.__ModuleLoader__.load({
|
|
|
3320
3416
|
* 对话服务按会话作用域取(`sessions.scope(id)` 上的 `conversation`);拿不到就返回 false,
|
|
3321
3417
|
* 界面如实说「请在对话中说明」。这里不写任何账:状态由模型的 Frame 修订落下。
|
|
3322
3418
|
*/
|
|
3323
|
-
const sendFor = (props) =>
|
|
3419
|
+
const sendFor = (props) => {
|
|
3420
|
+
const owner = focusOwner()
|
|
3421
|
+
return async (text) => {
|
|
3422
|
+
if (owner !== focusOwner()) return false
|
|
3324
3423
|
const id = sessionIdFor(props)
|
|
3325
3424
|
if (typeof id !== 'string' || typeof sessions.scope !== 'function') return false
|
|
3326
3425
|
try {
|
|
3327
3426
|
const scoped = sessions.scope(id)
|
|
3328
3427
|
const conversation = typeof scoped?.get === 'function' ? scoped.get('conversation') : scoped?.conversation
|
|
3329
3428
|
if (conversation === undefined || conversation === null || typeof conversation.send !== 'function') return false
|
|
3330
|
-
|
|
3331
|
-
return
|
|
3429
|
+
await conversation.send(text)
|
|
3430
|
+
return owner === focusOwner()
|
|
3332
3431
|
} catch {
|
|
3333
3432
|
return false
|
|
3334
3433
|
}
|
|
3335
3434
|
}
|
|
3336
3435
|
|
|
3436
|
+
}
|
|
3337
3437
|
/**
|
|
3338
3438
|
* 这条行所属的会话 id —— 预览地址里那一段**必须是它**。
|
|
3339
3439
|
*
|
|
@@ -3372,8 +3472,19 @@ window.__ModuleLoader__.load({
|
|
|
3372
3472
|
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
3473
|
// Plan progress uses DSH's native todo dock; no composer chip or shadow plan slot.
|
|
3374
3474
|
|
|
3475
|
+
const focusOwner = () => {
|
|
3476
|
+
const row = currentSessionRow()
|
|
3477
|
+
return row ? `${row.id}:${row.projectionValues?.clearai?.goal?.id ?? ''}` : null
|
|
3478
|
+
}
|
|
3479
|
+
let lastFocusOwner = focusOwner()
|
|
3375
3480
|
ctx.effect(() => sessions.list.subscribe(() => {
|
|
3376
|
-
|
|
3481
|
+
const owner = focusOwner()
|
|
3482
|
+
if (owner !== lastFocusOwner) {
|
|
3483
|
+
lastFocusOwner = owner
|
|
3484
|
+
factsFocus.set(null)
|
|
3485
|
+
treeFocus.set(null)
|
|
3486
|
+
}
|
|
3487
|
+
scheduleSeats()
|
|
3377
3488
|
}), t('clearai-loop: 席位跟着会话预设进出'))
|
|
3378
3489
|
}
|
|
3379
3490
|
|
|
@@ -3390,7 +3501,8 @@ window.__ModuleLoader__.load({
|
|
|
3390
3501
|
* 真的跑一遍渲染路径(捕 undefined 字段访问这类只有渲染时才炸的错)。
|
|
3391
3502
|
* 仍然不是给别的包用的接口。
|
|
3392
3503
|
*/
|
|
3393
|
-
exports.
|
|
3504
|
+
exports.__submitIntent = submitIntent
|
|
3505
|
+
exports.__components = { KnowledgeSummary, 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
3506
|
/**
|
|
3395
3507
|
* 测试缝之三:命题那一列的**派生**是纯函数(分组、处境、来路、证据链),
|
|
3396
3508
|
* 渲染本身没法在没浏览器的地方细究——把它导出去,让测试直接断言派生结果。
|
package/lib/domain-language.js
CHANGED
|
@@ -118,7 +118,7 @@ export function validateTerm(lexicon, draft) {
|
|
|
118
118
|
const at = instance ? '实例' : '概念'
|
|
119
119
|
if (!isPlainObject(draft)) return [problem('term_shape', `${at}必须是一个对象`)]
|
|
120
120
|
const id = text(draft.id)
|
|
121
|
-
if (!ID_PATTERN.test(id)) problems.push(problem('id_shape', `${at} id 要小写字母开头的 slug(
|
|
121
|
+
if (!ID_PATTERN.test(id)) problems.push(problem('id_shape', `${at} id 要小写字母开头的 slug(字母/数字/下划线,2–40 字符):收到「${id}」`))
|
|
122
122
|
else if (idTaken(lexicon, id)) problems.push(problem('id_taken', `id「${id}」已经被占用(概念与谓词共用一个命名空间)`))
|
|
123
123
|
if (text(draft.label) === '') problems.push(problem('label_required', `${at}要有名字`))
|
|
124
124
|
if (text(draft.gloss) === '') problems.push(problem('gloss_required', `${at}要有释义:一句话说清它指什么,不然引用它的人各读各的`))
|
|
@@ -158,7 +158,7 @@ export function validatePredicate(lexicon, draft) {
|
|
|
158
158
|
const at = '谓词'
|
|
159
159
|
if (!isPlainObject(draft)) return [problem('predicate_shape', `${at}必须是一个对象`)]
|
|
160
160
|
const id = text(draft.id)
|
|
161
|
-
if (!ID_PATTERN.test(id)) problems.push(problem('id_shape', `${at} id 要小写字母开头的 slug(
|
|
161
|
+
if (!ID_PATTERN.test(id)) problems.push(problem('id_shape', `${at} id 要小写字母开头的 slug(字母/数字/下划线,2–40 字符):收到「${id}」`))
|
|
162
162
|
else if (idTaken(lexicon, id)) problems.push(problem('id_taken', `id「${id}」已经被占用(概念与谓词共用一个命名空间)`))
|
|
163
163
|
if (text(draft.label) === '') problems.push(problem('label_required', `${at}要有名字`))
|
|
164
164
|
if (text(draft.basis) === '') problems.push(problem('basis_required', `${at}要写依据`))
|
|
@@ -1258,7 +1258,7 @@ export const ONTOLOGY_SCHEMA = bilingual({
|
|
|
1258
1258
|
concept: {
|
|
1259
1259
|
where: 'clear/ontology/concepts/**/<id>.json',
|
|
1260
1260
|
required: {
|
|
1261
|
-
id: ['slug
|
|
1261
|
+
id: ['slug:小写字母开头,字母/数字/下划线,2–40 字符,等于文件名', 'slug: starts with a lowercase letter; letters, digits, underscores; 2–40 characters; equals the file name'],
|
|
1262
1262
|
label: ['给人看的名字', 'the human-readable name'],
|
|
1263
1263
|
gloss: ['一句话释义:它指什么;度量(良率、收率……)写明口径,也就是怎么算', 'one-sentence gloss: what it refers to; for a measure (yield, conversion …) state its definition, that is, how it is computed'],
|
|
1264
1264
|
},
|
|
@@ -1378,7 +1378,7 @@ export function checkOntologyFile(path, content) {
|
|
|
1378
1378
|
if (!pattern.test(place.id)) problems.push(
|
|
1379
1379
|
kind === 'entity'
|
|
1380
1380
|
? tr(`文件名「${place.id}」不能当实体 id:字母或数字开头,只用字母/数字/下划线/短横,≤60`, `File name "${place.id}" cannot be an entity id: start with a letter or digit; letters, digits, underscores, hyphens only; ≤60`)
|
|
1381
|
-
: tr(`文件名「${place.id}」不能当 id
|
|
1381
|
+
: tr(`文件名「${place.id}」不能当 id:小写字母开头,只用小写字母/数字/下划线,2–40 字符`, `File name "${place.id}" cannot be an id: start with a lowercase letter; lowercase letters, digits, underscores only; 2–40 characters`),
|
|
1382
1382
|
)
|
|
1383
1383
|
if (data.id !== undefined && text(data.id) !== place.id) problems.push(tr(`id「${text(data.id)}」要等于文件名「${place.id}」(身份就是文件名;改 id 就是改文件名)`, `id "${text(data.id)}" must equal the file name "${place.id}" (identity is the file name; changing the id means renaming the file)`))
|
|
1384
1384
|
const extra = Object.keys(data).filter((key) => !FIELDS[kind].includes(key))
|
package/lib/fold.js
CHANGED
|
@@ -77,9 +77,13 @@ export const MUTATION_KIND = 'clearai'
|
|
|
77
77
|
* 同一版里目标、判断与事实还带 `about`(涉及的实体或量),未解释项带 `defect`(解释为测量或方法缺陷);
|
|
78
78
|
* 派生多一份 `negativeRows`(`clear/knowledge/negatives/` 的负向条目)。
|
|
79
79
|
* v20 → v21:持久核算复核、最终实际引用、幂等审计派发;旧日志原样重放。
|
|
80
|
+
* v28 → v29:主代理异常同样绑定原目标,供独立评估复核。
|
|
81
|
+
* v27 → v28:独立复核显式关联同一目标下的异常与处置历史。
|
|
82
|
+
* v26 → v27:目标登记保留文件基线;旧会话无基线时保持未知。
|
|
83
|
+
* v25 → v26:读面区分当前/已加载事实、事实内断言与实体文件记录;权威状态与旧日志不变。
|
|
80
84
|
* 投影缓存按版本判定,所以旧缓存会被丢弃、从日志重折一遍。
|
|
81
85
|
*/
|
|
82
|
-
export const STATE_VERSION =
|
|
86
|
+
export const STATE_VERSION = 29
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
89
|
* **只留台账、不折进视图**的变更类型(词汇表的另一半)。
|
|
@@ -335,6 +339,8 @@ export function applyMutation(state, mutation) {
|
|
|
335
339
|
if (previous !== null && previous.status === 'open') previous.status = 'superseded'
|
|
336
340
|
next.goal = {
|
|
337
341
|
id: mutation.id,
|
|
342
|
+
workflow: mutation.workflow === 'agent-v1' ? 'agent-v1' : 'steps-v1',
|
|
343
|
+
workspace_baseline: mutation.workspace_baseline ? clone(mutation.workspace_baseline) : null,
|
|
338
344
|
claim: mutation.claim,
|
|
339
345
|
done_criteria: mutation.done_criteria,
|
|
340
346
|
promote_at_level: mutation.promote_at_level,
|
|
@@ -504,7 +510,7 @@ export function applyMutation(state, mutation) {
|
|
|
504
510
|
}
|
|
505
511
|
case 'anomaly/opened': {
|
|
506
512
|
if (next.anomalies.some((item) => item.id === mutation.id)) break
|
|
507
|
-
next.anomalies.push({ id: mutation.id, what: String(mutation.what ?? ''), anchor: mutation.anchor ?? null, touches: Array.isArray(mutation.touches) ? mutation.touches.map(String) : [], step: mutation.step ?? null, by: mutation.by ?? 'model', status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
|
|
513
|
+
next.anomalies.push({ id: mutation.id, goal_id: next.goal?.id ?? null, what: String(mutation.what ?? ''), anchor: mutation.anchor ?? null, touches: Array.isArray(mutation.touches) ? mutation.touches.map(String) : [], step: mutation.step ?? null, by: mutation.by ?? 'model', status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
|
|
508
514
|
break
|
|
509
515
|
}
|
|
510
516
|
case 'lesson/recorded': {
|
|
@@ -597,6 +603,7 @@ export function applyMutation(state, mutation) {
|
|
|
597
603
|
verdict: null,
|
|
598
604
|
evaluator: 'independent',
|
|
599
605
|
child: mutation.evaluator_session ?? null,
|
|
606
|
+
request: mutation.request ?? null,
|
|
600
607
|
criteria: mutation.criteria ?? [], capability: mutation.capability ?? null,
|
|
601
608
|
goal_id: mutation.goal_id ?? null,
|
|
602
609
|
goal_revision: mutation.goal_revision ?? null,
|
|
@@ -665,8 +672,26 @@ export function applyMutation(state, mutation) {
|
|
|
665
672
|
const found = Array.isArray(mutation.anomalies) ? mutation.anomalies : []
|
|
666
673
|
for (const [index, item] of found.entries()) {
|
|
667
674
|
const id = `${mutation.id}#u${index + 1}`
|
|
675
|
+
const prior = next.anomalies.find(entry => entry.id === item?.existing_id)
|
|
676
|
+
const origin = prior && next.audits.find(entry => entry.id === prior.id.split('#u')[0])
|
|
677
|
+
// Identity is explicit and confined to the same goal. Unknown or
|
|
678
|
+
// cross-goal references remain new, open findings.
|
|
679
|
+
if (prior && (prior.goal_id ?? origin?.goal_id) && (prior.goal_id ?? origin?.goal_id) === audit?.goal_id) {
|
|
680
|
+
const history = prior.reviews ?? []
|
|
681
|
+
if (!history.some(review => review.audit === mutation.id)) {
|
|
682
|
+
history.push({audit: mutation.id, what: String(item.what ?? ''), disposition: item.disposition ?? 'reopen', basis: String(item.impact_basis ?? ''), at})
|
|
683
|
+
prior.reviews = history
|
|
684
|
+
if (item.disposition !== 'maintain' || !String(item.impact_basis ?? '').trim()) {
|
|
685
|
+
prior.status = 'open'
|
|
686
|
+
prior.reason = null
|
|
687
|
+
prior.resolvedAt = null
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
continue
|
|
691
|
+
}
|
|
692
|
+
|
|
668
693
|
if (next.anomalies.some((entry) => entry.id === id || (entry.by === 'evaluator' && entry.step === mutation.step && entry.what === String(item?.what ?? '')))) continue
|
|
669
|
-
next.anomalies.push({ id, what: String(item?.what ?? ''), anchor: null, step: mutation.step ?? null, by: 'evaluator', matters: item?.matters ?? null, status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
|
|
694
|
+
next.anomalies.push({ id, goal_id: audit?.goal_id ?? null, what: String(item?.what ?? ''), anchor: null, step: mutation.step ?? null, by: 'evaluator', matters: item?.matters ?? null, touches: Array.isArray(item?.touches) ? clone(item.touches) : null, impact_basis: item?.impact_basis ?? null, status: 'open', reason: null, explainedBy: null, at, resolvedAt: null })
|
|
670
695
|
}
|
|
671
696
|
break
|
|
672
697
|
}
|
|
@@ -2304,6 +2329,7 @@ function knowledgeItems(state, derived) {
|
|
|
2304
2329
|
items.push({
|
|
2305
2330
|
id: fact.id,
|
|
2306
2331
|
kind: 'fact',
|
|
2332
|
+
assertionCount: Array.isArray(fact.assertions) ? fact.assertions.length : 0,
|
|
2307
2333
|
status: pending ? 'pending' : 'established',
|
|
2308
2334
|
text: fact.text ?? '',
|
|
2309
2335
|
about: Array.isArray(fact.about) ? fact.about : [],
|
|
@@ -2388,6 +2414,14 @@ function knowledgeFlow(state, derived, items, promotedIds) {
|
|
|
2388
2414
|
const count = (predicate) => mine.filter(predicate).length
|
|
2389
2415
|
return {
|
|
2390
2416
|
cited: citedRows,
|
|
2417
|
+
summary: {
|
|
2418
|
+
currentFacts: mine.filter(item => item.kind === 'fact' && item.status === 'established').length,
|
|
2419
|
+
loadedFacts: items.filter(item => item.kind === 'fact' && item.status === 'established').length,
|
|
2420
|
+
pendingFacts: items.filter(item => item.kind === 'fact' && item.status === 'pending').length,
|
|
2421
|
+
factAssertions: items.filter(item => item.kind === 'fact' && item.status === 'established').reduce((sum, item) => sum + item.assertionCount, 0),
|
|
2422
|
+
entityRecords: (state.entities ?? []).length,
|
|
2423
|
+
entityAssertions: (state.entityAssertions ?? []).length,
|
|
2424
|
+
},
|
|
2391
2425
|
settling: { negatives: mine.filter((item) => item.kind === 'negative'), awaiting },
|
|
2392
2426
|
settled:
|
|
2393
2427
|
goalId === null
|