@michengai/dsh-agency-agents 0.1.16 → 0.1.17
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.
|
@@ -384,9 +384,9 @@ function formatHost(locale, key, params) {
|
|
|
384
384
|
}
|
|
385
385
|
/** 从宿主 settings 的 locale.preference 读取语言,缺失或异常时回退 zh。 */
|
|
386
386
|
function readHostLocale(ctx) {
|
|
387
|
-
if (ctx.settings?.get === void 0) return "zh";
|
|
388
387
|
try {
|
|
389
|
-
|
|
388
|
+
const section = ctx.settings?.get?.(settingsNamespace("locale"));
|
|
389
|
+
return resolveHostLocale(section?.preference);
|
|
390
390
|
} catch {
|
|
391
391
|
return "zh";
|
|
392
392
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as readHostLocale, c as ZH_NAME, i as matchDivision, n as localizedExpertDescription, o as renderExpertList, r as localizedExpertName, s as ZH_DIVISION, t as formatHost } from "./i18n-
|
|
1
|
+
import { a as readHostLocale, c as ZH_NAME, i as matchDivision, n as localizedExpertDescription, o as renderExpertList, r as localizedExpertName, s as ZH_DIVISION, t as formatHost } from "./i18n-x9V6Ga4d.js";
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
4
4
|
import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
|
|
@@ -10,7 +10,8 @@ const name = "agency-agents";
|
|
|
10
10
|
const inject = [
|
|
11
11
|
"tools",
|
|
12
12
|
"subagents",
|
|
13
|
-
"systemPrompt"
|
|
13
|
+
"systemPrompt",
|
|
14
|
+
"settings"
|
|
14
15
|
];
|
|
15
16
|
const DEFAULT_DIVISIONS = [
|
|
16
17
|
"academic",
|
package/lib/remote.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as formatHost } from "./i18n-
|
|
1
|
+
import { t as formatHost } from "./i18n-x9V6Ga4d.js";
|
|
2
2
|
import { settingsNamespace } from "@deepseek-ai/dsh-settings";
|
|
3
3
|
import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
4
4
|
import { z } from "zod";
|
package/package.json
CHANGED