polydev-ai 1.8.41 → 1.8.42
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 +5 -14
- package/package.json +2 -1
package/lib/cliManager.js
CHANGED
|
@@ -585,9 +585,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
585
585
|
args = ['--model', model, ...args, prompt];
|
|
586
586
|
} else if (providerId === 'gemini_cli') {
|
|
587
587
|
// Gemini CLI: -m for model, -p for prompt (headless mode)
|
|
588
|
-
//
|
|
589
|
-
|
|
590
|
-
args = ['-m', model, '-p', geminiPrompt];
|
|
588
|
+
// Format: gemini -m gemini-2.0-flash -p "prompt"
|
|
589
|
+
args = ['-m', model, '-p', prompt];
|
|
591
590
|
} else {
|
|
592
591
|
// Default: just append prompt
|
|
593
592
|
args = [...args, prompt];
|
|
@@ -595,10 +594,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
595
594
|
} else {
|
|
596
595
|
// No model specified
|
|
597
596
|
if (providerId === 'gemini_cli') {
|
|
598
|
-
// Gemini CLI
|
|
599
|
-
|
|
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];
|
|
597
|
+
// Gemini CLI still needs -p flag for headless mode
|
|
598
|
+
args = ['-p', prompt];
|
|
602
599
|
} else {
|
|
603
600
|
args = [...args, prompt];
|
|
604
601
|
}
|
|
@@ -755,13 +752,7 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
755
752
|
const child = spawn(command, args, {
|
|
756
753
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
757
754
|
shell: process.platform === 'win32',
|
|
758
|
-
timeout: timeoutMs
|
|
759
|
-
// Explicitly pass environment to ensure HOME is available for CLI tools
|
|
760
|
-
// that read config from ~/.config or similar paths (e.g., Gemini CLI)
|
|
761
|
-
env: {
|
|
762
|
-
...process.env,
|
|
763
|
-
HOME: process.env.HOME || os.homedir()
|
|
764
|
-
}
|
|
755
|
+
timeout: timeoutMs
|
|
765
756
|
});
|
|
766
757
|
|
|
767
758
|
if (child.stdin) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polydev-ai",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.42",
|
|
4
|
+
"mcpName": "io.github.backspacevenkat/perspectives",
|
|
4
5
|
"description": "Agentic workflow assistant with CLI integration - get diverse perspectives from multiple LLMs when stuck or need enhanced reasoning",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"mcp",
|