@quantum-ai/gemini-cli 0.45.9 → 0.45.11
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/config/auth.js +2 -2
- package/dist/config/config.js +7 -5
- package/dist/index.js +8 -0
- package/dist/interactiveCli.js +0 -6
- package/package.json +13 -4
package/dist/config/auth.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { AuthType, loadApiKey } from '@google/gemini-cli-core';
|
|
6
|
+
import { AuthType, loadApiKey, loadOpenAIApiKey } from '@google/gemini-cli-core';
|
|
7
7
|
import { loadEnvironment, loadSettings } from './settings.js';
|
|
8
8
|
export async function validateAuthMethod(authMethod) {
|
|
9
9
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
@@ -20,7 +20,7 @@ export async function validateAuthMethod(authMethod) {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
if (authMethod === AuthType.USE_OPENAI) {
|
|
23
|
-
const key = process.env['OPENAI_API_KEY'] || (await
|
|
23
|
+
const key = process.env['OPENAI_API_KEY'] || (await loadOpenAIApiKey());
|
|
24
24
|
if (!key) {
|
|
25
25
|
return ('When using OpenAI-compatible APIs (e.g., NVIDIA), you must specify the OPENAI_API_KEY environment variable.\n' +
|
|
26
26
|
'Update your environment and try again (no reload needed if using .env)!');
|
package/dist/config/config.js
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import yargs from 'yargs';
|
|
7
|
-
import { createRequire } from 'node:module';
|
|
8
|
-
const require = createRequire(import.meta.url);
|
|
9
|
-
const pkg = require('../../package.json');
|
|
10
7
|
import { hideBin } from 'yargs/helpers';
|
|
11
8
|
import process from 'node:process';
|
|
12
9
|
import * as path from 'node:path';
|
|
@@ -29,6 +26,8 @@ import { McpServerEnablementManager } from './mcp/mcpServerEnablement.js';
|
|
|
29
26
|
import { requestConsentNonInteractive } from './extensions/consent.js';
|
|
30
27
|
import { promptForSetting } from './extensions/extensionSettings.js';
|
|
31
28
|
import { runExitCleanup } from '../utils/cleanup.js';
|
|
29
|
+
// DEBUG: module load marker
|
|
30
|
+
console.error('CONFIG MODULE LOADED');
|
|
32
31
|
/**
|
|
33
32
|
* Helper to coerce comma-separated or multiple flag values into a flat array.
|
|
34
33
|
*/
|
|
@@ -374,9 +373,9 @@ export async function parseArguments(settings) {
|
|
|
374
373
|
type: 'boolean',
|
|
375
374
|
description: 'Suppress the security warning when using --raw-output.',
|
|
376
375
|
}))
|
|
377
|
-
.version(
|
|
376
|
+
.version(await getVersion()) // This will enable the --version flag based on package.json
|
|
378
377
|
.alias('v', 'version')
|
|
379
|
-
.help(
|
|
378
|
+
.help()
|
|
380
379
|
.alias('h', 'help')
|
|
381
380
|
.strict()
|
|
382
381
|
.demandCommand(0, 0) // Allow base command to run with no subcommands
|
|
@@ -401,12 +400,15 @@ export async function parseArguments(settings) {
|
|
|
401
400
|
process.exit(1);
|
|
402
401
|
}
|
|
403
402
|
// Handle help and version flags manually since we disabled exitProcess
|
|
403
|
+
console.error('DEBUG: before check. keys=', Object.keys(result), 'help=', result['help'], 'version=', result['version']);
|
|
404
404
|
if (result['help']) {
|
|
405
|
+
console.error('Help requested, calling showHelp');
|
|
405
406
|
yargsInstance.showHelp();
|
|
406
407
|
await runExitCleanup();
|
|
407
408
|
process.exit(0);
|
|
408
409
|
}
|
|
409
410
|
if (result['version']) {
|
|
411
|
+
console.error('Version requested, calling showVersion');
|
|
410
412
|
yargsInstance.showVersion();
|
|
411
413
|
await runExitCleanup();
|
|
412
414
|
process.exit(0);
|
package/dist/index.js
ADDED
package/dist/interactiveCli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantum-ai/gemini-cli",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.11",
|
|
4
4
|
"description": "Gemini CLI - Autonomous AI Agent with TUI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@google-cloud/logging": "11.2.1",
|
|
23
23
|
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "0.21.0",
|
|
24
24
|
"@google-cloud/opentelemetry-cloud-trace-exporter": "3.0.0",
|
|
25
|
+
"@google/gemini-cli-core": "file:./gemini-cli-core",
|
|
25
26
|
"@google/genai": "1.30.0",
|
|
26
|
-
"@google/gemini-cli-core": "0.49.0",
|
|
27
27
|
"@grpc/grpc-js": "1.14.3",
|
|
28
28
|
"@iarna/toml": "2.2.5",
|
|
29
29
|
"@modelcontextprotocol/sdk": "1.23.0",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"diff": "8.0.3",
|
|
62
62
|
"dotenv": "17.1.0",
|
|
63
63
|
"dotenv-expand": "12.0.3",
|
|
64
|
-
"semver": "7.5.4",
|
|
65
64
|
"execa": "8.0.1",
|
|
66
65
|
"extract-zip": "2.0.1",
|
|
67
66
|
"fast-levenshtein": "2.0.6",
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
"react-dom": "18.3.1",
|
|
98
97
|
"read-package-up": "12.0.0",
|
|
99
98
|
"resize-observer-polyfill": "1.5.1",
|
|
99
|
+
"semver": "7.6.2",
|
|
100
100
|
"shell-quote": "1.8.3",
|
|
101
101
|
"simple-git": "3.28.0",
|
|
102
102
|
"string-width": "8.1.0",
|
|
@@ -127,7 +127,16 @@
|
|
|
127
127
|
"node-pty": "1.0.0"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
+
"@types/command-exists": "^1.2.3",
|
|
130
131
|
"@types/node": "20.11.24",
|
|
132
|
+
"@types/prompts": "^2.4.9",
|
|
133
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
134
|
+
"@types/react": "^19.2.17",
|
|
135
|
+
"@types/react-dom": "^19.2.3",
|
|
136
|
+
"@types/semver": "^7.7.1",
|
|
137
|
+
"@types/shell-quote": "^1.7.5",
|
|
138
|
+
"@types/ws": "^8.18.1",
|
|
139
|
+
"@types/yargs": "^17.0.35",
|
|
131
140
|
"typescript": "5.8.3",
|
|
132
141
|
"vitest": "3.2.4"
|
|
133
142
|
},
|
|
@@ -139,7 +148,7 @@
|
|
|
139
148
|
},
|
|
140
149
|
"scripts": {
|
|
141
150
|
"prebuild": "node scripts/prebuild.js",
|
|
142
|
-
"build": "tsc -p . ||
|
|
151
|
+
"build": "tsc -p . || exit 0 && node scripts/copy-index.mjs",
|
|
143
152
|
"start": "node dist/index.mjs",
|
|
144
153
|
"debug": "node --inspect-brk dist/index.mjs",
|
|
145
154
|
"clean": "npx rimraf dist"
|