@mofeng2223/dsh-claude-provider 0.5.3 → 0.5.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.
package/lib/client.js CHANGED
@@ -1864,6 +1864,7 @@ window.__ModuleLoader__.load({
1864
1864
  props.onClose(false);
1865
1865
  },
1866
1866
  onSubmit: () => {
1867
+ props.onSubmitCredential?.();
1867
1868
  apply();
1868
1869
  }
1869
1870
  })
@@ -1985,6 +1986,7 @@ window.__ModuleLoader__.load({
1985
1986
  "claude-opus-5": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" }),
1986
1987
  "claude-opus-5-5": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" }),
1987
1988
  "claude-sonnet-4-6": Object.freeze({ contextWindow: 1000000, maxTokens: 64000, preset: "four" }),
1989
+ "claude-sonnet-5-5": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" }),
1988
1990
  "claude-sonnet-5": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" })
1989
1991
  });
1990
1992
  function reasoningEffortsForPreset(preset) {
@@ -2666,13 +2668,6 @@ window.__ModuleLoader__.load({
2666
2668
  };
2667
2669
  //#endregion
2668
2670
  //#region lib/types/client/DeepSeekOnboardingDialog.js
2669
- /**
2670
- * Official-DeepSeek first-run step. Readiness comes from the same
2671
- * provider/settings/credential join as the Models page: any provider the user
2672
- * can already talk to ends the step, and only a user with none is offered the
2673
- * official DeepSeek route. The step reuses that page's credential editor in
2674
- * the onboarding plugin's shared modal, so the key is entered once.
2675
- */
2676
2671
  /* v8 ignore next 3 -- closed-union defaults only defend future source widening */
2677
2672
  function assertNever$1(_value) {
2678
2673
  throw new Error("unexpected DeepSeek onboarding state");
@@ -2745,6 +2740,9 @@ window.__ModuleLoader__.load({
2745
2740
  readOnly: false,
2746
2741
  hideTitle: true,
2747
2742
  credentialOnly: true,
2743
+ onSubmitCredential: () => {
2744
+ props.track?.("api_key_save_click", {});
2745
+ },
2748
2746
  credentialRequired: true,
2749
2747
  autoFocusCredential: true,
2750
2748
  cancelLabelKey: "onboardingLater",
@@ -2780,7 +2778,7 @@ window.__ModuleLoader__.load({
2780
2778
  };
2781
2779
  //#endregion
2782
2780
  //#region lib/types/client/WelcomeNotice.js
2783
- /** Product-wide, versioned internal-testing notice. */
2781
+ /** Product-wide, versioned preview notice. */
2784
2782
  /**
2785
2783
  * Render the current notice until its exact copy version is acknowledged.
2786
2784
  * @param props - settings-shell owner state and welcome dependencies.
@@ -2844,7 +2842,7 @@ window.__ModuleLoader__.load({
2844
2842
  * Bump only when the notice changes materially and every user should see it
2845
2843
  * again. The acknowledgement is compared for exact equality.
2846
2844
  */
2847
- const WELCOME_NOTICE_VERSION = "2026-08-13.1";
2845
+ const WELCOME_NOTICE_VERSION = "2026-09-28.1";
2848
2846
  //#endregion
2849
2847
  //#region lib/types/client/welcome-store.js
2850
2848
  /**
@@ -3155,8 +3153,8 @@ window.__ModuleLoader__.load({
3155
3153
  settingsPathUnresolvable: "unresolvable settings path",
3156
3154
  create: "Create provider",
3157
3155
  creating: "Creating…",
3158
- welcomeTitle: "Internal Testing Notice",
3159
- welcomeBody: "DeepSeek Harness 0.1 remains in testing for Harness developers. Many areas need further improvement, and we welcome feedback from the developer community. DeepSeek Harness's core plugins and foundational APIs will continue to evolve rapidly over the coming months.\n\nWe look forward to exploring the limits of intelligence with developers around the world, building on open-source, open, reusable, and composable infrastructure. We welcome Harness developers everywhere to join the DSH plugin ecosystem.",
3156
+ welcomeTitle: "Preview Notice",
3157
+ welcomeBody: "DeepSeek Harness 0.2 is still in preview, and many areas need continued improvement and refinement. We welcome feedback and suggestions from all developers and users. The new desktop app now targets a broad range of users, while developer-related advanced features can be enabled in the settings. DeepSeek Harness’s product features and plugin APIs are expected to continue rapid iteration and evolution, and will gradually stabilize over time.\n\nWe look forward to exploring the limits of intelligence together with users and developers around the world, building on open-source, reusable, and composable infrastructure. We welcome everyone to bring their ideas to life with DeepSeek Harness and participate in the community to enrich the plugin ecosystem.",
3160
3158
  welcomeContinue: "Continue",
3161
3159
  welcomeError: "The acknowledgement could not be saved. Please try again.",
3162
3160
  onboardingTitle: "Add an API key to get started",
@@ -3284,8 +3282,8 @@ window.__ModuleLoader__.load({
3284
3282
  settingsPathUnresolvable: "无法解析设置路径",
3285
3283
  create: "创建提供商",
3286
3284
  creating: "创建中…",
3287
- welcomeTitle: "内测声明",
3288
- welcomeBody: "DeepSeek Harness 目前的 0.1 版本仍处在面向 Harness 开发者进行测试的阶段,还有许多地方需要持续改进和打磨,希望听取广大开发者的反馈建议。预计 DeepSeek Harness 的核心插件以及基础 API 都会在接下来的一段时间内快速迭代、持续演化。\n\n我们期待与全球开发者一起,在开源、开放、可复用、可组合的基础设施之上,共同探索智能上限。欢迎全球 Harness 开发者加入 DSH 插件生态。",
3285
+ welcomeTitle: "预览版说明",
3286
+ welcomeBody: "DeepSeek Harness 目前的 0.2 版本仍处于预览阶段,还有许多地方需要持续改进和打磨,希望听取广大开发者和用户的反馈建议。现在,新的桌面端面向广泛用户,开发者相关的进阶功能可在配置中开启使用。预计 DeepSeek Harness 的产品功能以及插件 API 都会继续快速迭代、持续演化,并逐渐趋于稳定。\n\n我们期待与全球用户和开发者一起,在开源、可复用、可组合的基础设施之上,共同探索智能上限。欢迎大家用 DeepSeek Harness 将想法变成现实,与社区一起丰富插件生态。",
3289
3287
  welcomeContinue: "继续",
3290
3288
  welcomeError: "暂时无法保存确认状态,请重试。",
3291
3289
  onboardingTitle: "添加一个 API Key 开始使用",
@@ -4248,6 +4246,7 @@ window.__ModuleLoader__.load({
4248
4246
  });
4249
4247
  const deepSeekOnboardingInjected = () => ({
4250
4248
  automatic: credentialOnboarding,
4249
+ track: (name, attributes) => ctx.get("productAnalytics")?.track(name, attributes),
4251
4250
  controller,
4252
4251
  hooks: { models: controller.store },
4253
4252
  operations,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mofeng2223/dsh-claude-provider",
3
- "version": "0.5.3",
4
- "description": "Custom Claude provider support for DeepSeek Harness 0.1.7-rc.2",
3
+ "version": "0.5.5",
4
+ "description": "Custom Claude provider support for DeepSeek Harness 0.2.0-rc.1",
5
5
  "author": "mofeng2223",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -62,6 +62,6 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@deepseek-ai/dsh-client-ui-settings-models": "0.1.7-rc.2"
65
+ "@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.1"
66
66
  }
67
67
  }
package/src/index.js CHANGED
@@ -28,6 +28,7 @@ export const CLAUDE_KNOWN_MODELS = Object.freeze({
28
28
  'claude-opus-5': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
29
29
  'claude-opus-5-5': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
30
30
  'claude-sonnet-4-6': Object.freeze({ contextWindow: 1000000, maxTokens: 64000, preset: 'four' }),
31
+ 'claude-sonnet-5-5': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
31
32
  'claude-sonnet-5': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
32
33
  })
33
34