Skip to content

feat(engine): attn 命令重塑并收敛为单二进制 - #304

Merged
SheathedSharp merged 3 commits into
mainfrom
refactor/engine-attn-cli
Nov 12, 2026
Merged

SheathedSharp merged 3 commits into
mainfrom
refactor/engine-attn-cli

Conversation

@SheathedSharp

Copy link
Copy Markdown
Owner

第三步(上):把可选评估的 CLI 收敛成两类受众,并删除第二个二进制。

改了什么

  • setup:status(解析状态 + 本地质量摘要,--json 带完整 quality)、config(endpoint/model/preset/key,落盘前探测)、on / off [--forget](只翻转一个布尔值)、test。
  • 协议:assess(一次性)、assess --follow(原 session)、assess --dry-run(原 preview)、preflight(从独立二进制搬入 CLI)、feedback。
  • 删除 session、report、preview、enable、disable 以及 engine/cmd/jev-attention。
  • mage build 只产出 bin/oberth;发布归档、nfpm、MSI、install/uninstall 脚本与测试、Windows workflow、站点安装页都只处理一个二进制。
  • status 合并原 report:默认回看 168h(--since 0 为全部),输出 quality 对象。
  • 验收脚本改用 CLI 动词;无 key 的 --follow 会立即以 unavailable/no_key 停止,不启动一个永远不会评估的进程。

验证(已执行)

  • cd engine && go test -count=1 -timeout=8m ./...
  • mage build(只生成 bin/oberth)
  • python3 scripts/check_docs.py
  • python3 scripts/package_linux_test.py、package_windows_msi_test.py、install_test.py、uninstall_test.py
  • python3 scripts/verify-attention-handoff.py --choice continue_without_action
  • 隔离 BERTH_HOME 手工验证 attn(裸命令)、on、status、off --forget 的输出

未执行

  • race、nightly 完整门槛与真实服务矩阵(由每日 nightly/发版流程覆盖)。
  • Windows 原生安装包构建(本机未跑,交给 PR CI 的 Windows job)。

配套

skill 仓的 attn session / attn report 文案需要在另一个仓库同步为 assess --follow / status,我会在合并窗口内一并提交。

🤖 Generated with Claude Code

SheathedSharp and others added 3 commits November 12, 2026 19:00
setup 面收敛为 status/config/on/off/test:config 写凭据并在落盘前探测,on/off
只翻转一个布尔值,status 合并本地质量数据。协议面为 assess(--follow、
--dry-run)、preflight 和 feedback;preflight 从独立二进制搬进 CLI,session、
report、preview、enable、disable 删除。

删除 engine/cmd/jev-attention 及全部打包、安装、卸载、CI 引用;mage build 只
产出 bin/oberth,发布归档与安装器只处理一个二进制。验收脚本改用 CLI 动词,
并以“无 key 的 follow 立即停止”覆盖无可评估配置的路径。

验证:go test -count=1 -timeout=8m ./...;mage build;scripts/check_docs.py;
package_linux_test.py、package_windows_msi_test.py、install_test.py、
uninstall_test.py;verify-attention-handoff.py --choice continue_without_action

Co-Authored-By: Claude Code <noreply@anthropic.com>
cli 双语对与适配器文档改为 status/config/on/off/test 与 assess(--follow,
--dry-run)/preflight/feedback,说明 status 的 quality 数据与单二进制;安装文档、
发布文档与站点同步移除第二个二进制。历史验证记录保留原文。

验证:python3 scripts/check_docs.py

Co-Authored-By: Claude Code <noreply@anthropic.com>
@SheathedSharp
SheathedSharp merged commit 6efda73 into main Nov 12, 2026
17 checks passed
@SheathedSharp
SheathedSharp deleted the refactor/engine-attn-cli branch November 12, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant