ai-agentmanager 0.0.0-stage → 1.0.0
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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +767 -2
- package/SECURITY.md +44 -0
- package/bin/agentmgr-hub.js +16 -0
- package/bin/agentmgr.js +4 -0
- package/docs/architecture.md +67 -0
- package/docs/distributed.md +147 -0
- package/docs/engines.md +177 -0
- package/docs/images/agents.jpg +0 -0
- package/docs/images/conflict-radar.jpg +0 -0
- package/docs/plugins.md +81 -0
- package/package.json +56 -4
- package/public/app.js +3083 -0
- package/public/hub/hub.css +230 -0
- package/public/hub/hub.js +766 -0
- package/public/hub/index.html +146 -0
- package/public/hub/term.js +147 -0
- package/public/index.html +342 -0
- package/public/share.html +34 -0
- package/public/share.js +41 -0
- package/public/style.css +541 -0
- package/public/touchscroll.js +73 -0
- package/public/transport.js +78 -0
- package/scripts/build-release.sh +58 -0
- package/scripts/fix-pty.js +15 -0
- package/src/backlog.js +413 -0
- package/src/brief.js +512 -0
- package/src/cli.js +1447 -0
- package/src/client.js +49 -0
- package/src/config.js +109 -0
- package/src/conflicts.js +105 -0
- package/src/engines/antigravity.js +296 -0
- package/src/engines/claude.js +98 -0
- package/src/engines/codex.js +331 -0
- package/src/engines/index.js +37 -0
- package/src/fleet.js +176 -0
- package/src/git.js +340 -0
- package/src/hub.js +857 -0
- package/src/hubactions.js +107 -0
- package/src/hubbacklog.js +373 -0
- package/src/hublink.js +437 -0
- package/src/inbox.js +94 -0
- package/src/judge.js +278 -0
- package/src/livebrowser.js +637 -0
- package/src/manager.js +2554 -0
- package/src/notify.js +284 -0
- package/src/plugins.js +119 -0
- package/src/preview.js +334 -0
- package/src/races.js +192 -0
- package/src/remote.js +284 -0
- package/src/server.js +759 -0
- package/src/service.js +150 -0
- package/src/sessions.js +160 -0
- package/src/store.js +104 -0
- package/src/stuck.js +160 -0
- package/src/tracker.js +311 -0
- package/src/trust.js +44 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Document</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root { color-scheme: light; }
|
|
9
|
+
body { margin: 0; background: #f4f5f7; color: #1c2330; font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
|
|
10
|
+
.bar { position: sticky; top: 0; display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid #dde1e7; }
|
|
11
|
+
.bar .grow { flex: 1; color: #667085; font-size: 13px; }
|
|
12
|
+
.bar button { font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid #3b5bdb; background: #3b5bdb; color: #fff; cursor: pointer; }
|
|
13
|
+
main { max-width: 860px; margin: 24px auto; padding: 32px 40px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
|
|
14
|
+
h1 { font-size: 26px; margin: 0 0 14px; }
|
|
15
|
+
h2 { font-size: 19px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e3e6eb; }
|
|
16
|
+
code { background: #f0f2f5; padding: 0 4px; border-radius: 4px; font-size: 13px; }
|
|
17
|
+
pre { background: #f0f2f5; padding: 10px; border-radius: 6px; overflow-x: auto; }
|
|
18
|
+
table { border-collapse: collapse; } th, td { border: 1px solid #dde1e7; padding: 4px 8px; text-align: left; }
|
|
19
|
+
.diagram { margin: 10px 0 16px; text-align: center; } .diagram svg { max-width: 100%; height: auto; }
|
|
20
|
+
.meta { color: #667085; font-size: 12.5px; margin-top: 28px; border-top: 1px solid #e3e6eb; padding-top: 8px; }
|
|
21
|
+
.error { color: #d64545; }
|
|
22
|
+
@media print {
|
|
23
|
+
body { background: #fff; } .bar { display: none; }
|
|
24
|
+
main { box-shadow: none; margin: 0; padding: 0; max-width: none; }
|
|
25
|
+
h2 { break-after: avoid; } .diagram, pre, table { break-inside: avoid; }
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="bar"><span class="grow" id="status">Loading…</span><button id="print">Print / Save as PDF</button></div>
|
|
31
|
+
<main id="doc"></main>
|
|
32
|
+
<script type="module" src="/share.js"></script>
|
|
33
|
+
</body>
|
|
34
|
+
</html>
|
package/public/share.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Print-ready view of one agent document: /share.html#<agent id>/<analysis|design|flow|proposal>
|
|
2
|
+
import { marked } from '/vendor/marked/marked.esm.js';
|
|
3
|
+
import DOMPurify from '/vendor/dompurify/purify.es.mjs';
|
|
4
|
+
|
|
5
|
+
const $ = (s) => document.querySelector(s);
|
|
6
|
+
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
7
|
+
const [agentId, kind] = location.hash.slice(1).split('/');
|
|
8
|
+
$('#print').onclick = () => window.print();
|
|
9
|
+
|
|
10
|
+
async function main() {
|
|
11
|
+
const res = await fetch(`/api/agents/${encodeURIComponent(agentId)}`, { credentials: 'same-origin' });
|
|
12
|
+
if (!res.ok) throw new Error(res.status === 401 ? 'Sign in to Agent Manager first, then reopen this page.' : `HTTP ${res.status}`);
|
|
13
|
+
const a = await res.json();
|
|
14
|
+
const d = a.docs?.[kind];
|
|
15
|
+
if (!d?.markdown) throw new Error('This document has not been written yet.');
|
|
16
|
+
const blocks = [];
|
|
17
|
+
const text = d.markdown.replace(/```mermaid\s*\n([\s\S]*?)```/g, (_, src) => {
|
|
18
|
+
blocks.push(src.trim());
|
|
19
|
+
return `\n\nMERMAIDBLOCK${blocks.length - 1}\n\n`;
|
|
20
|
+
});
|
|
21
|
+
$('#doc').innerHTML =
|
|
22
|
+
DOMPurify.sanitize(marked.parse(text, { gfm: true })).replace(/<p>MERMAIDBLOCK(\d+)<\/p>/g, (_, i) => `<div class="diagram" data-i="${i}"></div>`) +
|
|
23
|
+
`<p class="meta">${esc(a.name)} · ${esc(a.projectInfo?.name ?? '')} · written ${esc(new Date(d.at).toLocaleString())}</p>`;
|
|
24
|
+
document.title = (d.markdown.match(/^#\s+(.+)$/m)?.[1] ?? `${kind} · ${a.name}`).slice(0, 120);
|
|
25
|
+
if (blocks.length) {
|
|
26
|
+
const mermaid = (await import('/vendor/mermaid/mermaid.esm.min.mjs')).default;
|
|
27
|
+
mermaid.initialize({ startOnLoad: false, securityLevel: 'strict', theme: 'default' });
|
|
28
|
+
for (const el of document.querySelectorAll('.diagram')) {
|
|
29
|
+
try {
|
|
30
|
+
el.innerHTML = (await mermaid.render(`d${el.dataset.i}`, blocks[Number(el.dataset.i)])).svg;
|
|
31
|
+
} catch {
|
|
32
|
+
el.innerHTML = `<pre>${esc(blocks[Number(el.dataset.i)])}</pre>`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
$('#status').textContent = 'Ready to print or save as PDF.';
|
|
37
|
+
}
|
|
38
|
+
main().catch((err) => {
|
|
39
|
+
$('#status').textContent = '';
|
|
40
|
+
$('#doc').innerHTML = `<p class="error">${esc(err.message)}</p>`;
|
|
41
|
+
});
|
package/public/style.css
ADDED
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f6f7f9;
|
|
3
|
+
--panel: #ffffff;
|
|
4
|
+
--panel-2: #f0f2f5;
|
|
5
|
+
--border: #dde1e7;
|
|
6
|
+
--text: #1c2330;
|
|
7
|
+
--muted: #667085;
|
|
8
|
+
--accent: #3b5bdb;
|
|
9
|
+
--accent-text: #ffffff;
|
|
10
|
+
--green: #1f9d55;
|
|
11
|
+
--yellow: #b7791f;
|
|
12
|
+
--red: #d64545;
|
|
13
|
+
--term-bg: #0f1117;
|
|
14
|
+
--radius: 8px;
|
|
15
|
+
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
16
|
+
color-scheme: light;
|
|
17
|
+
}
|
|
18
|
+
@media (prefers-color-scheme: dark) {
|
|
19
|
+
:root {
|
|
20
|
+
--bg: #0d0f14;
|
|
21
|
+
--panel: #151821;
|
|
22
|
+
--panel-2: #1c202b;
|
|
23
|
+
--border: #2a2f3c;
|
|
24
|
+
--text: #e5e8ef;
|
|
25
|
+
--muted: #8b93a7;
|
|
26
|
+
--accent: #6d8bff;
|
|
27
|
+
--accent-text: #0d0f14;
|
|
28
|
+
--green: #3ecf8e;
|
|
29
|
+
--yellow: #e6b450;
|
|
30
|
+
--red: #ff6b6b;
|
|
31
|
+
color-scheme: dark;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
* { box-sizing: border-box; }
|
|
36
|
+
[hidden] { display: none !important; }
|
|
37
|
+
html, body { height: 100%; margin: 0; }
|
|
38
|
+
body {
|
|
39
|
+
background: var(--bg);
|
|
40
|
+
color: var(--text);
|
|
41
|
+
font: 14px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
}
|
|
45
|
+
button, input, select, textarea { font: inherit; color: inherit; }
|
|
46
|
+
code, .mono { font-family: var(--mono); font-size: 12.5px; }
|
|
47
|
+
a { color: var(--accent); text-decoration: none; }
|
|
48
|
+
a:hover { text-decoration: underline; }
|
|
49
|
+
|
|
50
|
+
/* ---------- top bar */
|
|
51
|
+
.topbar {
|
|
52
|
+
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
53
|
+
padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--panel);
|
|
54
|
+
}
|
|
55
|
+
.brand { display: flex; align-items: center; gap: 10px; }
|
|
56
|
+
.brand h1 { font-size: 16px; margin: 0; font-weight: 600; }
|
|
57
|
+
.logo { color: var(--accent); }
|
|
58
|
+
.conn { font-size: 12px; color: var(--muted); }
|
|
59
|
+
.conn.ok::before { content: '● '; color: var(--green); }
|
|
60
|
+
.conn.bad::before { content: '● '; color: var(--red); }
|
|
61
|
+
.top-actions { display: flex; gap: 8px; }
|
|
62
|
+
.top-actions input { width: 220px; }
|
|
63
|
+
|
|
64
|
+
/* ---------- controls */
|
|
65
|
+
button {
|
|
66
|
+
border: 1px solid var(--border); background: var(--panel-2); border-radius: 6px;
|
|
67
|
+
padding: 6px 12px; cursor: pointer; white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
button:hover { border-color: var(--muted); }
|
|
70
|
+
button:disabled { opacity: .5; cursor: default; }
|
|
71
|
+
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
|
|
72
|
+
button.danger { color: var(--red); }
|
|
73
|
+
button.ghost { background: transparent; }
|
|
74
|
+
button.small { padding: 3px 8px; font-size: 12px; }
|
|
75
|
+
button.link { border: 0; background: none; padding: 0 4px; color: var(--muted); }
|
|
76
|
+
input, select, textarea {
|
|
77
|
+
border: 1px solid var(--border); background: var(--panel); border-radius: 6px; padding: 6px 8px; width: 100%;
|
|
78
|
+
}
|
|
79
|
+
textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
|
|
80
|
+
|
|
81
|
+
/* ---------- layout */
|
|
82
|
+
.layout { flex: 1; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
|
|
83
|
+
.sidebar { border-right: 1px solid var(--border); overflow-y: auto; background: var(--panel); }
|
|
84
|
+
.side-tabs { display: flex; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 2; }
|
|
85
|
+
.side-tab { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 9px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
|
|
86
|
+
.side-tab.active { color: var(--text); border-bottom-color: var(--accent); }
|
|
87
|
+
.badge:empty { display: none; }
|
|
88
|
+
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
|
|
89
|
+
.badge.attention { background: var(--red); color: #fff; border-color: var(--red); }
|
|
90
|
+
.bl-head { position: static; cursor: default; }
|
|
91
|
+
.bl-head .link { font-weight: 500; font-size: 12px; }
|
|
92
|
+
.bl-item { cursor: default; }
|
|
93
|
+
.bl-item .line1 { align-items: flex-start; }
|
|
94
|
+
.bl-item .name { white-space: normal; }
|
|
95
|
+
.prio { flex: none; padding: 0 5px; font-size: 11px; font-weight: 700; border-radius: 4px; border: 1px solid var(--border); line-height: 16px; }
|
|
96
|
+
.prio.p0 { background: var(--red); color: #fff; border-color: var(--red); }
|
|
97
|
+
.prio.p1 { color: var(--red); border-color: var(--red); }
|
|
98
|
+
.prio.p2 { color: var(--accent); }
|
|
99
|
+
.prio.p3 { color: var(--muted); }
|
|
100
|
+
.agent-list li.agent.pr0 { box-shadow: inset 3px 0 0 var(--red); }
|
|
101
|
+
.agent-list li.agent.pr0.selected { box-shadow: inset 3px 0 0 var(--red), inset 6px 0 0 var(--accent); }
|
|
102
|
+
.agent-list .line1 { gap: 6px; }
|
|
103
|
+
.prio-select { width: auto; font-size: 12px; font-weight: 700; padding: 1px 4px; border-radius: 4px; }
|
|
104
|
+
.prio-select.p0 { background: var(--red); color: #fff; border-color: var(--red); }
|
|
105
|
+
.prio-select.p1 { color: var(--red); border-color: var(--red); }
|
|
106
|
+
.prio-select.p3 { color: var(--muted); }
|
|
107
|
+
.bl-actions { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
108
|
+
.bl-item.done, .bl-item.cancelled { opacity: .65; }
|
|
109
|
+
.bl-paused { padding: 6px 14px; margin: 0; }
|
|
110
|
+
.bl-foot { padding: 8px 14px; }
|
|
111
|
+
.bl-banner { margin-top: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
|
|
112
|
+
.bl-banner.review { border-color: var(--accent); }
|
|
113
|
+
.row.when { align-items: center; }
|
|
114
|
+
.row.when select { width: auto; margin-left: 6px; padding: 2px 6px; }
|
|
115
|
+
.counts { display: flex; gap: 12px; padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
|
|
116
|
+
.agent-list { list-style: none; margin: 0; padding: 0; }
|
|
117
|
+
.agent-list li.project { border-bottom: 1px solid var(--border); }
|
|
118
|
+
.project-head {
|
|
119
|
+
width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 0;
|
|
120
|
+
background: var(--panel-2); font-weight: 600; text-align: left; position: sticky; top: 0; z-index: 1;
|
|
121
|
+
}
|
|
122
|
+
.project-head:hover { border: 0; filter: brightness(0.97); }
|
|
123
|
+
.shortcut { flex: none; font: 600 11px/16px var(--mono); padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--accent-text); cursor: pointer; }
|
|
124
|
+
.bl-head .shortcut { cursor: default; }
|
|
125
|
+
.project-head .caret { width: 12px; color: var(--muted); flex: none; }
|
|
126
|
+
.project-head .pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
127
|
+
.project-head .pcounts { display: flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 500; font-size: 12px; }
|
|
128
|
+
.project-head .pill { padding: 0 6px; }
|
|
129
|
+
.project-agents { list-style: none; margin: 0; padding: 0; }
|
|
130
|
+
.agent-list li.agent {
|
|
131
|
+
padding: 9px 14px 9px 30px; border-top: 1px solid var(--border); cursor: pointer; display: grid; gap: 3px; position: relative;
|
|
132
|
+
}
|
|
133
|
+
.agent-list li.agent::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; border-left: 1px solid var(--border); }
|
|
134
|
+
.agent-list li.agent:hover { background: var(--panel-2); }
|
|
135
|
+
.agent-list li.agent.selected { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
|
|
136
|
+
.agent-list .line1 { display: flex; align-items: center; gap: 8px; }
|
|
137
|
+
.agent-list .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
|
|
138
|
+
.agent-list .intent { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
139
|
+
.agent-list .meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 11.5px; color: var(--muted); align-items: center; }
|
|
140
|
+
.agent-list .meta > * { white-space: nowrap; }
|
|
141
|
+
.agent-list .meta .branch { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
|
|
142
|
+
.empty { padding: 24px; color: var(--muted); text-align: center; }
|
|
143
|
+
|
|
144
|
+
.pill {
|
|
145
|
+
display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px;
|
|
146
|
+
border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
|
|
147
|
+
}
|
|
148
|
+
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
149
|
+
.pill.working { color: var(--green); }
|
|
150
|
+
.pill.working::before { animation: pulse 1s infinite; }
|
|
151
|
+
.pill.waiting, .pill.planning { color: var(--accent); }
|
|
152
|
+
.pill.preparing, .pill.exited { color: var(--yellow); }
|
|
153
|
+
.pill.error, .pill.attention { color: var(--red); }
|
|
154
|
+
.pill.attention::before { animation: pulse 1s infinite; }
|
|
155
|
+
@keyframes pulse { 50% { opacity: .3; } }
|
|
156
|
+
|
|
157
|
+
.tag { font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
|
|
158
|
+
.tag.open { color: var(--green); }
|
|
159
|
+
.tag.merged { color: #8e59ff; }
|
|
160
|
+
.tag.closed { color: var(--red); }
|
|
161
|
+
|
|
162
|
+
/* ---------- detail */
|
|
163
|
+
.detail { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
|
|
164
|
+
.placeholder { margin: auto; color: var(--muted); padding: 24px; text-align: center; }
|
|
165
|
+
#detail-body { padding: 16px 20px; overflow-y: auto; flex: 0 1 auto; max-height: 100%; }
|
|
166
|
+
.detail.with-term #detail-body { max-height: 42%; border-bottom: 1px solid var(--border); }
|
|
167
|
+
.d-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
|
|
168
|
+
.d-title { flex: 1 1 420px; min-width: 0; }
|
|
169
|
+
.d-title h2 { margin: 0 0 4px; font-size: 18px; display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
|
|
170
|
+
.d-title .d-name { min-width: 0; overflow-wrap: anywhere; }
|
|
171
|
+
.d-title .intent { color: var(--muted); white-space: pre-wrap; margin: 0; }
|
|
172
|
+
.d-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
173
|
+
.progress-line { font-size: 12px; color: var(--yellow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
174
|
+
.progress-box { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; display: grid; gap: 6px; background: var(--panel); }
|
|
175
|
+
.progress-box .bar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
|
|
176
|
+
.progress-box .bar span { display: block; height: 100%; background: var(--accent); transition: width .4s; }
|
|
177
|
+
.ready-box { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--green); border-radius: 6px; font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
|
|
178
|
+
.error-box { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--red); color: var(--red); border-radius: 6px; font-size: 13px; }
|
|
179
|
+
|
|
180
|
+
.grid {
|
|
181
|
+
display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px;
|
|
182
|
+
}
|
|
183
|
+
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
|
|
184
|
+
.card h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; justify-content: space-between; }
|
|
185
|
+
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; font-size: 13px; }
|
|
186
|
+
.kv dt { color: var(--muted); }
|
|
187
|
+
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; gap: 4px; align-items: baseline; }
|
|
188
|
+
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
|
|
189
|
+
.links li { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
|
|
190
|
+
.links li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
191
|
+
.links .none { color: var(--muted); }
|
|
192
|
+
.add-link { display: flex; gap: 6px; margin-top: 8px; }
|
|
193
|
+
.add-link input { font-size: 12.5px; padding: 4px 8px; }
|
|
194
|
+
.sessions td, .sessions th { text-align: left; padding: 3px 8px 3px 0; font-size: 12.5px; vertical-align: top; }
|
|
195
|
+
.sessions th { color: var(--muted); font-weight: 500; }
|
|
196
|
+
.sessions tr.current td:first-child { color: var(--green); }
|
|
197
|
+
.notes { width: 100%; min-height: 60px; font-family: inherit; font-size: 13px; }
|
|
198
|
+
|
|
199
|
+
/* ---------- brief */
|
|
200
|
+
.card.brief { margin-top: 16px; }
|
|
201
|
+
.card.brief h3 { align-items: center; }
|
|
202
|
+
.brief-actions { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; }
|
|
203
|
+
.results { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); border-left: 4px solid var(--accent); }
|
|
204
|
+
.results.done { border-left-color: var(--green); }
|
|
205
|
+
.results.partial { border-left-color: var(--yellow); }
|
|
206
|
+
.results.blocked { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 6%, transparent); }
|
|
207
|
+
.results h4 { margin: 0 0 6px; font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
|
|
208
|
+
.results .outcome { font-weight: 700; }
|
|
209
|
+
.results ul { margin: 4px 0; padding-left: 18px; font-size: 13.5px; }
|
|
210
|
+
.results li.blocker { color: var(--red); }
|
|
211
|
+
.results li.blocker a { color: inherit; text-decoration: underline; }
|
|
212
|
+
.outcome-mark { flex: none; font-size: 12px; }
|
|
213
|
+
.share-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: -2px 0 12px; }
|
|
214
|
+
.doc-buttons { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
215
|
+
.doc-btn.has { border-color: var(--accent); color: var(--accent); }
|
|
216
|
+
.doc-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; }
|
|
217
|
+
.doc-dialog[open] { display: flex; flex-direction: column; }
|
|
218
|
+
.doc-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 14px 18px 0; }
|
|
219
|
+
.doc-head h2 { margin: 0; font-size: 16px; }
|
|
220
|
+
#doc-meta { margin: 4px 18px 0; }
|
|
221
|
+
.doc-body { overflow-y: auto; padding: 8px 22px 22px; font-size: 14px; line-height: 1.55; }
|
|
222
|
+
.doc-body h1 { font-size: 20px; margin: 10px 0 8px; }
|
|
223
|
+
.doc-body h2 { font-size: 16px; margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--border); }
|
|
224
|
+
.doc-body table { border-collapse: collapse; margin: 6px 0; }
|
|
225
|
+
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
|
|
226
|
+
.doc-body .diagram { margin: 8px 0 12px; }
|
|
227
|
+
.insights { margin: 0 0 12px; }
|
|
228
|
+
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
|
|
229
|
+
.insight { padding: 10px 12px; border-radius: 8px; background: var(--panel-2); border-top: 3px solid var(--accent); min-width: 0; }
|
|
230
|
+
.insight.why { border-top-color: #e8590c; }
|
|
231
|
+
.insight.what { border-top-color: #3b5bdb; }
|
|
232
|
+
.insight.how { border-top-color: #2f9e44; }
|
|
233
|
+
.insight.now { border-top-color: #ae3ec9; }
|
|
234
|
+
.insight h4 { margin: 0 0 6px; font-size: 13px; color: var(--text); }
|
|
235
|
+
.insight .md ul { margin: 0; padding-left: 16px; }
|
|
236
|
+
.insight .md li { margin: 0 0 4px; }
|
|
237
|
+
@media (max-width: 1000px) { .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
238
|
+
@media (max-width: 560px) { .insight-grid { grid-template-columns: minmax(0, 1fr); } }
|
|
239
|
+
.explain { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); border-left: 3px solid var(--accent); }
|
|
240
|
+
.explain .md h3 { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 8px 0 2px; display: block; }
|
|
241
|
+
.explain .md h3:first-child { margin-top: 0; }
|
|
242
|
+
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
|
|
243
|
+
.brief-grid section { min-width: 0; }
|
|
244
|
+
.brief-grid .wide { grid-column: 1 / -1; }
|
|
245
|
+
.brief-grid h4 { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
|
|
246
|
+
.md { font-size: 13.5px; overflow-wrap: anywhere; }
|
|
247
|
+
.md p { margin: 0 0 6px; }
|
|
248
|
+
.md ul, .md ol { margin: 0 0 6px; padding-left: 20px; }
|
|
249
|
+
.md code { background: var(--panel-2); padding: 0 4px; border-radius: 4px; }
|
|
250
|
+
.md pre { background: var(--panel-2); padding: 8px; border-radius: 6px; overflow-x: auto; }
|
|
251
|
+
.clamp .md { max-height: 15.5em; overflow: hidden; position: relative; }
|
|
252
|
+
.clamp.overflowing:not(.open) .md { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
|
|
253
|
+
.clamp.open .md { max-height: none; }
|
|
254
|
+
.clamp .more { display: none; padding: 2px 0; color: var(--accent); }
|
|
255
|
+
.clamp.overflowing .more { display: inline-block; }
|
|
256
|
+
.diagram { overflow-x: auto; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); min-height: 40px; }
|
|
257
|
+
.diagram svg { max-width: 100%; height: auto; }
|
|
258
|
+
.diagram pre { font-size: 12px; }
|
|
259
|
+
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
|
|
260
|
+
.checks li { display: flex; gap: 8px; align-items: baseline; }
|
|
261
|
+
.checks .icon { width: 16px; text-align: center; font-weight: 700; flex: none; }
|
|
262
|
+
.checks .passed .icon { color: var(--green); }
|
|
263
|
+
.checks .failed .icon { color: var(--red); }
|
|
264
|
+
.checks .running .icon { color: var(--yellow); }
|
|
265
|
+
.checks .pending .icon { color: var(--muted); }
|
|
266
|
+
.agent-list .meta .fail { color: var(--red); }
|
|
267
|
+
.kv dd.tokens { display: block; }
|
|
268
|
+
.tok-toggle { padding: 0; color: var(--text); }
|
|
269
|
+
.tok-detail { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
|
|
270
|
+
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
|
|
271
|
+
.refs li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 6px 8px; border-radius: 6px; }
|
|
272
|
+
.refs li.key { background: var(--panel-2); border-left: 3px solid var(--accent); }
|
|
273
|
+
.refs li.missing { opacity: .7; border-left-color: var(--muted); }
|
|
274
|
+
.refs .ref-label { font-weight: 600; min-width: 80px; }
|
|
275
|
+
.refs .ref-hl { color: var(--muted); flex: 1 1 260px; }
|
|
276
|
+
.tag.key-ref { color: var(--accent); }
|
|
277
|
+
|
|
278
|
+
/* ---------- terminal */
|
|
279
|
+
.term-wrap { flex: 1; display: flex; flex-direction: column; min-height: 240px; position: relative; background: var(--term-bg); }
|
|
280
|
+
.term-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #161a22; color: #c9d1d9; font-size: 12.5px; }
|
|
281
|
+
.term-bar button { color: #c9d1d9; border-color: #30363d; }
|
|
282
|
+
.spacer { flex: 1; }
|
|
283
|
+
.term-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; }
|
|
284
|
+
#shell-tabs, #browser-tabs { display: contents; }
|
|
285
|
+
.term-tab { background: transparent; border: 1px solid transparent; padding: 3px 10px; font-size: 12px; }
|
|
286
|
+
.term-tab.active { background: #262c38; border-color: #30363d; }
|
|
287
|
+
.term-tab .x { margin-left: 6px; opacity: .55; padding: 0 2px; border-radius: 3px; }
|
|
288
|
+
.term-tab .x:hover { opacity: 1; background: #3a4150; }
|
|
289
|
+
.term-add { opacity: .7; }
|
|
290
|
+
.term-drop { position: absolute; inset: 40px 8px 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed #58a6ff; border-radius: 8px; background: rgba(15, 17, 23, .82); color: #c9d1d9; font-size: 15px; pointer-events: none; z-index: 5; }
|
|
291
|
+
#term-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 0; color: #8b93a7; }
|
|
292
|
+
.term-bar > .term-tabs { flex-shrink: 0; max-width: 70%; }
|
|
293
|
+
.terminal { flex: 1; padding: 6px 8px; min-height: 0; }
|
|
294
|
+
/* Browser tabs replace the terminal in the panel. */
|
|
295
|
+
.browser { display: none; flex: 1; flex-direction: column; min-height: 0; background: var(--bg); }
|
|
296
|
+
.term-wrap.browsing .browser { display: flex; }
|
|
297
|
+
.term-wrap.browsing .terminal, .term-wrap.browsing .keybar, .term-wrap.browsing .compose,
|
|
298
|
+
.term-wrap.browsing #term-attach, .term-wrap.browsing #term-fit, .term-wrap.browsing .term-drop { display: none !important; }
|
|
299
|
+
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 6px 10px; background: #161a22; border-top: 1px solid #30363d; }
|
|
300
|
+
.browser-bar input { flex: 1; min-width: 0; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
301
|
+
.browser-bar button, .browser-bar a { color: #c9d1d9; border-color: #30363d; }
|
|
302
|
+
.browser-bar a.button { text-decoration: none; padding: 3px 8px; border: 1px solid #30363d; border-radius: 6px; }
|
|
303
|
+
.browser-start { padding: 16px; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
|
|
304
|
+
.browser-start p { margin: 0; color: var(--muted); max-width: 60ch; }
|
|
305
|
+
#browser-suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
|
306
|
+
#browser-suggest .muted { color: var(--muted); }
|
|
307
|
+
#browser-cert-open { display: inline-block; text-decoration: none; padding: 4px 12px; border-radius: 6px; background: var(--accent); color: #fff; }
|
|
308
|
+
.browser-hint { padding: 4px 12px; font-size: 12px; color: #8b93a7; background: #161a22; }
|
|
309
|
+
.browser-frames { flex: 1; min-height: 0; position: relative; }
|
|
310
|
+
.browser-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
|
|
311
|
+
/* Swipes scroll the terminal (handled in app.js), not the page. */
|
|
312
|
+
.terminal .xterm { touch-action: none; }
|
|
313
|
+
.term-overlay {
|
|
314
|
+
position: absolute; inset: 36px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
315
|
+
gap: 8px; background: rgba(15, 17, 23, .78); color: #e5e8ef;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* ---------- phone keys and reply box */
|
|
319
|
+
.keybar, .compose { display: none; }
|
|
320
|
+
.keybar { gap: 4px; padding: 6px 8px; background: #161a22; flex-wrap: wrap; }
|
|
321
|
+
/* Every key within thumb reach: two rows on a phone instead of a sideways-scrolling strip. */
|
|
322
|
+
.keybar button { flex: 1 0 44px; min-width: 44px; min-height: 40px; padding: 6px 4px; color: #e5e8ef; background: #262c38; border-color: #30363d; font-size: 14px; touch-action: manipulation; }
|
|
323
|
+
.compose { gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #161a22; align-items: flex-end; }
|
|
324
|
+
.compose textarea { flex: 1; resize: none; font: 15px/1.35 -apple-system, BlinkMacSystemFont, sans-serif; background: #0f1117; color: #e5e8ef; border-color: #30363d; max-height: 140px; }
|
|
325
|
+
@media (pointer: coarse), (max-width: 800px) {
|
|
326
|
+
.keybar, .compose { display: flex; }
|
|
327
|
+
}
|
|
328
|
+
body.remote .local-only { display: none; }
|
|
329
|
+
|
|
330
|
+
/* ---------- remote dialog */
|
|
331
|
+
.remote-body { padding: 20px; display: grid; gap: 10px; }
|
|
332
|
+
.remote-body h2 { margin: 0; font-size: 17px; }
|
|
333
|
+
.remote-body h3 { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
|
|
334
|
+
.remote-state { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
|
|
335
|
+
.remote-url { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
|
|
336
|
+
.remote-url .qr { width: 150px; flex: none; background: #fff; padding: 6px; border-radius: 6px; }
|
|
337
|
+
.remote-url .qr svg { display: block; width: 100%; height: auto; }
|
|
338
|
+
.remote-url > div:last-child { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
|
|
339
|
+
.remote-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
|
|
340
|
+
.fp { font-size: 11px; overflow-wrap: anywhere; }
|
|
341
|
+
.devices td, .devices th { text-align: left; padding: 3px 10px 3px 0; font-size: 13px; }
|
|
342
|
+
.alerts-body { padding: 20px; display: grid; gap: 10px; }
|
|
343
|
+
.alerts-body h2 { margin: 0; font-size: 17px; }
|
|
344
|
+
.alerts-body > label, .alerts-body .row label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
|
|
345
|
+
.alerts-body fieldset { border: 1px solid var(--border); border-radius: 8px; display: grid; gap: 6px; padding: 8px 12px; }
|
|
346
|
+
.alerts-body legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
|
|
347
|
+
.alerts-body .check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
|
|
348
|
+
.alerts-body .check input[type=checkbox] { width: auto; }
|
|
349
|
+
.alerts-body .num { width: 64px; padding: 2px 6px; }
|
|
350
|
+
#login-form { padding: 20px; display: grid; gap: 12px; }
|
|
351
|
+
#login-form h2 { margin: 0; font-size: 17px; }
|
|
352
|
+
|
|
353
|
+
/* ---------- dialog */
|
|
354
|
+
dialog {
|
|
355
|
+
border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 32px));
|
|
356
|
+
background: var(--panel); color: var(--text);
|
|
357
|
+
}
|
|
358
|
+
dialog::backdrop { background: rgba(0, 0, 0, .45); }
|
|
359
|
+
#new-form, #ask-form { padding: 20px; display: grid; gap: 12px; }
|
|
360
|
+
#new-form h2, #ask-form h2 { margin: 0; font-size: 17px; }
|
|
361
|
+
#ask-form .hint { margin: 0; }
|
|
362
|
+
#new-form label, #ask-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
|
|
363
|
+
#new-form label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
|
|
364
|
+
#new-form label.check input { width: auto; }
|
|
365
|
+
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
|
|
366
|
+
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
367
|
+
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
368
|
+
.error { color: var(--red); margin: 0; font-size: 13px; }
|
|
369
|
+
|
|
370
|
+
.toast button { margin-left: 8px; }
|
|
371
|
+
.toast {
|
|
372
|
+
position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
|
|
373
|
+
padding: 8px 14px; border-radius: 6px; font-size: 13px; z-index: 10; max-width: calc(100vw - 32px);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@media (max-width: 800px) {
|
|
377
|
+
/* Nothing may be wider than the phone, or the browser zooms the whole page out. */
|
|
378
|
+
html, body { overflow-x: hidden; max-width: 100vw; }
|
|
379
|
+
.topbar { flex-wrap: wrap; padding: 8px 12px; }
|
|
380
|
+
.top-actions { width: 100%; flex-wrap: wrap; }
|
|
381
|
+
.top-actions input { flex: 1 1 140px; width: auto; min-width: 0; }
|
|
382
|
+
.d-head, .d-actions { min-width: 0; }
|
|
383
|
+
.d-actions button { flex: 1 1 auto; }
|
|
384
|
+
.grid { grid-template-columns: minmax(0, 1fr); }
|
|
385
|
+
#detail-body { padding: 12px; }
|
|
386
|
+
/* On a phone the terminal takes the whole screen; "Hide terminal" goes back. */
|
|
387
|
+
.detail.with-term .term-wrap { position: fixed; inset: 0; z-index: 5; min-height: 0; padding-top: env(safe-area-inset-top); }
|
|
388
|
+
.term-bar #term-title { display: none; }
|
|
389
|
+
/* The tabs get a row of their own, so + Shell and + Browser aren't squeezed out of view. */
|
|
390
|
+
.term-bar { flex-wrap: wrap; row-gap: 6px; }
|
|
391
|
+
.term-bar > .term-tabs { flex: 1 0 100%; }
|
|
392
|
+
.layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
|
|
393
|
+
.sidebar { max-height: 38vh; border-right: 0; border-bottom: 1px solid var(--border); }
|
|
394
|
+
.top-actions input { width: 130px; }
|
|
395
|
+
.row { grid-template-columns: 1fr; }
|
|
396
|
+
.brief-grid { grid-template-columns: 1fr; }
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* ---------------------------------------------------------------- v0.2: inbox, forks, races */
|
|
400
|
+
.flag { font-size: 11px; line-height: 1; padding: 2px 4px; border-radius: 4px; color: var(--muted); border: 1px solid var(--border); flex: none; }
|
|
401
|
+
.flag.warn { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }
|
|
402
|
+
.flag.ask { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 700; }
|
|
403
|
+
.agent-list .line1 { gap: 5px; }
|
|
404
|
+
|
|
405
|
+
.needs { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
|
|
406
|
+
.needs.inbox { margin: 8px 10px 16px; }
|
|
407
|
+
.need { border: 1px solid var(--border); border-left-width: 3px; border-radius: 6px; padding: 9px 11px; background: var(--panel); font-size: 13px; }
|
|
408
|
+
.need.prompt { border-left-color: var(--red); }
|
|
409
|
+
.need.question { border-left-color: var(--accent); }
|
|
410
|
+
.need.stuck { border-left-color: var(--yellow); }
|
|
411
|
+
.need.conflict { border-left-color: #8e59ff; }
|
|
412
|
+
.need-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
|
|
413
|
+
.need-kind { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
|
|
414
|
+
.need.prompt .need-kind { color: var(--red); }
|
|
415
|
+
.need.question .need-kind { color: var(--accent); }
|
|
416
|
+
.need.stuck .need-kind { color: var(--yellow); }
|
|
417
|
+
.need.conflict .need-kind { color: #8e59ff; }
|
|
418
|
+
.need.waiting .need-kind { color: var(--red); }
|
|
419
|
+
.need.review .need-kind { color: var(--green); }
|
|
420
|
+
/* The AI judge */
|
|
421
|
+
.tag.ai { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 6px; white-space: nowrap; }
|
|
422
|
+
.verdict.complete { color: var(--green); font-weight: 600; }
|
|
423
|
+
.verdict.partial { color: var(--yellow); font-weight: 600; }
|
|
424
|
+
.verdict.not_done { color: var(--red); font-weight: 600; }
|
|
425
|
+
.need-agent { font-weight: 600; text-decoration: none; color: var(--text); display: inline-flex; gap: 4px; align-items: center; }
|
|
426
|
+
.need-title { margin: 2px 0 4px; font-weight: 600; overflow-wrap: anywhere; }
|
|
427
|
+
.need p.hint { margin: 2px 0 6px; }
|
|
428
|
+
.need-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
|
|
429
|
+
.need-reply { display: flex; gap: 6px; margin-top: 6px; }
|
|
430
|
+
.need-reply.col { flex-direction: column; }
|
|
431
|
+
.need-reply input { flex: 1; min-width: 0; }
|
|
432
|
+
.need-reply textarea { width: 100%; font-size: 12.5px; resize: vertical; }
|
|
433
|
+
.need-files { margin: 2px 0 4px; padding-left: 18px; font-size: 12.5px; }
|
|
434
|
+
.outbox-note { margin: 8px 0 0; }
|
|
435
|
+
.tag.fail { color: var(--red); }
|
|
436
|
+
|
|
437
|
+
.checkpoints li { align-items: center; }
|
|
438
|
+
.checkpoints .mono { color: var(--muted); font-size: 12px; }
|
|
439
|
+
.card h3 .spacer { flex: 1; }
|
|
440
|
+
.card h3 button { text-transform: none; letter-spacing: 0; }
|
|
441
|
+
|
|
442
|
+
.bl-banner.race { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
|
|
443
|
+
.race-body { overflow-y: auto; padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
|
|
444
|
+
.race-tests { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
|
|
445
|
+
.race-tests label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); flex: 1 1 260px; }
|
|
446
|
+
.race-table-wrap { overflow-x: auto; }
|
|
447
|
+
.race-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
448
|
+
.race-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
|
|
449
|
+
.race-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
|
|
450
|
+
.race-table tr.winner td { background: color-mix(in srgb, var(--green) 9%, transparent); }
|
|
451
|
+
.race-table tr.diffing td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
|
|
452
|
+
.race-acts { white-space: nowrap; }
|
|
453
|
+
.race-acts button + * { margin-left: 4px; }
|
|
454
|
+
.add { color: var(--green); }
|
|
455
|
+
.del { color: var(--red); }
|
|
456
|
+
.test.passed { color: var(--green); }
|
|
457
|
+
.test.failed, .test.error { color: var(--red); }
|
|
458
|
+
.test.running, .test.queued { color: var(--yellow); }
|
|
459
|
+
.race-diff { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
|
|
460
|
+
pre.diff { margin: 6px 0 0; max-height: 50vh; overflow: auto; font: 12px/1.45 var(--mono); background: var(--panel-2); padding: 8px 10px; border-radius: 6px; }
|
|
461
|
+
pre.diff .add { color: var(--green); }
|
|
462
|
+
pre.diff .del { color: var(--red); }
|
|
463
|
+
pre.diff .hunk { color: var(--accent); }
|
|
464
|
+
pre.diff .meta { color: var(--muted); font-weight: 600; }
|
|
465
|
+
.agent-list .line1 .name { min-width: 0; }
|
|
466
|
+
.agent-list .line1 .pill { flex: none; }
|
|
467
|
+
/* One column that may shrink, so long names ellipsize instead of pushing the status off the edge. */
|
|
468
|
+
.agent-list li.agent { grid-template-columns: minmax(0, 1fr); }
|
|
469
|
+
.card h3 { gap: 6px; }
|
|
470
|
+
.tag.engine { color: var(--accent); border-color: var(--accent); }
|
|
471
|
+
|
|
472
|
+
/* ---------- Human vs AI, plan review */
|
|
473
|
+
.ha-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
|
|
474
|
+
.ha-card.human { border-left: 3px solid var(--accent); }
|
|
475
|
+
.ha-card h4 { margin: 0 0 6px; }
|
|
476
|
+
.ha-card p { margin: 4px 0; }
|
|
477
|
+
.ha-card textarea { width: 100%; margin-top: 6px; }
|
|
478
|
+
.ha-options { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
479
|
+
.second { font-size: 13px; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); }
|
|
480
|
+
.second .verdict { font-weight: 600; }
|
|
481
|
+
.second.disagree .verdict, .second.reword .verdict { color: #d4553f; }
|
|
482
|
+
.second.partly .verdict, .second.ai .verdict { color: #c08a1e; }
|
|
483
|
+
.second.agree .verdict, .second.keep .verdict { color: #2f9e55; }
|
|
484
|
+
.tag.conf-high { color: #2f9e55; } .tag.conf-medium { color: #c08a1e; } .tag.conf-low { color: #d4553f; }
|
|
485
|
+
.ha-second { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
|
|
486
|
+
.doc-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
|
|
487
|
+
.doc-foot[hidden] { display: none; }
|
|
488
|
+
.doc-foot textarea { width: 100%; }
|
|
489
|
+
.doc-foot-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
|
490
|
+
.plan-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
|
|
491
|
+
.tag.plan-review { color: var(--accent); font-weight: 600; }
|
|
492
|
+
.tag.plan-approved { color: #2f9e55; }
|
|
493
|
+
.tag.plan-changes { color: #c08a1e; }
|
|
494
|
+
.need-kind.plan { background: var(--accent); color: #fff; }
|
|
495
|
+
|
|
496
|
+
.bl-ai { margin: 4px 0 0; }
|
|
497
|
+
.bl-ai ul { margin: 2px 0 4px 18px; padding: 0; }
|
|
498
|
+
|
|
499
|
+
/* A CLI's sign-in link, above the terminal */
|
|
500
|
+
.signin-bar { padding: 8px 12px; background: var(--panel-2); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
|
|
501
|
+
.signin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
502
|
+
.signin-bar a.button { text-decoration: none; display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-text); }
|
|
503
|
+
.signin-bar a.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
|
|
504
|
+
.signin-finish { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
505
|
+
.signin-finish input { flex: 1 1 260px; min-width: 0; }
|
|
506
|
+
.signin-finish code { word-break: break-all; }
|
|
507
|
+
.signin-ok { margin: 6px 0 0; color: var(--green); }
|
|
508
|
+
.signin-bar p { margin: 6px 0 0; }
|
|
509
|
+
|
|
510
|
+
/* Live browser tabs: a real browser on the daemon's machine, streamed */
|
|
511
|
+
.term-wrap:not(.live-mode) .live-only { display: none; }
|
|
512
|
+
.browser-live { flex: 1; min-height: 0; position: relative; background: #0f1117; overflow: hidden; touch-action: none; cursor: default; }
|
|
513
|
+
.browser-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
|
|
514
|
+
.browser-live-keys { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; font-size: 16px; }
|
|
515
|
+
.browser-live-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8b949e; font-size: 14px; padding: 16px; text-align: center; }
|
|
516
|
+
#browser-mode { min-width: 44px; }
|
|
517
|
+
.live-mode #browser-mode { color: #7ee2a8; border-color: #2f6f4a; }
|
|
518
|
+
.live-mode .browser-frames { display: none; }
|
|
519
|
+
@media (pointer: fine) { .touch-only { display: none; } }
|
|
520
|
+
|
|
521
|
+
/* Import sessions started in a terminal */
|
|
522
|
+
.import-body { padding: 12px 16px; overflow: auto; max-height: 62vh; }
|
|
523
|
+
.import-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); }
|
|
524
|
+
.import-body > input { width: 100%; margin: 6px 0 10px; }
|
|
525
|
+
.import-dir h4 { margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
|
|
526
|
+
.import-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--border); border-radius: 8px; margin: 6px 0; cursor: pointer; }
|
|
527
|
+
.import-row.off { opacity: .55; cursor: default; }
|
|
528
|
+
.import-row input { margin-top: 3px; }
|
|
529
|
+
.import-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
530
|
+
.import-main .hint { overflow-wrap: anywhere; }
|
|
531
|
+
.tag.warn { color: var(--yellow); }
|
|
532
|
+
#import-dialog .doc-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
|
|
533
|
+
#import-dialog .doc-head h2 { margin: 0; font-size: 16px; }
|
|
534
|
+
#import-dialog .doc-head select { width: auto; }
|
|
535
|
+
#import-dialog .import-row { flex-direction: row; }
|
|
536
|
+
#import-dialog .import-row input[type=checkbox] { width: auto; flex: 0 0 auto; }
|
|
537
|
+
#import-dialog .import-main { flex: 1 1 auto; }
|
|
538
|
+
#import-dialog .import-main .tag { align-self: flex-start; }
|
|
539
|
+
#import-dialog .import-foot label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
|
|
540
|
+
#import-dialog .import-foot input { width: auto; }
|
|
541
|
+
.judge-line { margin: 14px 12px; line-height: 1.5; }
|