terminal-smart-cli 0.85.0 → 0.86.0

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 CHANGED
@@ -947,7 +947,7 @@ async function agentCmd(words, { askFn, cwd: cwdIn = null, onCwd = null } = {})
947
947
  if (onCwd && !_wt && effCwd !== startCwd) onCwd(effCwd);
948
948
  const persistCwd = _wt ? _wt.base : effCwd;
949
949
  try { _fs.mkdirSync(_p.dirname(sessFile), { recursive: true }); _fs.writeFileSync(sessFile, JSON.stringify({ cwd: persistCwd, at: new Date().toISOString(), messages: (out.messages || []).slice(-60) })); } catch (_) {}
950
- const secs = ((Date.now() - t0) / 1000).toFixed(1).replace('.', ',');
950
+ const secs = _fmtTime(Date.now() - t0); // tempo total já em min+seg (ex: 12m44s), não segundos crus
951
951
  // WORKTREE: commita o que mudou e prepara o resumo (merge/descarte).
952
952
  const _wtInfo = _wt ? _worktreeFinish(_wt) : null;
953
953
  const _printWt = () => {
package/lib/i18n.js CHANGED
@@ -145,7 +145,7 @@ const STR = {
145
145
  agent_thinking: 'agente pensando',
146
146
  agent_blocked: 'bloqueado (destrutivo)',
147
147
  agent_approve: (cmd) => `O agente quer rodar um comando DESTRUTIVO:\n\n ${cmd}\n\n Permitir? (s/N) `,
148
- agent_footer: (st, cr, s) => `${st} passo(s) · ${cr} créditos · ${s}s`,
148
+ agent_footer: (st, cr, s) => `${st} passo(s) · ${cr} créditos · ${s}`,
149
149
  agent_remote_wait: (ttl) => `comando destrutivo — pedido de aprovação enviado no seu Telegram (responda em até ${Math.round(ttl / 60)} min; sem resposta = negado)`,
150
150
  meta_need: 'Descreva o objetivo. Ex.: ts meta "monte um site de portfólio completo nesta pasta" --budget 300',
151
151
  meta_title: 'MISSÃO',
@@ -297,7 +297,7 @@ const STR = {
297
297
  agent_thinking: 'agent thinking',
298
298
  agent_blocked: 'blocked (destructive)',
299
299
  agent_approve: (cmd) => `The agent wants to run a DESTRUCTIVE command:\n\n ${cmd}\n\n Allow? (y/N) `,
300
- agent_footer: (st, cr, s) => `${st} step(s) · ${cr} credits · ${s}s`,
300
+ agent_footer: (st, cr, s) => `${st} step(s) · ${cr} credits · ${s}`,
301
301
  agent_remote_wait: (ttl) => `destructive command — approval request sent to your Telegram (answer within ${Math.round(ttl / 60)} min; no answer = denied)`,
302
302
  meta_need: 'Describe the goal. E.g.: ts meta "build a complete portfolio site in this folder" --budget 300',
303
303
  meta_title: 'MISSION',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.85.0",
3
+ "version": "0.86.0",
4
4
  "description": "Terminal Smart no seu terminal — pergunte, analise logs por pipe e orquestre agentes de IA. Comando: ts",
5
5
  "bin": {
6
6
  "ts": "bin/ts.js"