feat(console): replace LLM with real linters (node/python/ruby/php/perl/go) v0.7.8

This commit is contained in:
Naeel
2026-04-20 14:35:58 +03:00
parent 6f0101f656
commit 411de75b27
3 changed files with 84 additions and 77 deletions
+4 -4
View File
@@ -391,7 +391,7 @@
return {"ok": True, "msg": "hello from fission console"}
</textarea>
<div style="margin-top:6px;">
<button class="btn ghost" id="c-ai-btn" onclick="aiCheck('c-code','c-lang','c-ai-result')">&#x2728; Проверить синтаксис</button>
<button class="btn ghost" id="c-ai-btn" onclick="aiCheck('c-code','c-lang','c-ai-result')">&#x1F50D; Проверить синтаксис</button>
</div>
<div id="c-ai-result" style="display:none;margin-top:8px;padding:10px 12px;border-radius:6px;font-size:13px;line-height:1.5;white-space:pre-wrap;font-family:monospace;"></div>
</div>
@@ -425,7 +425,7 @@
<label>Код</label>
<textarea id="e-code"></textarea>
<div style="margin-top:6px;">
<button class="btn ghost" id="e-ai-btn" onclick="aiCheck('e-code','e-lang-hidden','e-ai-result')">&#x2728; Проверить синтаксис</button>
<button class="btn ghost" id="e-ai-btn" onclick="aiCheck('e-code','e-lang-hidden','e-ai-result')">&#x1F50D; Проверить синтаксис</button>
</div>
<div id="e-ai-result" style="display:none;margin-top:8px;padding:10px 12px;border-radius:6px;font-size:13px;line-height:1.5;white-space:pre-wrap;font-family:monospace;"></div>
</div>
@@ -625,7 +625,7 @@
document.getElementById('e-env').value = fn.environment || '';
document.getElementById('e-entry').value = fn.entrypoint || '';
document.getElementById('e-code').value = fn.code || '';
// Определяем язык по имени environment для подсказки AI
// Определяем язык по имени environment для линтера
var envName = (fn.environment || '').toLowerCase();
var lang = 'python';
if (envName.includes('node')) lang = 'nodejs';
@@ -837,7 +837,7 @@
resEl.textContent = 'Ошибка: ' + e.message;
} finally {
btn.disabled = false;
btn.textContent = ' Проверить синтаксис';
btn.textContent = '🔍 Проверить синтаксис';
}
}