@ycodium-ai/agent-grok 0.2.6735 → 0.2.6767
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 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
9
9
|
|
|
10
10
|
// ../../packages/plugin-api/src/version.ts
|
|
11
|
-
var PLUGIN_API_VERSION =
|
|
11
|
+
var PLUGIN_API_VERSION = 232;
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
import { registerEffectiveHomeCommand } from "@ycodium-ai/plugin-api/instance-config";
|
|
@@ -301,6 +301,7 @@ function buildSpawnEnv(recipe, resolvedHomePath, homeConfigured, platform) {
|
|
|
301
301
|
import { sessionReadFromImport } from "@ycodium-ai/plugin-api/session-history";
|
|
302
302
|
import * as NodeCrypto6 from "node:crypto";
|
|
303
303
|
import {
|
|
304
|
+
mergeLaunchEnv as mergeLaunchEnv2,
|
|
304
305
|
raceAbort as raceAbort2,
|
|
305
306
|
readModelConnectionEnv as readModelConnectionEnv3
|
|
306
307
|
} from "@ycodium-ai/plugin-api/executor";
|
|
@@ -28472,6 +28473,9 @@ function createExecutorSession({
|
|
|
28472
28473
|
shared.status = "idle";
|
|
28473
28474
|
shared.generation = expectedGeneration;
|
|
28474
28475
|
}
|
|
28476
|
+
if (error62 instanceof RequestError && error62.code === RequestError.authRequired().code) {
|
|
28477
|
+
throw withFailureCategory(error62, "auth");
|
|
28478
|
+
}
|
|
28475
28479
|
throw await withStartupStderr(error62, options.stderrTail);
|
|
28476
28480
|
}
|
|
28477
28481
|
);
|
|
@@ -32397,7 +32401,11 @@ var createGrokInstance = (config2, host, deps) => {
|
|
|
32397
32401
|
const { threads, requireThread, registerSession, stopSession, disposeOnce } = table;
|
|
32398
32402
|
const probeAuth = () => {
|
|
32399
32403
|
const credentialKey = GROK_CARD.modelConnectivity.credentialEnvKey ?? "XAI_API_KEY";
|
|
32400
|
-
|
|
32404
|
+
const environment = mergeLaunchEnv2({
|
|
32405
|
+
inherited: process.env,
|
|
32406
|
+
instanceTable: recipe.environment
|
|
32407
|
+
});
|
|
32408
|
+
if ((readModelConnectionEnv3(GROK_CARD.modelConnectivity, environment)[credentialKey] ?? "").trim().length > 0) {
|
|
32401
32409
|
return { status: "authenticated", type: "api-key", label: credentialKey };
|
|
32402
32410
|
}
|
|
32403
32411
|
const account = readGrokAccount(resolveAccountHomePath(recipe, recipe.homePath));
|
|
@@ -32482,11 +32490,12 @@ var createGrokInstance = (config2, host, deps) => {
|
|
|
32482
32490
|
...outcome.kind === "failed" ? GROK_NATIVE_MODE_REPORT : {}
|
|
32483
32491
|
};
|
|
32484
32492
|
}
|
|
32493
|
+
const auth = probeAuth();
|
|
32485
32494
|
return {
|
|
32486
32495
|
installed: true,
|
|
32487
32496
|
version: version2,
|
|
32488
|
-
readiness: "ready",
|
|
32489
|
-
auth
|
|
32497
|
+
readiness: auth.status === "unauthenticated" ? "error" : "ready",
|
|
32498
|
+
auth,
|
|
32490
32499
|
...outcome.models === void 0 ? {} : { models: outcome.models },
|
|
32491
32500
|
skills,
|
|
32492
32501
|
...GROK_NATIVE_MODE_REPORT
|
|
@@ -32515,7 +32524,7 @@ var createGrokInstance = (config2, host, deps) => {
|
|
|
32515
32524
|
read: async (input2) => sessionReadFromImport(input2.nativeSessionId, await sessions.readImport(input2))
|
|
32516
32525
|
},
|
|
32517
32526
|
probe,
|
|
32518
|
-
|
|
32527
|
+
probeLocalAuth: probeAuth,
|
|
32519
32528
|
refreshModelCatalog: ({ force, signal }) => modelCatalog.refreshModelCatalog({
|
|
32520
32529
|
force,
|
|
32521
32530
|
armProbeSkip: force,
|
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.6767",
|
|
4
4
|
"description": "Grok executor: grok CLI over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@types/node": "24.12.4",
|
|
22
22
|
"esbuild": "0.28.1",
|
|
23
23
|
"vite-plus": "0.2.2",
|
|
24
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
25
|
-
"ycodium-acp-executor": "0.2.
|
|
24
|
+
"@ycodium-ai/plugin-api": "0.2.6767",
|
|
25
|
+
"ycodium-acp-executor": "0.2.0",
|
|
26
26
|
"ycodium-credential-account": "0.0.0",
|
|
27
27
|
"ycodium-executor-testing": "0.0.0"
|
|
28
28
|
},
|