Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slkiser/opencode-quota",
"version": "3.8.3",
"version": "3.8.4",
"description": "OpenCode quota & tokens usage with zero context window pollution. Supports GitHub Copilot, OpenAI (Plus/Pro), Qwen Code, Chutes AI, Synthetic, Google Antigravity, Z.ai coding plan and more.",
"type": "module",
"main": "./dist/index.js",
Expand Down
9 changes: 2 additions & 7 deletions src/lib/google-gemini-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from "./google-token-cache.js";
import {
clearGeminiCliCompanionCacheForTests as clearGeminiCliCompanionResolutionCacheForTests,
inspectGeminiCliCompanionPresence,
resolveGeminiCliClientCredentials,
type GeminiCliConfiguredCredentials,
} from "./google-gemini-cli-companion.js";
Expand Down Expand Up @@ -265,15 +264,11 @@ export async function inspectGeminiCliAuthPresence(client?: ConfigClient): Promi
}

export async function hasGeminiCliQuotaRuntimeAvailable(client?: ConfigClient): Promise<boolean> {
const [authPresence, companionPresence] = await Promise.all([
inspectGeminiCliAuthPresence(client),
inspectGeminiCliCompanionPresence(),
]);
const authPresence = await inspectGeminiCliAuthPresence(client);

return (
authPresence.state === "present" &&
authPresence.validAccountCount > 0 &&
companionPresence.state === "present"
authPresence.validAccountCount > 0
);
}

Expand Down