Skip to content

chore: release 0.16.1 - #754

Merged
modusensus merged 1 commit into
mainfrom
release-prep/0.16.1
Nov 17, 2026
Merged

modusensus merged 1 commit into
mainfrom
release-prep/0.16.1

Conversation

@modusensus

Copy link
Copy Markdown
Member

发布 0.16.1:宿主 HTTP 路由现在先问宿主再决定放不放行。

版本内容

  • 修复(安全):createRouteRegistrar(dsh-mneme/src/api.js:166)此前只做 apiToken 判定,而 open 策略的路由永不鉴权——/api/dsh-mneme、/info、/version-check、/list、/recall-stats、/search、/profile 等同机任何进程、浏览器里打开的任意网页都能直接读。现在 handler 最开头先问一次 ctx.connection.requestRejection(req):403 / 401 直接结束响应,undefined 才继续走原有 policy。门控收在 registrar 里一次(gate(req, res)),新增路由自动带上。
  • 宿主没提供 connection(headless / 旧宿主 / 测试)时跳过检查,行为逐字退回改动之前——缺一个宿主服务不能让面板 401。
  • inject 不加 connection(cordis _refresh() 全或无,列进去会让插件在没 provide connection 的环境整个起不来),改为请求时惰性读取。
  • standalone 数据面(CLI / MCP,8790)不经 registrar,用法一字未改。

代码改动已在 #753 合并(818b1537)。详情见 dsh-mneme/CHANGELOG.md 的 ## [0.16.1]。

这份 PR 是什么

release-prep.yml(run 44189883212)已经跑完并把机器产出推到 release-prep/0.16.1(e8188992),只有最后一步 gh pr create 因仓库开关失败——即 Settings → Actions → General 的 "Allow GitHub Actions to create and approve pull requests"。按 CONTRIBUTING.md 的既定做法,不重跑工作流,直接从这条分支补开 PR。

机器产出

  • dsh-mneme/package.json / package-lock.json:0.16.0 → 0.16.1
  • 两处 README 的测试徽章与测试数文案:3620 → 3657(dsh-mneme/README.md 里两条重复行同改)
  • dsh-mneme/CHANGELOG.md:## [Unreleased] 下开 ## [0.16.1] - 2026-11-18,把 [Unreleased] 里攒的三条整段搬入,[Unreleased] 留空

人工部分

  • 两份 README 的版本表占位行:已随版本表一起从 README 删除,本次无占位可填
  • SECURITY.md 支持版本表:0.16.0 → 0.16.1 是同 minor,0.16.x 行无需改动

验证

  • 合并前 npm test:3,657 tests / 3,656 pass / 0 fail / 1 skipped(test/runtime-model-fetch.test.js 单独跑 10/10 通过,全量里偶发并行超时抖动)
  • fix(dsh-mneme): ask the host before answering any HTTP route #753 的 CI 全绿(ubuntu 22/24、windows 22/24、test-host-legacy 两档、gitleaks、dependency-review、zizmor、workflow-hygiene)

下一步

合并后跑 release.yml 发 npm 与 GitHub Release;随后向 awesome-dsh-plugin 提交 PR,删掉条目描述末尾那句「它的 HTTP 路由没有 DSH 的访问检查」。

机械部分已由 scripts/release-prep.mjs 完成。合并前还需要人来写:

- [ ] dsh-mneme/CHANGELOG.md 新节里的条目(现在只有一条「- (待填)」)
- [ ] 两个 README 里新占位行的主题描述
- [ ] 根 README 的「📰 最近更新」/「📰 Recent updates」段落的头条(现在是标题式散文,不是表格)
- [ ] 跨 minor 时确认 README 路线图上新 minor 行的主题(占位行只写了「(待填)」)
- [ ] 跨 minor 时把 SECURITY.md 中英两张支持版本表挪一格(活跃开发 / 尽力维护 / 不支持三段一起挪,含停止维护那段通知)
Copilot AI lite review requested due to automatic review settings November 17, 2026 22:31
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 818b153 and e818899.

Files ignored due to path filters: 1

  • dsh-mneme/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 4

  • README.md
  • dsh-mneme/CHANGELOG.md
  • dsh-mneme/README.md
  • dsh-mneme/package.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@modusensus
modusensus merged commit 4e000d8 into main Nov 17, 2026
13 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.

2 participants