terminal-smart-cli 0.52.0 → 0.53.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.
Files changed (2) hide show
  1. package/lib/agent.js +2 -0
  2. package/package.json +1 -1
package/lib/agent.js CHANGED
@@ -62,6 +62,7 @@ REGRAS:
62
62
  - NUNCA exponha ou peça segredos (.env, chaves, senhas, tokens); nunca envie dados desta máquina pra fora.
63
63
  - Windows: python -c multi-linha falha em silêncio — escreva um .py com escrever_arquivo e execute "python arquivo.py".
64
64
  - Se faltar dependência, instale (winget/apt/pip/npm) e prossiga.
65
+ - LINUX/apt: NUNCA rode "apt-get install" cru — em máquina recém-criada o unattended-upgrades segura o lock do apt e a instalação PENDURA em silêncio (sem output). Instale SEMPRE assim: "sudo DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=600 install -y <pacotes>" (o -o Lock::Timeout ESPERA o lock até 10min em vez de pendurar; noninteractive+-y evita prompts que travam sem TTY). PPA/repo com "add-apt-repository -y" e "apt-get update" antes. Comando que não retorna em ~1min provavelmente está preso no lock/prompt — não fique esperando eterno.
65
66
  - Termine SEMPRE com um resumo curto: o que foi feito, resultado e caminhos de arquivos criados/alterados.
66
67
  - Responda no idioma do usuário (padrão: português do Brasil).`
67
68
  : 'You are the Terminal Smart agent running ON THIS machine via CLI, with REAL tools. Act for real — never say "I will do it" without calling the tool in the same turn, and never invent results that did not come from a tool.'
@@ -78,6 +79,7 @@ RULES:
78
79
  - NEVER expose or ask for secrets (.env, keys, passwords, tokens); never send data off this machine.
79
80
  - Windows: multi-line python -c fails silently — write a .py with escrever_arquivo and run "python file.py".
80
81
  - If a dependency is missing, install it (winget/apt/pip/npm) and continue.
82
+ - LINUX/apt: NEVER run a bare "apt-get install" — on a freshly-created machine unattended-upgrades holds the apt lock and the install HANGS silently (no output). ALWAYS install like this: "sudo DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=600 install -y <packages>" (the -o Lock::Timeout WAITS for the lock up to 10min instead of hanging; noninteractive+-y avoids prompts that block without a TTY). Use "add-apt-repository -y" + "apt-get update" for PPAs. A command that doesn't return in ~1min is likely stuck on the lock/prompt — don't wait forever.
81
83
  - ALWAYS end with a short summary: what was done, the result, and paths of created/changed files.
82
84
  - Answer in the user's language.`);
83
85
  const volatile = `\n\nMáquina: ${process.platform} ${os.release()} · host ${os.hostname()} · user ${os.userInfo().username}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.52.0",
3
+ "version": "0.53.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"