dsh-free-model 3.3.0 → 3.3.1

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/SECURITY-AUDIT.md CHANGED
@@ -12,7 +12,7 @@
12
12
  | --- | --- |
13
13
  | `index.js` | `a932bcb6bdeef608496071a60d1f9e8499997fca52765e0eb300171d8728aa57` |
14
14
  | `client.js` | `e74f1985665c6eed9c1ceeb730e4d00777d7d57dd1a5086b3e6d9d378c1922c2` |
15
- | `vendor/channel-pack/pack.js` | `3ca7b5a7550f5558bc5a66a2654dca3b55454384a422705ccf862fc54191c923` |
15
+ | `vendor/channel-pack/pack.js` | `ec29285f9b8009ecbaeb2bbd3f4fa9a88efdfd06f2522d64e9e233899c44b276` |
16
16
 
17
17
  ⚠️ `pack.js` 的指纹随每次「刷新模型数据 / 移植上游修复」而变(它是构建产物)。
18
18
  上面的值对应**3.2.0(2026-11-16:目录刷新改为每日一次 + 账号变更即时)之后**的版本;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-free-model",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "type": "module",
5
5
  "description": "dsh 插件(DeepSeek Harness / cordis bundle)· 模型接入 —— 把 CodeArts、CodeBuddy / WorkBuddy、LobsterAI、Qoder / Qoder CN、TRAE、Cline、Loomy、Raccoon、MiniMax Code、ZCode、Gemini、OfficeAce、Accio Work 十五个账号渠道接进 dsh 的模型选择器,并保留数据看板、运行日志与本地网关(含局域网中继)。上游 2.1.0 的匿名免费车道、EAC 协付车道、聚合渠道、省 Token、路由、公告/升级/热重载与独立 Web 产品已全部移除。",
6
6
  "main": "./index.js",
@@ -42599,6 +42599,16 @@ var ClineAdapter = class extends LlmAdapter6 {
42599
42599
  }
42600
42600
  async ensureRemoteModels() {
42601
42601
  if (this.remoteComplete) return;
42602
+ const hasAccount = this.options.accountPool?.hasLoggedInAccount;
42603
+ if (typeof hasAccount === "function") {
42604
+ let loggedIn = true;
42605
+ try {
42606
+ loggedIn = await hasAccount.call(this.options.accountPool, this.product.id);
42607
+ } catch {
42608
+ loggedIn = true;
42609
+ }
42610
+ if (!loggedIn) return;
42611
+ }
42602
42612
  await this.catalogGate.run(async () => {
42603
42613
  try {
42604
42614
  const credential = await this.options.resolveCredential();