axexec 1.1.3 → 1.1.4

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.
@@ -19,8 +19,6 @@ function getCredentialEnvironment(credentials) {
19
19
  // axauth uses "accessToken", but also check legacy "oauthToken" and "token" keys
20
20
  const oauthToken = resolveStringField(credentials.data, "accessToken", "oauthToken") ??
21
21
  resolveStringField(credentials.data, "token", "token");
22
- // Extract Google OAuth access_token (snake_case, used by Gemini)
23
- const googleAccessToken = resolveStringField(credentials.data, "access_token", "accessToken");
24
22
  switch (credentials.agent) {
25
23
  case "claude": {
26
24
  if (credentials.type === "api-key" && apiKey) {
@@ -41,12 +39,13 @@ function getCredentialEnvironment(credentials) {
41
39
  if (credentials.type === "api-key" && apiKey) {
42
40
  environment["GEMINI_API_KEY"] = apiKey;
43
41
  }
44
- else if (credentials.type === "oauth-credentials" &&
45
- googleAccessToken) {
46
- // For non-interactive mode, Gemini needs pre-obtained access token
47
- // via GOOGLE_GENAI_USE_GCA + GOOGLE_CLOUD_ACCESS_TOKEN
42
+ else if (credentials.type === "oauth-credentials") {
43
+ // Set GOOGLE_GENAI_USE_GCA to enable oauth-personal auth type.
44
+ // This tells Gemini to check for cached OAuth credentials (oauth_creds.json).
45
+ // DO NOT set GOOGLE_CLOUD_ACCESS_TOKEN - that bypasses the file and
46
+ // prevents token refresh. Credentials are written to oauth_creds.json
47
+ // by installGeminiCredentials().
48
48
  environment["GOOGLE_GENAI_USE_GCA"] = "true";
49
- environment["GOOGLE_CLOUD_ACCESS_TOKEN"] = googleAccessToken;
50
49
  }
51
50
  break;
52
51
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "axexec",
3
3
  "author": "Łukasz Jerciński",
4
4
  "license": "MIT",
5
- "version": "1.1.3",
5
+ "version": "1.1.4",
6
6
  "description": "Unified CLI runner for AI coding agents with normalized event streaming",
7
7
  "repository": {
8
8
  "type": "git",