polydev-ai 1.9.41 → 1.9.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 CHANGED
@@ -653,8 +653,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
653
653
  args = ['--model', cliModel, ...args, prompt];
654
654
  } else if (providerId === 'gemini_cli') {
655
655
  // Gemini CLI: -m for model, -p for prompt (headless mode)
656
- // Add prompt prefix to prevent tool planning in non-interactive mode
657
- 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}`;
656
+ // Add prompt prefix to prevent tool planning in non-interactive mode and enforce English
657
+ const geminiPrompt = `IMPORTANT: Always respond in English. 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}`;
658
658
  args = ['-m', cliModel, '-p', geminiPrompt];
659
659
  } else {
660
660
  // Default: just append prompt
@@ -664,8 +664,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
664
664
  // No model specified
665
665
  if (providerId === 'gemini_cli') {
666
666
  // Gemini CLI: -p for headless mode
667
- // Add prompt prefix to prevent tool planning in non-interactive mode
668
- 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}`;
667
+ // Add prompt prefix to prevent tool planning in non-interactive mode and enforce English
668
+ const geminiPrompt = `IMPORTANT: Always respond in English. 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}`;
669
669
  args = ['-p', geminiPrompt];
670
670
  } else {
671
671
  args = [...args, prompt];
@@ -1435,8 +1435,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
1435
1435
  args.push('-m', model);
1436
1436
  }
1437
1437
 
1438
- // Add prompt prefix to prevent tool planning in non-interactive mode
1439
- 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}`;
1438
+ // Add prompt prefix to prevent tool planning in non-interactive mode and enforce English
1439
+ const geminiPrompt = `IMPORTANT: Always respond in English. 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}`;
1440
1440
  args.push('-p', geminiPrompt);
1441
1441
  return args;
1442
1442
  }
@@ -276,8 +276,8 @@ class TunnelClient {
276
276
  let outputTokens = null;
277
277
  let costUsd = null;
278
278
 
279
- const BATCH_INTERVAL_MS = 300;
280
- const BATCH_MIN_CHARS = 10;
279
+ const BATCH_INTERVAL_MS = 150;
280
+ const BATCH_MIN_CHARS = 1;
281
281
 
282
282
  // Flush accumulated text as a stream chunk
283
283
  const flushChunk = async (force = false) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.41",
3
+ "version": "1.9.42",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },