适配 Harness 0.1.2-alpha.3 - #264
Open
yaojin3616 wants to merge 28 commits into
Open
Conversation
重命名 alpha.1 -> alpha.3 并重建 18 个 hunk: - Seat CSS hash _4FiJda_ -> YgMYBq_,picker/search/awesome 类改挂 AgentPresetSeat_module_css_default - Section 追加类沿用桌面命名空间 rtSEdW_(未随上游变化) - 丢弃 builtInGroup/customGroup i18n 键(alpha.3 已原生提供) - 新增本地 messageOf 助手(alpha.3 产物不再内联该函数) - onSelect 的 Awesome 链接分支保留(绕开上游 select 失败 toast)
Contributor
Author
|
最新 Windows x64 检查中,本 PR 新增的 工作流最终失败在刚合入 |
yaojin3616
force-pushed
the
claude/harness-alpha3-adapt-adfd61
branch
from
September 1, 2026 11:16
709e48e to
f13001b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
将 dsh-desktop 从锁定的 Harness
dsh-v0.1.2-alpha.1升级到dsh-v0.1.2-alpha.3(commitdd6322d)。跳过 alpha.2,直接对比 alpha.1 → alpha.3。上游仍未发布到 npm,继续用仓库内file:tarball 桥接。详见
docs/harness-0.1.2-alpha.3-upgrade.md。主要改动
packages/harness-0.1.2-alpha.3/(9 vendor + 244 dsh tarball),删除旧的packages/harness-0.1.2-alpha.1/package.json全部@deepseek-ai/*切到 alpha.3;删除上游已移除的dsh-agent-spine-demo;5 个新增上游闭包包(dsh-deque、dsh-util-time、dsh-util-values、dsh-client-ui-schedule、dsh-session-turn-outline)提升为file:直接依赖;3 个桌面插件包 peer 范围对齐^0.1.2-alpha.3;lockfile 重生成_2WBGbq_→Ydf5zq_、workspacekoIWyW_→_zvJpq_、settings-modelsuVX9wq_→A_4Mua_/oGvYtW_→_2CJT8a_、agent-preset_4FiJda_→YgMYBq_);交还给上游的能力(submitLabelKeyprop、builtInGroup/customGroupi18n、onboardingapi→operations);顺带修掉 alpha.1 补丁自身的 dual-hash bug 和 picker 类误挂dsh-api-session-controller统一处理删除 RPC 和普通 Agent 释放;JSONL persistence 删除权威会话记录;workspace registry 清理会话索引。工作区文件保留,UI 明确提示不可撤销;子 Agent 或其他 capability 持有的会话拒绝删除session-persistence-sqlite排除项src/main/**一行未改);上游仅给错误码加了gateway/前缀,桌面端不消费。永久删除是桌面补丁新增的 Typert RPC,不改变现有桥接端点验证
npm ci:19 个 patch-package 补丁全部干净应用npm test:76 files / 569 tests,0 失败npx vitest run test/session-delete-patch.test.ts:9 tests,0 失败;覆盖补丁存在性、双语危险提示和 JSONL 精确删除npm run typecheck:通过npm run build:通过scripts/verify-harness-auth.mjs(401 → 303 → 200);实际启动 Electron(harness web127.0.0.1:43128返回 200,profile 中 4 个桌面插件全部挂载,无 plugin-recovery)剩余工作
上游发布到 npm 后:
package.json换回语义化版本、删除packages/harness-0.1.2-alpha.3/、从真实 registry 重生成 lockfile、重跑验证。