terminal-smart-cli 0.51.0 → 0.51.1

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/diagnose.js +5 -1
  2. package/package.json +1 -1
package/lib/diagnose.js CHANGED
@@ -14,7 +14,11 @@ const MUTATE = /(^|[\s;|&(])(rm|rmdir|mv|cp|dd|mkfs\S*|chmod|chown|ln|truncate|t
14
14
  function isProbe(cmd) { return !MUTATE.test(String(cmd || '')); }
15
15
 
16
16
  function sysPrompt(lang, target) {
17
- const where = target ? (lang === 'en' ? `The system under investigation is REMOTE: probes run via "${target}".` : `O sistema investigado é REMOTO: as sondas rodam via "${target}".`) : (lang === 'en' ? 'The system under investigation is THIS machine.' : 'O sistema investigado é ESTA máquina.');
17
+ const where = target
18
+ ? (lang === 'en'
19
+ ? `The system under investigation is REMOTE. IMPORTANT: write each probe as a BARE command only (e.g. \`ldd /home/gamed/gs\`, \`nm -C /home/gamed/gs\`). NEVER prepend ssh or any connection/host — the tool AUTOMATICALLY transports each probe to the remote. Adding ssh yourself causes a double-ssh and fails.`
20
+ : `O sistema investigado é REMOTO. IMPORTANTE: escreva cada sonda como comando CRU (ex.: \`ldd /home/gamed/gs\`, \`nm -C /home/gamed/gs\`). NUNCA prefixe ssh nem host/conexão — a ferramenta LEVA cada sonda pro remoto AUTOMATICAMENTE. Colocar ssh você mesmo causa ssh-duplo e falha.`)
21
+ : (lang === 'en' ? 'The system under investigation is THIS machine.' : 'O sistema investigado é ESTA máquina.');
18
22
  return lang === 'en'
19
23
  ? `You are a SENIOR DIAGNOSTICIAN. Given a symptom, find the ROOT CAUSE by investigation — never guess a fix blindly.
20
24
  ${where}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
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"