dsh-model-extension 1.2.3-alpha.1 → 1.2.3-alpha.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-model-extension
2
2
  > 基于 deepseek-harness 的模型扩展插件
3
3
 
4
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![npm](https://img.shields.io/npm/v/dsh-model-extension.svg?label=npm&labelColor=000000&color=ff4b01)](https://www.npmjs.com/package/dsh-model-extension) [![DeepSeek Harness:0.1.6-alpha.2](https://img.shields.io/badge/DeepSeek%20Harness-0.1.6--alpha.2-success.svg?labelColor=4D6BFE)](https://github.com/deepseek-ai/deepseek-harness)
4
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![npm](https://img.shields.io/npm/v/dsh-model-extension.svg?label=npm&labelColor=000000&color=ff4b01)](https://www.npmjs.com/package/dsh-model-extension) [![DeepSeek Harness:0.1.7-alpha.1](https://img.shields.io/badge/DeepSeek%20Harness-0.1.7--alpha.1-success.svg?labelColor=4D6BFE)](https://github.com/deepseek-ai/deepseek-harness)
5
5
 
6
6
  | 供应商 | 模型 |
7
7
  | --- | --- |
@@ -48,7 +48,9 @@ npm run build
48
48
 
49
49
  ## 版本历史
50
50
 
51
- - **1.2.2**
51
+ - **1.2.3**
52
+ - **1.2.3-alpha.2**
53
+ - 💪适配deepseek harness 0.1.7-alpha.1
52
54
  - **1.2.3-alpha.1**
53
55
  - 🐛修复 llm-deepseek 获取模型错误的问题
54
56
  - **1.2.1**
package/lib/client.js CHANGED
@@ -2358,8 +2358,11 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
2358
2358
  * never delete fields outside the card.
2359
2359
  */
2360
2360
  /** The official DeepSeek roots, chosen by the profile's resolved protocol.
2361
- * Mirrors the host's locales keys deepSeekChatBaseUrl / deepSeekMessagesBaseUrl
2362
- * (@ 0.1.6-alpha.2), where the Messages protocol became the default. */
2361
+ * Host @ 0.1.6-alpha.2 kept both keys (deepSeekChatBaseUrl / deepSeekMessagesBaseUrl)
2362
+ * with Messages as the default; @ 0.1.7-alpha.1 it collapsed to a single
2363
+ * deepSeekBaseUrl (https://api.deepseek.com/anthropic) with an Anthropic-only
2364
+ * hint. We keep the protocol-aware pair so a chat-protocol route still prefills
2365
+ * the bare root — prefill only, the saved draft is whatever the user set. */
2363
2366
  const DEEPSEEK_CHAT_BASE_URL = "https://api.deepseek.com";
2364
2367
  const DEEPSEEK_MESSAGES_BASE_URL = "https://api.deepseek.com/anthropic";
2365
2368
  /** The editor layout the owning namespace selects. */
@@ -3521,7 +3524,7 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
3521
3524
  //#region src/client/index-extension.ts
3522
3525
  /** Cordis service name (distinct from the npm package name). */
3523
3526
  const name = "model-extension-client";
3524
- /** Required services — mirrors the upstream Models section registration @ 0.1.5-rc.1. */
3527
+ /** Required services — mirrors the upstream Models section registration @ 0.1.7-alpha.1. */
3525
3528
  const inject = [
3526
3529
  "slots",
3527
3530
  "locale",
@@ -3529,7 +3532,7 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
3529
3532
  "remote.credentials",
3530
3533
  "remote.llm",
3531
3534
  "remote.settings",
3532
- "settingsScope",
3535
+ "configForms",
3533
3536
  "settingsSchema"
3534
3537
  ];
3535
3538
  /** Refetch the page snapshot only after its first load (upstream helper, inlined). */
@@ -3549,7 +3552,7 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
3549
3552
  }), "dsh-model-extension: copy dictionaries");
3550
3553
  const schema = createSettingsSchemaOperations(ctx.settingsSchema);
3551
3554
  const operations = createModelsOperations(ctx);
3552
- const controller = new ModelsSettingsStore(ctx, schema, ctx.settingsScope.describe());
3555
+ const controller = new ModelsSettingsStore(ctx, schema, ctx.configForms.describe());
3553
3556
  const t = ctx.locale.bind(NS);
3554
3557
  const injected = () => ({
3555
3558
  controller,