dsh-connect-minimaxcode 0.5.1 → 0.5.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.en.md CHANGED
@@ -49,6 +49,7 @@ Another implementation in the same direction is **[dingminhua/dsh-connect-workbu
49
49
  - **Daily check-in**: MiniMax Code grants credits every day and the desktop app does **not** claim them for you; the plugin shows the seven-day cycle and can claim the day's grant
50
50
  - **Read-mostly**: apart from "refreshing an expired desktop app login state" and the sign-in you start yourself, the plugin does not write to or modify any MiniMax file
51
51
  - **Follows the selected model**: the balance sits in the **composer tool row beside the model picker**, and is drawn **only while a MiniMax model is selected** — picking another connector's model hides it entirely instead of misleading you with MiniMax's balance
52
+ - **An icon and two languages of its own**: a 48×48 SVG ships with the package, so the plugin page no longer shows the default placeholder; the title and the introduction come in Chinese and English, and the interface follows the host's language
52
53
 
53
54
  ## Prerequisites
54
55
 
@@ -296,6 +297,13 @@ The OAuth token is valid for about an hour and is refreshed automatically by the
296
297
 
297
298
  ## Changelog
298
299
 
300
+ ### 0.5.2 (2026-10-21)
301
+
302
+ - **An icon for the plugin page**: a new `icon.svg` (48×48, under 800 bytes) ships with the package, declared as `"icon": "./icon.svg"` in `package.json`. The host reads it as a data URL and draws it on the plugin page instead of the default placeholder.
303
+ - **Chinese and English title and introduction**: new `locale/en.json` and `locale/zh.json` (the host reads the language files in the package root's `locale/` directory, with the English file as the anchor). The plugin page used to show the package name `dsh-connect-minimaxcode` and the mixed-language description from package.json; the title is now `DSH Connect MiniMax Code` and the introduction comes in both languages.
304
+ - **The interface follows the host's language**: neither the composer nor the plugin-page slot carries a translator in its standard props, so the copy always came from the built-in Chinese fallback — Chinese labels even in an English host. The bound locale is now injected into both slots, so an English host shows English.
305
+ - `exports` gains `./locale/*` (the host resolves the language files through it) and `files` gains `locale` and `icon.svg`.
306
+
299
307
  ### 0.5.1 (2026-10-20)
300
308
 
301
309
  - **The balance follows the selected model**: moved from the dock below the input box to the **composer tool row beside the model picker**, gated by the host's `modelSelection` projection — the readout is drawn **only while a `minimaxcode` model is selected**, and selecting another connector's model (workbuddy, for instance) hides it entirely, polling included (following `dsh-connect-trae`).
@@ -346,6 +354,25 @@ For earlier versions, see [GitHub Releases](https://github.com/JeffTsuiCUG/dsh-c
346
354
 
347
355
  The plugin ships an installable `dsh.bundle` manifest and is published to npm. The directory of the community plugin marketplace (`dshmarket`) is generated from the [Awesome DSH Plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) registry, and this plugin's listing has been submitted as PR [#8110](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/8110). A draft and the operating notes are kept in the repository: [`awesome-dsh-plugin-submission/`](awesome-dsh-plugin-submission/).
348
356
 
357
+ **Other directories and marketplaces** (entries submitted or already listed, text refreshed to 0.5.1):
358
+
359
+ | Channel | State |
360
+ |---|---|
361
+ | [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) (the registry) | Listed; entry refresh PR [#8380](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/8380) |
362
+ | [awesome-deepseek-harness](https://github.com/0xsline/awesome-deepseek-harness) | PR [#727](https://github.com/0xsline/awesome-deepseek-harness/pull/727) |
363
+ | [Awesome-DeepSeek-Harness-Plugins](https://github.com/Zhiyuan-Fan/Awesome-DeepSeek-Harness-Plugins) | PR [#92](https://github.com/Zhiyuan-Fan/Awesome-DeepSeek-Harness-Plugins/pull/92) |
364
+ | [dsh-suite](https://github.com/whyihaveyou/dsh-suite) | PR [#66](https://github.com/whyihaveyou/dsh-suite/pull/66) |
365
+ | [awesome-dsh-plugins](https://github.com/kejixiaoliang/awesome-dsh-plugins) | PR [#143](https://github.com/kejixiaoliang/awesome-dsh-plugins/pull/143) |
366
+ | [awesome-dsh-plugins](https://github.com/dshworks/awesome-dsh-plugins) | PR [#176](https://github.com/dshworks/awesome-dsh-plugins/pull/176) |
367
+ | [awesome-deepseek-harness](https://github.com/awesome-deepseekharness/awesome-deepseek-harness) | PR [#177](https://github.com/awesome-deepseekharness/awesome-deepseek-harness/pull/177) |
368
+ | [dsh-plugin-radar](https://github.com/AdamPlatin123/dsh-plugin-radar) | PR [#964](https://github.com/AdamPlatin123/dsh-plugin-radar/pull/964) |
369
+ | [dsh-community-plugins](https://github.com/zhu1090093659/dsh-community-plugins) | PR [#46](https://github.com/zhu1090093659/dsh-community-plugins/pull/46) |
370
+ | [dsh-plugin.org](https://github.com/dshplugin/dsh-plugin-hub) | Listed (automatic scan; the npm package shows up in the DSH plugin centre) |
371
+ | [dshbase](https://github.com/ylwl1997/dshbase) | Listed |
372
+ | [awesome-deepseek-harness-plugins](https://github.com/walkinglabs/awesome-deepseek-harness-plugins) | PR [#117](https://github.com/walkinglabs/awesome-deepseek-harness-plugins/pull/117) |
373
+ | [awesome-deepseek-harness](https://github.com/Dominic789654/awesome-deepseek-harness) | PR [#663](https://github.com/Dominic789654/awesome-deepseek-harness/pull/663) |
374
+ | [awesome-deepseek-harness-plugins](https://github.com/imsai-sh/awesome-deepseek-harness-plugins) | PR [#660](https://github.com/imsai-sh/awesome-deepseek-harness-plugins/pull/660) |
375
+
349
376
  Marketplace screenshots are declared, per the current convention, by the **`screenshots.json` in the plugin's own repository root** (the registry's `data/screenshots.json` is a fallback from the old convention, and no new keys are added there). This repository **does not ship screenshots yet**, so the file does not exist; once there are some, put `screenshots.json` in the repository root (an array of relative image paths) and the marketplace card will pick them up.
350
377
 
351
378
  > **Since 0.5.1 the readout lives in the composer tool row (beside the model picker) and is gated by the host's `modelSelection` projection**: the balance belongs to the provider the next request will actually use, so it sits where that selection is made — and it hides entirely, polling included, when another connector's model (workbuddy, for example) is selected. This follows `dsh-connect-trae`, whose `ComposerPointsGate` returns null for every provider but its own.
package/README.md CHANGED
@@ -49,6 +49,7 @@
49
49
  - **每日签到**:MiniMax Code 每天送积分,客户端**不会自动领**;插件可以显示七天一签的进度,并代领当天的额度
50
50
  - **只读为主**:除「续期已过期的桌面 App 登录态」和「你自己发起的登录」外,不写入、不修改 MiniMax 的任何文件
51
51
  - **跟随所选模型**:余额显示在**输入框工具行(模型选择器旁)**,且**只在选中 MiniMax 模型时出现** —— 切到其他反代插件的模型就整体隐藏,不会拿着 MiniMax 的余额误导你
52
+ - **插件页有自己的图标与中英文**:随包发布一张 48×48 的 SVG,插件页不再显示默认占位图;标题与简介按宿主语言给中英文两版,界面文案也跟着宿主语言走
52
53
 
53
54
  ## 前置条件
54
55
 
@@ -302,6 +303,13 @@ OAuth 令牌有效期约 1 小时,由客户端自动续期。插件**只在自
302
303
 
303
304
  ## 更新记录
304
305
 
306
+ ### 0.5.2(2026-10-21)
307
+
308
+ - **插件页图标**:新增随包发布的 `icon.svg`(48×48,800 字节内),并在 `package.json` 里声明 `"icon": "./icon.svg"`。宿主会把它读成 data URL 画在插件页卡片上,不再是默认占位图。
309
+ - **插件页标题与简介的中英文**:新增 `locale/en.json` 与 `locale/zh.json`(宿主按包根 `locale/` 目录里的语言文件读取,英文文件是基准)。此前插件页显示的是包名 `dsh-connect-minimaxcode` 和 package.json 里那句中英混排的描述;现在标题是 `DSH Connect MiniMax Code`,简介按宿主语言给中/英两版。
310
+ - **界面文案跟随宿主语言**:此前两个插槽都拿不到翻译函数(composer 与 plugin-page 插槽的 standardProps 里没有 `t`),所以界面永远走内置中文兜底,英文界面下也是中文。现在改为 `locale.bind()` 之后经插槽的 `inject` 传进去,英文界面显示英文。
311
+ - `exports` 增加 `./locale/*`(宿主要通过它解析语言包),`files` 增加 `locale` 与 `icon.svg`。
312
+
305
313
  ### 0.5.1(2026-10-20)
306
314
 
307
315
  - **余额读数跟随所选模型**:从输入框下方的 dock 移到**输入框工具行(模型选择器旁)**,并按宿主 `modelSelection` 投影门控 —— **只有选中 `minimaxcode` 模型时才显示**;切到其他反代插件(如 workbuddy)的模型即整体隐藏,且不轮询(学习 `dsh-connect-trae` 的做法)。
@@ -352,6 +360,25 @@ OAuth 令牌有效期约 1 小时,由客户端自动续期。插件**只在自
352
360
 
353
361
  插件已包含可安装的 `dsh.bundle` manifest,并发布到 npm。社区插件市场(`dshmarket`)的目录由 [Awesome DSH Plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) 注册表生成,本插件的收录条目已提交为 PR [#8110](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/8110),仓库内保留了一份草稿与操作说明:[`awesome-dsh-plugin-submission/`](awesome-dsh-plugin-submission/)。
354
362
 
363
+ **其它目录 / 市场的收录**(条目已提交或已上线,内容随版本更新到 0.5.1):
364
+
365
+ | 渠道 | 状态 |
366
+ |---|---|
367
+ | [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)(官方注册表) | ✅ 已收录;条目更新 PR [#8380](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/8380) |
368
+ | [awesome-deepseek-harness](https://github.com/0xsline/awesome-deepseek-harness) | PR [#727](https://github.com/0xsline/awesome-deepseek-harness/pull/727) |
369
+ | [Awesome-DeepSeek-Harness-Plugins](https://github.com/Zhiyuan-Fan/Awesome-DeepSeek-Harness-Plugins) | PR [#92](https://github.com/Zhiyuan-Fan/Awesome-DeepSeek-Harness-Plugins/pull/92) |
370
+ | [dsh-suite](https://github.com/whyihaveyou/dsh-suite) | PR [#66](https://github.com/whyihaveyou/dsh-suite/pull/66) |
371
+ | [awesome-dsh-plugins](https://github.com/kejixiaoliang/awesome-dsh-plugins) | PR [#143](https://github.com/kejixiaoliang/awesome-dsh-plugins/pull/143) |
372
+ | [awesome-dsh-plugins](https://github.com/dshworks/awesome-dsh-plugins) | PR [#176](https://github.com/dshworks/awesome-dsh-plugins/pull/176) |
373
+ | [awesome-deepseek-harness](https://github.com/awesome-deepseekharness/awesome-deepseek-harness) | PR [#177](https://github.com/awesome-deepseekharness/awesome-deepseek-harness/pull/177) |
374
+ | [dsh-plugin-radar](https://github.com/AdamPlatin123/dsh-plugin-radar) | PR [#964](https://github.com/AdamPlatin123/dsh-plugin-radar/pull/964) |
375
+ | [dsh-community-plugins](https://github.com/zhu1090093659/dsh-community-plugins) | PR [#46](https://github.com/zhu1090093659/dsh-community-plugins/pull/46) |
376
+ | [dsh-plugin.org](https://github.com/dshplugin/dsh-plugin-hub) | ✅ 已收录(自助扫描,会随目录更新出现在 DSH「插件中心」) |
377
+ | [dshbase](https://github.com/ylwl1997/dshbase) | ✅ 已收录 |
378
+ | [awesome-deepseek-harness-plugins](https://github.com/walkinglabs/awesome-deepseek-harness-plugins) | PR [#117](https://github.com/walkinglabs/awesome-deepseek-harness-plugins/pull/117) |
379
+ | [awesome-deepseek-harness](https://github.com/Dominic789654/awesome-deepseek-harness) | PR [#663](https://github.com/Dominic789654/awesome-deepseek-harness/pull/663) |
380
+ | [awesome-deepseek-harness-plugins](https://github.com/imsai-sh/awesome-deepseek-harness-plugins) | PR [#660](https://github.com/imsai-sh/awesome-deepseek-harness-plugins/pull/660) |
381
+
355
382
  市场截图按当前约定由**插件自己仓库根目录的** `screenshots.json` 声明(注册表 `data/screenshots.json` 是旧约定下的回退,不再新增键)。本仓库目前**尚未提供截图**,所以还没有这个文件;补上截图后,在根目录放 `screenshots.json`(内容是图片相对路径的数组)即可被市场卡片取用。
356
383
 
357
384
  > **0.5.1 起,读数移到输入框工具行(模型选择器旁)并按宿主 `modelSelection` 投影做门控**:余额属于「下一次请求真正会用的那个 provider」,所以它既该待在选模型的地方,也该在选中别的反代插件(如 workbuddy)时**整体隐藏、且不发轮询请求**——这是学习 `dsh-connect-trae` 的做法(其 `ComposerPointsGate` 对非自家 provider 一律 `return null`)。
package/icon.svg ADDED
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48" height="48" role="img" aria-label="DSH Connect MiniMax Code">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#4f46e5"/>
5
+ <stop offset="1" stop-color="#7c3aed"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="2" y="2" width="44" height="44" rx="11" fill="url(#bg)"/>
9
+ <path d="M14 33V17l10 9 10-9v16" fill="none" stroke="#ffffff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <circle cx="36" cy="13" r="2.4" fill="#fbbf24"/>
11
+ </svg>
package/lib/client.js CHANGED
@@ -480,6 +480,11 @@
480
480
  const context = ctx;
481
481
  // Visible text goes through the host's locale service.
482
482
  context.effect(() => context.locale.register(NAMESPACE, { zh, en }), `${BUNDLE_NAME}: locale`);
483
+ // The composer and plugin-page slots carry no translator in their
484
+ // standard props, so the bound one is injected into both. Without
485
+ // this the components fall back to their own Chinese copy and an
486
+ // English host shows Chinese labels.
487
+ const t = context.locale.bind(NAMESPACE);
483
488
  // The tool row to the left of the composer — beside the model
484
489
  // picker — rather than the ambient strip below it: the balance
485
490
  // belongs to the provider that is selected, so it sits where that
@@ -490,6 +495,7 @@
490
495
  id: 'minimax-credits',
491
496
  order: 4,
492
497
  locale: NAMESPACE,
498
+ inject: () => ({ t }),
493
499
  }, CreditPillGate));
494
500
  // The plugin's own page, keyed by the package name, where the
495
501
  // balance and the expiry schedule are spelled out.
@@ -497,6 +503,7 @@
497
503
  name: 'plugins.bundle.config',
498
504
  key: BUNDLE_NAME,
499
505
  locale: NAMESPACE,
506
+ inject: () => ({ t }),
500
507
  }, PluginPage));
501
508
  },
502
509
  };
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "DSH Connect MiniMax Code",
4
+ "description": "Bring the MiniMax Code models into DSH: reuse the desktop app's sign-in or sign in on your own with an OAuth device code, and get a live model catalog, the daily check-in, and a credit balance that follows the model you selected."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "DSH Connect MiniMax Code",
4
+ "description": "把 MiniMax Code 的模型接入 DSH:复用桌面 App 登录态,或用 OAuth 设备码自己登录;带实时模型目录、每日签到,以及跟随所选模型显示的积分余额与到期提示。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-connect-minimaxcode",
3
3
  "displayName": "DSH Connect MiniMax Code",
4
4
  "description": "把本机已登录的 MiniMax Code 桌面 App 模型接入 DeepSeek Harness:零配置、Anthropic Messages 兼容、动态模型目录,并显示积分余额与到期 — bring MiniMax Code desktop app models into DSH with a dynamic model catalog and a credit balance with expiry details.",
5
- "version": "0.5.1",
5
+ "version": "0.5.2",
6
6
  "author": "JeffTsuiCUG",
7
7
  "license": "MIT",
8
8
  "private": false,
@@ -23,6 +23,7 @@
23
23
  "node": "^22.19.0 || >=24.0.0",
24
24
  "dsh": ">=0.2.1-rc.2 <0.3.0-0"
25
25
  },
26
+ "icon": "./icon.svg",
26
27
  "main": "lib/index.js",
27
28
  "types": "lib/index.d.ts",
28
29
  "exports": {
@@ -32,10 +33,14 @@
32
33
  },
33
34
  "./client": "./lib/client.js",
34
35
  "./cordis.patch.yml": "./cordis.patch.yml",
36
+ "./icon.svg": "./icon.svg",
37
+ "./locale/*": "./locale/*",
35
38
  "./package.json": "./package.json"
36
39
  },
37
40
  "files": [
38
41
  "lib",
42
+ "locale",
43
+ "icon.svg",
39
44
  "cordis.patch.yml",
40
45
  "README.md",
41
46
  "LICENSE"