terminal-smart-cli 0.42.0 → 0.43.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/bin/ts.js +5 -2
  2. package/package.json +1 -1
package/bin/ts.js CHANGED
@@ -1142,14 +1142,17 @@ function _metaChecklistBox(itens) {
1142
1142
  async function metaCmd() {
1143
1143
  const token = needToken();
1144
1144
  const metaMod = require('../lib/meta');
1145
- const dir = process.cwd();
1145
+ // --dir/--pasta/-C: pasta do projeto (absoluta ou relativa; criada se não existir). Sem ela, usa o cwd.
1146
+ const _dirArg = (() => { const i = rawArgs.findIndex(a => a === '--dir' || a === '--pasta' || a === '-C'); return i >= 0 ? rawArgs[i + 1] : null; })();
1147
+ const dir = _dirArg ? require('path').resolve(_dirArg) : process.cwd();
1148
+ if (_dirArg) { try { require('fs').mkdirSync(dir, { recursive: true }); } catch (_) {} }
1146
1149
 
1147
1150
  // objetivo = args após "meta", pulando flags e seus valores (--budget 300 não entra no texto)
1148
1151
  const mi = rawArgs.findIndex(a => ['meta', 'missao', 'mission'].includes(String(a).toLowerCase()));
1149
1152
  const parts = [];
1150
1153
  for (let i = mi + 1; i < rawArgs.length; i++) {
1151
1154
  const a = rawArgs[i];
1152
- if (a.startsWith('-')) { if (['--budget', '--rodadas', '--rounds', '--modelo', '--model', '--pensador', '--thinker', '--maxmin', '--designer', '--design', '--olho', '--eye', '--mockup', '--arquivo', '--file', '-f', '--budget-total', '--max-janelas', '--max-windows', '--max-horas', '--intervalo'].includes(a)) i++; continue; }
1155
+ if (a.startsWith('-')) { if (['--budget', '--rodadas', '--rounds', '--modelo', '--model', '--pensador', '--thinker', '--maxmin', '--designer', '--design', '--olho', '--eye', '--mockup', '--arquivo', '--file', '-f', '--budget-total', '--max-janelas', '--max-windows', '--max-horas', '--intervalo', '--dir', '--pasta', '-C'].includes(a)) i++; continue; }
1153
1156
  parts.push(a);
1154
1157
  }
1155
1158
  // objetivo pode vir de um ARQUIVO (--arquivo/-f caminho.txt) — evita a dor de passar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.42.0",
3
+ "version": "0.43.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"