chore: remove lixo do repositório (bm/ duplicado, rag/tigre-*, .prev do painel, pastas vazias)
Remove a cópia zipada/extraída redundante do premiere-pro-mcp em bm/, os scripts e schema do RAG de outro sistema (Tigre) que foram parar aqui por engano, os backups manuais .prev do cep-plugin já superados pelo git, um arquivo solto ":memory:.ses" e pastas vazias sem uso em code/engine (domain, skills, dominio/objetos_de_valor, scanner/modelos, scanner/contratos, integracoes/premiere/contratos). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
5f3c7f6a24
commit
29c85be5fe
@@ -1,341 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>MCP for Adobe Premiere Pro</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="panel-shell">
|
||||
<header class="panel-header">
|
||||
<div class="brand-mark" aria-hidden="true"><span>M</span></div>
|
||||
<div class="brand-copy">
|
||||
<h1>MCP for Adobe Premiere Pro</h1>
|
||||
<p>Local Premiere connection</p>
|
||||
</div>
|
||||
<div class="auto-start"><span></span>Auto-start</div>
|
||||
</header>
|
||||
|
||||
<nav class="tab-bar" role="tablist" aria-label="Painel">
|
||||
<button class="tab-button active" id="tabBtnBridge" role="tab" aria-selected="true" aria-controls="tabBridge" onclick="switchTab('bridge')" type="button">Bridge</button>
|
||||
<button class="tab-button" id="tabBtnSilence" role="tab" aria-selected="false" aria-controls="tabSilence" onclick="switchTab('silence')" type="button">Cortar silêncio</button>
|
||||
<button class="tab-button" id="tabBtnSettings" role="tab" aria-selected="false" aria-controls="tabSettings" onclick="switchTab('settings')" type="button">Configurações</button>
|
||||
<button class="tab-button" id="tabBtnModels" role="tab" aria-selected="false" aria-controls="tabModels" onclick="switchTab('models')" type="button">Modelos Locais</button>
|
||||
</nav>
|
||||
|
||||
<div class="tab-panel" id="tabBridge" role="tabpanel" aria-labelledby="tabBtnBridge">
|
||||
|
||||
<section class="status-panel" role="status" aria-live="polite" aria-atomic="true">
|
||||
<div class="status-indicator" aria-hidden="true">
|
||||
<div class="status-ring"><div class="status-dot waiting" id="statusDot"></div></div>
|
||||
</div>
|
||||
<div class="status-copy">
|
||||
<span class="section-label">Bridge status</span>
|
||||
<strong id="statusText">Starting connector…</strong>
|
||||
<span id="statusDetail">Checking Premiere Pro</span>
|
||||
</div>
|
||||
<div class="command-stat">
|
||||
<strong id="cmdCount">0</strong>
|
||||
<span>commands</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="connection-center" aria-labelledby="connectionCenterTitle">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Connection Center</span>
|
||||
<h2 id="connectionCenterTitle">Ready-to-edit check</h2>
|
||||
</div>
|
||||
<button class="save-link" type="button" onclick="refreshConnectionCenter()" aria-controls="connectionChecks">Refresh</button>
|
||||
</div>
|
||||
<p class="connection-intro">This panel only checks Premiere. In your AI assistant, run <strong>Verify Premiere connection</strong> for the complete safe check.</p>
|
||||
<ul class="connection-checks" id="connectionChecks">
|
||||
<li id="checkConnector" data-state="waiting"><span class="check-dot" aria-hidden="true"></span><span><strong>Connector</strong><small>Starting…</small></span></li>
|
||||
<li id="checkProject" data-state="waiting"><span class="check-dot" aria-hidden="true"></span><span><strong>Project</strong><small>Checking…</small></span></li>
|
||||
<li id="checkSequence" data-state="waiting"><span class="check-dot" aria-hidden="true"></span><span><strong>Active sequence</strong><small>Checking…</small></span></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Configuration</span>
|
||||
<h2>Bridge directory</h2>
|
||||
</div>
|
||||
<button class="save-link" id="btnSave" onclick="saveTempDir()" type="button" title="Save bridge directory">
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 3.5h9.4L16.5 6v10.5h-13v-13Z"/><path d="M6.5 3.5v5h7v-5M6.5 16.5v-5h7v5"/></svg>
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
<label class="sr-only" for="tempDir">Temporary bridge directory</label>
|
||||
<div class="path-field">
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M2.5 5.5h5l1.5 2h8.5v8h-15v-10Z"/></svg>
|
||||
<input type="text" id="tempDir" value="" spellcheck="false" autocomplete="off" aria-describedby="tempDirHelp">
|
||||
</div>
|
||||
<p class="field-help" id="tempDirHelp">Commands and responses are exchanged through this local folder.</p>
|
||||
</section>
|
||||
|
||||
<div class="action-row">
|
||||
<button id="btnStart" class="button button-primary" onclick="startBridge()" type="button" aria-controls="log">
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true"><path class="fill-icon" d="m7 5 8 5-8 5V5Z"/></svg>
|
||||
Start Bridge
|
||||
</button>
|
||||
<button id="btnStop" class="button button-stop" onclick="stopBridge()" type="button" aria-controls="log" disabled>
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true"><rect class="fill-icon" x="6" y="6" width="8" height="8" rx="1"/></svg>
|
||||
Stop
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<section class="update-section" aria-live="polite">
|
||||
<div class="update-copy">
|
||||
<span class="section-label">MCP updates</span>
|
||||
<strong id="updateTitle">Version 1.14.9</strong>
|
||||
<span id="updateDetail">Checking the global MCP server and connector release…</span>
|
||||
</div>
|
||||
<button id="btnUpdate" class="button button-update" onclick="handleUpdateClick()" type="button" aria-describedby="updateDetail" disabled>
|
||||
Check again
|
||||
</button>
|
||||
</section>
|
||||
|
||||
<section class="activity-section">
|
||||
<div class="section-heading activity-heading">
|
||||
<div>
|
||||
<span class="section-label">Live monitor</span>
|
||||
<h2>Activity</h2>
|
||||
</div>
|
||||
<span class="activity-state"><span></span>Listening</span>
|
||||
</div>
|
||||
<div id="log" role="log" aria-live="polite" aria-relevant="additions" tabindex="0" aria-label="Bridge activity log"></div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-panel" id="tabSilence" role="tabpanel" aria-labelledby="tabBtnSilence" hidden>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">1. Vídeo</span>
|
||||
<h2>Clipe da sequência ativa</h2>
|
||||
</div>
|
||||
<button class="save-link" id="btnDetectClip" onclick="silenceDetectClip()" type="button">Detectar</button>
|
||||
</div>
|
||||
<p class="field-help" id="silenceClipInfo">Clique em Detectar com a sequência desejada aberta no Premiere.</p>
|
||||
</section>
|
||||
|
||||
<section class="config-section" id="silenceCachedSection" hidden>
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Transcrições salvas</span>
|
||||
<h2>Já existe transcrição deste vídeo</h2>
|
||||
</div>
|
||||
</div>
|
||||
<label class="sr-only" for="silenceCachedSelect">Transcrição salva</label>
|
||||
<select id="silenceCachedSelect" class="path-field-select"></select>
|
||||
<div class="action-row">
|
||||
<button id="btnUseCachedTranscript" class="button button-primary" onclick="silenceUseCachedTranscript()" type="button">Usar esta e ir para o plano de cortes</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">2. Transcrição</span>
|
||||
<h2>Whisper (faster-whisper)</h2>
|
||||
</div>
|
||||
</div>
|
||||
<label class="sr-only" for="silenceModel">Modelo</label>
|
||||
<select id="silenceModel" class="path-field-select">
|
||||
<option value="small" selected>small (recomendado)</option>
|
||||
<option value="base">base (mais rápido)</option>
|
||||
<option value="medium">medium (mais preciso)</option>
|
||||
</select>
|
||||
<label class="checkbox-field">
|
||||
<input type="checkbox" id="silenceDiarize">
|
||||
Detectar quem fala automaticamente após transcrever
|
||||
</label>
|
||||
<div class="action-row">
|
||||
<button id="btnTranscribe" class="button button-primary" onclick="silenceTranscribe()" type="button" disabled>Transcrever</button>
|
||||
</div>
|
||||
<p class="field-help" id="silenceCacheInfo"></p>
|
||||
<div class="action-row">
|
||||
<button id="btnDiarize" class="button" onclick="silenceDiarizeSpeakers()" type="button" disabled>Detectar quem fala nesta transcrição</button>
|
||||
</div>
|
||||
<p class="field-help" id="silenceDiarizeInfo"></p>
|
||||
<div class="action-row">
|
||||
<button id="btnVoiceFeatures" class="button" onclick="silenceComputeVoiceFeatures()" type="button" disabled>Calcular pitch/energia/velocidade/pausas</button>
|
||||
</div>
|
||||
<p class="field-help" id="silenceVoiceFeaturesInfo"></p>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">3. Plano de cortes</span>
|
||||
<h2>Silêncio a remover</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-row">
|
||||
<button id="btnBuildPlan" class="button button-primary" onclick="silenceBuildPlan()" type="button" disabled>Gerar plano</button>
|
||||
</div>
|
||||
<p class="field-help" id="silencePlanInfo"></p>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">4. Aplicar</span>
|
||||
<h2>Cortar na timeline</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p class="field-help" id="silenceApplyInfo">Revise o plano acima antes de aplicar. Esta ação não pode ser desfeita (undo indisponível nesta versão do Premiere) — um backup da sequência é criado automaticamente.</p>
|
||||
<div class="action-row">
|
||||
<button id="btnApplyCuts" class="button button-stop" onclick="silenceApplyCuts()" type="button" disabled>Aplicar cortes na timeline</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">5. Plano de edição</span>
|
||||
<h2>Importar plano (cut/zoom/text/marker)</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p class="field-help">Cole aqui o caminho do arquivo JSON de ações que você recebeu (ex: gerado a partir da transcrição via Claude/skill selecao-trechos). Usa a sequência detectada na seção 1.</p>
|
||||
<label class="sr-only" for="editorialPlanPath">Caminho do arquivo do plano</label>
|
||||
<div class="path-field">
|
||||
<input type="text" id="editorialPlanPath" spellcheck="false" autocomplete="off" placeholder="/caminho/para/actions.json">
|
||||
</div>
|
||||
<div class="action-row">
|
||||
<button id="btnApplyEditorialActions" class="button button-stop" onclick="applyEditorialActions()" type="button">Aplicar plano de edição</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="activity-section">
|
||||
<div class="section-heading activity-heading">
|
||||
<div>
|
||||
<span class="section-label">Progresso</span>
|
||||
<h2>Log</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="silenceLog" role="log" aria-live="polite" aria-relevant="additions" tabindex="0" aria-label="Silence cut log"></div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-panel" id="tabSettings" role="tabpanel" aria-labelledby="tabBtnSettings" hidden>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Configuração</span>
|
||||
<h2>Hugging Face token</h2>
|
||||
</div>
|
||||
<button class="save-link" id="btnSaveHfToken" onclick="saveHfToken()" type="button" title="Salvar token">Salvar</button>
|
||||
</div>
|
||||
<label class="sr-only" for="hfToken">Hugging Face access token</label>
|
||||
<div class="path-field">
|
||||
<input type="password" id="hfToken" placeholder="hf_..." spellcheck="false" autocomplete="off" aria-describedby="hfTokenHelp">
|
||||
<button type="button" class="path-field-toggle" id="btnToggleHfToken" onclick="toggleHfTokenVisibility()" aria-label="Mostrar/ocultar token">👁</button>
|
||||
</div>
|
||||
<p class="field-help" id="hfTokenHelp">
|
||||
Usado para autenticar downloads de modelos no Hugging Face e evitar limites de requisições anônimas.
|
||||
<button type="button" class="save-link" id="btnValidateHfToken" onclick="validateHfToken()">Validar</button>
|
||||
</p>
|
||||
<div class="hf-token-status" id="hfTokenStatus" data-state="unset">
|
||||
<span class="check-dot" aria-hidden="true"></span>
|
||||
<span id="hfTokenStatusText">Não configurado</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Configuração do Editor</span>
|
||||
<h2>Personalidades de edição</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p class="field-help">
|
||||
Descreva, em texto livre, como você espera que a edição seja feita (ex: "depoimento" — zoom
|
||||
suave em momentos emotivos, corta hesitação; "podcast" — ritmo ágil, corta silêncio agressivo).
|
||||
A personalidade marcada como ativa vai junto no JSON gerado na transcrição.
|
||||
</p>
|
||||
<div class="model-list" id="editorPersonalityList"></div>
|
||||
<div class="action-row">
|
||||
<button id="btnNewPersonality" class="button button-primary" onclick="startNewEditorPersonality()" type="button">+ Nova personalidade</button>
|
||||
</div>
|
||||
|
||||
<div id="editorPersonalityForm" hidden>
|
||||
<label class="sr-only" for="editorPersonalityName">Nome da personalidade</label>
|
||||
<div class="path-field">
|
||||
<input type="text" id="editorPersonalityName" placeholder="Ex: Depoimento emocional" spellcheck="false" autocomplete="off">
|
||||
</div>
|
||||
<label class="sr-only" for="editorPersonalityText">Descrição do comportamento</label>
|
||||
<textarea id="editorPersonalityText" rows="6" placeholder="Descreva livremente o comportamento esperado do editor para esse tipo de vídeo…"></textarea>
|
||||
<div class="action-row">
|
||||
<button id="btnSavePersonality" class="button button-primary" onclick="saveEditorPersonalityForm()" type="button">Salvar</button>
|
||||
<button id="btnCancelPersonality" class="button" onclick="cancelEditorPersonalityForm()" type="button">Cancelar</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-panel" id="tabModels" role="tabpanel" aria-labelledby="tabBtnModels" hidden>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Configuração</span>
|
||||
<h2>Pasta de modelos</h2>
|
||||
</div>
|
||||
<button class="save-link" id="btnSaveModelsPath" onclick="saveModelsPath()" type="button" title="Salvar pasta">Salvar</button>
|
||||
</div>
|
||||
<label class="sr-only" for="modelsPath">Pasta de modelos</label>
|
||||
<div class="path-field">
|
||||
<input type="text" id="modelsPath" spellcheck="false" autocomplete="off" aria-describedby="modelsPathHelp">
|
||||
</div>
|
||||
<p class="field-help" id="modelsPathHelp">Onde os modelos Whisper baixados ficam armazenados. Mudar a pasta não move modelos já baixados.</p>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Configuração</span>
|
||||
<h2>Idioma da transcrição</h2>
|
||||
</div>
|
||||
<button class="save-link" id="btnSaveLanguage" onclick="saveLanguage()" type="button" title="Salvar idioma">Salvar</button>
|
||||
</div>
|
||||
<label class="sr-only" for="transcribeLanguage">Idioma</label>
|
||||
<select id="transcribeLanguage" class="path-field-select"></select>
|
||||
</section>
|
||||
|
||||
<section class="config-section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-label">Modelos</span>
|
||||
<h2>Modelos locais (Whisper)</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="model-list" id="modelList"></div>
|
||||
</section>
|
||||
|
||||
<section class="activity-section">
|
||||
<div class="section-heading activity-heading">
|
||||
<div>
|
||||
<span class="section-label">Progresso</span>
|
||||
<h2>Log</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="modelsLog" role="log" aria-live="polite" aria-relevant="additions" tabindex="0" aria-label="Models download log"></div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script src="CSInterface.js"></script>
|
||||
<script src="updater.cjs"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,407 +0,0 @@
|
||||
:root {
|
||||
--bg: #151516;
|
||||
--surface: #1c1c1f;
|
||||
--surface-raised: #222226;
|
||||
--surface-deep: #111113;
|
||||
--border: #35353a;
|
||||
--border-strong: #494950;
|
||||
--text: #f2f1f4;
|
||||
--text-secondary: #adabb3;
|
||||
--text-muted: #74727b;
|
||||
--violet: #9b6cff;
|
||||
--violet-hover: #ad87ff;
|
||||
--violet-soft: rgba(155, 108, 255, 0.12);
|
||||
--green: #70d987;
|
||||
--green-soft: rgba(112, 217, 135, 0.1);
|
||||
--red: #ff6565;
|
||||
--amber: #e9b85d;
|
||||
--radius: 7px;
|
||||
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
|
||||
--font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body { width: 100%; min-width: 280px; height: 100%; margin: 0; }
|
||||
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin: 0 0 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.tab-button {
|
||||
flex: 1;
|
||||
padding: 8px 10px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 10.8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.tab-button:hover { color: var(--text); }
|
||||
|
||||
.tab-button.active {
|
||||
color: var(--text);
|
||||
border-bottom-color: var(--violet);
|
||||
}
|
||||
|
||||
.tab-panel[hidden] { display: none; }
|
||||
|
||||
.path-field-select {
|
||||
width: 100%;
|
||||
padding: 7px 10px;
|
||||
margin-bottom: 10px;
|
||||
background: var(--surface-deep);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-ui);
|
||||
font-size: 10.8px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
button, input { font: inherit; }
|
||||
button { -webkit-appearance: none; }
|
||||
|
||||
.panel-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 420px;
|
||||
padding: 0 14px 14px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 66px;
|
||||
margin: 0 -14px 14px;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: #19191b;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
margin-right: 10px;
|
||||
border: 1px solid #aa83ff;
|
||||
border-radius: 8px;
|
||||
background: var(--violet-soft);
|
||||
color: #cbb8ff;
|
||||
font-size: 13.5px;
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
.brand-copy { min-width: 0; }
|
||||
.brand-copy h1 { margin: 0; font-size: 12.6px; line-height: 1.25; font-weight: 650; letter-spacing: .01em; }
|
||||
.brand-copy p { margin: 3px 0 0; color: var(--text-muted); font-size: 9px; }
|
||||
|
||||
.auto-start {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-left: auto;
|
||||
color: var(--text-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
.auto-start > span { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
|
||||
|
||||
.status-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
min-height: 88px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.status-indicator { display: flex; align-items: center; }
|
||||
.status-ring {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 50%;
|
||||
background: var(--surface-deep);
|
||||
}
|
||||
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); transition: background .2s, box-shadow .2s; }
|
||||
.status-dot.connected { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); animation: breathe 2.4s ease-in-out infinite; }
|
||||
.status-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 101, 101, .1); }
|
||||
.status-dot.waiting { background: var(--amber); box-shadow: 0 0 0 5px rgba(233, 184, 93, .1); }
|
||||
|
||||
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 4px var(--green-soft); } 50% { box-shadow: 0 0 0 7px rgba(112, 217, 135, .04); } }
|
||||
|
||||
.section-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 8.1px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
|
||||
.status-copy { min-width: 0; }
|
||||
.status-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 12.6px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.status-copy strong::before { content: "■ "; color: var(--text-muted); }
|
||||
.status-copy strong[data-state="connected"]::before { content: "✓ "; color: var(--green); }
|
||||
.status-copy strong[data-state="waiting"]::before { content: "… "; color: var(--amber); }
|
||||
.status-copy strong[data-state="error"]::before { content: "! "; color: var(--red); }
|
||||
.status-copy #statusDetail { display: block; overflow: hidden; margin-top: 3px; color: var(--text-secondary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.command-stat { padding-left: 14px; text-align: right; }
|
||||
.command-stat strong { display: block; font: 600 20px/1 var(--font-mono); }
|
||||
.command-stat span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 8.1px; }
|
||||
|
||||
.config-section { padding: 19px 0 15px; border-bottom: 1px solid var(--border); }
|
||||
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 9px; }
|
||||
.section-heading h2 { margin: 0; font-size: 10.8px; font-weight: 600; }
|
||||
|
||||
.save-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 0 4px 8px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--violet);
|
||||
cursor: pointer;
|
||||
font-size: 9px;
|
||||
}
|
||||
.save-link svg, .path-field svg, .button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
|
||||
.save-link:hover { color: var(--violet-hover); }
|
||||
|
||||
.path-field { position: relative; display: flex; align-items: center; }
|
||||
.path-field > svg { position: absolute; left: 10px; color: var(--text-muted); pointer-events: none; }
|
||||
.path-field input {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
padding: 0 10px 0 32px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
outline: none;
|
||||
background: var(--surface-deep);
|
||||
color: var(--text-secondary);
|
||||
font: 10px var(--font-mono);
|
||||
user-select: text;
|
||||
transition: border-color .15s, background .15s;
|
||||
}
|
||||
.path-field input:hover { border-color: var(--border-strong); }
|
||||
.path-field input:focus { border-color: var(--violet); background: #141318; color: var(--text); box-shadow: 0 0 0 2px var(--violet-soft); }
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
outline: none;
|
||||
background: var(--surface-deep);
|
||||
color: var(--text-secondary);
|
||||
font: 10px var(--font-mono);
|
||||
resize: vertical;
|
||||
transition: border-color .15s, background .15s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
textarea:hover { border-color: var(--border-strong); }
|
||||
textarea:focus { border-color: var(--violet); background: #141318; color: var(--text); box-shadow: 0 0 0 2px var(--violet-soft); }
|
||||
.field-help { margin: 7px 0 0; color: var(--text-muted); font-size: 8.1px; line-height: 1.45; }
|
||||
|
||||
.action-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(84px, .65fr); gap: 8px; padding: 14px 0; }
|
||||
.button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
height: 34px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
background: var(--surface);
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 9.9px;
|
||||
font-weight: 600;
|
||||
transition: background .15s, border-color .15s, color .15s;
|
||||
}
|
||||
.button:hover { border-color: var(--border-strong); background: var(--surface-deep); color: var(--text); }
|
||||
.button svg .fill-icon { fill: currentColor; stroke: none; }
|
||||
.button-primary { border-color: transparent; background: var(--violet); color: #110d19; }
|
||||
.button-primary:hover { background: var(--violet-hover); }
|
||||
.button-stop { border-color: #6b3c3f; background: transparent; color: #ff8b8b; }
|
||||
.button-stop:hover { border-color: var(--red); background: rgba(255, 101, 101, .08); }
|
||||
.button:disabled { border-color: var(--border); background: var(--surface); color: #5f5e65; cursor: default; }
|
||||
|
||||
.update-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 14px;
|
||||
padding: 11px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.connection-center {
|
||||
margin: 0 0 14px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
}
|
||||
.connection-center .section-heading { margin-bottom: 8px; }
|
||||
.connection-center h2 { font-size: 10.8px; }
|
||||
.connection-intro { margin: 0 0 10px; color: var(--text-muted); font-size: 8.1px; line-height: 1.45; }
|
||||
.connection-intro strong { color: var(--text-secondary); font-weight: 600; }
|
||||
.connection-checks { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
|
||||
.connection-checks li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-deep); }
|
||||
.connection-checks li > span:last-child { min-width: 0; }
|
||||
.connection-checks strong, .connection-checks small { display: block; }
|
||||
.connection-checks strong { color: var(--text-secondary); font-size: 9px; font-weight: 600; }
|
||||
.connection-checks small { margin-top: 2px; color: var(--text-muted); font-size: 8.1px; }
|
||||
.check-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-muted); }
|
||||
.connection-checks li[data-state="ready"] .check-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
|
||||
.connection-checks li[data-state="needs-attention"] .check-dot { background: var(--amber); }
|
||||
.update-copy { min-width: 0; flex: 1; }
|
||||
.update-copy strong, .update-copy > span:last-child { display: block; }
|
||||
.update-copy strong { font-size: 9.9px; font-weight: 600; }
|
||||
.update-copy > span:last-child { margin-top: 3px; color: var(--text-muted); font-size: 8.1px; line-height: 1.4; }
|
||||
.button-update {
|
||||
width: auto;
|
||||
min-width: 92px;
|
||||
height: 30px;
|
||||
padding: 0 10px;
|
||||
border-color: var(--border-strong);
|
||||
background: var(--surface-raised);
|
||||
color: var(--violet-hover);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.button-update:hover { border-color: var(--violet); background: var(--violet-soft); }
|
||||
|
||||
.activity-section { display: flex; flex: 1; min-height: 120px; flex-direction: column; }
|
||||
.activity-heading { align-items: center; margin: 2px 0 8px; }
|
||||
.activity-state { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 8.1px; }
|
||||
.activity-state > span { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
|
||||
|
||||
#log {
|
||||
flex: 1;
|
||||
min-height: 100px;
|
||||
overflow-y: auto;
|
||||
padding: 10px 11px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
background: var(--surface-deep);
|
||||
font: 10px/1.65 var(--font-mono);
|
||||
user-select: text;
|
||||
}
|
||||
#log:empty::before { content: "Waiting for activity..."; color: var(--text-muted); }
|
||||
#log::-webkit-scrollbar { width: 5px; }
|
||||
#log::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--border-strong); }
|
||||
.log-entry { color: var(--text-muted); animation: log-in .18s ease-out; }
|
||||
.log-entry.cmd { color: #b89cff; }
|
||||
.log-entry.ok { color: var(--green); }
|
||||
.log-entry.err { color: #ff8585; }
|
||||
|
||||
@keyframes log-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
|
||||
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
|
||||
button:focus-visible, input:focus-visible, #log:focus-visible { outline: 2px solid var(--violet-hover); outline-offset: 2px; }
|
||||
|
||||
@media (max-width: 330px) {
|
||||
.panel-shell { padding-right: 10px; padding-left: 10px; }
|
||||
.panel-header { margin-right: -10px; margin-left: -10px; padding-right: 10px; padding-left: 10px; }
|
||||
.auto-start { display: none; }
|
||||
.status-panel { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
|
||||
.command-stat { grid-column: 2; padding: 8px 0 0; text-align: left; }
|
||||
.command-stat strong, .command-stat span { display: inline; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
.status-dot, .auto-start > span, .activity-state > span { forced-color-adjust: none; border: 1px solid CanvasText; }
|
||||
.button, .path-field input, #log, .status-panel { border-color: CanvasText; }
|
||||
.status-copy strong::before { color: CanvasText !important; }
|
||||
}
|
||||
|
||||
/* ---- Settings tab: HF token ---- */
|
||||
#hfToken { padding-left: 10px; padding-right: 32px; }
|
||||
.path-field-toggle {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
padding: 4px;
|
||||
}
|
||||
.path-field-toggle:hover { color: var(--text); }
|
||||
|
||||
.hf-token-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 8px;
|
||||
font-size: 8.1px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.hf-token-status[data-state="valid"] .check-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
|
||||
.hf-token-status[data-state="invalid"] .check-dot { background: var(--red); }
|
||||
.hf-token-status[data-state="checking"] .check-dot { background: var(--amber); }
|
||||
|
||||
.checkbox-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 10px;
|
||||
font-size: 9px;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
.checkbox-field input { margin: 0; }
|
||||
|
||||
/* ---- Models tab ---- */
|
||||
.model-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.model-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.model-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
||||
.model-name { font-size: 10.8px; font-weight: 600; }
|
||||
.model-meta { display: flex; flex-wrap: wrap; gap: 5px; }
|
||||
.model-badge {
|
||||
font-size: 7.6px;
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-subtle, rgba(127, 127, 127, 0.12));
|
||||
border-radius: 4px;
|
||||
padding: 2px 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.model-badge-star { color: #b8860b; background: rgba(184, 134, 11, 0.15); }
|
||||
.model-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
|
||||
.model-btn-active { opacity: 0.7; cursor: default; }
|
||||
Reference in New Issue
Block a user