Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/Checkpoint 2026-11-06 22-21-35 UTC [04e0f833cb].md
T
memrelay 0e8ed60daa create: Checkpoint 2026-11-06 22:21:35 UTC [04e0f833cb]
MemRelay-Operation: checkpoint-save:host-agent-verify-local-2026-11-07-0620
MemRelay-Resource: 26034406-a6f0-42fc-aef7-dbac35bef95c
2026-11-07 06:21:39 +08:00

3.2 KiB
Raw Blame History

title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
title type permalink stable_id scope memory_type project_id usage_profile_id status revision request_id created_at updated_at tags
Checkpoint 2026-11-06 22:21:35 UTC [04e0f833cb] checkpoint main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/checkpoint-2026-11-06-22-21-35-utc-04e0f833cb 26034406-a6f0-42fc-aef7-dbac35bef95c project checkpoint d5a7f581-c442-4554-87b9-ee723b8b0258 0c9feb46-d06e-43cd-9ef0-c5813c84a998 active 1 host-agent-verify-local-2026-11-07-0620 2026-11-06T22:21:36.015106+00:00 2026-11-06T22:21:36.015106+00:00
host-agent
checkpoint
verify

宿主机代理与首页优化:本地联调完成,已提交推送 feat/host-agent

完成内容

  • 分支 feat/host-agent 三个提交已推送 origin(未合并 main):f4d84ab 代理、8afff88 后端、72e4257 前端。plugins/InterferenceETL 子模块指针仍未提交(有意)。
  • 检查:pytest 130 通过 2 跳过;go test 全通过、go vet 0;前端 typecheck、smoke、build 通过;web/dist 已用正常 npm run build 重建(8131 自 11-03 启动时缓存的 index.html 引用的资源早在 11-06 的构建中就已不存在,8131 页面需重启后才能用新前端,API 不受影响)。
  • 本地临时实例 8133(METRIX_RUNTIME_DIR=Temp/host-agent/runtime)+ vite 5181 + 假 iKuai(127.0.0.2:80,SNTP 只能放在 11123,因 Windows 时间服务独占 UDP 123)+ 假通用设备(127.0.0.2:18190)+ dry-run 代理(chrony/timesyncd/none)浏览器逐项验证通过,截图在 Temp/host-agent/screens/。临时进程均已停止。

修复

  • 后端 timesync._direct_path:停止 NTP 只在 sync_mode=direct 时生效(原来自动识别回退直接修改时也会停止,界面无开关且会与恢复逻辑打架),并扩展 test_auth fallback 测试。
  • 前端:宿主机页签/适配器弹窗标签列宽固定(naive-ui auto 标签宽度对后挂载的表单项失效导致错位);未安装对时服务时提示不再与状态行重复(新增 host.ntp.readonlyNoService 中英文);适配器或 NTP 服务器变更后后台自动重新识别;适配器表格识别规则列加宽。
  • 代理:-simulate-ntp 的默认服务器从生产 iKuai 地址改为 TEST-NET 192.0.2.1,避免本地联调误探测生产设备。

下一步(生产发布)

  • 发布 Metrix;令牌:网页登录态 POST /api/host/agent/token(API Token 会 403 error.webOnly),返回 token 与 install_command;环境变量 METRIX_HOST_AGENT_URL 决定安装命令里的地址(默认 ws://127.0.0.1:8000/api/host-agent/connect)。
  • plugins/MetrixHostAgent/scripts/build.ps1 生成 dist/metrix-host-agent-linux-amd64 + install.sh,上传宿主机后 sudo ./install.sh --url <ws地址> --token <令牌>;令牌存密码库。
  • 设置页 NTP 服务器保持 192.127.115.1 不点应用;识别为 iKuai 后用密码库「iKuai 管理面板」填适配器并测试;开启同步开关后实际同步一次核对。

注意

  • 设置页 NTP 输入框默认显示宿主机当前值,点「应用到宿主机」会把它写入并触发识别,联调时先改成假设备地址。
  • 首页 wordmark 在窄英雄区会把 Metrix 折成两行,是原有样式(clamp 14vw),未改。