Commit Graph
406 Commits
Author SHA1 Message Date
winewill edf37e8445 Merge pull request #8175 from deepseek-harness/feat/windows-runner-boot
feat(desktop): 支持 Windows 标准账户登录前启动打包 runner
2026-11-19 18:06:27 +08:00
winewill 396593b9fd Revert network home expansion and retain uninstall diagnostics 2026-11-19 14:44:58 +08:00
winewill 25c10e7fd1 Handle network uninstall home paths and reap timed-out fixtures 2026-11-19 14:17:59 +08:00
winewill a5d109cb0d Merge master into Windows uninstall registry fix 2026-11-18 18:13:06 +08:00
winewill 9f7be2ab00 Merge pull request #8056 from deepseek-harness/fix/windows-installer-drag-completion
fix(desktop): 修复安装完成时拖动导致的输入卡死及关闭按钮
2026-11-18 16:48:16 +08:00
winewill b2f8b99d21 fix(desktop): normalize uninstall targets and report registry read failures 2026-11-18 16:12:40 +08:00
winewill 2a840de9d0 fix(desktop): clean Windows entries that still target the removed installation 2026-11-18 15:16:47 +08:00
winewill b69a750b0f fix(desktop): show installer completion during native dragging 2026-11-18 12:10:03 +08:00
winewill 776844563f fix(desktop): require explicit uninstall registry keys 2026-11-18 10:31:00 +08:00
Turtleandimccyu 24c729253a fix(desktop): refuse to move state that a running Harness Dev owns
Report the underlying error when creating .desktop-dev or moving a
directory fails.

Co-authored-by: imccyu <[email protected]>
2026-11-17 19:28:31 +08:00
Turtleandimccyu c0399fb981 fix(desktop): keep development Harness state out of .desktop-build
pnpm run clean removes apps/desktop/.desktop-build, which held the
development Harness home and Electron user data, so cleaning deleted
development Sessions, settings and credentials. Store them under
apps/desktop/.desktop-dev and move existing state there on launch.

Fixes #8658

Co-authored-by: imccyu <[email protected]>
2026-11-17 19:15:02 +08:00
winewill fcb105b778 fix(desktop): remove orphan PATH after uninstall 2026-11-17 16:47:50 +08:00
winewill c0336fbdae fix(desktop): clean old command registration on relocation 2026-11-17 11:07:55 +08:00
winewill 45d6ae9ff2 fix(desktop): handle long paths during upgrade uninstall 2026-11-16 18:25:53 +08:00
winewill 99d881cd16 Merge master into fix/windows-uninstall-registry 2026-11-13 18:26:51 +08:00
winewill d54a04e902 fix(desktop): report uninstall residue and allow scoped cleanup 2026-11-13 18:21:16 +08:00
imccyu 71753fdf91 refactor(connection): add connection auth provider for remote connection (#8266)
* refactor(connection): extract peer authentication providers

* test(connection): cover provider lifecycle and satisfy package gates

* fix(packaging): publish authentication provider locale resources

* test(auth): use runtime login output and cover gateway admission

* fix(auth): preserve Worker requests and migrate Desktop fixtures

* refactor(auth): centralize route admission with required policy

* fix(release): align authentication providers with rc.2

* refactor(connection): keep peer lookup and source policy private

* test(gateway): cover centralized upgrade rejections

* fix(ci): authenticate homepage compression probe

* refactor(auth): let Token own API socket lifecycle

* fix(auth): prevent caching admission refusals and clarify ownership

* refactor(web): collect provider entry URLs after readiness

* refactor(webserver): name the shared entry URL event

* refactor(connection): provide authentication as a nested service

* fix(web-app): restore startup publication defaults

* fix(auth): scope web events and preserve callback flows

* docs(auth): record the implemented provider architecture

* fix(auth): require owner access for administrative routes
2026-11-12 23:14:32 +08:00
winewill e71f25fc4b fix(desktop): isolate split artifact uploads and address review 2026-11-12 16:43:02 +08:00
winewill d612d51b5a feat(desktop): split macOS installer artifacts for independent downloads 2026-11-12 16:42:47 +08:00
winewill 9812fa5854 fix(desktop): read Actions EdgeOne zone from publisher config 2026-11-12 16:42:20 +08:00
winewill 046df1b122 Merge master into desktop publisher and synchronize workspace version 2026-11-12 11:52:56 +08:00
creatixchu e7950b0ca8 Align the macOS Computer Use provider package and entry names 2026-11-11 11:43:44 +08:00
winewill 8074bda9f4 feat(desktop): summarize Windows packaging parameters 2026-11-10 15:09:08 +08:00
winewill d28a0ed804 fix(desktop): verify long Windows paths with PowerShell 7 2026-11-10 14:43:34 +08:00
winewill 0fa66b81f2 fix(desktop): let Windows network probes exit naturally 2026-11-09 17:42:36 +08:00
winewill 10ae2b3911 fix(desktop): address Windows boot runner review findings 2026-11-09 16:51:15 +08:00
winewill 6f6c8f1400 feat(desktop): support Windows pre-login packaging runners 2026-11-09 15:10:31 +08:00
yudshj 0f96381169 fix(desktop): 打包冒烟检查不再要求 Office 技能提供 path
Office 技能 provider 只提供 resourceBase,从不设置可选字段 path,因此 smoke-runtime.ts 的判定在所有平台上都必然失败。判定改为只检查行为结果:4 个 Office 技能都能列出,且正文非空。

判定抽成 assertOfficeSkillsLoadable,由新增单测和 office-resources.e2e.ts 共用。判定与真实 provider 不一致时,PR 阶段的 E2E 就会失败。

Fixes #7998
2026-11-06 08:12:51 +08:00
winewill 939d83ab9c fix(desktop): validate isolated publisher entrypoints and checkout boundaries 2026-11-05 17:45:31 +08:00
winewill af15cdf6c2 fix(desktop): clean owned Windows registrations on manual uninstall 2026-11-05 17:37:40 +08:00
winewill 3e6916a2d3 refactor(desktop): isolate publisher workspace for lightweight rollout 2026-11-05 17:24:15 +08:00
winewill 435e273102 Merge pull request #7883 from deepseek-harness/feat/windows-restart-banner
Show Windows installation status during desktop update restarts
2026-11-05 15:23:07 +08:00
winewill 5c464b8f25 fix(desktop): harden optional restart status rendering 2026-11-05 14:16:01 +08:00
winewill ae090f028b Merge pull request #7884 from deepseek-harness/feat/desktop-rollout-website
feat(desktop): add rollout and website publication workflow
2026-11-05 12:18:06 +08:00
winewill 77cd0c8f03 fix(desktop): disclose website installer replacement 2026-11-05 11:57:27 +08:00
winewill e9e835a7d4 fix(desktop): clarify independent website publication 2026-11-05 11:39:30 +08:00
yudshj 9df26413ee refactor(office): Office 技能统一读取包内 assets,移除包外 office-skills 拷贝与 DSH_BUNDLED_OFFICE_SKILLS
- web-app、sdk-app 的 skill-office 不再覆盖 assetRoot;pythonEnvironment 不变
- Desktop 与 Python SDK 打包不再生成 office-skills 资源目录,删除 prepareOfficeSkillAssets 与 skillSource
- Desktop 打包 smoke 校验 4 个 Office 技能可从运行时归档列出并加载
- 同步测试、README、Agent Note,新增升级指南 office-skill-resources
2026-11-04 13:25:24 +00:00
yudshj e90954631e refactor(desktop): primaryRuntime 保持 Host argv 传入,由 desktop-host 写入 DSH_PRIMARY_RUNTIME,不再升级 Host 协议版本
- main.ts / host-process.ts / host-protocol.ts 恢复 master 的 argv 布局与协议版本 4
- desktop-host 在环境快照和 profile 求值前把 argv[4] 写入 DSH_PRIMARY_RUNTIME
- 相关测试、smoke 脚本与 fixture 恢复按构造参数传入 primaryRuntime
- 删除 README 与升级指南中「内置终端继承 DSH_PRIMARY_RUNTIME」的不实说明(子进程会清除 DSH_* 变量)
2026-11-04 18:18:02 +08:00
yudshj d7ae76a92b refactor(office): 渲染图片沿用附件实际媒体类型,收窄 office-kit 冗余接口
- office_render 返回存储规范化后的 mediaType(JPEG/WebP),复用 ImageAttachmentRef 字段并补回归测试
- 删除无生产消费者的 office-kit/locate 公开子路径与 unpackedPath 导出
- tool-office 复用 office-kit 格式与扩展名类型
- 删除新操作结果的 generation 与请求的 priority 字段
- 删除 tool-office 入口无人使用的结果类型重导出
2026-11-04 18:17:59 +08:00
yudshj 012088543a fix(office): PDF 导出后不再渲染,合并 DSH_BUNDLED_PRIMARY_RUNTIME 到 DSH_PRIMARY_RUNTIME
- office 路由技能:PDF 导出写明验收(复制的文件非空且以 `%PDF-` 开头)并在此停止;保留排版类任务主动渲染。office 工具让渲染只差一次调用后,模型常在导出后渲染 result.pdf 验收,e2e「exports PDF」因此失败。
- office-pptx / office-xlsx 删去不提供操作的免责句。
- Desktop、SDK 与 web-app 配置只读 DSH_PRIMARY_RUNTIME,空值视为未设置;SDK 启动器在用户未设置时才填入下载缓存路径。
- e2e 断言附带工具调用诊断;render 检测改用记录的 office 调用,新增 render-context.spec.ts。
- 同步 office 快照、README 与升级指南。
2026-11-04 18:17:58 +08:00
yudshj 50ba635949 feat(office): Office 操作改为常驻的原生 office 工具
- 新包 @deepseek-ai/dsh-tool-office 提供常驻的 office 工具(render / convert / recalculate),由 office-kit 在 Host 中直接调用 Kit 的 JS API;标准模式与 PTC 通过同一个工具调用
- render 的页面图片直接进入工具结果(有数量、像素与字节上限);convert / recalculate 的结果写入 office-kit 按 Session 划分的私有输出目录,由模型用 shell 复制到工作区,fs 与 Host 代码不写用户工作区
- 删除为 shell 执行 Kit CLI 而存在的代码:skill-office 的 node / cli / kitRoot、resolveKitCli、DSH_BUNDLED_OFFICE_CLI / DSH_BUNDLED_OFFICE_NODE / DSH_BUNDLED_RUNTIME_ROOT 与 Electron 下的独立 Node 检查;打包 smoke 改为经 office-kit 真实渲染、转换与重算
- office 由 web-app 的 standard / ptc 预设与 sdk-app 挂载,minimal 不挂载;操作技能正文与目录描述指向 office 工具
- 新增 Agent Note,部分取代 progressive-office-skills 的 shell 执行决定;同步 README、子系统页、catalog 与升级指南(含已保存预设的迁移步骤)

本 PR 的 snapshot 统一在这个提交里重新生成,前 4 个提交中的 snapshot 不一定和那一步的代码对应。
2026-11-04 18:17:58 +08:00
yudshj a220e017b5 refactor(office): 合并为 office-kit,Kit 缺失时降级而非加载失败
- Kit CLI 由 office-kit/locate 在 Host 中定位(含 ASAR 映射与可选 root 越界检查),删除 Desktop 壳的 office-cli 与诊断文件;生产版 Desktop 由壳通过 DSH_BUNDLED_RUNTIME_ROOT 显式传入 Kit 根目录,开发版与 Web 不检查
- office-to-pdf 与 office-kit-resolver 合并为 @deepseek-ai/dsh-office-kit,由同一包定位 Kit 并提供转换服务
- Kit 缺失时 provider 照常注册,转换请求以 OfficeKitError unavailable 拒绝,之后安装 Kit 无需重载
- 类型统一使用 OfficeKit 前缀(OfficeKitRequest/Result/Priority/Key),同步消费方、文档、升级指南与 catalog
- 处理 ds-review-bot 意见,并更新 unknown 断言基线

本 PR 的 snapshot 统一在这个提交里用 keyless refresh 重新生成,前 3 个提交中的 snapshot 不一定和那一步的代码对应。
2026-11-04 18:17:57 +08:00
yudshj ee06bf3f9b fix(office): 升级 LibreOffice Kit 到 0.2.3,Kit CLI 定位失败时隔离并保留技能
- 将 Kit 引擎包解析提取为 office-engine-resolver,并与 master 的发布配置对齐
- LibreOffice Kit 升级到 0.2.3 正式版
- Desktop 的 Office CLI 改由 skill-office 解析 Kit,去掉 desktop-host 对 Kit 的依赖
- Kit 缺失时给出可操作错误;Office CLI 定位失败时隔离错误并保留 Office 技能
- 按 Kit 0.2.3 的 helper 授予 macOS JIT 权限,并按新 Host 签名转发夹具参数
2026-11-04 18:17:57 +08:00
yudshj 498d436db5 fix(office): 技能文件缺失时不再阻止 Desktop Host 启动,Office 改由 Desktop profile 挂载
- skill-office 在技能文件缺失或元数据解析失败时降级为持久失败,不再阻止 Desktop Host 启动
- Office 改由 Desktop profile 的 yaml 挂载,载体路径由 Desktop 壳通过 Host 环境传入
- 升级 LibreOffice Kit 到 rc.4,移除 Desktop Host 的引擎钩子,runtimeArchivePath 内联到 cli.ts 并删除 office-engine.ts
- 按平台原生路径和当前 Host 参数布局更新 web-app 与 desktop-host 测试夹具
2026-11-04 18:17:57 +08:00
winewill 9c17f9c020 fix(desktop): preserve rollout routing and website recovery 2026-11-04 17:43:19 +08:00
winewill 7cc43b47c1 feat(desktop): add rollout and website publication workflow 2026-11-04 17:29:11 +08:00
winewill 772d3714c6 Exercise Windows restart status process isolation in installer tests 2026-11-04 16:45:58 +08:00
winewill fd39e6593b Show themed Windows restart status in an isolated process 2026-11-04 16:45:54 +08:00
winewill 0d03fb3ca3 Merge master into desktop channel version policy 2026-11-04 15:30:38 +08:00
winewill f823eb9c60 Merge pull request #7864 from deepseek-harness/feat/desktop-staging-percentage
feat(desktop): 支持发布表单配置更新灰度比例
2026-11-04 15:23:47 +08:00