terminal-smart-cli 0.44.0 → 0.45.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/meta.js +7 -0
  2. package/package.json +1 -1
package/lib/meta.js CHANGED
@@ -1035,6 +1035,13 @@ async function run(goal, opts = {}) {
1035
1035
  save(st, dir);
1036
1036
  } else {
1037
1037
  st.status = 'running';
1038
+ // RESUME = tentativa LIMPA. Sem isto, missão pausada por estagnação RE-TRAVA na hora
1039
+ // (contador/fp/erro-de-build persistidos no estado). Zera o watchdog + escalonamentos e
1040
+ // LIMPA o buildError velho → o gate RE-RODA do zero (pega fix de ambiente/harness que
1041
+ // resolveu o erro fora do código, ex: porta que estava ocupada). Se ainda falhar DE VERDADE,
1042
+ // os contadores re-acumulam normalmente nesta janela e o watchdog corta como sempre.
1043
+ st.stagnant = 0; st.lastFp = null; st.escalations = 0;
1044
+ st.buildError = ''; st.lastBuildSig = '';
1038
1045
  if (opts.addBudget) st.budget += opts.addBudget;
1039
1046
  else if (st.creditsSpent >= st.budget) st.budget = st.creditsSpent + budget; // nova janela ao retomar
1040
1047
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.44.0",
3
+ "version": "0.45.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"