@ycodium-ai/agent-grok 0.2.2143 → 0.2.2155

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
@@ -34,8 +34,9 @@ Facts:
34
34
  credential reads use the home the subprocess actually sees. An empty
35
35
  account directory means the CLI default `~/.grok` is used without injection.
36
36
  - Manifest permission is `{ kind: "executor" }`.
37
- - Session model switching is `unsupported` on the card until the plugin execution
38
- path is wired to the model-management UI.
37
+ - Native in-session model switching is `unsupported` on the card. The host applies
38
+ upstream model changes by rebinding the local endpoint and resuming the existing
39
+ conversation; the CLI's internal model is tracked separately.
39
40
 
40
41
  Develop with `vp run --filter @ycodium-ai/agent-grok typecheck`, `build`, and `test`.
41
42
 
package/dist/index.js CHANGED
@@ -57,8 +57,7 @@ var GROK_CARD = {
57
57
  verifiedSkills: false,
58
58
  everydayHarness: false,
59
59
  capabilities: {
60
- // Grok 换模型只有 `session/set_config_option` 一条路;库会按握手形状自动协商,
61
- // 但插件侧的执行路径还没接到模型管理 UI,名片必须说实话。
60
+ // 插件不承诺原生会话内活切型号;宿主更换上游模型时重绑端点并续接原生会话。
62
61
  sessionModelSwitch: "unsupported",
63
62
  // 运行模式只在 spawn 时定得了(`--permission-mode` 是启动旗标,ACP 那一侧
64
63
  // `modes: null`,`session/set_mode` 对它无效),所以不许声称能会话中途换。
@@ -94,7 +93,11 @@ var GROK_CARD = {
94
93
  additionalProperties: true
95
94
  },
96
95
  modelConnectivity: {
97
- dialects: ["anthropic-messages", "openai-responses", "openai-chat-completions"],
96
+ // 只报绑定送得出去的那一种:后缀是 `/chat/completions`,绑定也不替它改 `api_backend`,
97
+ // 所以它打本机端点说的永远是 chat。CLI 换了配置能说 messages / responses 不算——
98
+ // 报三种时兼容判定照着挑了「直通」,起手才发现后缀对不上,接 Anthropic 格式的脑与
99
+ // Responses 格式的订阅全起不来。别家的脑经宿主翻译接上。
100
+ dialects: ["openai-chat-completions"],
98
101
  acceptsExternalEndpoints: true,
99
102
  // 地址那一栏必须投:不设 `GROK_MODELS_BASE_URL` 的话整条请求根本不来我们这儿
100
103
  // (`grokModelProxyEgress.test.ts` 拿掉这一栏就红)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-grok",
3
- "version": "0.2.2143",
3
+ "version": "0.2.2155",
4
4
  "description": "Grok executor: grok CLI over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -20,9 +20,9 @@
20
20
  "@types/node": "24.12.4",
21
21
  "esbuild": "0.28.1",
22
22
  "vite-plus": "0.2.2",
23
- "@ycodium-ai/plugin-api": "0.2.2143",
24
- "ycodium-acp-executor": "0.0.0",
25
- "ycodium-acp-protocol": "0.0.0"
23
+ "@ycodium-ai/plugin-api": "0.2.2155",
24
+ "ycodium-acp-protocol": "0.0.0",
25
+ "ycodium-acp-executor": "0.0.0"
26
26
  },
27
27
  "ycodium": {
28
28
  "plugin": "./dist/index.js",