terminal-smart-cli 0.97.19 → 0.97.21
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.
- package/bin/ts.js +1 -1
- package/lib/meta.js +9 -0
- package/package.json +1 -1
package/bin/ts.js
CHANGED
|
@@ -1940,7 +1940,7 @@ async function metaCmd() {
|
|
|
1940
1940
|
} else if (st.pause_reason === 'timeout') {
|
|
1941
1941
|
console.log(ui.infoLine('Tempo limite atingido. Retome com "ts meta".'));
|
|
1942
1942
|
} else if (st.pause_reason === 'model_no_action') {
|
|
1943
|
-
console.log(ui.infoLine('O executor
|
|
1943
|
+
console.log(ui.infoLine('O executor não persistiu o artefato esperado. A retomada usará outro executor; geração direta só é permitida para arquivo novo. Rode "ts meta".'));
|
|
1944
1944
|
} else if (st.pause_reason === 'connection') {
|
|
1945
1945
|
console.log(ui.infoLine('O provedor interrompeu a geração. O progresso foi salvo; rode "ts meta" para retomar.'));
|
|
1946
1946
|
} else if (st.pause_reason === 'invalid_artifact') {
|
package/lib/meta.js
CHANGED
|
@@ -56,6 +56,15 @@ function artifactForMetaItem(item, st, dir = '') {
|
|
|
56
56
|
if (/80-100 monstros|lista.*monstros/.test(d)) return 'data/monsters.json';
|
|
57
57
|
if (/economia|zeny|vending/.test(d)) return 'docs/ECONOMY.md';
|
|
58
58
|
if (/prioriza|\bmvp\b.*alpha|roadmap/.test(d)) return 'docs/ROADMAP.md';
|
|
59
|
+
const splitWeb = dir && fs.existsSync(path.join(dir, 'index.html')) && fs.existsSync(path.join(dir, 'src', 'game.js'));
|
|
60
|
+
if (splitWeb) {
|
|
61
|
+
if (/test|npm test|contrato|navegador/.test(d)) {
|
|
62
|
+
if (fs.existsSync(path.join(dir, 'test', 'integration.test.js'))) return 'test/integration.test.js';
|
|
63
|
+
if (fs.existsSync(path.join(dir, 'test', 'core.test.js'))) return 'test/core.test.js';
|
|
64
|
+
}
|
|
65
|
+
if (/visual|cen[aá]rio|ilumina|hud|estilo|profundidade/.test(d) && fs.existsSync(path.join(dir, 'styles.css'))) return 'styles.css';
|
|
66
|
+
return 'src/game.js';
|
|
67
|
+
}
|
|
59
68
|
// Em projeto web de arquivo único, itens funcionais/visuais alteram o app real.
|
|
60
69
|
// Critérios globais não correspondem por posição aos itens do checklist.
|
|
61
70
|
if (dir && fs.existsSync(path.join(dir, 'index.html')) && !/readme|instru[çc][õo]es|documenta[çc][ãa]o/.test(d)) return 'index.html';
|