viewer: 去本机 token 登录 + 展示设备 token + 线上「本机控制台」按钮 (v0.1.20)#7
Merged
Conversation
现版 tick 是 logfmt(无「·」),旧过滤匹配不到会显示过期时间戳。改成取最近一条 tick 行、只显示时间 + 计数体。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
#2 本机 viewer:本机 loopback 不该要 token 登录 —— 去掉 token 闸,改用 Host/Origin 守卫挡跨站 + DNS-rebind(同源请求照常放行)。`brain viewer` 直接开 http://127.0.0.1:7878。 采集配置页新增「连接」区,展示服务器/身份/设备 token(可显示·复制),方便粘到网站登录。 #4 线上共享库网站:顶栏加「本机控制台」按钮,新标签打开本机 viewer(双语)。 bump v0.1.20,让 #1(brain status 修复)+ #2 随自动更新下发;#4 随服务端部署即生效。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
跟进 #5 的几条体验问题。
#1
brain status最近同步旧逻辑匹配含「·」的日志行,但现版 tick 是 logfmt(无「·」)→ 显示过期时间戳。改成取最近一条 tick 行。
#2 本机 viewer 去 token 登录 + 展示 token
brain viewer直接开http://127.0.0.1:7878。#4 线上共享库网站「本机控制台」按钮
顶栏加按钮,新标签打开本机 viewer(
http://127.0.0.1:7878,双语;https 顶层跳 localhost 浏览器放行)。版本
bump v0.1.20:#1+#2 随客户端自动更新下发;#4 随服务端部署即生效。无新依赖。
🤖 Generated with Claude Code