@michengai/dsh-agency-agents 1.2.8 → 1.2.9
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 +4 -0
- package/CHANGELOG.zh-CN.md +4 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/index.js +1 -1
- package/lib/remote.js +1 -1
- package/lib/{src-BKmWei5W.js → src-BAu01ObW.js} +26 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
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.9 - 2026-10-20
|
|
8
|
+
|
|
9
|
+
- Support pm2 and process wrapper environments for host module detection: extend host entry discovery to inspect `process.env.pm_exec_path`, `process.mainModule?.filename`, and `process.argv[1]`, fixing an issue where pm2 overwrites `process.argv[1]` with its container script, causing the host's `@deepseek-ai/schemastery` volatile config capability to be misdetected as unsupported and failing plugin activation at startup (Issue #26).
|
|
10
|
+
|
|
7
11
|
## 1.2.8 - 2026-10-19
|
|
8
12
|
|
|
9
13
|
- Align the Experts settings tabs and filter dropdowns with the archive plugin: archive-shaped segmented-tab track and slider geometry, 32px select triggers with trailing chevrons, ellipsis labels, and dense 30px menu rows.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
本文件记录版本功能与升级边界。正式发布状态以 npm 和 GitHub Releases 为准。
|
|
6
6
|
|
|
7
|
+
## 1.2.9 - 2026-10-20
|
|
8
|
+
|
|
9
|
+
- 修复 pm2 等包装器环境下启动宿主时插件无法激活的问题:扩展宿主入口推导逻辑,依次探测 `process.env.pm_exec_path`、`process.mainModule?.filename` 及 `process.argv[1]`,解决因 `process.argv[1]` 被包装器改写导致宿主 `@deepseek-ai/schemastery` 的 `volatile()` 实时配置能力被误判并在启动时报错抛出的缺陷(Issue #26)。
|
|
10
|
+
|
|
7
11
|
## 1.2.8 - 2026-10-19
|
|
8
12
|
|
|
9
13
|
- 专家设置页的分段页签和筛选下拉对齐归档插件:复用归档的页签轨道与滑块尺寸,下拉触发器改为 32px、箭头移至尾部、文字超出省略,菜单选项采用 30px 密集行高。
|
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ Retain `list_experts`, `summon_expert`, and `summon_experts`. Add `list_expert_t
|
|
|
69
69
|
- 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
70
|
- Experts cannot summon further experts or automatically add analysis rounds. Cancellation prevents queued starts; completed results and failures are reported separately.
|
|
71
71
|
|
|
72
|
-
> This README describes version 1.2.
|
|
72
|
+
> This README describes version 1.2.9. **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
73
|
## Screenshots
|
|
74
74
|
|
|
75
75
|
The screenshots below show the 1.0.0 interface in Chinese. Experts and expert teams share the same settings page.
|
package/README.zh-CN.md
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
- 团队配置保存在宿主 `agency-agents` 命名空间。编辑冲突保留草稿并提示核对最新配置;停用或删除团队不会停用专家,也不会删除历史会话。
|
|
70
70
|
- 专家不得继续召唤专家或自动追加分析轮次。取消会停止未启动任务;已有结果和失败原因分别报告。
|
|
71
71
|
|
|
72
|
-
> 本 README 描述 1.2.
|
|
72
|
+
> 本 README 描述 1.2.9。**这是破坏性升级:不再支持 DeepSeek Harness 0.1.x。** 在旧宿主上安装会被版本门拒绝。正式发行以 npm 和 GitHub Releases 为准。完整边界见[更新日志](CHANGELOG.zh-CN.md)。专家和专家团配置仍保留;回退 1.0.x 前先备份设置。
|
|
73
73
|
## 界面预览
|
|
74
74
|
|
|
75
75
|
以下为 1.0.0 中文界面截图,专家与专家团共用同一个设置页面。
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as unquote, P as ZH_NAME, S as truncate, _ as resolveCatalogRoot, a as SUMMON_EXPERTS_MAX, b as stripBom, c as createAgencyPersonaSource, d as loadCatalog, f as mapPool, g as readLocalizedExpertPrompt, h as readExpertPrompt, i as SUMMON_EXPERTS_CONCURRENCY, l as inject, m as parseFrontmatter, n as Config, o as SUMMON_TASK_MAX_CHARS, p as name, r as DEFAULT_DIVISIONS, s as apply, t as AGENCY_PERSONA_SERVICE, u as liveSchemaField, v as resolveExpert, w as validateSummonSpecs, x as toSummonItemResult, y as sanitize } from "./src-
|
|
1
|
+
import { C as unquote, P as ZH_NAME, S as truncate, _ as resolveCatalogRoot, a as SUMMON_EXPERTS_MAX, b as stripBom, c as createAgencyPersonaSource, d as loadCatalog, f as mapPool, g as readLocalizedExpertPrompt, h as readExpertPrompt, i as SUMMON_EXPERTS_CONCURRENCY, l as inject, m as parseFrontmatter, n as Config, o as SUMMON_TASK_MAX_CHARS, p as name, r as DEFAULT_DIVISIONS, s as apply, t as AGENCY_PERSONA_SERVICE, u as liveSchemaField, v as resolveExpert, w as validateSummonSpecs, x as toSummonItemResult, y as sanitize } from "./src-BAu01ObW.js";
|
|
2
2
|
export { AGENCY_PERSONA_SERVICE, Config, DEFAULT_DIVISIONS, SUMMON_EXPERTS_CONCURRENCY, SUMMON_EXPERTS_MAX, SUMMON_TASK_MAX_CHARS, ZH_NAME, apply, createAgencyPersonaSource, inject, liveSchemaField, loadCatalog, mapPool, name, parseFrontmatter, readExpertPrompt, readLocalizedExpertPrompt, resolveCatalogRoot, resolveExpert, sanitize, stripBom, toSummonItemResult, truncate, unquote, validateSummonSpecs };
|
package/lib/remote.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as CUSTOM_EXPERT_SLUG, D as readHostLocale, E as formatHost, F as AGENCY_TEAM_SERVICE, I as teamInputSchema, L as teamSnapshotSchema, M as customExpertInputSchema, N as expertEditSchema, O as settingsNamespaceCompat, R as teamText, T as nativeTeamMemberName, g as readLocalizedExpertPrompt, h as readExpertPrompt, j as catalogSnapshotSchema, k as AGENCY_LIBRARY_SERVICE, t as AGENCY_PERSONA_SERVICE } from "./src-
|
|
1
|
+
import { A as CUSTOM_EXPERT_SLUG, D as readHostLocale, E as formatHost, F as AGENCY_TEAM_SERVICE, I as teamInputSchema, L as teamSnapshotSchema, M as customExpertInputSchema, N as expertEditSchema, O as settingsNamespaceCompat, R as teamText, T as nativeTeamMemberName, g as readLocalizedExpertPrompt, h as readExpertPrompt, j as catalogSnapshotSchema, k as AGENCY_LIBRARY_SERVICE, t as AGENCY_PERSONA_SERVICE } from "./src-BAu01ObW.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
4
4
|
//#region src/remote-contract.ts
|
|
@@ -1640,10 +1640,31 @@ function hostModuleAnchors(entry) {
|
|
|
1640
1640
|
anchors.push(join(dir, "..", "lib", "node_modules", "@deepseek-ai", "dsh", "package.json"), join(dir, "node_modules", "@deepseek-ai", "dsh", "package.json"));
|
|
1641
1641
|
return anchors;
|
|
1642
1642
|
}
|
|
1643
|
-
|
|
1644
|
-
|
|
1643
|
+
/**
|
|
1644
|
+
* 宿主入口候选推导:
|
|
1645
|
+
* 显式指定 entry 时直接使用;默认未指定时依次尝试 pm2 真实入口(pm_exec_path)、
|
|
1646
|
+
* 包装器主模块路径(mainModule.filename)以及标准命令行参数(process.argv[1])。
|
|
1647
|
+
*/
|
|
1648
|
+
function hostEntryCandidates(explicitEntry) {
|
|
1649
|
+
if (explicitEntry !== void 0) return explicitEntry.trim() === "" ? [] : [explicitEntry];
|
|
1650
|
+
const raw = [
|
|
1651
|
+
process.env.pm_exec_path,
|
|
1652
|
+
process.mainModule?.filename,
|
|
1653
|
+
process.argv[1]
|
|
1654
|
+
];
|
|
1655
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1656
|
+
const candidates = [];
|
|
1657
|
+
for (const item of raw) if (typeof item === "string" && item.trim() !== "" && !seen.has(item)) {
|
|
1658
|
+
seen.add(item);
|
|
1659
|
+
candidates.push(item);
|
|
1660
|
+
}
|
|
1661
|
+
return candidates;
|
|
1662
|
+
}
|
|
1663
|
+
function hostRequireFor(specifier, entry) {
|
|
1664
|
+
const candidates = hostEntryCandidates(entry);
|
|
1665
|
+
if (candidates.length === 0) throw missingHostModule(specifier);
|
|
1645
1666
|
let last = missingHostModule(specifier);
|
|
1646
|
-
for (const anchor of hostModuleAnchors(
|
|
1667
|
+
for (const candidate of candidates) for (const anchor of hostModuleAnchors(candidate)) try {
|
|
1647
1668
|
const hostRequire = createRequire(anchor);
|
|
1648
1669
|
hostRequire.resolve(specifier);
|
|
1649
1670
|
return hostRequire;
|
|
@@ -1654,11 +1675,11 @@ function hostRequireFor(specifier, entry = process.argv[1]) {
|
|
|
1654
1675
|
throw last;
|
|
1655
1676
|
}
|
|
1656
1677
|
/** 从当前宿主安装位置加载模块。解析不到时抛出 MODULE_NOT_FOUND,不回退到插件自己的依赖。 */
|
|
1657
|
-
function loadHostModule(specifier, entry
|
|
1678
|
+
function loadHostModule(specifier, entry) {
|
|
1658
1679
|
return hostRequireFor(specifier, entry)(specifier);
|
|
1659
1680
|
}
|
|
1660
1681
|
/** 只确认宿主模块能否解析,不执行包入口。 */
|
|
1661
|
-
function resolveHostModule(specifier, entry
|
|
1682
|
+
function resolveHostModule(specifier, entry) {
|
|
1662
1683
|
return hostRequireFor(specifier, entry).resolve(specifier);
|
|
1663
1684
|
}
|
|
1664
1685
|
/** volatile 配置字段是带 get() 的稳定引用,读取时必须取当前快照。 */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-agency-agents",
|
|
3
3
|
"description": "DSH Agency Agents — 为 DeepSeek Harness 提供 331 名可召唤的专业智能体 · 331 summonable domain experts for DeepSeek Harness",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|
|
7
7
|
"engines": {
|