@michengai/dsh-agency-agents 1.2.9 → 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,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.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
+
7
11
  ## 1.2.9 - 2026-10-20
8
12
 
9
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).
@@ -4,6 +4,10 @@
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
+
7
11
  ## 1.2.9 - 2026-10-20
8
12
 
9
13
  - 修复 pm2 等包装器环境下启动宿主时插件无法激活的问题:扩展宿主入口推导逻辑,依次探测 `process.env.pm_exec_path`、`process.mainModule?.filename` 及 `process.argv[1]`,解决因 `process.argv[1]` 被包装器改写导致宿主 `@deepseek-ai/schemastery` 的 `volatile()` 实时配置能力被误判并在启动时报错抛出的缺陷(Issue #26)。
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.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.
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.9。**这是破坏性升级:不再支持 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-BAu01ObW.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-BAu01ObW.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
@@ -1897,9 +1897,14 @@ const enHost = {
1897
1897
  "list.group": "## {division} ({count})",
1898
1898
  "list.expertFailed": "Failed: {error}"
1899
1899
  };
1900
- /** 将未知值收成 zh / en;只有显式 en 才走英文。 */
1900
+ /**
1901
+ * 将未知值收成 zh / en。只有显式中标语言(zh、zh-*)才走中文;未选择时按 DSH 约定回退 en,
1902
+ * 因为 locale.preference 缺失表示「交给浏览器」,宿主无权替用户假定中文。
1903
+ */
1901
1904
  function resolveHostLocale(value) {
1902
- 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";
1903
1908
  }
1904
1909
  /** 按当前语言格式化宿主文案。 */
1905
1910
  function formatHost(locale, key, params) {
@@ -1907,7 +1912,7 @@ function formatHost(locale, key, params) {
1907
1912
  if (params !== void 0) for (const [name, value] of Object.entries(params)) text = text.replaceAll("{" + name + "}", String(value));
1908
1913
  return text;
1909
1914
  }
1910
- /** 从宿主 locale.preference 读取语言,缺失或异常时回退 zh。实时值在 describe() 里,get() 能直接取当前快照。 */
1915
+ /** 从宿主 locale.preference 读取语言;未选择(缺失或读取异常)时按 DSH 约定回退 en。实时值在 describe() 里,get() 能直接取当前快照。 */
1911
1916
  function readHostLocale(ctx) {
1912
1917
  try {
1913
1918
  const settings = ctx.settings;
@@ -1918,7 +1923,7 @@ function readHostLocale(ctx) {
1918
1923
  const value = (settings?.describe?.().find((item) => item.ns === LOCALE_SETTINGS_NAMESPACE))?.value;
1919
1924
  return resolveHostLocale(value !== null && typeof value === "object" && "preference" in value ? value.preference : void 0);
1920
1925
  } catch {
1921
- return "zh";
1926
+ return "en";
1922
1927
  }
1923
1928
  }
1924
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.9",
4
+ "version": "1.2.10",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.22.0",
7
7
  "engines": {