gemqq 0.5.9 → 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 +13 -0
- package/index.js +12 -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`.
|
|
@@ -68,6 +69,18 @@ The project includes automated integration and unit tests using [Vitest](https:/
|
|
|
68
69
|
npm test
|
|
69
70
|
```
|
|
70
71
|
|
|
72
|
+
## Contributing
|
|
73
|
+
|
|
74
|
+
I am currently not accepting external code contributions (Pull Requests) while I focus on the initial development. However, suggestions, bug reports, and feedback are very welcome!
|
|
75
|
+
|
|
76
|
+
Please feel free to:
|
|
77
|
+
- Open a [Discussion](https://github.com/quadrigasoftware/gemqq/discussions) for ideas and feedback.
|
|
78
|
+
- Open an [Issue](https://github.com/quadrigasoftware/gemqq/issues) to report bugs.
|
|
79
|
+
|
|
80
|
+
## Support
|
|
81
|
+
|
|
82
|
+
If you find this tool useful and would like to support its development, you can [buy me a coffee](https://buymeacoffee.com/type_safe).
|
|
83
|
+
|
|
71
84
|
## Dependencies
|
|
72
85
|
|
|
73
86
|
- [Gemini CLI](https://github.com/google/gemini-cli)
|
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')
|
|
@@ -57,6 +58,10 @@ Examples:
|
|
|
57
58
|
gemqq C++ operator precedence and keywords
|
|
58
59
|
gemqq how do I update git submodules in parent
|
|
59
60
|
gemqq --pro "Analyze the subtext of Roy's final speech in Blade Runner"
|
|
61
|
+
|
|
62
|
+
Support:
|
|
63
|
+
If you find gemqq useful, you can support its development at:
|
|
64
|
+
https://buymeacoffee.com/type_safe
|
|
60
65
|
`)
|
|
61
66
|
.action(async (promptParts, options) => {
|
|
62
67
|
let currentTempDir = null;
|
|
@@ -164,7 +169,8 @@ ${editedPrompt}
|
|
|
164
169
|
console.error(chalk.bold('[DEBUG] Executing:') + ` gemini ${args.map(a => `'${a}'`).join(' ')}`);
|
|
165
170
|
}
|
|
166
171
|
|
|
167
|
-
|
|
172
|
+
const shouldShowSpinner = !options.json && !isTest;
|
|
173
|
+
currentSpinner = shouldShowSpinner ? ora('Gemini is thinking...').start() : { start: () => currentSpinner, stop: () => {} };
|
|
168
174
|
const startTime = Date.now();
|
|
169
175
|
|
|
170
176
|
let sysPromptFile = null;
|
|
@@ -196,6 +202,11 @@ ${editedPrompt}
|
|
|
196
202
|
|
|
197
203
|
cleanup();
|
|
198
204
|
|
|
205
|
+
if (options.json) {
|
|
206
|
+
process.stdout.write(stdout);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
|
|
199
210
|
if (stderr) {
|
|
200
211
|
const filteredStderr = stderr
|
|
201
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": {
|