clearai-dsh 0.5.2 → 0.5.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +4 -4
- package/README.zh-CN.md +4 -4
- package/lib/client.js +3 -114
- package/lib/fold.js +11 -1
- package/package.json +1 -1
- package/presets/clearai/agent.cordis.yml +2 -0
- package/presets/clearai/clearai.patch.yml +2 -0
- package/presets/clearai/plugins/clearai-kernel.js +328 -218
- package/presets/clearai/plugins/native-todos.js +35 -0
- package/presets/clearai/plugins/prompts.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,46 @@ All notable changes to this project are recorded here. The format follows [Keep
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.5.4-rc.1] — 2026-10-10
|
|
8
|
+
|
|
9
|
+
**审计等待不再因四分钟阈值终止,裁决持久收尾并保留取消语义。**
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- 交付与结案持续等待同一个原生评估者,不因等待超过四分钟误记失败或重复派发;等待不产生主模型轮询。
|
|
14
|
+
- 正常完成与子会话恢复共用写卡和持久结算入口。裁决保存后再核对材料;暂停、取消或目标修订后不继续原调用的推进。
|
|
15
|
+
- 原调用丢失后的原生结束事件可恢复裁决;仅向仍获授权的同一原生目标发送一次结果通知。
|
|
16
|
+
- 允许复跑的评估者可通过原生后台任务工具等待和读取长命令结果,避免重复执行或睡眠轮询。
|
|
17
|
+
- 连续基础设施失败按目标累计,不再因改写答案重置失败计数;达到既有阈值后阻塞。
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- `auditTimeoutMs` 仅为一次诊断提醒,`auditHardTimeoutMs` 废弃并忽略;宿主取消与外部运行预算继续有效。
|
|
22
|
+
- 投影版本从 21 升至 22,由旧账本重建,保留历史超时记录,不自动重启历史目标。
|
|
23
|
+
- RC 发布到 npm `next` 和 GitHub prerelease;不改变正式版 `latest`。原生团队融合将在 rc.2 交付。
|
|
24
|
+
|
|
25
|
+
## [0.5.3] — 2026-10-10
|
|
26
|
+
|
|
27
|
+
**及时构建本体、保存阶段事实,并接入原生 todo 进度。**
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- `Frame` 可在一次调用中提交概念、关系、实体与假设断言,先完成整体校验再写入文件。实际检验假设的计划必须引用存在的对象并包含有效的结构化断言,避免长期执行却没有图结构。
|
|
32
|
+
- 达到门槛且经过 L3 或更高独立评估的阶段事实可在目标结束前保存;中断后,新会话仍能恢复本体、实体和已验证事实。后续反证标记对应事实待复核,保留原范围及证据。
|
|
33
|
+
- 明确由 `AdvancePlan` 派发独立评估,避免主代理另外安排一轮重复审计。
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- 删除输入框旁失效的计划跳转芯片。计划进度同步至 DSH 原生 todo,保留现有原生 goal;作废步骤不计为完成,新轮次后恢复真实计划状态。
|
|
38
|
+
- 假设来源保持开放,不强制假设数量。阶段升格必须有真实实体、有效断言、独立证据及无未决关键反证。
|
|
39
|
+
|
|
40
|
+
### Migration and validation
|
|
41
|
+
|
|
42
|
+
- 沿用 STATE_VERSION 21 和已有账本事件,不改写历史账本。新增内核选项 `ontologyFeedback`、`nativeTodoProgress`,ClearAI 预设启用,独立直接挂载内核时默认关闭。
|
|
43
|
+
- 完整本机工程套件通过,真实宿主与客户端无跳过;安装包逐文件核对通过。隔离界面确认原生 goal 与 todo 展示,旧跳转芯片已移除。
|
|
44
|
+
- 合成 DeepSeek 工程探针验证了空图建模、独立核验、结案前事实保存和新会话读取。这是机制回归,不代表长任务收益或成本验收通过;对照长测结论仍待完成。
|
|
45
|
+
- 本版为正式功能更新;手动安装可指定 `clearai-dsh@0.5.3`。
|
|
46
|
+
|
|
7
47
|
## [0.5.2] — 2026-10-10
|
|
8
48
|
|
|
9
49
|
**知识的适用范围、跨会话复检与可靠审计闭环。**
|
package/README.md
CHANGED
|
@@ -22,8 +22,8 @@ ClearAI is an **ontology discovery and exploration platform**, built on two core
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# Install (npm package, prebuilt — no build step, no allowBuilds prompt)
|
|
25
|
-
dsh plugin --profile web add clearai-dsh@0.5.
|
|
26
|
-
# or in the app: Plugins → Add plugin → clearai-dsh@0.5.
|
|
25
|
+
dsh plugin --profile web add clearai-dsh@0.5.4-rc.1
|
|
26
|
+
# or in the app: Plugins → Add plugin → clearai-dsh@0.5.4-rc.1
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
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)
|
|
@@ -86,12 +86,12 @@ ClearAI does **not** claim recursive self-improvement. It provides the epistemic
|
|
|
86
86
|
|
|
87
87
|
**Recommended — install it in the app, with the version pinned:**
|
|
88
88
|
|
|
89
|
-
In the sidebar open **Plugins → Add plugin**, enter `clearai-dsh@0.5.
|
|
89
|
+
In the sidebar open **Plugins → Add plugin**, enter `clearai-dsh@0.5.4-rc.1`, 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
90
|
|
|
91
91
|
**Or from a terminal — the same install:**
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
|
-
dsh plugin --profile web add clearai-dsh@0.5.
|
|
94
|
+
dsh plugin --profile web add clearai-dsh@0.5.4-rc.1
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
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
|
@@ -22,8 +22,8 @@ ClearAI 是一个**本体发现与探索平台**,核心由两个概念支撑
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# 安装(npm 包,预构建——无需构建步骤,不会触发 allowBuilds 授权)
|
|
25
|
-
dsh plugin --profile web add clearai-dsh@0.5.
|
|
26
|
-
# 或在应用里:侧栏「插件」→ 添加插件 → clearai-dsh@0.5.
|
|
25
|
+
dsh plugin --profile web add clearai-dsh@0.5.4-rc.1
|
|
26
|
+
# 或在应用里:侧栏「插件」→ 添加插件 → clearai-dsh@0.5.4-rc.1
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
重启 `dsh web`,在新建会话顶部的模式选择器里选 **ClearAI** 即可。这就是全部步骤。[完整安装说明 ↓](#安装与使用)
|
|
@@ -86,12 +86,12 @@ ClearAI **不**声称递归自我改进。它提供的是自我改进系统所
|
|
|
86
86
|
|
|
87
87
|
**推荐——在应用里装,并把版本钉住:**
|
|
88
88
|
|
|
89
|
-
侧栏打开**「插件」→ 添加插件**,填 `clearai-dsh@0.5.
|
|
89
|
+
侧栏打开**「插件」→ 添加插件**,填 `clearai-dsh@0.5.4-rc.1`,安装。这就是 DSH 自己的插件管理器:它把你填的东西交给 pnpm,校验这个包声明了组合包、与当前宿主兼容,然后当场生效。(设置里的**插件列表**是**只读清单**;安装入口在侧栏那个「插件」页。)
|
|
90
90
|
|
|
91
91
|
**或者开终端——同一次安装:**
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
|
-
dsh plugin --profile web add clearai-dsh@0.5.
|
|
94
|
+
dsh plugin --profile web add clearai-dsh@0.5.4-rc.1
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
从 npm registry 装预构建产物。本机不跑任何编译,因此不需要批准 `allowBuilds` 授权——命令返回时插件就已经可用。
|
package/lib/client.js
CHANGED
|
@@ -261,8 +261,6 @@ window.__ModuleLoader__.load({
|
|
|
261
261
|
.clearai-btn[data-tone="warn"]{border-color:var(--dsw-alias-state-warn-primary)}
|
|
262
262
|
/* 工具行里的控制(控制归工具行):照原生那一行的形状——无边框、次级文字色、悬浮才出底。
|
|
263
263
|
刻意不做成我们自己那种药丸:它坐在原生「完全权限」旁边,长得像原生才不突兀。 */
|
|
264
|
-
.clearai-toolctl{box-sizing:border-box;display:inline-flex;align-items:center;gap:2px;padding:2px 6px;border:0;border-radius:4px;background:transparent;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;cursor:pointer}
|
|
265
|
-
.clearai-toolctl:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
266
264
|
.clearai-chip{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border:.5px solid var(--dsw-alias-border-l4);border-radius:999px;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);font-size:11px;line-height:16px;cursor:pointer}
|
|
267
265
|
.clearai-chip:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}
|
|
268
266
|
.clearai-tag{display:inline-block;padding:0 6px;border:.5px solid var(--dsw-alias-border-l3);border-radius:999px;color:var(--dsw-alias-label-secondary);font-size:11px;line-height:16px;white-space:nowrap}
|
|
@@ -2230,94 +2228,6 @@ window.__ModuleLoader__.load({
|
|
|
2230
2228
|
* 为什么要有它:工具行是要抢地盘的地方(两个字面项能占掉整行近三成,
|
|
2231
2229
|
* 窄窗口下会把发送键挤到第二行)。图标能省一半宽度,而它指向的正是「世界树」那一页。
|
|
2232
2230
|
*/
|
|
2233
|
-
function PlanGlyph() {
|
|
2234
|
-
return h(
|
|
2235
|
-
'svg',
|
|
2236
|
-
{ width: 12, height: 12, viewBox: '0 0 12 12', 'aria-hidden': 'true', style: { flex: '0 0 auto', display: 'block' } },
|
|
2237
|
-
h('path', { d: 'M3 2.2 V10.2', stroke: 'currentColor', strokeWidth: 1.2, fill: 'none', strokeLinecap: 'round' }),
|
|
2238
|
-
h('path', { d: 'M3 5.2 H8.4', stroke: 'currentColor', strokeWidth: 1.2, fill: 'none', strokeLinecap: 'round' }),
|
|
2239
|
-
h('circle', { cx: 3, cy: 2.2, r: 1.5, fill: 'currentColor' }),
|
|
2240
|
-
h('circle', { cx: 3, cy: 9.4, r: 1.4, fill: 'none', stroke: 'currentColor', strokeWidth: 1.1 }),
|
|
2241
|
-
h('circle', { cx: 9.2, cy: 5.2, r: 1.4, fill: 'none', stroke: 'currentColor', strokeWidth: 1.1 }),
|
|
2242
|
-
)
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
/**
|
|
2246
|
-
* 计划芯片:坐在原生 plan 座位上的那一格。
|
|
2247
|
-
*
|
|
2248
|
-
* 只说**计划**这一件事(进度、受阻、待确认),不重复状态条已经说过的话——
|
|
2249
|
-
* 一个事实只在一块面上说,是这个面板与原生 dock 之间的分工。
|
|
2250
|
-
* 没有计划时渲染 `null`:座位保持空着,而不是显一个「什么都没有」的假控件。
|
|
2251
|
-
* 它也不造第二个动词:推进的唯一动词是 `AdvancePlan`,那属于模型,不属于界面;
|
|
2252
|
-
* 这一格能做的只有一件——把右栏的「世界树」打开。
|
|
2253
|
-
*/
|
|
2254
|
-
function PlanChip(props) {
|
|
2255
|
-
const data = typeof props.useProjection === 'function' ? props.useProjection('clearai') : undefined
|
|
2256
|
-
const plan = data === null || data === undefined ? null : data.plan
|
|
2257
|
-
if (plan === null || plan === undefined) return null
|
|
2258
|
-
const total = plan.totalCount ?? 0
|
|
2259
|
-
const done = plan.advancedCount ?? 0
|
|
2260
|
-
/**
|
|
2261
|
-
* 说人话:内部 id(`p-xxxx`)不进这一格——它对人没有信息量,只让芯片变长;
|
|
2262
|
-
* 状态优先于数字(等人确认 / 受阻 / 已收尾都是**要人注意**的那一类)。
|
|
2263
|
-
*/
|
|
2264
|
-
/**
|
|
2265
|
-
* 一格只放**一个符号**:进度。要人注意的事不换符号,只换颜色。
|
|
2266
|
-
*
|
|
2267
|
-
* 这条工具行上的格子只承担**可点、且只有我们知道**的两句:
|
|
2268
|
-
* 待处理 N(人门计数,点了开世界树)· 续跑停着(为什么停,人是可以处置的)。
|
|
2269
|
-
* 「已达成 · 100%」那一类与原生目标提示说的是同一件事,不在这里重复。
|
|
2270
|
-
*/
|
|
2271
|
-
const inboxCount = Array.isArray(data?.needYou) ? data.needYou.length : 0
|
|
2272
|
-
const blocked = plan.blocked !== null && plan.blocked !== undefined
|
|
2273
|
-
const attention = blocked
|
|
2274
|
-
/**
|
|
2275
|
-
* 符号**恒定是进度**(形状稳定才学得会):要人注意不在符号上换字,
|
|
2276
|
-
* 而是换颜色(与世界树同一条规矩:形状说状态,别让人去猜一个 '?')。
|
|
2277
|
-
* 「待处理 N」就在这一格(`waiting`):门开着是**事实面**上最要紧的一句,
|
|
2278
|
-
* 而它可点——点一下开世界树,那里才看得到要裁什么。
|
|
2279
|
-
*/
|
|
2280
|
-
/**
|
|
2281
|
-
* 符号说**探索到了哪**:调研时是「板块 已厘清/总数」,求解时是「问题 当前/总数 · 待检验假设 N 个」;
|
|
2282
|
-
* 没列问题也没列板块的目标(旧会话、单问题)退回步数 `N/M`。
|
|
2283
|
-
*/
|
|
2284
|
-
const exploration = data?.exploration ?? null
|
|
2285
|
-
const areas = Array.isArray(exploration?.areas) ? exploration.areas : []
|
|
2286
|
-
const declared = (Array.isArray(exploration?.questions) ? exploration.questions : []).filter((question) => !question.implicit)
|
|
2287
|
-
const current = (Array.isArray(exploration?.questions) ? exploration.questions : []).find((question) => question.id === exploration?.current) ?? null
|
|
2288
|
-
const emergent = declared.filter((question) => question.status === 'emergent').length
|
|
2289
|
-
const examining = current === null ? 0 : (current.counts?.examining ?? 0)
|
|
2290
|
-
const symbol =
|
|
2291
|
-
areas.length > 0
|
|
2292
|
-
? `${t('板块 ')}${areas.filter((area) => area.state === 'clear').length}/${areas.length}${emergent > 0 ? `${t(' · ')}${emergent}${t(' 个问题待您决定')}` : ''}`
|
|
2293
|
-
: declared.length > 0 && current !== null
|
|
2294
|
-
? `${t('问题 ')}${declared.indexOf(current) + 1}/${declared.length}${t(' · 待检验假设 ')}${examining}${t(' 个')}`
|
|
2295
|
-
: `${done}/${total}`
|
|
2296
|
-
const brief = typeof plan.brief === 'string' && plan.brief.trim() !== '' ? plan.brief.trim() : null
|
|
2297
|
-
const meaning = blocked ? t('计划受阻,待人工处理') : plan.status === 'closed' ? `${t('计划已收尾(')}${done}/${total}${t(' 步)')}` : `${t('计划已交付 ')}${done}/${total}${t(' 步')}`
|
|
2298
|
-
/**
|
|
2299
|
-
* 等人时**只说一句**:先「待处理 N」(人门计数),没有门才说续跑停着的原因。
|
|
2300
|
-
* 两者是同一根轴(为什么在等人)⇒ 一格只放一个,不并列。
|
|
2301
|
-
*/
|
|
2302
|
-
const waiting = inboxCount > 0 ? `${t('待处理 ')}${inboxCount}` : null
|
|
2303
|
-
const attentionNow = attention || waiting !== null
|
|
2304
|
-
return h(
|
|
2305
|
-
'button',
|
|
2306
|
-
{
|
|
2307
|
-
type: 'button',
|
|
2308
|
-
className: 'clearai-toolctl',
|
|
2309
|
-
disabled: props.locked === true,
|
|
2310
|
-
title: `${meaning}${waiting === null ? '' : ` · ${waiting}`} · ${plan.id}${brief === null ? '' : ` · ${brief}`}${t('(点击打开探索货架)')}`,
|
|
2311
|
-
'aria-label': `${meaning}${waiting === null ? '' : ` · ${waiting}`}${t('(点击打开探索货架)')}`,
|
|
2312
|
-
// 「要人注意」用与世界树同一族的琥珀(同一套主题令牌,不新造颜色)。
|
|
2313
|
-
style: attentionNow ? { color: 'rgb(var(--dsw-color-warning, 245 158 11))', fontWeight: 600 } : undefined,
|
|
2314
|
-
onClick: () => props.openExplore?.(),
|
|
2315
|
-
},
|
|
2316
|
-
h(PlanGlyph, null),
|
|
2317
|
-
h('span', { style: { minWidth: 14, textAlign: 'center' } }, symbol),
|
|
2318
|
-
waiting === null ? null : h('span', { style: { marginLeft: 6, fontSize: 11.5 } }, waiting),
|
|
2319
|
-
)
|
|
2320
|
-
}
|
|
2321
2231
|
|
|
2322
2232
|
/**
|
|
2323
2233
|
* 一步的**人话**名字:`do` 是模型写的那句「做什么」,截短了放进一行。
|
|
@@ -3066,29 +2976,8 @@ window.__ModuleLoader__.load({
|
|
|
3066
2976
|
h(LocalizedExplore, { ...props, openSpectator, openPreview: openPreviewFor(props), send: sendFor(props), openFacts: () => openPanel(props, 'clearai-facts') }),
|
|
3067
2977
|
)
|
|
3068
2978
|
occupy('conversation.view', () => ({ id: 'clearai-facts', order: 20, label: t('本体') }), (props) => h(LocalizedFacts, { ...props, openSpectator, openPreview: openPreviewFor(props), send: sendFor(props), openExplore: () => openPanel(props, 'clearai-explore') }))
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
*
|
|
3072
|
-
* 为什么是这个座位:DSH 把「计划」这件事的控件固定在 composer 工具行的
|
|
3073
|
-
* `conversation.input.plan` 上(`dsh-client-ui-plan` 的「Plan ×」),而它只在
|
|
3074
|
-
* `plan/mode` 投影存在时才渲染——我们的预设不挂 `plan-mode`(计划是我们自己的事实,
|
|
3075
|
-
* 不是每回合的策略),所以那个座位在本模式下**一直空着**:位置在,没人说话。
|
|
3076
|
-
* 把自己的计划面放进去,就是「同一个位置、两种预设各自的计划面」,而不是另起一块浮层。
|
|
3077
|
-
*
|
|
3078
|
-
* 两条实现约束(读原生实现量出来的,不是猜的):
|
|
3079
|
-
* · 这个座位是 `single`:同 priority 再注册会**直接抛错**(核心的报错原文是
|
|
3080
|
-
* 「register at a different priority to shadow it (lowest renders)」),
|
|
3081
|
-
* 所以必须给一个更低的 priority 才遮蔽得住;
|
|
3082
|
-
* · 遮蔽的代价是零——原生那个 occupant 在本模式下本来 `return null`。
|
|
3083
|
-
* 而我们只在**当前会话是本预设**时占座(`occupy`),会话切走就还给它。
|
|
3084
|
-
*/
|
|
3085
|
-
occupy('conversation.input.plan', { priority: -1 }, (props) => h(PlanChip, { ...props, openExplore: () => openPanel(props, 'clearai-explore') }))
|
|
3086
|
-
// 输入框下方的常驻派生条(运行态卡在人这一侧的对应物)
|
|
3087
|
-
/**
|
|
3088
|
-
* **输入框下那一条不再注册**:它说的话(阶段 / 完成度 / 当前步)与原生目标提示、
|
|
3089
|
-
* 与工具行那颗计划 chip 重复 ✗,却**独占一行把输入框顶上去** ✗。
|
|
3090
|
-
* 唯一可点、且只有我们知道的那件事(「待处理 N」)已经并进计划 chip(同一行,一点直达探索货架)。
|
|
3091
|
-
*/
|
|
2979
|
+
// Plan progress uses DSH's native todo dock; no composer chip or shadow plan slot.
|
|
2980
|
+
|
|
3092
2981
|
ctx.effect(() => sessions.list.subscribe(() => {
|
|
3093
2982
|
for (const sync of seats) sync()
|
|
3094
2983
|
}), t('clearai-loop: 席位跟着会话预设进出'))
|
|
@@ -3107,7 +2996,7 @@ window.__ModuleLoader__.load({
|
|
|
3107
2996
|
* 真的跑一遍渲染路径(捕 undefined 字段访问这类只有渲染时才炸的错)。
|
|
3108
2997
|
* 仍然不是给别的包用的接口。
|
|
3109
2998
|
*/
|
|
3110
|
-
exports.__components = {
|
|
2999
|
+
exports.__components = { WorldTree, ExploreView, AnswerCards, QuestionBox, NextBox, EmergentActions, GraphBand, GraphInspector, NeedYou, TreeDetail, Atlas, AtlasHeader, ConclusionList, ConclusionRow, ConclusionDetail, StationBar, TrustTimeline, ClearAIMark, LOOP_LABEL, EntityCard, KnowledgeFlowBox, KnowledgeItemRow, SettledLine, CountMarks }
|
|
3111
3000
|
/**
|
|
3112
3001
|
* 测试缝之三:命题那一列的**派生**是纯函数(分组、处境、来路、证据链),
|
|
3113
3002
|
* 渲染本身没法在没浏览器的地方细究——把它导出去,让测试直接断言派生结果。
|
package/lib/fold.js
CHANGED
|
@@ -79,7 +79,7 @@ export const MUTATION_KIND = 'clearai'
|
|
|
79
79
|
* v20 → v21:持久核算复核、最终实际引用、幂等审计派发;旧日志原样重放。
|
|
80
80
|
* 投影缓存按版本判定,所以旧缓存会被丢弃、从日志重折一遍。
|
|
81
81
|
*/
|
|
82
|
-
export const STATE_VERSION =
|
|
82
|
+
export const STATE_VERSION = 22
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* **只留台账、不折进视图**的变更类型(词汇表的另一半)。
|
|
@@ -598,6 +598,8 @@ export function applyMutation(state, mutation) {
|
|
|
598
598
|
evaluator: 'independent',
|
|
599
599
|
child: mutation.evaluator_session ?? null,
|
|
600
600
|
capability: mutation.capability ?? null,
|
|
601
|
+
goal_id: mutation.goal_id ?? null,
|
|
602
|
+
goal_revision: mutation.goal_revision ?? null,
|
|
601
603
|
/**
|
|
602
604
|
* **同态判据**:被裁决的那份产物/问题的摘要指纹。内核据此判断
|
|
603
605
|
* 「这一次与上一次是同一件东西」并复用旧裁决——于是「这次没花钱」在账上看得见。
|
|
@@ -636,12 +638,20 @@ export function applyMutation(state, mutation) {
|
|
|
636
638
|
})
|
|
637
639
|
break
|
|
638
640
|
}
|
|
641
|
+
case 'audit/notified': {
|
|
642
|
+
const audit = next.audits.find((item) => item.id === mutation.id)
|
|
643
|
+
if (audit) { audit.notifiedAt = at; audit.notificationId = mutation.message_id }
|
|
644
|
+
break
|
|
645
|
+
}
|
|
639
646
|
case 'audit/settled': {
|
|
640
647
|
const audit = next.audits.find((item) => item.id === mutation.id)
|
|
641
648
|
if (audit !== undefined) {
|
|
642
649
|
audit.verdict = mutation.verdict
|
|
643
650
|
/** 两项裁决:交付成立吗 + 每条判断的结果。旧账没有这两格,`verdict` 那时说的就是交付成立吗。 */
|
|
644
651
|
audit.holds = mutation.holds ?? null
|
|
652
|
+
audit.settledAt = mutation.settled_at ?? null
|
|
653
|
+
audit.rechecks = Array.isArray(mutation.rechecks) ? clone(mutation.rechecks) : []
|
|
654
|
+
audit.lessons = Array.isArray(mutation.lessons) ? clone(mutation.lessons) : []
|
|
645
655
|
audit.reuse = Array.isArray(mutation.reuse) ? clone(mutation.reuse) : []
|
|
646
656
|
audit.results = Array.isArray(mutation.results) ? mutation.results : []
|
|
647
657
|
audit.shortfalls = mutation.shortfalls ?? []
|
package/package.json
CHANGED
|
@@ -183,6 +183,8 @@
|
|
|
183
183
|
requireCriteriaVerdict: true
|
|
184
184
|
# 停止检查:achieved 结案要按问题写结论;仍在考察中的候选与开着的未解释项须写进「尚未确定的事项」。
|
|
185
185
|
requireAnswers: true
|
|
186
|
+
ontologyFeedback: true
|
|
187
|
+
nativeTodoProgress: true
|
|
186
188
|
# deny_rules 十条里可移植的九条(路径越狱那条不搬:宿主沙箱已经拥有它,ClearAI 自己也说「不重复」)
|
|
187
189
|
bashDenyRules: true
|
|
188
190
|
# 独立评估者:spawn = fresh context(fork 会继承历史,做的人与判的人就分不开了)
|
|
@@ -200,6 +200,8 @@
|
|
|
200
200
|
requireCriteriaVerdict: true
|
|
201
201
|
# 停止检查:achieved 结案要按问题写结论;仍在考察中的候选与开着的未解释项须写进「尚未确定的事项」。
|
|
202
202
|
requireAnswers: true
|
|
203
|
+
ontologyFeedback: true
|
|
204
|
+
nativeTodoProgress: true
|
|
203
205
|
# deny_rules 十条里可移植的九条(路径越狱那条不搬:宿主沙箱已经拥有它,ClearAI 自己也说「不重复」)
|
|
204
206
|
bashDenyRules: true
|
|
205
207
|
# 独立评估者:spawn = fresh context(fork 会继承历史,做的人与判的人就分不开了)
|