polydev-ai 1.10.19 → 1.10.21

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.
Files changed (2) hide show
  1. package/lib/cliManager.js +12 -4
  2. package/package.json +1 -1
package/lib/cliManager.js CHANGED
@@ -1136,11 +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
- // Add standard flags and direct-answer prompt
1140
- // Prefix prevents Codex from doing agentic file/exec operations just answer the question
1139
+ // Use read-only sandbox to prevent agentic file/exec operations
1140
+ // --full-auto forces workspace-write (bad), so use -a never + --sandbox read-only instead
1141
+ // This makes Codex just answer the question without running commands or writing files
1141
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}`;
1142
1143
  args.push(
1143
- '--full-auto',
1144
+ '-a', 'never',
1145
+ '--sandbox', 'read-only',
1144
1146
  '--ephemeral',
1145
1147
  '--skip-git-repo-check',
1146
1148
  '--cd',
@@ -1433,7 +1435,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
1433
1435
  */
1434
1436
  buildStreamingArgs(providerId, prompt, model = null) {
1435
1437
  if (providerId === 'claude_code') {
1436
- const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages', '--dangerously-skip-permissions'];
1438
+ // --disallowedTools blocks all tool use so Claude answers directly (~5-10s instead of 160s)
1439
+ // --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
+ const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
1442
+ '--max-turns', '1',
1443
+ '--disallowedTools', 'WebSearch,WebFetch,Bash,Read,Edit,Write,Grep,Glob,NotebookEdit,Agent,Task'
1444
+ ];
1437
1445
 
1438
1446
  // Add model flag if specified
1439
1447
  if (model) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.10.19",
3
+ "version": "1.10.21",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },