terminal-smart-cli 0.97.62 → 0.97.63
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/bin/ts.js +5 -1
- package/package.json +1 -1
package/bin/ts.js
CHANGED
|
@@ -1429,6 +1429,10 @@ async function agentCmd(words, { askFn, cwd: cwdIn = null, onCwd = null, maxIter
|
|
|
1429
1429
|
// --navegador/--browser (EXPERIMENTAL, Evolve 5): dá ao agente um Chrome headless real
|
|
1430
1430
|
// (abrir/ler/clicar/digitar/print com visão). Fora da flag a tool nem existe.
|
|
1431
1431
|
const useBrowser = process.argv.includes('--navegador') || process.argv.includes('--browser');
|
|
1432
|
+
// Recuperação explícita quando o planejador está indisponível. O executor ainda
|
|
1433
|
+
// respeita política, aprovações, orçamento, ferramentas e provas; apenas evita
|
|
1434
|
+
// que uma otimização de planejamento vire ponto único de falha.
|
|
1435
|
+
const directExecution = process.argv.includes('--direto') || process.argv.includes('--direct');
|
|
1432
1436
|
const _fti = process.argv.findIndex(a => a === '--ferramentas' || a === '--tools');
|
|
1433
1437
|
const allowedTools = _fti >= 0
|
|
1434
1438
|
? String(process.argv[_fti + 1] || '').split(',').map(v => v.trim()).filter(Boolean)
|
|
@@ -1540,7 +1544,7 @@ async function agentCmd(words, { askFn, cwd: cwdIn = null, onCwd = null, maxIter
|
|
|
1540
1544
|
const _maxDurationMs = 1000 * (_ti >= 0 ? Number(process.argv[_ti + 1]) : (_inlineMaxSeconds || 0));
|
|
1541
1545
|
const _maxTokens = _tki >= 0 ? Number(process.argv[_tki + 1]) : _inlineMaxTokens;
|
|
1542
1546
|
out = await agent.run(task, {
|
|
1543
|
-
token, lang: cfg.lang || 'pt', yes: YES, autoAll: (YOLO || _inlineYolo || autoAllIn), model, priorMessages, cwd: startCwd, readOnly, plan, accountPlan: cfg.plan || 'free', browser: useBrowser, allowedTools, maxIter: _maxPassos,
|
|
1547
|
+
token, lang: cfg.lang || 'pt', yes: YES, autoAll: (YOLO || _inlineYolo || autoAllIn), model, priorMessages, cwd: startCwd, readOnly, plan, accountPlan: cfg.plan || 'free', browser: useBrowser, allowedTools, maxIter: _maxPassos, orchestrate: !directExecution,
|
|
1544
1548
|
conversationId:sharedConversationId, sharedChannelPrompt,
|
|
1545
1549
|
llmFn:personalAgentLlm || undefined,
|
|
1546
1550
|
keyOverride:personalAgentLlm ? { key:'personal-subscription', baseUrl:'personal://subscription', source:'personal', billingAuthoritative:true } : undefined,
|