// The assistant: a round button in the bottom right corner opens a chat. Each // question goes with what the panel shows - the tabs, the active pane, the // text of its terminal or its list of files - and the answer streams in. // Commands the model suggests come as ```run``` blocks with «Выполнить»: a // click sends the command to the active terminal, with the user's rights. // On by default; the user can turn it off in the profile. (function () { 'use strict'; const PLANE = ''; const STOP = ''; const esc = v => String(v).replace(/[&<>"]/g, c => ({'&': '&', '<': '<', '>': '>', '"': '"'}[c])); const fab = document.createElement('button'); fab.type = 'button'; fab.className = 'ai-fab'; fab.hidden = true; fab.title = 'ИИ-ассистент'; fab.setAttribute('aria-label', 'ИИ-ассистент'); fab.innerHTML = ''; const box = document.createElement('div'); box.className = 'ai-box'; box.innerHTML = '
Спросите о том, что открыто в панели.
' + esc(code) + '' : '') + '
' + esc(code) + '