terminal-smart-cli 0.97.21 → 0.97.23
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/lib/meta.js +8 -2
- package/package.json +1 -1
package/lib/meta.js
CHANGED
|
@@ -62,6 +62,9 @@ function artifactForMetaItem(item, st, dir = '') {
|
|
|
62
62
|
if (fs.existsSync(path.join(dir, 'test', 'integration.test.js'))) return 'test/integration.test.js';
|
|
63
63
|
if (fs.existsSync(path.join(dir, 'test', 'core.test.js'))) return 'test/core.test.js';
|
|
64
64
|
}
|
|
65
|
+
// Canvas games render character poses and animation in JavaScript. A
|
|
66
|
+
// generic "visual" word must not redirect gameplay animation to CSS.
|
|
67
|
+
if (/anima[çc][aã]o|pose|personagem|movimento|dire[çc][aã]o|npc|miss[aã]o|invent[aá]rio|inimigo|drop|salvar|carregar/.test(d)) return 'src/game.js';
|
|
65
68
|
if (/visual|cen[aá]rio|ilumina|hud|estilo|profundidade/.test(d) && fs.existsSync(path.join(dir, 'styles.css'))) return 'styles.css';
|
|
66
69
|
return 'src/game.js';
|
|
67
70
|
}
|
|
@@ -1580,7 +1583,10 @@ async function run(goal, opts = {}) {
|
|
|
1580
1583
|
// reason to burn the item's second implementation attempt.
|
|
1581
1584
|
if (!model && Array.isArray(item.avoidModels) && item.avoidModels.length) {
|
|
1582
1585
|
const avoid = item.avoidModels.map(v => String(v).toLowerCase());
|
|
1583
|
-
|
|
1586
|
+
// Use only model ids currently exposed by the CDC. Haiku remains in the
|
|
1587
|
+
// intelligence catalog for pricing/history, but it is not a callable CDC
|
|
1588
|
+
// id and must never be selected as the mission recovery executor.
|
|
1589
|
+
const candidates = ['glm-5.2', 'gpt-5.6-luna', 'deepseek-v4-pro'];
|
|
1584
1590
|
roundModel = candidates.find(c => !avoid.some(a => a.includes(c) || c.includes(a))) || roundModel;
|
|
1585
1591
|
}
|
|
1586
1592
|
if (visualLadder && item.id === 'visual_fix' && (st.visualFixes || 0) >= VISUAL_ESCALATE_AT && (useThinker || eye)) {
|
|
@@ -1612,7 +1618,7 @@ async function run(goal, opts = {}) {
|
|
|
1612
1618
|
// retries, switch to another tool-capable model before pausing.
|
|
1613
1619
|
// Change provider family first: if Flash is down, Pro from the same
|
|
1614
1620
|
// family is likely affected too. GLM is the economical independent fallback.
|
|
1615
|
-
const fallbacks = ['glm-5.2', 'deepseek-v4-pro', '
|
|
1621
|
+
const fallbacks = ['glm-5.2', 'deepseek-v4-pro', 'gpt-5.6-luna'];
|
|
1616
1622
|
if (!model && att === 0 && !roundModel) {
|
|
1617
1623
|
st.autoExecutorDegradedUntil = Date.now() + (10 * 60 * 1000);
|
|
1618
1624
|
save(st, dir);
|