@ycodium-ai/agent-grok 0.2.2070 → 0.2.2092
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/dist/index.js +14 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -83,7 +83,20 @@ var GROK_CARD = {
|
|
|
83
83
|
},
|
|
84
84
|
modelConnectivity: {
|
|
85
85
|
dialects: ["anthropic-messages", "openai-responses", "openai-chat-completions"],
|
|
86
|
-
acceptsExternalEndpoints: true
|
|
86
|
+
acceptsExternalEndpoints: true,
|
|
87
|
+
// 必须设 `GROK_MODELS_BASE_URL`,不能只设 `XAI_API_KEY`。它的凭据顺序是
|
|
88
|
+
// `api_key` → `env_key` → **已登录的 session token** → `XAI_API_KEY`
|
|
89
|
+
// (`~/.grok/docs/user-guide/11-custom-models.md:105-114`)——用户 `grok login` 过的话
|
|
90
|
+
// 只设 key 不起作用,它会把**用户的真 OIDC token** 发到我们的代理。设了 base 才会
|
|
91
|
+
// 把整个客户端切成 API-key 认证。
|
|
92
|
+
//
|
|
93
|
+
// 它启动时先打 `{base_url}/models` 拉模型列表(README:1953「on startup」),不给就
|
|
94
|
+
// 当端点不可用——代理为此支持了 /models。
|
|
95
|
+
//
|
|
96
|
+
// base 含 /v1(它的例子是 `https://api.acme.com/v1`),后面自己加 /chat/completions。
|
|
97
|
+
nativePathSuffix: "/chat/completions",
|
|
98
|
+
baseUrlEnvKey: "GROK_MODELS_BASE_URL",
|
|
99
|
+
credentialEnvKey: "XAI_API_KEY"
|
|
87
100
|
}
|
|
88
101
|
};
|
|
89
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-grok",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2092",
|
|
4
4
|
"description": "Grok executor: grok CLI over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"esbuild": "0.28.1",
|
|
22
22
|
"vite-plus": "0.2.2",
|
|
23
23
|
"ycodium-acp-protocol": "0.0.0",
|
|
24
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
24
|
+
"@ycodium-ai/plugin-api": "0.2.2092",
|
|
25
25
|
"ycodium-acp-executor": "0.0.0"
|
|
26
26
|
},
|
|
27
27
|
"ycodium": {
|