polydev-ai 1.10.19 → 1.10.20
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 -1
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1433,7 +1433,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1433
1433
|
*/
|
|
1434
1434
|
buildStreamingArgs(providerId, prompt, model = null) {
|
|
1435
1435
|
if (providerId === 'claude_code') {
|
|
1436
|
-
|
|
1436
|
+
// --disallowedTools blocks all tool use so Claude answers directly (~5-10s instead of 160s)
|
|
1437
|
+
// --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
|
+
const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
|
|
1440
|
+
'--max-turns', '1',
|
|
1441
|
+
'--disallowedTools', 'WebSearch,WebFetch,Bash,Read,Edit,Write,Grep,Glob,NotebookEdit,Agent,Task'
|
|
1442
|
+
];
|
|
1437
1443
|
|
|
1438
1444
|
// Add model flag if specified
|
|
1439
1445
|
if (model) {
|