Commit Graph
9 Commits
Author SHA1 Message Date
Menghuan1918 795beabe22 chore(dsh): adapt to DSH 0.2.3-alpha.2 and drop pre-0.2.3 compatibility
Raise the whole baseline to the alpha line and stop carrying code that only
exists for older hosts (no runtime compatibility layer, per AGENTS §4):

- peers/engines: 14 DSH peers and engines.dsh -> 0.2.3-alpha.2, Cordis ->
  4.2.0-alpha.1, group/include 1.2.0-alpha.1, schemastery 3.20.0-alpha.1;
  dev pins and CI/e2e/install scripts move with them; plugin version
  0.34.0-alpha.0.
- admission: DSH 0.2.3 deleted `requestRejection`, so only the injected
  `connection.authentication` provider can call `admit`; the legacy branch
  and the direct-admit fallback are gone and the fence fails loudly.
- directory events: the projection authority is `workspace-root/change`;
  the side-chat cwd stamp emits it and the worktree scan no longer reads
  the retired `working-directory/change`.
- llm types: `@deepseek-ai/dsh-llm` no longer exports `./brand`, so
  MessageId comes from `./types`.
- client anchors: only `[data-slot="main.conversation"]`; the alpha.1
  `conversation` key is retired. `webServer.getOrigin` is called directly.

Gates: peers check, typecheck, lint, test (366 files / 4615 passed),
build, check:consumer-types.
2026-11-25 01:03:57 +08:00
蔡少毅 089246e660 fix(host): 0.2.3 的 admit 需要注入 connection.authentication
DSH 0.2.3 起 Connection.admit 把凭据校验委托给嵌套服务
connection.authentication,而 cordis 只允许显式注入该服务的调用方读取它。插件
此前只注入 connection,admit 一被调用就抛 cannot get property
"connection.authentication" without inject,又被宿主兜底成空 body 的 400:底部
终端 chunk 加载、打开文件、侧边对话全部只剩 HTTP 400。

准入改为三级:requestRejection 存在时照旧;否则走
ctx.inject(['connection.authentication']) 子 fiber 里的 admit(0.2.3+ 的宿主
在这里能读到凭据校验器);再否则直接 admit。rc.2–rc.5 没有该嵌套服务,子 fiber
不激活,旧宿主行为不变;不重建信任表,无准入路径时仍直接抛错。

测试:tests/trusted-hosts.spec.ts 新增 0.2.3 形状——插件上下文调用 admit 抛
inject 错误、经注入的 provider 上下文裁决——覆盖放行 / 401 / 403 三档。

AI-Co-Authored-By: lead
2026-11-24 11:59:08 +08:00
hairyf 3e3d3196d5 chore(release): prepare v0.33.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.33.0
- move both changelogs out of Unreleased and add the four merged UI fixes
  (#1011, #1233, #945, #948) plus the recommended-catalog batch
- update README install commands, compatibility table, DSH badge and Recent Updates
- point the external plugin guide and the adaptation doc at v0.33.0 and the rc.3 floor
2026-11-24 11:53:51 +08:00
hairyfbot 6024337a73 fix(host): 准入改用 admit 兜底,运行侧钉版抬到 rc.3
DSH 0.2.2-rc.3 之后官方删除 connection.requestRejection(升级指南写明用 admit
替代),插件此前每个请求第一句就抛 TypeError,被宿主兜底成空 body 的 400。
fence 改为:requestRejection 存在时照旧调用,缺席时改调 admit 读同一个
rejection 字段,两者都没有仍抛 TypeError,不重建信任表。

engines.dsh 已要求 rc.3,因此把真正运行插件的钉版同批抬到 rc.3:CI 的
npm install -g、e2e-common.sh 的 DSH_NPX_SPEC / expected、两个独立安装脚本的
npx 回退。dev 钉版与 14 条 peer 仍是 rc.2(rc.3 与本插件消费面无 API 差异),
tests/dsh-baseline.spec.ts 相应拆成两个常量。

关联 #1204。
2026-11-21 11:54:00 +08:00
hairyfbot be5dbb6db2 chore(manifest): 声明 engines.dsh,旧宿主的安装失败改判为「先升级 DSH」
package.json#engines.dsh 从缺席改为 >=0.2.2-rc.3 <0.3.0,dsh.plugin.json 同步。
宿主预检优先读该字段,字段存在时只按它判定,不再看 14 条 DSH peer(peer 仍为
^0.2.2-rc.2,未改)。

效果:停在 0.2.1 及更早宿主的安装失败,在插件市场里由 hostIncompatible 改判为
[dsh-too-old],给用户「先升级 DSH」的指引,不再作为插件缺陷自动给本仓库开 issue。

代价:engines.dsh 成为唯一裁决者,实际安装下限从 rc.2 抬到 rc.3;0.2.2-rc.2 及
更早的 0.2.2 宿主停在 v0.32.1。

按维护者在 #1230 的决定,不新增 engines/peer 同步守护测试。
2026-11-21 11:41:14 +08:00
Menghuan1918 2647fbac2d docs: record local and rc3 verification results 2026-11-16 01:01:45 +08:00
Menghuan1918 5575ee29b9 docs: record the contributor batch, rc3 evidence and release dependency slim-down (#1115 #1130 #882 #1191) 2026-11-16 00:49:08 +08:00
Menghuan1918 e6f1af2f82 chore(dsh): 适配 DSH 0.2.2-rc.2 并补齐插件页图文详情(v0.32.1) 2026-11-12 21:20:46 +08:00
Menghuan1918 bd6363021d docs: 重构 AGENTS.md,把发版手册 / 开发规范 / 版本适配拆成独立文档
- docs/release.md: 完整发版流程、版本号同步清单、Release note 模板与写作规则
- docs/development.md: 开发红线细则(构建纯度 / chunk / i18n / 皮肤 / 图标 / 稳态 / 测试矩阵 / 跨平台)
- docs/dsh-version-adaptation.md: 基线、支持线矩阵、抬基线清单、0.2.1→0.2.2 差异
- AGENTS.md: 收缩为每次都要遵守的规则 + 索引,删掉过期的 0.2.x 历史与冗长叙述
- 修正 AGENTS §3/§3.10 的失效交叉引用(host-contracts / 指南 / 一个 spec 注释)
2026-11-07 22:17:22 +08:00