clavue-v1 1.70.6 → 1.70.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
@@ -6,6 +6,37 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.70.9 - 2026-11-10
10
+
11
+ 统一任务状态、JEV 阶段与权限判定的口径,收敛任务出口、进度词表与对话框状态,并删除不可达的上游死代码。
12
+
13
+ - **超时是一等终态:** `TaskStatus` 增加 `timeout`,`Task.ts` 导出 `TASK_STATUSES` / `TERMINAL_TASK_STATUSES` / `isTerminalTaskStatus`;此前 `shellExitStatus` 把模型超时折叠成 `killed`,账本与通知互相矛盾,`TaskOutput` 也看不到真实原因。
14
+ - **超时通知不再被吞:** `silenceOwnSignalStop` 把 143/137/130 当作“模型自己 kill”而静音,模型超时同样以信号退出,于是唯一的完成通知被丢弃;现在超时始终上报,并走延迟续跑的失败提醒。
15
+ - **超时可结算:** `v1StatusRead` 的 `SHELL_DONE`、`framework` 的驱逐分支、`ShellProgress`、`taskStatusUtils`、`settleBackgroundShells` 与通知配色都认 `timeout`,等待循环不会把一个已退出的命令读成 unknown。
16
+ - **阶段词汇拆开:** 新增 `v1JevStages.ts`,`JevRequestStage`(9 个上行阶段)与 `JevDecisionStage`(6 个可拟合 gate)各一份;`v1JevReceipt` 改用派生的 `JEV_RECEIPT_STAGES`,去掉重复的 `acceptance`。
17
+ - **权限判定可折叠:** 新增 `joinBehavior()`,显式给出 `deny > ask > passthrough > allow`;Bash 逐段聚合不再自己重写顺序。
18
+ - **同类词不再互相遮蔽:** `ConcurrentSessionStatus` 让位给 teleport 的 `SessionStatus`;`ProofStatus` 只在 `v1ProofStatus.ts` 定义一次;SSE 与 WebSocket 共用一份 `TransportState`。
19
+ - **删掉不可达代码:** `officialMarketplaceGcs.ts` 约 160 行无用的 GCS 下载(含 `rm(installLocation, {recursive})`)、`WebFetchTool` 里指向 `api.anthropic.com` 的 domain_info 死分支;`INLINE_ASSERTION` 的 `[^]*?` 改为 `[\s\S]*?`。
20
+ - **注释对齐行为:** WP2 progress 机器如实标注为“仅镜像、路由不读”,并由测试锁住,避免文档与实现再次分叉。
21
+ - **任务收敛到一个出口:** `LocalShellTask` 的三处完成路径合并为 `settleShellTask` → `finishShellTask`;`shellFinish.ts` 里 `planShellFinish()` 一次决定 `status / silent / summary`,账本与通知读同一计划,不再出现“账本 killed、通知 timeout”。`LocalShellTask.tsx` 从 795 行降到 697 行。
22
+ - **工作进度只有一个投影:** 新增 `runtime/workProgress.ts`,为五个词表各一张 `Record<Union, ProgressVerdict>` 全表,投影到统一的 `rank / terminal / succeeded / next`。成员不合并(`skipped` 不等于 `parked`),但“是否结束 / 是否成功 / 能否推进”只在这里回答;未知成员抛错,新增成员会让 `npm run typecheck` 失败。`checklistOpen` 改走 `progressGate()`,park 的条目不再挂住清单。
23
+ - **对话框只占一个槽:** `PromptInput` 的 11 个 `show*Dialog` 布尔合并为 `activeDialog` 联合(`activeDialog.ts`)。开新框替换旧框,过期 close 不会关掉后来者;`isFullScreenDialog()` 取代会漏项的 `||` 链。`PromptInput.tsx` 行数不变(3406)。
24
+ - **验证:** 新增 4 个回归测试文件 34 个用例(`v1-worker-status-vocabulary` 10、`shell-finish` 8、`work-progress` 9、`active-dialog` 7),全部加入 fast manifest;后三者用假状态真实调用单点入口并计数写入/通知。`npm test` 6136 项 6133 通过 0 失败 3 跳过、`npm run test:fast` 148 文件 12.4s(预算 20s)全绿、类型检查 0 错误、架构 15 个超限文件均不超基线、工具 schema / env / branding / dead-require / bench / 反污染 / source-purity / verify:dist 全通过;`v1BackgroundWait` 回到 398 行,`v1JevClient` 上限从 913 降到 902。
25
+ - English: Give `timeout` its own terminal task state, stop silencing its completion notice, split the JEV stage vocabularies, add `joinBehavior()` for the permission lattice, de-duplicate the session/proof/transport unions, and delete unreachable upstream GCS and domain-check bodies. Then collapse the three LocalShellTask completion sites into one `finishShellTask`, add `workProgress.ts` as the single projection over five work-progress vocabularies, and turn the prompt input's eleven dialog booleans into one slot — each with a behavioural regression test.
26
+
27
+ ## 1.70.8 - 2026-11-10
28
+
29
+ 让运行中的后台进程可以被继续对话,并把进程状态、任务状态与证据状态分开。
30
+
31
+ - **受控 stdin:** `BashTool` 新增 `stdin: true`;只有显式请求才跳过命令末尾的 `< /dev/null`,默认生成的命令与之前逐字一致。
32
+ - **TaskInput:** 新增工具向 `local_bash` 任务的 stdin 写一行,用于回答 y/n 提示、REPL 或等待输入的进程;非运行态、非 shell、stdin 非管道时明确拒绝,不静默丢弃。
33
+ - **三态分离:** 新增 `processState` / `taskState` / `evidenceState` 与 `accepted`;终端安静不再等于任务完成,退出码也不再等于交付证据,`TaskOutput` 输出新增 `<lifecycle>`。
34
+ - **停顿提示分流:** stdin 可写时提示用 `TaskInput` 继续,否则保留“杀掉重跑”建议并提示下次加 `stdin: true`。
35
+ - **实测修正:** Node 的 stdin 句柄在子进程 fd0 指向 `/dev/null` 时仍看似可写,可写性改由 spawn 决策判定,避免写入被静默丢弃。
36
+ - **验证:** 新增 3 个测试文件 15 个用例通过(含真实子进程 `read` 被送达);类型检查 0 错误、工具 schema 53 个、架构不超过基线、env 检查通过;`npm run verify:source-build` 通过。
37
+ - **依赖链隔离:** 只读工具策略表不再在运行时引用权限模块,避免把 `log.ts` 及其 `stubs` 依赖带入源码直跑的测试。fast 套件因此从 131 个失败恢复为 144 文件全绿。
38
+ - English: Let a running background process be answered instead of killed. Add an explicit `stdin: true` Bash opt-in that leaves the default command byte-identical, a `TaskInput` tool that refuses tasks without a writable pipe, and separate process/task/evidence states so a quiet terminal never means success. Writable stdin is decided at spawn time, because the Node handle looks writable even when the child's fd0 is `/dev/null`.
39
+
9
40
  ## 1.70.6 - 2026-11-09
10
41
 
11
42
  明确源码修复与回归交付必须同时落地,并收紧后台任务与作用域命令的复杂度分类。
package/README.md CHANGED
@@ -90,7 +90,7 @@ clavue-v1 --version
90
90
  Pin a version:
91
91
 
92
92
  ```bash
93
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.70.6/install.sh | bash -s -- 1.70.6
93
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.70.9/install.sh | bash -s -- 1.70.9
94
94
  ```
95
95
 
96
96
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -101,7 +101,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
101
101
  npm install -g clavue-v1
102
102
  # or one-shot:
103
103
  npx -y clavue-v1
104
- npx -y clavue-v1@1.70.6 --version
104
+ npx -y clavue-v1@1.70.9 --version
105
105
  ```
106
106
 
107
107
  One-line global install via the package (npm / unpkg):
@@ -113,7 +113,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
113
113
  Install a specific version globally:
114
114
 
115
115
  ```bash
116
- curl -fsSL https://unpkg.com/clavue-v1@1.70.6/install.sh | bash -s -- 1.70.6
116
+ curl -fsSL https://unpkg.com/clavue-v1@1.70.9/install.sh | bash -s -- 1.70.9
117
117
  ```
118
118
 
119
119
  ```bash
@@ -725,7 +725,7 @@ Version check:
725
725
 
726
726
  ```bash
727
727
  npx -y clavue-v1 --version
728
- npx -y clavue-v1@1.70.6 --version
728
+ npx -y clavue-v1@1.70.9 --version
729
729
  # available after a global install; both names are this package
730
730
  clavue --version
731
731
  clavue-v1 --version