Skip to content

release: v0.1.22 — hardened read-only queries + observable status#9

Merged
FakeHank merged 6 commits into
mainfrom
fix-viewer-sidebar-logs
Jun 25, 2026
Merged

release: v0.1.22 — hardened read-only queries + observable status#9
FakeHank merged 6 commits into
mainfrom
fix-viewer-sidebar-logs

Conversation

@FakeHank

@FakeHank FakeHank commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Ships the changes accumulated since 0.1.21 as v0.1.22, and clears the changelog/tag backlog along the way.

Release contents (0.1.22)

  • Server / MCP hardening: invalid regex in grep returns a clear error; /health is a real readiness check (truth store exists / is a git repo / writable, degrades to 503); GITHUB_TOKEN_FILE set-but-unreadable warns at startup; large-file guard on /read; configurable CODESTATE_ACTIVE_DAYS; brain join reachability probe decoupled from /health 503.
  • CLI: brain status shows capture footprint + failure warnings and tells "not installed" from "not running"; join first-run backfill streams a rolling log and ends with a local-footprint summary.
  • Web: un-pushed-progress wording changed to the neutral "activity since last push".

Also: backlog cleanup

  • Backfilled changelog 0.1.19 / 0.1.20 / 0.1.21 (EN + ZH) — these shipped but went unrecorded; listed faithfully under the rule "don't rewrite / skip / merge already-released version numbers".
  • Tagged v0.1.16 ~ v0.1.22 (7 annotated tags, pushed) so git is the version source of truth.

Note: 9ef801e mixed the server changes and the changelog backfill into one commit due to a concurrent commit (already pushed, not worth a rewrite, so left as-is).

🤖 Generated with Claude Code

FakeHank and others added 4 commits June 25, 2026 19:03
- 侧边栏 .side 加 min-height: 100vh-36px + sticky,foot 始终在底部,不再因页面内容
  短而塌到中间/只在 overview 才到位。
- 采集常驻的日志 message 全部改英文(sync.mjs 31 条 + viewer.mjs 3 条)→ Activity 页
  与 brain logs 不再中英混杂。字段名本就英文,纯改 message 文案,无逻辑改动。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- status:用 launchctl 退出码区分「未装/未加载」与「已加载但没跑」,不再被正则兜成误导状态
- status:从结果账本显示「已传/跳过」足迹,并扫日志尾巴对失败/报错告警(同步坏了不再显得一切正常)
- join:首次回填提示改为会滚动日志、结尾有「本机足迹」小结
- viewer:本机足迹页文案品牌名对齐 Klear-Team-Brain

本次 review 其余修复(docs 重构 / AGENTS.md / 品牌 / gitstore·docsync·sync 等)已并入上一条提交 9e67006。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
服务端 / MCP:
- grep 非法正则不再吞成「无命中」,回清晰报错(query.mjs)
- /health 改真·就绪检查(truth 存在 / 是 git 仓 / 可写),降级回 503 + version(server.mjs)
- GITHUB_TOKEN_FILE 配了却读不到 → 启动告警,不再静默以 token-less 跑(server.mjs)
- /read 大文件护栏:超大整读拒绝、无 limit 时默认 5000 行截断带分页提示(server.mjs)
- code-state 活跃分支窗口可配 CODESTATE_ACTIVE_DAYS(默认 30)(codestate.mjs)
- brain join 可达探测与 /health 503 解耦:任意 HTTP 响应即「连得上」(brain.mjs)
- DEPLOY.md 补 /health / 新 env 文档

web:
- 概览 / 仓库 / code-state 的「未推进度」措辞改为中性的「push 后有活动」(app.js)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
打包 0.1.21 之后已合并的两批改动正式发版:
- e09ea02 brain status 采集足迹+失败告警、join 首同步小结
- 9ef801e server 只读查询/可观测性加固、GUI 措辞中性化

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@FakeHank FakeHank changed the title release: v0.1.22 — 只读查询加固 + status 看得见采集足迹 release: v0.1.22 — hardened read-only queries + observable status Jun 25, 2026
FakeHank and others added 2 commits June 25, 2026 20:26
真错误纠正:
- SECURITY.md 漏洞上报邮箱被脱敏脚本弄坏(neiyouser2@…)→ 修正
- CONTRIBUTING.md 开头「Tuser2s」→「Thanks」(同一脚本误伤)
- 新建 team.example.yaml(DEPLOY 让人 copy 它,却一直不存在 → 手动部署路走不通)

README(中英对齐):
- read_github / 代码现状:GitHub → GitHub/GitLab/Gitea(含自建)
- 文档源:飞书 → 飞书/Lark · Notion · Google Docs
- 隐私段新增「生产者透明可控(brain viewer / 撤回)」+「个人脱敏词表」
- 接编辑器段补 HTTP MCP 远程挂载(URL+token)
- 飞书镜像路径修正 feishu/<wiki>/ → feishu/<wiki>__<id>/

DEPLOY:
- 新增 /ask(ASK_ENABLED 等)一节、完整环境变量参考表(补 TEAM_FILE/NOTION_FILE/GOOGLE_FILE/PUBLIC_URL/NO_POLL)
- 新增真相库备份方法(git bundle / tar;低内存机别 gc --aggressive)
- §1.7 补 GitLab/Gitea;§1.8 文档镜像扩成飞书/Notion/Google
- 新增 brain admin over-SSH 用法;client.config 参考块补 collect_all/session_history_md/trae_memory/auto_update

其它:
- cli/brain.mjs writeConfig 不再写废键 docs/agentdocs,改写真实采集开关
- registry.example.yaml 去掉私有 REDESIGN 引用;CHANGELOG 标注 0.1.12-0.1.13 跳号

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts:
#	cli/brain.mjs
#	package.json
@FakeHank
FakeHank merged commit c94cf12 into main Jun 25, 2026
3 checks passed
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