cc-reviewer 1.0.2 → 1.0.3
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/cli/gemini.js +5 -3
- package/package.json +1 -1
package/dist/cli/gemini.js
CHANGED
|
@@ -163,14 +163,16 @@ async function runWithRetry(request, attempt, previousError, previousOutput) {
|
|
|
163
163
|
/**
|
|
164
164
|
* Execute the Gemini CLI in non-interactive mode
|
|
165
165
|
*
|
|
166
|
-
* Uses: gemini
|
|
166
|
+
* Uses: gemini --yolo --include-directories <workingDir> "<prompt>"
|
|
167
167
|
*/
|
|
168
168
|
function runGeminiCli(prompt, workingDir) {
|
|
169
169
|
return new Promise((resolve, reject) => {
|
|
170
170
|
// Build CLI arguments for non-interactive execution
|
|
171
|
+
// Use positional prompt (not deprecated -p flag) and --yolo for auto-approval
|
|
171
172
|
const args = [
|
|
172
|
-
'
|
|
173
|
-
'--include-directories', workingDir
|
|
173
|
+
'--yolo',
|
|
174
|
+
'--include-directories', workingDir,
|
|
175
|
+
prompt
|
|
174
176
|
];
|
|
175
177
|
const proc = spawn('gemini', args, {
|
|
176
178
|
cwd: workingDir,
|