polydev-ai 1.10.21 → 1.10.23
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 +9 -12
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1136,17 +1136,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1136
1136
|
console.log(`[CLI Debug] Codex using model: ${model}`);
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
// Use read-only sandbox to prevent agentic
|
|
1140
|
-
//
|
|
1141
|
-
//
|
|
1139
|
+
// Use read-only sandbox + medium reasoning to prevent slow agentic operations
|
|
1140
|
+
// -c model_reasoning_effort=medium: reduces from 67s (high) to 8.5s (measured)
|
|
1141
|
+
// -s read-only: prevents file writes and command execution
|
|
1142
1142
|
const directPrompt = `Answer this question directly from your knowledge. Do not execute any commands, read any files, or use any tools. Provide a concise, expert response.\n\n${prompt}`;
|
|
1143
1143
|
args.push(
|
|
1144
|
-
'-
|
|
1145
|
-
'
|
|
1146
|
-
'--ephemeral',
|
|
1147
|
-
'--skip-git-repo-check',
|
|
1148
|
-
'--cd',
|
|
1149
|
-
workingDir,
|
|
1144
|
+
'-s', 'read-only',
|
|
1145
|
+
'-c', 'model_reasoning_effort=medium',
|
|
1150
1146
|
directPrompt
|
|
1151
1147
|
);
|
|
1152
1148
|
|
|
@@ -1435,12 +1431,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1435
1431
|
*/
|
|
1436
1432
|
buildStreamingArgs(providerId, prompt, model = null) {
|
|
1437
1433
|
if (providerId === 'claude_code') {
|
|
1438
|
-
// --
|
|
1434
|
+
// --tools "" disables ALL built-in tools (no WebSearch, no Bash, nothing)
|
|
1435
|
+
// --effort medium reduces extended thinking time (Opus 4.6 adaptive thinking)
|
|
1439
1436
|
// --max-turns 1 ensures single-turn response (no agentic loops)
|
|
1440
|
-
// DO NOT use --dangerously-skip-permissions — it enables all tools causing 160s web searches
|
|
1441
1437
|
const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
|
|
1442
1438
|
'--max-turns', '1',
|
|
1443
|
-
'--
|
|
1439
|
+
'--tools', '',
|
|
1440
|
+
'--effort', 'medium'
|
|
1444
1441
|
];
|
|
1445
1442
|
|
|
1446
1443
|
// Add model flag if specified
|