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 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: -s for sandbox (no tools), -m for model, -p for prompt (headless mode)
588
- // Format: gemini -s -m gemini-2.0-flash -p "prompt"
589
- // -s flag disables agentic tool use which causes truncated "I will search..." outputs
590
- args = ['-s', '-m', model, '-p', prompt];
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: -s for sandbox (no tools), -p for headless mode
599
- args = ['-s', '-p', prompt];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.8.39",
3
+ "version": "1.8.40",
4
4
  "description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
5
5
  "keywords": [
6
6
  "mcp",