Skip to content

Commit 76cb320

Browse files
committed
fix: restore Workspace grouping on DSH rc.5 for 0.12.1
1 parent faa8e77 commit 76cb320

28 files changed

Lines changed: 347 additions & 36 deletions

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
本项目的显著变更记录在此文件中。版本号遵循 Semantic Versioning;在 `0.x` 阶段,minor 版本可能包含需要迁移的公开能力调整。
44

5+
## [0.12.1] - 2026-11-04
6+
7+
### Fixed
8+
9+
- 新增 DSH `0.2.1-rc.5` 官方 Workspace Client 的独立版本/包名/SHA-256 门禁与构建别名;实际 Host `dsh-agent@0.2.1-rc.5` 经 strict Remote topology 选择 `modern-rc5`,不再因精确 rc.2 判定而只显示官方未聚合侧栏。保留 rc.2、alpha、next 精确派生,未知 Host 仍官方降级。
10+
- rc.5 保留官方 blank 复用/并发合并、agentPreset 筛选及 `whenDraftExists` 草稿初始化语义,只共享稳定的 managed-row decoration transform,不套用 rc.2 factory。保留官方 slot 授权树、安全菜单与 owner guard、directoryPicker 惰性防环;CSS 资源按精确版本独立归属。
11+
- 新增 rc.2/rc.5 选择、strict codec、来源漂移、导航语义及真实 built Browser 聚合/标题/状态/CSS/Loader 启停回归。最终隔离全量测试 673 passed / 1 skipped;主工作区侧栏相关 43 项回归通过。用户确认重建 rc.5 客户端与 Web 前端后开发环境启动及版本显示正常;侧栏聚合尚无单独人工验收确认,真实 AI 与 Windows 全流程未验收。
12+
513
## [0.12.0] - 2026-11-02
614

715
本版新增仓库内 Project Skills symlink 安全快照,修复侧栏样式资源与打开工作目录,并将 DSH 安装要求从单个 RC 改为最低版本。构建基线仍为 `0.2.1-rc.2`;`0.2.1-rc.5` 允许安装但未完成实机验收,未知宿主保留官方侧栏。#11 原始双 Provider 异常仍未确认解决。Windows symlink 生命周期未实机验证。

‎NOTICE‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ dsh-git-worktree
22

33
The generated browser bundle includes software derived at build time from:
44

5-
@deepseek-ai/dsh-client-ui-workspace 0.1.2-rc.1
5+
@deepseek-ai/dsh-client-ui-workspace 0.2.1-rc.2
6+
@deepseek-ai/dsh-client-ui-workspace 0.2.1-rc.5
67
@deepseek-ai/dsh-client-ui-workspace 0.1.6-alpha.2
78
@deepseek-ai/dsh-client-ui-workspace 0.1.7-rc.2
89
Copyright (c) 2026 DeepSeek

‎README.en.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ See the [full usage guide](docs/USAGE.en.md) for detailed actions, recovery scen
8888

8989
Match the plugin version to your Harness version rather than installing the latest plugin on an older Harness.
9090

91+
**Unreleased source update:** adds an exact `0.2.1-rc.5` sidebar derivative alongside the independent rc.2/alpha/next sources. Unknown Hosts still use the official sidebar. Source and embedded-Browser jsdom regressions pass, not desktop or real rc.5 Host acceptance. Published `0.12.0` does not contain this fix; see [compatibility notes](docs/COMPATIBILITY.md).
92+
9193
`0.12.0` requires DSH `>=0.2.1-rc.2`, while the build baseline remains `0.2.1-rc.2`. Installation on `0.2.1-rc.5` is permitted but has not completed real-environment acceptance; unknown Hosts retain the official Workspace sidebar. Installation permission does not establish runtime compatibility.
9294

9395
The DSH `0.2.1-rc.2` adaptation included in `0.11.0` passed pre-release source compatibility checks. Browser, real AI conversation, desktop and Windows end-to-end acceptance for this combination remain incomplete. This historical validation is not acceptance evidence for `0.12.0` or newer Hosts. See the [compatibility notes](docs/COMPATIBILITY.md#english), [validation report](docs/compatibility/0.2.1-rc.2.md) and [0.12.0 release notes](CHANGELOG.md#0120---2026-11-02) for the scope.

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ flowchart LR
8888

8989
插件版本与 Harness 版本需要匹配,不建议在旧版 Harness 上直接安装最新版插件。
9090

91+
**未发布源码更新**:新增 `0.2.1-rc.5` 的精确侧栏派生,保留 rc.2/alpha/next 独立来源,未知 Host 仍用官方侧栏。已通过源码/内嵌 Browser jsdom 回归,不代表 desktop 或真实 rc.5 Host 验收;已发布的 `0.12.0` 不包含本次修复。见 [兼容性说明](docs/COMPATIBILITY.md)。
92+
9193
`0.12.0` 的 DSH 安装要求为 `>=0.2.1-rc.2`,构建基线仍为 `0.2.1-rc.2`;`0.2.1-rc.5` 允许安装,但尚未完成实机验收,未知宿主保留官方侧栏。允许安装不代表已验证运行时兼容性。
9294

9395
`0.11.0` 对应的 DSH `0.2.1-rc.2` 适配已通过发布前源码兼容检查,但尚未完成该组合的浏览器、真实 AI 对话、桌面端和 Windows 全流程验收。该历史验证不自动转为 `0.12.0` 或新宿主的验收证据;详细范围见[兼容性说明](docs/COMPATIBILITY.md#中文)、[验证报告](docs/compatibility/0.2.1-rc.2.md)与 [0.12.0 更新记录](CHANGELOG.md#0120---2026-11-02)。

‎docs/COMPATIBILITY.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
## 中文
1010

11+
### 未发布:0.2.1-rc.5 侧栏适配
12+
13+
当前未发布源码(包版本暂仍 `0.12.0`)为 `0.2.1-rc.5` 新增独立官方 Workspace 来源与包名/版本/SHA-256 门禁,Host 实际解析的 agent 版本通过 strict Remote `modern-rc5` 选择该 factory。rc.2 仍选原 `modern` factory;alpha/next 与未知 Host 官方降级保持。保留 rc.5 blank 复用、preset 筛选及草稿初始化,不用旧 factory 冒充新 Host。
14+
15+
本轮仅在隔离依赖树运行源码、实际 `lib/client.js` jsdom Browser 聚合/标题/状态、CSS 清理及真实 Cordis Loader 生命周期回归。开发 Host singleton 仍 rc.2,rc.5 alias 仅提供构建源码;未启动 rc.5 Host、未修改用户 desktop/配置、未做真实浏览器/AI/Windows 全流程。已发布 `0.12.0` 不含此修复。
16+
1117
**兼容性描述的是插件版本与 Harness 运行环境的组合,不是“只有最新 DSH 才能用”。** 新增一个版本的测试记录不会撤销旧组合的支持;未验证也不等于不兼容。
1218

1319
### 验证矩阵(2026-09-11)
@@ -77,6 +83,12 @@
7783

7884
## English
7985

86+
### Unreleased: 0.2.1-rc.5 sidebar adaptation
87+
88+
Unreleased source (package version still `0.12.0`) adds a separately name/version/SHA-256-gated official rc.5 Workspace factory. Host-resolved agent version travels through strict Remote topology as `modern-rc5`; rc.2 still selects `modern`. Alpha/next sources and unknown-Host official fallback remain intact. The rc.5 factory retains blank reuse, preset filtering and draft initialization rather than relabeling an old factory.
89+
90+
Validation uses an isolated dependency tree, source tests, actual emitted `lib/client.js` Browser aggregation/title/status and CSS jsdom tests, and real Cordis Loader lifecycle regressions. Host singleton dev dependencies remain rc.2; the rc.5 alias supplies build source only. No rc.5 Host startup, user desktop/config modification, real browser, AI or Windows end-to-end acceptance was performed. Published `0.12.0` does not include this fix.
91+
8092
**Compatibility belongs to a plugin/Host combination, not to “the newest DSH only.”** Testing a newer Host does not withdraw older support; untested does not mean incompatible.
8193

8294
| Plugin | Harness | Evidence and scope |

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dsh-git-worktree",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "Experimental Git worktree Session Targets for DeepSeek Harness with isolated sessions, review checkpoints, human-confirmed delivery, and safe recovery.",
55
"type": "module",
66
"main": "lib/index.js",
@@ -120,6 +120,7 @@
120120
"@deepseek-ai/dsh-client-ui-workspace": "0.2.1-rc.2",
121121
"@deepseek-ai/dsh-client-ui-workspace-alpha": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.6-alpha.2",
122122
"@deepseek-ai/dsh-client-ui-workspace-next": "npm:@deepseek-ai/dsh-client-ui-workspace@0.1.7-rc.2",
123+
"@deepseek-ai/dsh-client-ui-workspace-rc5": "npm:@deepseek-ai/dsh-client-ui-workspace@0.2.1-rc.5",
123124
"@deepseek-ai/dsh-commands": "0.2.1-rc.2",
124125
"@deepseek-ai/dsh-fs": "0.2.1-rc.2",
125126
"@deepseek-ai/dsh-session": "0.2.1-rc.2",

‎pnpm-lock.yaml‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ minimumReleaseAgeExclude:
3939
- '@deepseek-ai/dsh-client-ui-primitives@0.2.1-rc.2'
4040
- '@deepseek-ai/dsh-client-ui-workspace@0.1.2-rc.1 || 0.1.6-alpha.2 || 0.1.7-rc.2'
4141
- '@deepseek-ai/dsh-client-ui-workspace@0.2.1-rc.2'
42+
- '@deepseek-ai/dsh-client-ui-workspace@0.2.1-rc.5'
4243
- '@deepseek-ai/dsh-code-runtime@0.1.2-rc.1'
4344
- '@deepseek-ai/dsh-commands@0.1.2-rc.1'
4445
- '@deepseek-ai/dsh-commands@0.2.1-rc.2'

‎scripts/check-workspace-sidebar-version.mjs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ import {
77
import { readNextWorkspaceClient, NEXT_WORKSPACE_VERSION } from './workspace-sidebar-upstream-next.mjs'
88
import { readAlphaWorkspaceClient, ALPHA_WORKSPACE_VERSION } from './workspace-sidebar-upstream-alpha.mjs'
99

10+
import { readRc5WorkspaceClient, RC5_WORKSPACE_VERSION } from './workspace-sidebar-upstream-rc5.mjs'
11+
1012
const require = createRequire(import.meta.url)
1113
const locale = require('@deepseek-ai/dsh-client-locale/package.json').version
1214
if (locale !== WORKSPACE_LOCALE_VERSION) {
1315
throw new Error(`Workspace Sidebar compatibility gate failed: locale=${locale}, expected ${WORKSPACE_LOCALE_VERSION}`)
1416
}
1517
readOfficialWorkspaceClient()
18+
readRc5WorkspaceClient()
1619
readAlphaWorkspaceClient()
1720
readNextWorkspaceClient()
18-
console.log(`✓ Workspace Sidebar compatibility gate: ui-workspace ${WORKSPACE_UI_VERSION} + ${ALPHA_WORKSPACE_VERSION} + ${NEXT_WORKSPACE_VERSION} SHA-256, locale ${locale}`)
21+
console.log(`✓ Workspace Sidebar compatibility gate: ui-workspace ${WORKSPACE_UI_VERSION} + ${ALPHA_WORKSPACE_VERSION} + ${NEXT_WORKSPACE_VERSION} + ${RC5_WORKSPACE_VERSION} SHA-256, locale ${locale}`)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { createHash } from 'node:crypto'
2+
import { readFileSync } from 'node:fs'
3+
import { createRequire } from 'node:module'
4+
import { decorateOfficialWorkspaceClient } from './workspace-sidebar-upstream.mjs'
5+
import { materializeWorkspaceFactory } from './workspace-sidebar-upstream-next.mjs'
6+
import { ownWorkspaceStyles } from './workspace-sidebar-resources.mjs'
7+
8+
export const RC5_WORKSPACE_VERSION = '0.2.1-rc.5'
9+
export const RC5_WORKSPACE_SHA256 = '9c2c17a66a5c20de00ac2852cb76debb5237439e97f877403bcaa2a471086544'
10+
export const RC5_WORKSPACE_VIRTUAL_ID = 'virtual:dsh-official-workspace-client-rc5'
11+
export const RESOLVED_RC5_WORKSPACE_VIRTUAL_ID = `\0${RC5_WORKSPACE_VIRTUAL_ID}`
12+
13+
export function verifyRc5WorkspaceClient(packageJson, source) {
14+
if (packageJson.name !== '@deepseek-ai/dsh-client-ui-workspace' || packageJson.version !== RC5_WORKSPACE_VERSION) {
15+
throw new Error(`Unsupported official Workspace source ${packageJson.name}@${packageJson.version}`)
16+
}
17+
const digest = createHash('sha256').update(source).digest('hex')
18+
if (digest !== RC5_WORKSPACE_SHA256) throw new Error(`Official Workspace Client rc.5 hash drifted: ${digest}`)
19+
return source
20+
}
21+
22+
export function readRc5WorkspaceClient() {
23+
const require = createRequire(import.meta.url)
24+
const packageName = '@deepseek-ai/dsh-client-ui-workspace-rc5'
25+
return verifyRc5WorkspaceClient(
26+
JSON.parse(readFileSync(require.resolve(`${packageName}/package.json`), 'utf8')),
27+
readFileSync(require.resolve(`${packageName}/client`), 'utf8'),
28+
)
29+
}
30+
31+
// The managed-row seams are identical in these two pinned sources. Reuse only
32+
// that fail-closed transform, never the rc.2 factory/source. In particular rc.5's
33+
// connectBlank, preset-aware createInWorkspace and startSession remain rc.5.
34+
export function decorateRc5WorkspaceClient(source) {
35+
return decorateOfficialWorkspaceClient(source)
36+
}
37+
38+
export function materializeRc5WorkspaceClientModule() {
39+
return materializeWorkspaceFactory(ownWorkspaceStyles(
40+
decorateRc5WorkspaceClient(readRc5WorkspaceClient()), RC5_WORKSPACE_VERSION, 4,
41+
))
42+
}

0 commit comments

Comments
 (0)