dsh-grok-subscription 1.0.7 → 1.0.8

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
@@ -25,7 +25,7 @@ Models, reasoning effort, and weekly quota all stay inside DSH.
25
25
 
26
26
  ## Three-step start
27
27
 
28
- 1. **Install the plugin.** Run the command below; to select a candidate version, enter the full `package@version`, for example `dsh-grok-subscription@1.0.7`.
28
+ 1. **Install the plugin.** Run the command below; to select a candidate version, enter the full `package@version`, for example `dsh-grok-subscription@1.0.8`.
29
29
 
30
30
  ```sh
31
31
  dsh plugin --profile web add BaronCyrus/dsh-grok-subscription
@@ -91,7 +91,7 @@ dsh plugin --profile web add BaronCyrus/dsh-grok-subscription
91
91
  You can also install the version published on npm:
92
92
 
93
93
  ```sh
94
- dsh plugin --profile web add dsh-grok-subscription@1.0.7
94
+ dsh plugin --profile web add dsh-grok-subscription@1.0.8
95
95
  ```
96
96
 
97
97
  DSH handles target selection, the profile lock, dependency resolution, and bundle activation.
package/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  ## 三步开始
27
27
 
28
- 1. **安装插件**:在终端运行下面的命令;指定候选版本时填写完整的 `包名@版本`,例如 `dsh-grok-subscription@1.0.7`。
28
+ 1. **安装插件**:在终端运行下面的命令;指定候选版本时填写完整的 `包名@版本`,例如 `dsh-grok-subscription@1.0.8`。
29
29
 
30
30
  ```sh
31
31
  dsh plugin --profile web add BaronCyrus/dsh-grok-subscription
@@ -91,7 +91,7 @@ dsh plugin --profile web add BaronCyrus/dsh-grok-subscription
91
91
  也可以按 npm 上的已发布版本安装:
92
92
 
93
93
  ```sh
94
- dsh plugin --profile web add dsh-grok-subscription@1.0.7
94
+ dsh plugin --profile web add dsh-grok-subscription@1.0.8
95
95
  ```
96
96
 
97
97
  目标选择、profile 锁、依赖解析和 bundle 激活均由 DSH 负责。
package/lib/client.js CHANGED
@@ -38,7 +38,7 @@ var import_react2 = require("react");
38
38
  var zh = {
39
39
  nav: "Grok \u8BA2\u9605",
40
40
  title: "Grok \u8BA2\u9605",
41
- subtitle: "\u7528 SuperGrok / X Premium\uFF08Grok Build\uFF09\u4F1A\u8BDD\uFF0C\u800C\u4E0D\u662F XAI_API_KEY\u3002\xB7 1.0.7",
41
+ subtitle: "\u7528 SuperGrok / X Premium\uFF08Grok Build\uFF09\u4F1A\u8BDD\uFF0C\u800C\u4E0D\u662F XAI_API_KEY\u3002\xB7 1.0.8",
42
42
  signedIn: "\u5DF2\u767B\u5F55",
43
43
  signedOut: "\u672A\u767B\u5F55",
44
44
  account: "\u8D26\u6237",
@@ -95,7 +95,7 @@ var zh = {
95
95
  var en = {
96
96
  nav: "Grok Subscription",
97
97
  title: "Grok Subscription",
98
- subtitle: "Use a SuperGrok / X Premium (Grok Build) session, not XAI_API_KEY. \xB7 1.0.7",
98
+ subtitle: "Use a SuperGrok / X Premium (Grok Build) session, not XAI_API_KEY. \xB7 1.0.8",
99
99
  signedIn: "Signed in",
100
100
  signedOut: "Signed out",
101
101
  account: "Account",
package/lib/index.js CHANGED
@@ -1244,7 +1244,9 @@ function createDuckAdapter(session, adapterOptions = {}) {
1244
1244
  provider,
1245
1245
  id: model,
1246
1246
  name: found?.name ?? model,
1247
- inputModalities: ["text"],
1247
+ // The host gates prompt attachment admission on resolveModelInfo, NOT on
1248
+ // listModels, so this must match the catalog's modality map exactly.
1249
+ inputModalities: supportsImageInput(model) ? ["text", "image"] : ["text"],
1248
1250
  context: { contextWindow: raw?.contextWindow ?? 5e5 }
1249
1251
  };
1250
1252
  const reasoning = reasoningInfoOf(raw);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-grok-subscription",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Use a SuperGrok or X Premium Grok Build subscription in DeepSeek Harness",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",