Repository navigation
Releases: chenshijun900730-bit/deepseek-harness-software-OPC
Release list
v1.2.1 · 修复 rc.7 宿主插件加载报错 / Fix Plugin Load Failure on rc.7 Host
🔧 v1.2.1 · 修复 rc.7 宿主上的插件加载报错 / Fix Plugin Load Failure on rc.7 Host
问题 / Issue
在 DSH 0.1.0-rc.7(当前 npm 最新版)上,创建公司会话后 Web 界面报 Failed to load plugins:software-company-r2 ... loaded without registering,总监面板/画布无法加载。
On DSH 0.1.0-rc.7 (current latest on npm), creating a company session shows Failed to load plugins: software-company-r2 ... loaded without registering, and the director panel/canvas fails to load.
根因 / Root Cause
company-r2/client.js 的客户端注册 id 仍是旧的相对路径形式 './packages/company-r2',而宿主 boot graph(rc.5 与 rc.7 一致)期望与挂载名一致的裸包名 software-company-r2。id 不匹配导致宿主判定"bundle 未注册"。
The client registration id in company-r2/client.js was still the legacy relative-path form './packages/company-r2', while the host boot graph (identical in rc.5 and rc.7) expects the bare package name software-company-r2 matching the mount name. The mismatch made the host treat the bundle as "loaded without registering".
该问题由一次真实的新用户下载安装实测发现(GitHub 克隆 → INSTALL.md 三步安装 → 隔离实例启动 → 创建会话)。
Found by a real fresh-install test: clone from GitHub → 3-step INSTALL.md setup → isolated instance start → session creation.
修复 / Fix
注册 id 改为裸包名 software-company-r2(与 company-panel 的既有模式一致)。rc.5 / rc.6 / rc.7 均兼容。
Registration id changed to the bare package name software-company-r2 (same pattern as company-panel). Compatible with rc.5 / rc.6 / rc.7.
✅ 验证 / Verification
干净环境(DSH_HOME 隔离 + DSH 0.1.0-rc.7 + 端口 14080)实测:
Verified in a clean environment (isolated DSH_HOME + DSH 0.1.0-rc.7 + port 14080):
- 31/31 单元测试通过 / 31/31 unit tests pass
- preset 被宿主发现,模式选择器显示「Software Company 公司模式」/ preset discovered; "Software Company" shown in the preset selector
- 🏢 Company 胶囊出现,面板与画布正常渲染 / 🏢 Company capsule appears; panel and canvas render correctly
- 创建公司会话成功,
/company-api/sessions、/company-api/canvas、/company-api/agent-transcript(v1.2.0 新接口)全部返回 JSON / company session created;/company-api/sessions,/company-api/canvas, and/company-api/agent-transcript(new in v1.2.0) all return JSON - 修复后重测:
Failed to load plugins横幅消失,画布组织视图正常 / after the fix: theFailed to load pluginsbanner is gone and the org view renders
⚠️ 升级注意 / Upgrade Notes
从 v1.2.0 升级:更新 preset 后重启 DSH 并刷新浏览器页面。
Upgrading from v1.2.0: after updating the preset, restart DSH and refresh the browser page.
v1.2.0 · 子部门实时思考/对话可见 + 画布交接连线常驻 + 面板主题选择 / Live Department Chat · Persistent Handoff Links · Panel Themes
✨ v1.2.0 · 子部门实时思考/对话可见 / Live Department Thinking & Chat
子部门在接到项目总控要求执行时,总监现在能实时看到它们的思考与对话——像看主界面一样,边生成边显示。
When a department is dispatched by the project coordinator, the director can now watch its thinking and conversation in real time — streaming in as it is generated, just like the main chat view.
🆕 新增 / New
- 子部门实时思考/对话(核心)
Live department thinking & chat (headline feature)- 新接口
/company-api/agent-transcript:存活会话实时读、已结束会话读持久日志
New endpoint/company-api/agent-transcript: real-time reads for active sessions, persistent-log reads for finished ones - 主界面右下角自动浮出「💭 部门实时对话」对话坞:聊天气泡、Markdown、Think 思考行、工具调用+结果、流式输出(✍️ 正在输出▍);可拖拽/折叠/✕(✕ 后下一次新调用自动再弹出)
A floating "💭 Department Live Chat" dock auto-pops at the bottom-right of the main UI: chat bubbles, Markdown, Think lines, tool calls + results, streaming output (✍️ typing▍); draggable / collapsible / dismissible — after ✕ it reappears automatically on the next new dispatch - 🏢 Company 面板顶部同步直播区;点 Tokens/子代理行或对话卡片看完整转录
A mirrored live zone at the top of the 🏢 Company panel; click Tokens / sub-agent rows or chat cards for the full transcript - 总监大画布调用卡新增「💭 查看实时思考/对话」模态
Canvas call cards gain a "💭 View live thinking / chat" modal
- 新接口
- 面板主题选择:🌑 深色 / ☀️ 浅色 / 🌓 跟随系统,选择持久化,画布同步换肤
Panel theme switcher: 🌑 dark / ☀️ light / 🌓 follow-system, choice persisted, canvas re-skins in sync
🔧 修复与优化 / Fixes & Improvements
- 对话坞/直播区流式重绘(思考文字逐段实时增长,不再只显示第一帧)
Streaming redraw for the dock / live zone — thinking text grows segment by segment instead of freezing at the first frame - 画布文件交接连线常驻:绿=已完成、橙=下一步、灰虚=未开始,任务完结后不再消失;拖拽部门节点时连线实时跟随
Canvas file handoff links are now persistent: green = done, orange = next, gray dashed = not started; they no longer vanish when a task finishes, and they follow node drags in real time - 画布默认显示,「显示详细信息」按钮切换到任务/Tokens/子代理列表(再点返回画布);列表不再被画布挤压
Canvas shows by default; the "Show details" button toggles to the task / Tokens / sub-agent list (click again to return); the list is no longer squeezed by the canvas - 空会话自动退回「全部」视图并提示(修复作用域回退循环)
Empty sessions auto-fall back to the "All" view with a hint (fixes a scope-fallback loop)
✅ 验证 / Verification
- 31 个单元测试全过(新增 8 个转录单测);真实持久日志与运行中实例逐项实测通过
All 31 unit tests pass (8 new transcript tests); verified end-to-end against a real persistent log and a live running instance
⚠️ 升级注意 / Upgrade Notes
- 需重启 DSH(新 API 由公司引擎注册)+ 刷新浏览器页面
Restart DSH (the new API is registered by the company engine) and refresh the browser page
v0.1.2 — 画布跟随系统主题 + 干净环境路由修复
新特性
- 画布主题跟随系统(
presets/software-company/packages/company-r2/web/canvas.html)- 画布页全面引入 CSS 变量 +
prefers-color-scheme:深色/浅色自动跟随系统外观,系统切换即时生效、无需刷新 - 结构面(画布底色、点阵、栏条、侧栏、抽屉、弹窗、图例)双主题适配;状态色(绿/紫/蓝/橙)在两主题下分别调校对比度
- 节点卡保持深色「贴纸」风格,浅色画布上依旧清晰可读
- 画布页全面引入 CSS 变量 +
重要修复:DSH 0.1.0-rc.6 干净环境路由注册失效
在全新 npm 安装的 @deepseek-ai/dsh@0.1.0-rc.6 上实测发现两个静默失败(胶囊照常出现,但功能面全断):
inject未声明webServer:rc.6 起ctx.get('webServer')必须先在inject声明,否则返回undefined,/company与/company-api路由注册整段被跳过。company-panel与company-r2均已补声明。- 符号链接穿透:按文档把 company-panel 符号链接进
profiles/web/node_modules后,rc.6 加载器不穿透符号链接,../company-r2/web/解析到不存在的位置导致canvas.html missing。现先realpathSync回 preset 真实目录再解析。
修复后干净环境验证:/company 画布页与 /company/static/* 正常服务,深浅两主题渲染正确(见下方截图)。
其他
- 两个包版本 1.0.0 → 1.1.0
- company-r2 既有 19 项单元测试全部通过
- README「总监看板」补充主题特性说明
v0.1.1 — 干净环境安装体验修复(文档)
基于一次「干净 DeepSeek Harness 环境」全流程实测(隔离 HOME、全新 npm 安装、逐步按 INSTALL.md 执行)反馈的 4 个安装体验问题,全部以文档修复落地:
修复内容
- company-panel 挂载提为主流程必做步骤:此前埋在「迁移」章节,新用户极易漏做——漏做后 preset 本体正常加载,但右上角不出现 🏢 Company 胶囊且无任何报错提示。现改为「preset 安装」第 3 步,含完整
cordis.patch.yml片段与符号链接命令。 - 新增端口冲突说明:
dsh web默认监听127.0.0.1:3080,与已运行实例冲突时报EADDRINUSE直接退出;文档补充--port换端口用法(如dsh web --port 14080)。 - 新增 npx 备选路径:
npx @deepseek-ai/dsh web对网络环境敏感、个别情况下静默失败;补充更稳的全局安装方式npm install -g @deepseek-ai/dsh+dsh web。 - 新增 npm allow-scripts 警告说明:新版 npm 拦截 node-pty 等原生包安装脚本的警告不影响启动,异常时用
npm approve-scripts放行。
其他
- 常见报错从 4 条扩到 7 条(allow-scripts / EADDRINUSE / Company 胶囊缺失排查)。
- README 快速开始同步:补 clone 步骤、端口提示、company-panel 挂载摘要,完整细节指向 INSTALL.md。
preset 功能面无变化,纯文档修复版本。
v0.1.0 — 软件公司模式 preset 首发版
首个公开发布。
- preset 端口化:去除绝对路径,可部署到任意用户目录
- 总监大画布:蓝色待命全量口径修复 + 调用卡叠加恢复
- INSTALL.md 安装指南(DSH 宿主 + preset + 常见报错 + 迁移)
- 演示视频 demo-panel.mp4(本附件,README 内嵌播放源)