chore(release): prepare alpha.0 with latest dev fixes

This commit is contained in:
Menghuan1918 committed 2026-10-17 12:02:59 +08:00
1 parent 6417547bb5
commit 2b8a4da569
6 files changed
+44 -39

No files matched your search

+2 -2
View File
@@ -2,14 +2,14 @@
> 本文档收录 dsh-better-sidebar 的完整发布历史(最新版摘要见 [README](README_ZH.md);同步发布于 [GitHub Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases))。
### v0.28.0-alpha.0(本地验证完成,未发布)
### v0.28.0-alpha.0(预发布)
- **支持线前移到 DSH 0.2.1-alpha.5+**:13 条 DSH peer 使用 `^0.2.1-alpha.5`,开发依赖与 CI / 安装脚本钉精确基线。0.2.0-rc.2 用户请固定 npm 已发布的 **v0.26.1**(v0.27.0 尚未发布);本 alpha 使用 `dsh-better-sidebar@0.28.0-alpha.0`,不是 `latest`。
- **宿主 Connection 准入**:HTTP/WS 路由统一调用 `ctx.connection.requestRejection(req)`,不再依赖已删除的 `webRuntime` 或插件自建信任例外。
- **移除 runtime invariants 接入**:上游删除 `@deepseek-ai/dsh-invariants` 与 `/invariant` 子路径,本插件同步移除 companion、类型与发布入口;压缩种子测试继续使用公开的 surface fold 和 seed validator。
- **当前执行目录接入**:文件 / Git / 终端与新建 sidechat 跟随会话 `working_directory`;live 读 workingDirectory,cold 用 sessionQuery all projections 并释放 lease,linked worktree 保持 base-keyed,新 sidechat seed 尾部盖章当前 cwd。
- **宿主伴随 API / 依赖**:补齐 `TerminalBlockLabels.commandLine(line)` 与 21 份词典;同步 Cordis `4.0.5`、schemastery `~3.18.5-alpha.2`、group `1.0.5-alpha.2` 与 include `1.0.10`,不直接钉 loader 或设置 override。alpha.5 优先用 package 的 `engines.dsh` 判断兼容性,本插件不新增该字段,继续用 13 条 DSH peers。
- **本地适配验证完成(未发布)**:真实 alpha.5 挂载 **13/13 通过**(2.6 min),aggregate 通过且无重复路由;typecheck、lint、build、consumer types、pack 新鲜通过,浏览器 consumer 不泄漏 Node 类型。默认 CI 入口与单 worker 全量重跑均为 **219 文件 / 2634 用例通过,17 跳过**;排查期间的并发 watch / GC 失败已不再构成阻塞,详见 [适配记录](docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md)。rg 引擎检查通过,fd 缺失与 Windows 原生验证未执行;peer 仅剩可选 better-locale 的 4 条旧 DSH 警告。
- **验证记录**:[发布整合验证](docs/plans/2026-10-17-alpha-release-validation.md) 收录最新 dev 的 221 文件 / 2681 用例单 worker 通过、真实 alpha.5 挂载与 Context 三态联动验证;[初始适配记录](docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md) 保留适配阶段证据。
- **提交图使用完整可用高度**:移除 `min(60vh, 460px)` 高度限制,更改区下方到固定底栏之间的空间全部分配给图谱;打开差异预览或缩放窗口时自动调整。长历史仍在图谱内部滚动,待提交文件很多时保留原有外层滚动,避免把整个页面撑高。
- **dsh-context 可选联动**:Context 侧栏入口可用时,在 Agent 详情、后台任务输出窗和会话标题栏提供诊断入口;后台任务仅查看明确的真实属主,不改变任务输出观察或停止命令的会话语义。跨会话先定位目标再打开 Context,复用其他分栏已有的标签;用户继续导航时取消,等待最多 10 秒。未安装、禁用或仅显示会话标签页时隐藏入口,不修改上下文、不恢复 Agent 执行,也不修改 dsh-context 偏好。全部入口共用 Cordis 作用域内的可选适配器,空闲时不新增轮询。
+4 -2
View File
@@ -4,14 +4,16 @@
>
> 📝 The Chinese [CHANGELOG](./CHANGELOG.md) is the authoritative, item-by-item record; this file carries the English summaries and has historically lagged behind it. Where the two disagree, the Chinese one is current.
### v0.28.0-alpha.0 (locally validated; unpublished)
### v0.28.0-alpha.0 (prerelease)
- **Support moves to DSH 0.2.1-alpha.5+**: 13 DSH peers use `^0.2.1-alpha.5`; development dependencies, CI and installers pin the exact baseline. DSH 0.2.0-rc.2 users should pin npm-published **v0.26.1** (v0.27.0 has not been published). Install this alpha explicitly as `dsh-better-sidebar@0.28.0-alpha.0`, not `latest`.
- **Native Connection admission**: HTTP/WS routes delegate to `ctx.connection.requestRejection(req)`, without the removed `webRuntime` service or plugin-owned trust exceptions.
- **Runtime invariants integration removed**: upstream removed `@deepseek-ai/dsh-invariants` and `/invariant` subpaths; the plugin removes its companion, types and package entry. Compaction seed coverage retains the public surface fold and seed validator.
- **Current working directory**: files, Git, terminals and new side chats follow session `working_directory`; live reads use workingDirectory, cold reads use sessionQuery all projections with lease disposal. Linked worktrees stay base-keyed; each new sidechat seed ends with a current-cwd stamp.
- **Companion API / dependencies**: supply `TerminalBlockLabels.commandLine(line)` in both consumers and synchronize all 21 dictionaries; update Cordis `4.0.5`, schemastery `~3.18.5-alpha.2`, group `1.0.5-alpha.2` and include `1.0.10`, without a direct loader pin or overrides. Alpha.5 prefers package `engines.dsh` for compatibility; this plugin leaves it absent and retains its 13 DSH peers.
- **Locally validated (unpublished)**: real alpha.5 mount **13/13 passed** (2.6 min), aggregate passed without duplicate routes; fresh typecheck, lint, build, consumer types and pack passed, without leaking Node types into the browser consumer. Both the default CI entry and single-worker full runs passed **219 files / 2634 tests, with 17 skipped**; earlier watch / GC failures under concurrency are resolved investigation history, retained in the [adaptation record](docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md). The rg engine check passed; fd was unavailable and native Windows verification was not run. Only four optional better-locale legacy DSH peer warnings remain.
- **Validation record**: [release integration validation](docs/plans/2026-10-17-alpha-release-validation.md) records 221 files / 2681 passing tests in single-worker mode, real alpha.5 mounting, and all three Context integration variants. The [initial adaptation record](docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md) preserves earlier adaptation evidence.
- **Git Graph fills the available height**: remove the `min(60vh, 460px)` cap and use the space between the changes area and the fixed footer. The graph adapts when the diff preview opens or the window resizes; long histories scroll within the graph, while large pending-change lists retain outer-page scrolling rather than stretching the whole page.
- **Optional dsh-context integration**: when the Context sidebar entry is available, provide diagnostic shortcuts in agent details, background-job output windows and the session header. Background jobs target only their explicit real owner, without changing the session semantics of output observation or stop commands. Cross-session navigation selects the target before opening Context and reuses an existing tab in another pane; further user navigation cancels the jump, with a 10-second maximum wait. Hide the entries when dsh-context is absent, disabled or exposing only session tabs. Do not modify context, resume agents or change dsh-context preferences; all entries share one optional Cordis-scoped adapter with no idle polling.
### v0.27.0
+4 -1
View File
@@ -95,11 +95,14 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett
## 🆕 Recent Updates
**v0.28.0-alpha.0 (locally validated; unpublished)**
**v0.28.0-alpha.0 (prerelease)**
- Adapt to DSH **0.2.1-alpha.5+**: use native Connection admission for HTTP/WS and remove the retired invariant companion and dependency
- Files, Git, terminals and newly created side chats follow the session’s current working directory
- The commit graph fills the available Git-panel height and adapts to the diff preview and window size
- Optional dsh-context diagnostic shortcuts in agent details, background-job output windows and the session header appear only when the Context entry is available
- **DSH 0.2.0-rc.2 users stay on npm-published v0.26.1**; v0.27.0 has not been published. Use the explicit alpha version above, not `latest`
- Validation history: [DSH alpha.5 adaptation record](./docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md) (before the latest dev integration; not the final release test counts)
**v0.27.0** - full release history at [Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases) · [CHANGELOG](./CHANGELOG_EN.md)
+4 -1
View File
@@ -95,11 +95,14 @@ dsh plugin --profile web add dsh-better-sidebar@0.28.0-alpha.0
## 🆕 最近更新
**v0.28.0-alpha.0(本地适配验证完成,未发布)**
**v0.28.0-alpha.0(预发布)**
- 适配 DSH **0.2.1-alpha.5+**:HTTP/WS 改用宿主 Connection admission,移除已废弃的 invariant companion 与依赖
- 会话执行目录变化时,文件 / Git / 终端与新建侧边对话跟随当前目录
- 提交图使用 Git 面板完整可用高度,随差异预览和窗口大小自动调整
- Agent 详情、后台任务输出窗和会话标题栏提供可选 dsh-context 诊断入口,仅在 Context 入口可用时显示
- **0.2.0-rc.2 用户留在 npm 已发布的 v0.26.1**;v0.27.0 尚未发布,alpha 请用上方精确版本命令,不要用 `latest`
- 验证历史:[DSH alpha.5 适配记录](./docs/plans/2026-10-16-dsh-0.2.1-alpha.5-adaptation.md)(合入最新 dev 之前的证据,不代表最终发布测试统计)
**v0.27.0** - 完整发布历史见 [Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases) · [CHANGELOG](./CHANGELOG.md)
@@ -0,0 +1,29 @@
# v0.28.0-alpha.0 发布整合验证
## 发布范围
用户确认 3080 的 alpha.5 适配试用通过后,要求包含远端 dev 新增修复再发布 alpha。发布候选以 `6417547` 合并本地适配 `5772280` 与远端 dev `24d2032`,包含 Context 可选诊断入口(`93c43b0`)和 Git 提交图填满高度修复(`38d94bd`),不遗漏尚未发布的 v0.27.0 内容。
版本为 `0.28.0-alpha.0`,DSH 基线为 `0.2.1-alpha.5`。GitHub Release 必须标记 prerelease,npm 使用 alpha dist-tag,不更改稳定 latest(发布前为 `0.26.1`)。
## 整合修改
- 变更日志唯一合并冲突保留双方条目,新修复归入本 alpha。
- 新增 Context e2e 原有 onboarding helper 不识别 alpha.5 Get started 对话框,改为重新导出既有共享 helper;不修改生产导航行为。
- 版本、peer、安装脚本和 lockfile 未被远端 dev 的旧 rc.2 基线覆盖。
## 新鲜验证结果
- `pnpm install --frozen-lockfile`:通过。
- `pnpm typecheck` / `pnpm lint`:通过。
- `pnpm test --maxWorkers=1`:221 个文件通过,2681 passed / 17 skipped(共 2698)。
- 默认并发 `pnpm test`:本机出现既有 fs.watch 等待事件超时(两次均为 1 例,其他 2680 例通过);未删除测试、未增加超时或修改产品以隐藏问题。远端 Linux/Windows CI 结果另行核对后才发布。
- `pnpm build` / `pnpm check:consumer-types` / `pnpm pack`:通过。
- `bash scripts/e2e-context.sh --variant all`:真实 `dsh-context@0.72.0` 在 alpha.5 下 dual、tab-only、no-context 三态全部通过;每个变体只执行属于自己的 1 项,其余 2 项按设计跳过,不发送模型请求。
- 普通真实 alpha.5 挂载:13 passed / 3 skipped(新增 Context 专用用例由独立 lane 执行),2.8 min;含 Git 图完整高度、原生重挂、文件/editor 懒加载与终端唯一性。
## 发布流程
主题分支整合验证 → 合入 dev 并推送 → 等待 Linux/Windows/plugin-mount CI → dev 合入 main → tag `v0.28.0-alpha.0` → GitHub prerelease → Release workflow 使用 npm Trusted Publishing / OIDC → 检查 npm alpha、latest 和 provenance。
此记录中的本地结果不代替远端 CI 或实际 npm 发布结果。3080 独立预览实例保留,3384 与真实用户 profile 不变。
+1 -33
View File
@@ -29,6 +29,7 @@ import { mkdirSync, writeFileSync } from 'node:fs'
import { join } from 'node:path'
import { expect, type APIRequestContext, type Locator, type Page } from '@playwright/test'
import { hostRpc } from './host'
export { dismissOnboarding } from './host'
/** The parent session the SPEC creates through `session/create` (the fixture
* plugin attaches to exactly this id — see the module header). */
@@ -104,39 +105,6 @@ export async function seedParentSession(api: APIRequestContext, workspacePath: s
})
}
/**
* Dismiss the keyless boot's onboarding takeovers, which mask the whole shell
* (the versioned welcome notice, then the provider-config dialog). Same shape
* as the other lanes' helper: wait (bounded) for one to appear, then click
* whatever is clickable until none remain.
* @param page - the lane's page.
*/
export async function dismissOnboarding(page: Page): Promise<void> {
try {
await expect
.poll(() => page.getByRole('button', { name: /^(Continue|Configure later)$/ }).count(), { timeout: 60_000 })
.toBeGreaterThan(0)
} catch {
console.warn('[e2e] no onboarding takeover appeared; proceeding without dismissal')
}
for (let round = 0; round < 8; round++) {
let dismissed = false
for (const name of ['Continue', 'Configure later']) {
const button = page.getByRole('button', { name, exact: true }).first()
if ((await button.count()) === 0) continue
try {
await button.click({ timeout: 4_000 })
dismissed = true
await page.waitForTimeout(1_000)
} catch {
// Masked by the takeover stacked above it; the next round tries the
// other button first.
}
}
if (!dismissed) break
}
}
/**
* Count the elements matching `selector` that INTERSECT the viewport. The host
* keeps a hidden copy of every retained session's chrome (translated out of