@michengai/dsh-agency-agents 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/CHANGELOG.zh-CN.md +7 -0
- package/README.md +36 -9
- package/README.zh-CN.md +36 -9
- package/lib/client.js +18 -10
- package/lib/{index-DWOSJ7Xi.d.ts → index-LlkEql-u.d.ts} +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/remote.d.ts +1 -1
- package/lib/remote.js +1 -1
- package/lib/{src-DOXxrqfc.js → src-9NxK49RV.js} +276 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
This file records features and upgrade boundaries. npm and GitHub Releases remain the publication source of truth.
|
|
6
6
|
|
|
7
|
+
## 1.2.11 - 2026-10-23
|
|
8
|
+
|
|
9
|
+
- **Add dedicated primary sidebar entry**: Support enabling a persistent sidebar entry via **Plugins → @michengai/dsh-agency-agents** config card (disabled by default). Clicking the sidebar entry opens the full 331-expert roster and team collaboration editor in a spacious 960px centered workspace view, removing viewport scrolling constraints in narrow settings dialogs. Safely reverts to default views when disabled.
|
|
10
|
+
- **Support independent online update toggle and platform locking**: Provide an "Online Updates" switch (enabled by default) to dynamically show or hide update checks and version badges. Supports enterprise environments locking updates via Cordis static configuration (`updater: false`).
|
|
11
|
+
- **Support reverse proxy deployment with base URI resolution**: Automatically resolve API and update endpoints against `document.baseURI`, preventing 404 errors when hosted behind prefix-stripping reverse proxies (e.g. `/app/dsh/`).
|
|
12
|
+
- **Harden endpoint security and volatile settings configuration**: Register runtime settings as volatile fields for seamless host mutations, enforce client token verification and content-type checks on settings routes, and handle oversized payloads without connection hanging.
|
|
13
|
+
|
|
7
14
|
## 1.2.10 - 2026-10-22
|
|
8
15
|
|
|
9
16
|
- Fall back to English when host locale preference is unselected: align host locale resolution with `@deepseek-ai/dsh-client-locale` by resolving `zh` and `zh-*` to Chinese and all other values (including unselected `undefined` or retrieval exceptions) to English, preventing Chinese expert names, tool descriptions, and durable subagent descriptor labels in English browser environments (PR #30).
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
本文件记录版本功能与升级边界。正式发布状态以 npm 和 GitHub Releases 为准。
|
|
6
6
|
|
|
7
|
+
## 1.2.11 - 2026-10-23
|
|
8
|
+
|
|
9
|
+
- **新增主导航侧边栏常驻入口**:支持在主界面侧边栏「插件」→ `@michengai/dsh-agency-agents` 详情页开启「侧边栏入口」开关(默认关闭)。开启后左侧主导航栏常驻「专家」图标,点击可在主工作区以 960px 居中大面板完整浏览 331 名专家全库与专家团队协作流编排,彻底告别设置弹窗视口受限;关闭时自动安全切回默认视图。
|
|
10
|
+
- **新增在线更新独立控制开关与平台级锁定**:在插件配置卡片中提供「在线更新」开关(默认开启),关闭后即时隐藏更新检查入口与版本提示,接口自动拦截更新请求;支持企业环境通过配置 `updater: false` 进行平台级只读锁定。
|
|
11
|
+
- **反向代理部署无缝兼容**:自动相对页面基准地址(`document.baseURI`)解析 API 端点,支持无损部署在带路径前缀的反向代理(如 `/app/dsh/`)之后,避免更新检查丢失前缀报 404。
|
|
12
|
+
- **端点防护加固与实时配置完善**:补齐配置写入的实时(volatile)生效支持,增强设置接口的客户端来源标记与类型安全防御,杜绝载荷超限异常。
|
|
13
|
+
|
|
7
14
|
## 1.2.10 - 2026-10-22
|
|
8
15
|
|
|
9
16
|
- 宿主未配置语言偏好时默认回退为英文:对齐 `@deepseek-ai/dsh-client-locale` 规范,仅当明确为 `zh` 或 `zh-*` 时解析为中文,未设置(`undefined`)或异常时默认回退为英文,解决英文浏览器环境下专家名、工具文案与持久化子会话标签出现中文的问题(PR #30)。
|
package/README.md
CHANGED
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
Choose a specialist in DSH for code review, design, operations, or research. All 331 experts are bundled and ready to use after installation.
|
|
26
26
|
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
27
|
+
- **Dual-surface access & wide layout**: Access management from **Settings → Experts** or enable the persistent primary sidebar entry to open in a dedicated 960px centered workspace view.
|
|
28
|
+
- **Complete roster of 331 domain experts**: Covers 22 standard divisions from engineering, product, and design to marketing, sales, and legal, with instant prefix matching.
|
|
29
|
+
- **Multi-agent team collaboration**: 5 high-impact built-in review teams and support for up to 100 custom teams with automated handoffs, parallel execution, or debate modes.
|
|
30
|
+
- **Fast invocation in composer**: Summon specialists or teams via the `@` trigger or composer picker button, instantly inserting task examples without accidental sends.
|
|
31
|
+
- **Enterprise control & security**: Toggle online updates or declare `updater: false` for strict platform lock; endpoints are guarded by token headers and content-type validation.
|
|
32
|
+
- **Reverse proxy compatibility**: Automatic URL base resolution (`document.baseURI`) ensures seamless operation behind prefix-stripping reverse proxies.
|
|
31
33
|
|
|
32
34
|
## Expert teams
|
|
33
35
|
|
|
@@ -69,7 +71,7 @@ Retain `list_experts`, `summon_expert`, and `summon_experts`. Add `list_expert_t
|
|
|
69
71
|
- Team configuration lives in the host `agency-agents` settings namespace. Keep drafts on edit conflicts and review the latest configuration. Disabling or deleting teams does not disable experts or delete historical conversations.
|
|
70
72
|
- Experts cannot summon further experts or automatically add analysis rounds. Cancellation prevents queued starts; completed results and failures are reported separately.
|
|
71
73
|
|
|
72
|
-
> This README describes version 1.2.
|
|
74
|
+
> This README describes version 1.2.11. **This is a breaking upgrade: DeepSeek Harness 0.1.x is no longer supported.** Installation on an older host is rejected by the version gate. npm and GitHub Releases determine publication status. See the [changelog](CHANGELOG.md) for the full boundary. Expert and team settings are retained; back up settings before downgrading to 1.0.x.
|
|
73
75
|
## Screenshots
|
|
74
76
|
|
|
75
77
|
The screenshots below show the 1.0.0 interface in Chinese. Experts and expert teams share the same settings page.
|
|
@@ -146,10 +148,35 @@ dsh --profile web --dump-config
|
|
|
146
148
|
To pin a release, replace `@latest` with a version such as `@1.0.1`.
|
|
147
149
|
|
|
148
150
|
The configuration output should contain `agency-agents` and `agency-agents-remote`. Restart DSH Web and hard-refresh the browser. Do not copy client files manually: the Settings page needs the mounted Remote service.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
- **Reverse proxy deployment**: Supports hosting DSH behind prefix-stripping reverse proxies (e.g. `/app/dsh/`). API and update endpoints automatically resolve against the page base URI (`document.baseURI`), preventing 404 errors caused by lost prefix segments.
|
|
152
|
+
|
|
153
|
+
## Plugin Configuration & Toggles
|
|
154
|
+
|
|
155
|
+
The plugin follows standard DSH bundle configuration conventions. Options are located at:
|
|
156
|
+
> **Sidebar → Plugins → Click `@michengai/dsh-agency-agents`** (the host's `plugins.bundle.config` slot).
|
|
157
|
+
|
|
158
|
+
Two native switches are available:
|
|
159
|
+
|
|
160
|
+
### 1. Sidebar Entry (`sidebarEntry`)
|
|
161
|
+
- **Default**: Disabled (`false`)
|
|
162
|
+
- **Description**: Displays a persistent **Agency Experts** navigation icon in the host's left primary sidebar.
|
|
163
|
+
- **Effect**:
|
|
164
|
+
- When enabled, clicking the sidebar icon opens the expert and team management page directly in the primary workspace with a **960px centered container** (matching host plugin manager conventions). This eliminates vertical scrolling constraints in narrow settings dialogs;
|
|
165
|
+
- When disabled, unregisters the sidebar entry cleanly (and resets active panel gracefully if currently viewing the panel, preventing blank views);
|
|
166
|
+
- The standard **Settings → Experts** view remains active either way, and state is synchronized live across both entry points.
|
|
167
|
+
|
|
168
|
+
### 2. Online Updates (`onlineUpdate` / `updater`)
|
|
169
|
+
- **Default**: Enabled (`true`)
|
|
170
|
+
- **Description**: Controls whether the plugin checks for and installs updates from npm.
|
|
171
|
+
- **Effect**:
|
|
172
|
+
- **Dynamic UI Sync**: Disabling the toggle hides the **Check for updates** button and version badge in the header immediately without requiring a full page reload;
|
|
173
|
+
- **Endpoint Guard**: When disabled, the update API route returns `HTTP 403` for all check and install requests, preventing unreviewed updates;
|
|
174
|
+
- **Host / Platform Lock**: For curated plugin indexes (such as VibeDev) or restricted enterprise environments, this can be locked directly via Cordis configuration (bundle patch) without needing UI interaction:
|
|
175
|
+
```yaml
|
|
176
|
+
updater: false
|
|
177
|
+
```
|
|
178
|
+
Once configured, the built-in updater is disabled at startup and the update action stays hidden.
|
|
179
|
+
- **Update Modes**: When a newer release is available, **Update automatically** runs only when the DSH CLI or Desktop update service is available; otherwise, the dialog provides a profile-specific manual command to copy and run.
|
|
153
180
|
|
|
154
181
|
## Usage
|
|
155
182
|
|
package/README.zh-CN.md
CHANGED
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
遇到代码审查、设计、运营或研究任务时,在 DSH 中选一位合适的专家,让它从专业角度协助你完成工作。内置 331 名专家,安装后即可选择使用。
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
27
|
+
- **多端与双入口访问**:支持原有「设置 → 专家」弹窗管理,亦可在插件详情页开启主导航栏常驻「专家」大面板(960px 居中版心,彻底摆脱弹窗视口滚动限制)。
|
|
28
|
+
- **331 位全领域专家名册**:涵盖工程、设计、产品、营销、法务、金融等 22 个标准分区,支持中英文关键词与拼音前缀秒级即时检索。
|
|
29
|
+
- **专家团(Teams)多角色协同**:内置 5 大高频业务团队,支持自定义最多 100 个协作团队;支持根据任务复杂度自动选择接力推进、多路并行或深度评审协作模式。
|
|
30
|
+
- **会话输入框快捷召唤**:支持对话框左侧机器人按钮快速点选,或在正文中输入 `@` 快捷呼出专家及团队名册,无缝填入任务示例。
|
|
31
|
+
- **企业级配置与安全防御**:支持在插件详情页独立开启/关闭在线更新,支持静态配置 `updater: false` 进行平台级只读锁定;接口全面接入同源与 Content-Type 防御。
|
|
32
|
+
- **反向代理部署无缝兼容**:自动相对页面基准地址解析 API 端点,支持无损部署在剥离前缀的反向代理(如 `/app/dsh/`)之后。
|
|
31
33
|
|
|
32
34
|
## 专家团
|
|
33
35
|
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
- 团队配置保存在宿主 `agency-agents` 命名空间。编辑冲突保留草稿并提示核对最新配置;停用或删除团队不会停用专家,也不会删除历史会话。
|
|
70
72
|
- 专家不得继续召唤专家或自动追加分析轮次。取消会停止未启动任务;已有结果和失败原因分别报告。
|
|
71
73
|
|
|
72
|
-
> 本 README 描述 1.2.
|
|
74
|
+
> 本 README 描述 1.2.11。**这是破坏性升级:不再支持 DeepSeek Harness 0.1.x。** 在旧宿主上安装会被版本门拒绝。正式发行以 npm 和 GitHub Releases 为准。完整边界见[更新日志](CHANGELOG.zh-CN.md)。专家和专家团配置仍保留;回退 1.0.x 前先备份设置。
|
|
73
75
|
## 界面预览
|
|
74
76
|
|
|
75
77
|
以下为 1.0.0 中文界面截图,专家与专家团共用同一个设置页面。
|
|
@@ -146,10 +148,35 @@ dsh --profile web --dump-config
|
|
|
146
148
|
需要钉死某一版时,把 `@latest` 换成具体版本,例如 `@1.0.1`。
|
|
147
149
|
|
|
148
150
|
配置输出中应包含 `agency-agents` 与 `agency-agents-remote`。安装后重启 DSH Web 并在浏览器硬刷新;请勿手工复制客户端文件,否则设置页所需的 Remote 服务不会被挂载。
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
- **反向代理部署**:支持将 DSH 部署在带路径前缀的反向代理后面(如 `/app/dsh/`),插件 API 与更新检查端点统一自动按页面基址(`document.baseURI`)相对解析,避免丢失代理路径前缀导致 404。
|
|
152
|
+
|
|
153
|
+
## 插件配置与可选开关
|
|
154
|
+
|
|
155
|
+
插件遵循 DSH 官方扩展配置规范,配置项位于:
|
|
156
|
+
> **主界面侧边栏「插件」→ 点击 `@michengai/dsh-agency-agents` 详情页**(对应宿主 `plugins.bundle.config` 槽位)。
|
|
157
|
+
|
|
158
|
+
此处提供两个原生扁平行开关:
|
|
159
|
+
|
|
160
|
+
### 1. 侧边栏入口 (`sidebarEntry`)
|
|
161
|
+
- **默认状态**:关闭(`false`)
|
|
162
|
+
- **功能说明**:在宿主左侧主导航栏增加常驻的 **「专家」** 图标入口。
|
|
163
|
+
- **生效效果**:
|
|
164
|
+
- 开启后,在侧边栏点击即可直达专家与团队管理中心,并在主工作区以 **960px 居中版心**(对齐官方插件管理与市场规范)展开完整大面板,彻底告别在设置弹窗狭窄视口内滚动的局限;
|
|
165
|
+
- 关闭后安全注销侧栏槽位(若当前正停留在专家面板,会自动安全切回默认视图,防止悬空和白屏);
|
|
166
|
+
- 无论是否开启侧栏入口,DSH 原有的「设置 → 专家」入口始终保留,两处界面数据与状态 100% 实时同步。
|
|
167
|
+
|
|
168
|
+
### 2. 在线更新 (`onlineUpdate` / `updater`)
|
|
169
|
+
- **默认状态**:开启(`true`)
|
|
170
|
+
- **功能说明**:控制是否允许在线检查并安装专家团队的新版本。
|
|
171
|
+
- **生效效果**:
|
|
172
|
+
- **界面联动**:关闭开关后,专家面板标题旁的「检查更新」按钮与版本提示徽标将即时隐藏,无需刷新页面;开启后自动恢复展示;
|
|
173
|
+
- **接口安全拦截**:关闭后,服务端的更新路由对任何版本检查和安装请求均返回 `HTTP 403` 禁用状态,彻底杜绝在插件内安装未审核版本;
|
|
174
|
+
- **宿主/平台级锁定**:面向精选插件索引(如 VibeDev)或企业安全合规环境,支持直接在 Cordis 配置文件(bundle patch)中声明锁定:
|
|
175
|
+
```yaml
|
|
176
|
+
updater: false
|
|
177
|
+
```
|
|
178
|
+
配置生效后,更新器在启动时即被完全禁用,且更新开关处于锁定状态。
|
|
179
|
+
- **更新模式**:发现新版后,只有检测到 DSH CLI 或 Desktop 更新服务时才可使用“自动更新”;其他环境会在弹窗中提供可复制、与当前 Profile 对应的手工更新命令。
|
|
153
180
|
|
|
154
181
|
## 使用
|
|
155
182
|
|