polydev-ai 1.10.21 → 1.10.22
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 +6 -11
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1137,16 +1137,10 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
1139
|
// Use read-only sandbox to prevent agentic file/exec operations
|
|
1140
|
-
//
|
|
1141
|
-
// This makes Codex just answer the question without running commands or writing files
|
|
1140
|
+
// codex exec only accepts: -s, -m, -c, -p, --enable, --disable (no -a, --ephemeral, --skip-git-repo-check)
|
|
1142
1141
|
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
1142
|
args.push(
|
|
1144
|
-
'-
|
|
1145
|
-
'--sandbox', 'read-only',
|
|
1146
|
-
'--ephemeral',
|
|
1147
|
-
'--skip-git-repo-check',
|
|
1148
|
-
'--cd',
|
|
1149
|
-
workingDir,
|
|
1143
|
+
'-s', 'read-only',
|
|
1150
1144
|
directPrompt
|
|
1151
1145
|
);
|
|
1152
1146
|
|
|
@@ -1435,12 +1429,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1435
1429
|
*/
|
|
1436
1430
|
buildStreamingArgs(providerId, prompt, model = null) {
|
|
1437
1431
|
if (providerId === 'claude_code') {
|
|
1438
|
-
// --
|
|
1432
|
+
// --tools "" disables ALL built-in tools (no WebSearch, no Bash, nothing)
|
|
1433
|
+
// --effort medium reduces extended thinking time (Opus 4.6 adaptive thinking)
|
|
1439
1434
|
// --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
1435
|
const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
|
|
1442
1436
|
'--max-turns', '1',
|
|
1443
|
-
'--
|
|
1437
|
+
'--tools', '',
|
|
1438
|
+
'--effort', 'medium'
|
|
1444
1439
|
];
|
|
1445
1440
|
|
|
1446
1441
|
// Add model flag if specified
|