Skip to content

v1.2.1

Latest

Choose a tag to compare

@nkjDSLcvanv nkjDSLcvanv released this 22 Nov 03:17
· 1 commit to main since this release

更新摘要 / Highlights

1. 新增 SSH Remote 远端只读会话统计(可选开启)

  • 感谢 @xiaoxiami-zyx 贡献 PR #3,新增 core/daemon/ssh-remote.mjs 模块,支持在 SSH Remote 会话场景下实时展示 Token 用量、上下文占比、缓存命中率与每轮尾部统计。
  • 零本地 .db 拷贝、零 scp:通过 ssh 在远端以只读 python3 标准库 sqlite3(mode=ro)直接读取 WAL/SHM,并在远端剥离所有对话正文、Prompt 与 Checkpoint 摘要文本,仅回传脱敏后的数值与状态元数据 JSON,在本地纯内存中通过虚拟 DB 适配解析。
  • 默认关闭(Opt-in):不扫描 ~/.ssh/config,需在 ~/.gemini/antigravity/codex-theme/user/config.json 中显式开启:
{
  "modules": {
    "sshRemote": true
  },
  "sshHosts": ["your-ssh-host"]
}

2. 工具栏挂载修复与安全边界加固

  • 修复 core/runtime/50-telemetry-ui.js 在存在 [data-testid=idle-status-text] 后台任务按钮时,每轮回复统计徽标 .ag-turn-metrics 误挂载到按钮内部的问题(#3)。
  • 补充 synthesizeCheckpointPayload 4 MiB 上限保护、远端 protobuf 边界检查、SQLite URI 路径转义与显式连接关闭,同步更新 user/config.json、README.md、SKILL.md 及单元测试(共 28 个核心模块、31 项 node:test 测试)。

升级与安装 / Upgrade & Install

已安装老版本的用户拉取最新代码后重新执行安装即可(user/ 下的个人配置与自定义词典会自动保留):

git pull
node install.mjs install
node --disable-warning=ExperimentalWarning install.mjs doctor

English Summary

  • Opt-In SSH Remote In-Memory Telemetry (#3 by @xiaoxiami-zyx): Added core/daemon/ssh-remote.mjs (modules.sshRemote: false by default, explicit sshHosts allowlist). Reads remote SQLite conversation DBs over ssh via read-only python3 (mode=ro), strips all prompt/response/checkpoint text remotely, and feeds compact numeric/status metadata into an in-memory virtual DB adapter with zero scp and zero local .db copies.
  • Toolbar Badge Mount Fix & Hardening: Fixed .ag-turn-metrics mounting when a [data-testid=idle-status-text] button precedes the toolbar action row (50-telemetry-ui.js), added upper-bound/URI/close guards for the remote extractor, and updated default config, docs, manifest (28 core modules), and unit tests (31 passing).

Full Changelog: v1.2.0...v1.2.1