polydev-ai 1.10.20 → 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 +7 -10
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1136,15 +1136,11 @@ 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
|
-
//
|
|
1140
|
-
//
|
|
1139
|
+
// Use read-only sandbox to prevent agentic file/exec operations
|
|
1140
|
+
// codex exec only accepts: -s, -m, -c, -p, --enable, --disable (no -a, --ephemeral, --skip-git-repo-check)
|
|
1141
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}`;
|
|
1142
1142
|
args.push(
|
|
1143
|
-
'
|
|
1144
|
-
'--ephemeral',
|
|
1145
|
-
'--skip-git-repo-check',
|
|
1146
|
-
'--cd',
|
|
1147
|
-
workingDir,
|
|
1143
|
+
'-s', 'read-only',
|
|
1148
1144
|
directPrompt
|
|
1149
1145
|
);
|
|
1150
1146
|
|
|
@@ -1433,12 +1429,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1433
1429
|
*/
|
|
1434
1430
|
buildStreamingArgs(providerId, prompt, model = null) {
|
|
1435
1431
|
if (providerId === 'claude_code') {
|
|
1436
|
-
// --
|
|
1432
|
+
// --tools "" disables ALL built-in tools (no WebSearch, no Bash, nothing)
|
|
1433
|
+
// --effort medium reduces extended thinking time (Opus 4.6 adaptive thinking)
|
|
1437
1434
|
// --max-turns 1 ensures single-turn response (no agentic loops)
|
|
1438
|
-
// DO NOT use --dangerously-skip-permissions — it enables all tools causing 160s web searches
|
|
1439
1435
|
const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
|
|
1440
1436
|
'--max-turns', '1',
|
|
1441
|
-
'--
|
|
1437
|
+
'--tools', '',
|
|
1438
|
+
'--effort', 'medium'
|
|
1442
1439
|
];
|
|
1443
1440
|
|
|
1444
1441
|
// Add model flag if specified
|