@koreanhole/opencodex 3.2.17 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koreanhole/opencodex",
3
- "version": "3.2.17",
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",
@@ -179,7 +179,16 @@ export function buildGeminiHeadlessEnv(
179
179
  const value = nonEmpty(sourceEnv[key]);
180
180
  if (value) env[key] = value;
181
181
  }
182
- if (geminiHeadlessAuth(sourceEnv) === "oauth") env.GOOGLE_GENAI_USE_GCA = "true";
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
+ }
183
192
  Object.assign(env, {
184
193
  GEMINI_CLI_TRUST_WORKSPACE: "true",
185
194
  GEMINI_CLI_NO_RELAUNCH: "1",