polydev-ai 1.8.39 → 1.8.40
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/lib/cliManager.js +8 -6
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -584,10 +584,10 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
584
584
|
// Claude Code uses --model flag
|
|
585
585
|
args = ['--model', model, ...args, prompt];
|
|
586
586
|
} else if (providerId === 'gemini_cli') {
|
|
587
|
-
// Gemini CLI: -
|
|
588
|
-
//
|
|
589
|
-
|
|
590
|
-
args = ['-
|
|
587
|
+
// Gemini CLI: -m for model, -p for prompt (headless mode)
|
|
588
|
+
// Add prompt prefix to prevent tool planning in non-interactive mode
|
|
589
|
+
const geminiPrompt = `Answer directly without using any tools, file operations, or searches. Do not say "I will search" or "I will look up". Provide your analysis immediately.\n\n${prompt}`;
|
|
590
|
+
args = ['-m', model, '-p', geminiPrompt];
|
|
591
591
|
} else {
|
|
592
592
|
// Default: just append prompt
|
|
593
593
|
args = [...args, prompt];
|
|
@@ -595,8 +595,10 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
595
595
|
} else {
|
|
596
596
|
// No model specified
|
|
597
597
|
if (providerId === 'gemini_cli') {
|
|
598
|
-
// Gemini CLI: -
|
|
599
|
-
|
|
598
|
+
// Gemini CLI: -p for headless mode
|
|
599
|
+
// Add prompt prefix to prevent tool planning in non-interactive mode
|
|
600
|
+
const geminiPrompt = `Answer directly without using any tools, file operations, or searches. Do not say "I will search" or "I will look up". Provide your analysis immediately.\n\n${prompt}`;
|
|
601
|
+
args = ['-p', geminiPrompt];
|
|
600
602
|
} else {
|
|
601
603
|
args = [...args, prompt];
|
|
602
604
|
}
|
package/package.json
CHANGED