@mofeng2223/dsh-claude-provider 0.4.4 → 0.4.5

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.
Files changed (2) hide show
  1. package/lib/client.js +29 -16
  2. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -1435,8 +1435,6 @@ window.__ModuleLoader__.load({
1435
1435
  * path ops against the stored section — the card names only the fields it can
1436
1436
  * see instead of rebuilding the whole subtree from a partial descriptor.
1437
1437
  */
1438
- /** The public DeepSeek endpoint shown as the deepseek base-URL placeholder. */
1439
- const DEEPSEEK_PUBLIC_BASE_URL = "https://api.deepseek.com";
1440
1438
  /** A user-section subtree as a plain draft object (absent → empty). */
1441
1439
  function draftAt(schema, namespace, path) {
1442
1440
  const subtree = schema.getPath(namespace.user, path);
@@ -1695,20 +1693,29 @@ window.__ModuleLoader__.load({
1695
1693
  }) : null,
1696
1694
  (0, react_jsx_runtime.jsxs)("div", {
1697
1695
  className: ModelsSection_module_css_default["field"],
1698
- children: [(0, react_jsx_runtime.jsx)("span", {
1699
- className: ModelsSection_module_css_default["fieldLabel"],
1700
- children: t("baseUrl")
1701
- }), (0, react_jsx_runtime.jsx)("input", {
1702
- className: ModelsSection_module_css_default["input"],
1703
- type: "text",
1704
- value: stringAt(draft, "baseURL") ?? "",
1705
- placeholder: family === "deepseek" ? DEEPSEEK_PUBLIC_BASE_URL : stringAt(fallback, "baseURL") ?? t("baseUrlDefault"),
1706
- "aria-label": t("baseUrl"),
1707
- disabled,
1708
- onChange: (event) => {
1709
- setField("baseURL", event.target.value === "" ? void 0 : event.target.value);
1710
- }
1711
- })]
1696
+ children: [
1697
+ (0, react_jsx_runtime.jsx)("span", {
1698
+ className: ModelsSection_module_css_default["fieldLabel"],
1699
+ children: t("baseUrl")
1700
+ }),
1701
+ (0, react_jsx_runtime.jsx)("input", {
1702
+ className: ModelsSection_module_css_default["input"],
1703
+ type: "text",
1704
+ value: stringAt(draft, "baseURL") ?? "",
1705
+ placeholder: family === "deepseek" ? t(stringAt(fallback, "protocol") === "messages" ? "deepSeekMessagesBaseUrl" : "deepSeekChatBaseUrl") : stringAt(fallback, "baseURL") ?? t("baseUrlDefault"),
1706
+ "aria-describedby": family === "deepseek" ? `${props.provider}-endpoint-hint` : void 0,
1707
+ "aria-label": t("baseUrl"),
1708
+ disabled,
1709
+ onChange: (event) => {
1710
+ setField("baseURL", event.target.value === "" ? void 0 : event.target.value);
1711
+ }
1712
+ }),
1713
+ family === "deepseek" ? (0, react_jsx_runtime.jsx)("span", {
1714
+ id: `${props.provider}-endpoint-hint`,
1715
+ className: ModelsSection_module_css_default["advancedHint"],
1716
+ children: t("deepSeekEndpointHint")
1717
+ }) : null
1718
+ ]
1712
1719
  }),
1713
1720
  ownsIdentity ? (0, react_jsx_runtime.jsxs)("div", {
1714
1721
  className: ModelsSection_module_css_default["field"],
@@ -2857,6 +2864,9 @@ window.__ModuleLoader__.load({
2857
2864
  customized: "Customized settings",
2858
2865
  baseUrl: "Base URL",
2859
2866
  baseUrlDefault: "Provider default",
2867
+ deepSeekChatBaseUrl: "https://api.deepseek.com",
2868
+ deepSeekMessagesBaseUrl: "https://api.deepseek.com/anthropic",
2869
+ deepSeekEndpointHint: "Use an endpoint compatible with the configured connection.",
2860
2870
  models: "Models",
2861
2871
  modelsInherited: "Using the adapter defaults",
2862
2872
  modelsCustomized: "Customized model catalog",
@@ -2973,6 +2983,9 @@ window.__ModuleLoader__.load({
2973
2983
  customized: "自定义设置",
2974
2984
  baseUrl: "API 地址",
2975
2985
  baseUrlDefault: "提供方默认",
2986
+ deepSeekChatBaseUrl: "https://api.deepseek.com",
2987
+ deepSeekMessagesBaseUrl: "https://api.deepseek.com/anthropic",
2988
+ deepSeekEndpointHint: "请填写与当前连接配置兼容的 API 地址。",
2976
2989
  models: "模型目录",
2977
2990
  modelsInherited: "正在使用适配器默认模型",
2978
2991
  modelsCustomized: "已自定义模型目录",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mofeng2223/dsh-claude-provider",
3
- "version": "0.4.4",
4
- "description": "Custom Claude provider support for DeepSeek Harness 0.1.5-rc.2",
3
+ "version": "0.4.5",
4
+ "description": "Custom Claude provider support for DeepSeek Harness 0.1.6-alpha.1",
5
5
  "author": "mofeng2223",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -60,6 +60,6 @@
60
60
  }
61
61
  },
62
62
  "devDependencies": {
63
- "@deepseek-ai/dsh-client-ui-settings-models": "0.1.5-rc.2"
63
+ "@deepseek-ai/dsh-client-ui-settings-models": "0.1.6-alpha.1"
64
64
  }
65
65
  }