@koreanhole/opencodex 3.2.16 → 3.2.18
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
|
@@ -40,7 +40,8 @@ precedence, then the vendor's selected authentication method; a vendor-selected
|
|
|
40
40
|
API-key login uses its `.env`, while an OAuth selection keeps OAuth-only
|
|
41
41
|
behavior. Without a readable vendor selection, the previous OAuth-first fallback
|
|
42
42
|
applies, including logins stored in the vendor keychain or under a custom
|
|
43
|
-
`GEMINI_CLI_HOME`.
|
|
43
|
+
`GEMINI_CLI_HOME`. Linux keyring access and the vendor encrypted credential file
|
|
44
|
+
are preserved for isolated OAuth turns.
|
|
44
45
|
|
|
45
46
|
Cline 2.2.0 is the minimum supported release. Newer options are used only when
|
|
46
47
|
the installed binary advertises them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koreanhole/opencodex",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18",
|
|
4
4
|
"description": "Full opencodex runtime with Cline 2.2.0+ JSON and Gemini CLI headless provider adapters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./bin/package-main.mjs",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"test:e2e:gemini": "bun test ./tests/e2e/gemini-codex.live.ts -t \"full-stack:\"",
|
|
35
35
|
"test:e2e:gemini-oauth-only": "bun test ./tests/e2e/gemini-oauth-only.test.ts",
|
|
36
36
|
"test:e2e:gemini-auth-selection": "bun test ./tests/e2e/gemini-oauth-only.test.ts -t \"honors vendor-selected API-key\"",
|
|
37
|
+
"test:e2e:gemini-oauth-keychain": "bun test ./tests/e2e/gemini-oauth-only.test.ts -t \"passes keyring access\"",
|
|
37
38
|
"test:e2e:gemini-slow": "bun test ./tests/e2e/gemini-codex.live.ts -t \"full-stack: a slow Gemini start\"",
|
|
38
39
|
"test:e2e:gemini-tool": "bun test ./tests/e2e/gemini-codex.live.ts -t \"one short Gemini turn leaves the workspace unchanged\"",
|
|
39
40
|
"test:e2e:gemini-multiturn": "bun test ./tests/e2e/gemini-codex.live.ts -t \"reuses a live Codex multi-turn session\"",
|
|
@@ -48,6 +48,8 @@ const FORWARDED_ENV_KEYS = [
|
|
|
48
48
|
"GOOGLE_CLOUD_LOCATION",
|
|
49
49
|
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
50
50
|
"GOOGLE_GEMINI_BASE_URL",
|
|
51
|
+
"DBUS_SESSION_BUS_ADDRESS",
|
|
52
|
+
"XDG_RUNTIME_DIR",
|
|
51
53
|
"GEMINI_FORCE_ENCRYPTED_FILE_STORAGE",
|
|
52
54
|
"GEMINI_FORCE_FILE_STORAGE",
|
|
53
55
|
"GEMINI_API_KEY_AUTH_MECHANISM",
|
|
@@ -63,7 +65,7 @@ const FORWARDED_ENV_KEYS = [
|
|
|
63
65
|
] as const;
|
|
64
66
|
|
|
65
67
|
const AUTH_FILE_NAMES = ["oauth_creds.json", "google_accounts.json", ".env"] as const;
|
|
66
|
-
const OAUTH_AUTH_FILE_NAMES = ["oauth_creds.json", "google_accounts.json"] as const;
|
|
68
|
+
const OAUTH_AUTH_FILE_NAMES = ["oauth_creds.json", "google_accounts.json", "gemini-credentials.json"] as const;
|
|
67
69
|
type GeminiHeadlessAuth = "oauth" | "environment";
|
|
68
70
|
|
|
69
71
|
export interface GeminiHeadlessDeps extends CliAgentTurnDeps {
|
|
@@ -177,7 +179,16 @@ export function buildGeminiHeadlessEnv(
|
|
|
177
179
|
const value = nonEmpty(sourceEnv[key]);
|
|
178
180
|
if (value) env[key] = value;
|
|
179
181
|
}
|
|
180
|
-
if (geminiHeadlessAuth(sourceEnv) === "oauth")
|
|
182
|
+
if (geminiHeadlessAuth(sourceEnv) === "oauth") {
|
|
183
|
+
env.GOOGLE_GENAI_USE_GCA = "true";
|
|
184
|
+
if (env.GEMINI_FORCE_ENCRYPTED_FILE_STORAGE === undefined) {
|
|
185
|
+
env.GEMINI_FORCE_ENCRYPTED_FILE_STORAGE = "true";
|
|
186
|
+
}
|
|
187
|
+
const oauthPath = join(geminiVendorHome(sourceEnv), ".gemini", "oauth_creds.json");
|
|
188
|
+
if (!env.GOOGLE_APPLICATION_CREDENTIALS && existsSync(oauthPath)) {
|
|
189
|
+
env.GOOGLE_APPLICATION_CREDENTIALS = resolve(oauthPath);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
181
192
|
Object.assign(env, {
|
|
182
193
|
GEMINI_CLI_TRUST_WORKSPACE: "true",
|
|
183
194
|
GEMINI_CLI_NO_RELAUNCH: "1",
|