@michengai/dsh-agency-agents 1.2.8 → 1.2.10

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 CHANGED
@@ -4,6 +4,14 @@
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.10 - 2026-10-22
8
+
9
+ - 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).
10
+
11
+ ## 1.2.9 - 2026-10-20
12
+
13
+ - 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).
14
+
7
15
  ## 1.2.8 - 2026-10-19
8
16
 
9
17
  - 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.
@@ -4,6 +4,14 @@
4
4
 
5
5
  本文件记录版本功能与升级边界。正式发布状态以 npm 和 GitHub Releases 为准。
6
6
 
7
+ ## 1.2.10 - 2026-10-22
8
+
9
+ - 宿主未配置语言偏好时默认回退为英文:对齐 `@deepseek-ai/dsh-client-locale` 规范,仅当明确为 `zh` 或 `zh-*` 时解析为中文,未设置(`undefined`)或异常时默认回退为英文,解决英文浏览器环境下专家名、工具文案与持久化子会话标签出现中文的问题(PR #30)。
10
+
11
+ ## 1.2.9 - 2026-10-20
12
+
13
+ - 修复 pm2 等包装器环境下启动宿主时插件无法激活的问题:扩展宿主入口推导逻辑,依次探测 `process.env.pm_exec_path`、`process.mainModule?.filename` 及 `process.argv[1]`,解决因 `process.argv[1]` 被包装器改写导致宿主 `@deepseek-ai/schemastery` 的 `volatile()` 实时配置能力被误判并在启动时报错抛出的缺陷(Issue #26)。
14
+
7
15
  ## 1.2.8 - 2026-10-19
8
16
 
9
17
  - 专家设置页的分段页签和筛选下拉对齐归档插件:复用归档的页签轨道与滑块尺寸,下拉触发器改为 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.8. **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.
72
+ > This README describes version 1.2.10. **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.8。**这是破坏性升级:不再支持 DeepSeek Harness 0.1.x。** 在旧宿主上安装会被版本门拒绝。正式发行以 npm 和 GitHub Releases 为准。完整边界见[更新日志](CHANGELOG.zh-CN.md)。专家和专家团配置仍保留;回退 1.0.x 前先备份设置。
72
+ > 本 README 描述 1.2.10。**这是破坏性升级:不再支持 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-BKmWei5W.js";
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-DOXxrqfc.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-BKmWei5W.js";
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-DOXxrqfc.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
- function hostRequireFor(specifier, entry = process.argv[1]) {
1644
- if (entry === void 0 || entry === "") throw missingHostModule(specifier);
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(entry)) try {
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 = process.argv[1]) {
1678
+ function loadHostModule(specifier, entry) {
1658
1679
  return hostRequireFor(specifier, entry)(specifier);
1659
1680
  }
1660
1681
  /** 只确认宿主模块能否解析,不执行包入口。 */
1661
- function resolveHostModule(specifier, entry = process.argv[1]) {
1682
+ function resolveHostModule(specifier, entry) {
1662
1683
  return hostRequireFor(specifier, entry).resolve(specifier);
1663
1684
  }
1664
1685
  /** volatile 配置字段是带 get() 的稳定引用,读取时必须取当前快照。 */
@@ -1876,9 +1897,14 @@ const enHost = {
1876
1897
  "list.group": "## {division} ({count})",
1877
1898
  "list.expertFailed": "Failed: {error}"
1878
1899
  };
1879
- /** 将未知值收成 zh / en;只有显式 en 才走英文。 */
1900
+ /**
1901
+ * 将未知值收成 zh / en。只有显式中标语言(zh、zh-*)才走中文;未选择时按 DSH 约定回退 en,
1902
+ * 因为 locale.preference 缺失表示「交给浏览器」,宿主无权替用户假定中文。
1903
+ */
1880
1904
  function resolveHostLocale(value) {
1881
- return value === "en" ? "en" : "zh";
1905
+ if (typeof value !== "string") return "en";
1906
+ const tag = value.trim().toLowerCase();
1907
+ return tag === "zh" || tag.startsWith("zh-") ? "zh" : "en";
1882
1908
  }
1883
1909
  /** 按当前语言格式化宿主文案。 */
1884
1910
  function formatHost(locale, key, params) {
@@ -1886,7 +1912,7 @@ function formatHost(locale, key, params) {
1886
1912
  if (params !== void 0) for (const [name, value] of Object.entries(params)) text = text.replaceAll("{" + name + "}", String(value));
1887
1913
  return text;
1888
1914
  }
1889
- /** 从宿主 locale.preference 读取语言,缺失或异常时回退 zh。实时值在 describe() 里,get() 能直接取当前快照。 */
1915
+ /** 从宿主 locale.preference 读取语言;未选择(缺失或读取异常)时按 DSH 约定回退 en。实时值在 describe() 里,get() 能直接取当前快照。 */
1890
1916
  function readHostLocale(ctx) {
1891
1917
  try {
1892
1918
  const settings = ctx.settings;
@@ -1897,7 +1923,7 @@ function readHostLocale(ctx) {
1897
1923
  const value = (settings?.describe?.().find((item) => item.ns === LOCALE_SETTINGS_NAMESPACE))?.value;
1898
1924
  return resolveHostLocale(value !== null && typeof value === "object" && "preference" in value ? value.preference : void 0);
1899
1925
  } catch {
1900
- return "zh";
1926
+ return "en";
1901
1927
  }
1902
1928
  }
1903
1929
  /** 工具 schema 只读语言快照;初始化、locale 激活和语言变更后才调用 describe。 */
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.8",
4
+ "version": "1.2.10",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.22.0",
7
7
  "engines": {