terminal-smart-cli 0.97.27 → 0.97.28

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 +5 -1
  2. package/package.json +1 -1
package/lib/meta.js CHANGED
@@ -51,13 +51,17 @@ function artifactForMetaItem(item, st, dir = '') {
51
51
  const criteria = Array.isArray(st && st.criteria) ? st.criteria : [];
52
52
  const namedCriterion = criteria.find(c => c && c.path && d.includes(path.basename(String(c.path)).toLowerCase()));
53
53
  if (namedCriterion) return String(namedCriterion.path);
54
+ const splitWebProject = dir && fs.existsSync(path.join(dir, 'index.html')) && fs.existsSync(path.join(dir, 'src', 'game.js'));
55
+ // In an existing browser game, UI/HUD requests are implementation work.
56
+ // The generic UI-spec fallback below is only for greenfield design projects.
57
+ if (splitWebProject && /\bhud\b|interface/.test(d) && fs.existsSync(path.join(dir, 'styles.css'))) return 'styles.css';
54
58
  if (/controller.*8 dire|8 dire.*controller/.test(d)) return 'src/player_controller.gd';
55
59
  if (/combate b[aá]sico|sistema de combate/.test(d)) return 'src/combat_system.gd';
56
60
  if (/interface|\bui\b|\bhud\b/.test(d)) return 'docs/UI_SPEC.md';
57
61
  if (/80-100 monstros|lista.*monstros/.test(d)) return 'data/monsters.json';
58
62
  if (/economia|zeny|vending/.test(d)) return 'docs/ECONOMY.md';
59
63
  if (/prioriza|\bmvp\b.*alpha|roadmap/.test(d)) return 'docs/ROADMAP.md';
60
- const splitWeb = dir && fs.existsSync(path.join(dir, 'index.html')) && fs.existsSync(path.join(dir, 'src', 'game.js'));
64
+ const splitWeb = splitWebProject;
61
65
  if (splitWeb) {
62
66
  if (/test|npm test|contrato|navegador/.test(d)) {
63
67
  if (fs.existsSync(path.join(dir, 'test', 'integration.test.js'))) return 'test/integration.test.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.97.27",
3
+ "version": "0.97.28",
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"