gemqq 0.5.10 → 0.5.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/README.md +1 -0
- package/index.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ gemqq [OPTIONS] [PROMPT...]
|
|
|
21
21
|
|
|
22
22
|
- `-e, --edit`: Open prompt in default editor (`EDITOR` or `VISUAL`).
|
|
23
23
|
- `-r, --raw`: Output raw text (disable markdown rendering via `glow`).
|
|
24
|
+
- `-j, --json`: Output response as JSON.
|
|
24
25
|
- `-c, --copy`: Copy response to system clipboard.
|
|
25
26
|
- `-m, --model NAME`: Specify a custom model.
|
|
26
27
|
- `--style NAME`: Specify a `glow` style (e.g., `auto`, `dark`, `light`). Default is `auto`.
|
package/index.js
CHANGED
|
@@ -41,6 +41,7 @@ program
|
|
|
41
41
|
.argument('[prompt...]', 'Prompt for the model')
|
|
42
42
|
.option('-e, --edit', 'Open prompt in default editor')
|
|
43
43
|
.option('-r, --raw', 'Output raw text (disable markdown rendering)')
|
|
44
|
+
.option('-j, --json', 'Output response as JSON')
|
|
44
45
|
.option('-c, --copy', 'Copy response to system clipboard')
|
|
45
46
|
.option('-m, --model <name>', 'Specify a custom model')
|
|
46
47
|
.option('--style <name>', 'Specify a glow style (e.g., auto, dark, light)', 'auto')
|
|
@@ -168,7 +169,8 @@ ${editedPrompt}
|
|
|
168
169
|
console.error(chalk.bold('[DEBUG] Executing:') + ` gemini ${args.map(a => `'${a}'`).join(' ')}`);
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
|
|
172
|
+
const shouldShowSpinner = !options.json && !isTest;
|
|
173
|
+
currentSpinner = shouldShowSpinner ? ora('Gemini is thinking...').start() : { start: () => currentSpinner, stop: () => {} };
|
|
172
174
|
const startTime = Date.now();
|
|
173
175
|
|
|
174
176
|
let sysPromptFile = null;
|
|
@@ -200,6 +202,11 @@ ${editedPrompt}
|
|
|
200
202
|
|
|
201
203
|
cleanup();
|
|
202
204
|
|
|
205
|
+
if (options.json) {
|
|
206
|
+
process.stdout.write(stdout);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
|
|
203
210
|
if (stderr) {
|
|
204
211
|
const filteredStderr = stderr
|
|
205
212
|
.split('\n')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gemqq",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "Gemini Quick Question is a one-shot CLI wrapper for Google's Gemini, featuring interactive editor support, markdown rendering, and real-time token usage statistics. gemqq does not have memory nor context, it simply answers your 'quick questions' and prompts.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|