agent-memory-brain 0.2.0__py3-none-any.whl
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.
- agent_memory_brain-0.2.0.dist-info/METADATA +98 -0
- agent_memory_brain-0.2.0.dist-info/RECORD +54 -0
- agent_memory_brain-0.2.0.dist-info/WHEEL +4 -0
- agent_memory_brain-0.2.0.dist-info/entry_points.txt +3 -0
- agent_memory_brain-0.2.0.dist-info/licenses/LICENSE +67 -0
- devmem/__init__.py +3 -0
- devmem/ado.py +433 -0
- devmem/agent_colors.py +74 -0
- devmem/cli.py +500 -0
- devmem/db.py +1069 -0
- devmem/dispatch.py +478 -0
- devmem/embed.py +111 -0
- devmem/filelock.py +53 -0
- devmem/git_sync.py +261 -0
- devmem/guard.py +214 -0
- devmem/hook_log.py +49 -0
- devmem/ingest/__init__.py +1 -0
- devmem/ingest/claude.py +87 -0
- devmem/ingest/codex.py +175 -0
- devmem/ingest/runner.py +318 -0
- devmem/ingest/subagents.py +250 -0
- devmem/maintenance.py +801 -0
- devmem/mcp_server.py +542 -0
- devmem/messages.py +684 -0
- devmem/panel/__init__.py +1 -0
- devmem/panel/app.py +971 -0
- devmem/panel/state.py +358 -0
- devmem/panel/static/base.css +27 -0
- devmem/panel/static/brain.css +473 -0
- devmem/panel/static/brain.js +1118 -0
- devmem/panel/static/brain3d.js +600 -0
- devmem/panel/static/chat.js +18 -0
- devmem/panel/static/common.js +208 -0
- devmem/panel/static/site.css +508 -0
- devmem/panel/static/tokens.css +19 -0
- devmem/panel/templates/ado.html +62 -0
- devmem/panel/templates/agents.html +35 -0
- devmem/panel/templates/audit.html +19 -0
- devmem/panel/templates/base.html +42 -0
- devmem/panel/templates/brain.html +101 -0
- devmem/panel/templates/maintenance.html +32 -0
- devmem/panel/templates/memory.html +71 -0
- devmem/panel/templates/message_thread.html +49 -0
- devmem/panel/templates/messages.html +8 -0
- devmem/panel/templates/overview.html +109 -0
- devmem/panel/templates/project.html +48 -0
- devmem/panel/templates/projects.html +21 -0
- devmem/panel/templates/session.html +49 -0
- devmem/panel/templates/sessions.html +67 -0
- devmem/panel/templates/subagent.html +27 -0
- devmem/procs.py +10 -0
- devmem/projects.py +17 -0
- devmem/secrets.py +9 -0
- devmem/skills.py +105 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
/* Hallmark · shape: app screen · genre: modern-minimal · theme: Rim (deal 2/3, seed black-minimal-second-screen-monitor-a238·ae2101f4·2026-10-30·r0) · redesign: full
|
|
2
|
+
* nav: kept, one quiet top bar · signature: the memory graph, set in ink on black with the wall parted by hairlines · states: loading, empty, error, live, offline, stale
|
|
3
|
+
* axes: dark/grotesk-sans/warm · posture: committed · contrast: pass · v2.0.0 */
|
|
4
|
+
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the brain graph keeps its own renderer, so only its colours and glow were retuned */
|
|
5
|
+
/* Hallmark · waive 38iii · .panel h3 .hint · a muted count beside a panel label, never an accent */
|
|
6
|
+
@import url("./tokens.css");
|
|
7
|
+
@import url("./base.css");
|
|
8
|
+
|
|
9
|
+
/* Semantic tokens: who is speaking, what kind a memory is, what a chart series is.
|
|
10
|
+
Hex twins live in common.js, brain.js and brain3d.js for the canvases. */
|
|
11
|
+
:root {
|
|
12
|
+
--color-claude: oklch(82% 0.045 75);
|
|
13
|
+
--color-subagent: oklch(64% 0.035 75);
|
|
14
|
+
--color-codex: var(--color-accent-2);
|
|
15
|
+
--color-user: var(--color-ink);
|
|
16
|
+
--color-warn: oklch(80% 0.12 75);
|
|
17
|
+
--kind-note: oklch(72% 0.06 250);
|
|
18
|
+
--kind-decision: oklch(72% 0.06 300);
|
|
19
|
+
--kind-preference: oklch(72% 0.06 10);
|
|
20
|
+
--kind-snippet: oklch(74% 0.06 150);
|
|
21
|
+
--kind-todo: oklch(78% 0.07 85);
|
|
22
|
+
--series-in: var(--color-ink-2);
|
|
23
|
+
--series-out: var(--color-accent-2);
|
|
24
|
+
--series-cache-r: var(--color-muted-2);
|
|
25
|
+
--series-cache-w: oklch(36% 0.010 80);
|
|
26
|
+
--well: var(--color-paper-2);
|
|
27
|
+
--hover: oklch(14% 0.009 78);
|
|
28
|
+
--control-h: 32px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body { font-size: 15px; min-height: 100vh; }
|
|
32
|
+
|
|
33
|
+
a { color: var(--color-ink); text-decoration: none; }
|
|
34
|
+
a:hover { text-decoration: underline; }
|
|
35
|
+
a:active { color: var(--color-muted); }
|
|
36
|
+
|
|
37
|
+
/* ---------- top bar ---------- */
|
|
38
|
+
.topbar {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--space-lg);
|
|
42
|
+
height: 52px;
|
|
43
|
+
padding: 0 var(--space-lg);
|
|
44
|
+
border-bottom: var(--rule-hair) solid var(--color-rule);
|
|
45
|
+
background: var(--color-paper);
|
|
46
|
+
position: sticky;
|
|
47
|
+
top: 0;
|
|
48
|
+
z-index: var(--z-sticky-nav);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.brand {
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
font-size: var(--text-md);
|
|
54
|
+
letter-spacing: -0.01em;
|
|
55
|
+
color: var(--color-ink);
|
|
56
|
+
}
|
|
57
|
+
.brand:hover { text-decoration: none; color: var(--color-ink-2); }
|
|
58
|
+
|
|
59
|
+
.topbar nav { display: flex; align-self: stretch; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
|
|
60
|
+
|
|
61
|
+
.topbar nav a {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: var(--space-2xs);
|
|
65
|
+
padding: 0 var(--space-sm);
|
|
66
|
+
color: var(--color-muted);
|
|
67
|
+
font-size: var(--text-sm);
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
border-bottom: 2px solid transparent;
|
|
70
|
+
transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.topbar nav a:hover { color: var(--color-ink); text-decoration: none; }
|
|
74
|
+
.topbar nav a.on { color: var(--color-ink); border-bottom-color: var(--color-accent); }
|
|
75
|
+
|
|
76
|
+
.topbar .spacer { flex: 1; }
|
|
77
|
+
|
|
78
|
+
/* ---------- drill-down pages ---------- */
|
|
79
|
+
main.page {
|
|
80
|
+
max-width: 1280px;
|
|
81
|
+
margin: 0 auto;
|
|
82
|
+
padding: var(--space-xl) var(--space-xl) var(--space-3xl);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
h1 { font-size: var(--text-2xl); letter-spacing: -0.03em; margin: 0 0 var(--space-md); max-width: none; }
|
|
86
|
+
h2 {
|
|
87
|
+
font-size: var(--text-md);
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
letter-spacing: -0.01em;
|
|
90
|
+
color: var(--color-ink);
|
|
91
|
+
max-width: none;
|
|
92
|
+
margin: var(--space-2xl) 0 var(--space-md);
|
|
93
|
+
padding-top: var(--space-md);
|
|
94
|
+
border-top: var(--rule-hair) solid var(--color-rule);
|
|
95
|
+
}
|
|
96
|
+
h3 { font-size: var(--text-md); font-weight: 500; letter-spacing: -0.01em; max-width: none; }
|
|
97
|
+
|
|
98
|
+
.muted { color: var(--color-muted); }
|
|
99
|
+
.mono { font-family: var(--font-outlier); font-size: 0.88em; }
|
|
100
|
+
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; text-align: right; }
|
|
101
|
+
main.page > p.muted { margin-bottom: var(--space-lg); }
|
|
102
|
+
|
|
103
|
+
.card {
|
|
104
|
+
color: var(--color-ink);
|
|
105
|
+
background: var(--well);
|
|
106
|
+
border: var(--rule-hair) solid var(--color-rule);
|
|
107
|
+
border-radius: var(--radius-card);
|
|
108
|
+
padding: var(--space-md) var(--space-lg);
|
|
109
|
+
margin: var(--space-sm) 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.grid-cards {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
width: fit-content;
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
border: var(--rule-hair) solid var(--color-rule);
|
|
118
|
+
}
|
|
119
|
+
.grid-cards .card { flex: 0 1 260px; min-width: 0; }
|
|
120
|
+
.grid-cards .card { margin: 0; border: 0; border-right: var(--rule-hair) solid var(--color-rule); background: none; }
|
|
121
|
+
.grid-cards .card:last-child { border-right: 0; }
|
|
122
|
+
|
|
123
|
+
.stat-label { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
|
|
124
|
+
.stat-value { font-family: var(--font-outlier); font-size: var(--text-2xl); font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
|
|
125
|
+
.stat-gap { margin-top: var(--space-sm); }
|
|
126
|
+
|
|
127
|
+
table {
|
|
128
|
+
width: 100%;
|
|
129
|
+
border-collapse: collapse;
|
|
130
|
+
margin: var(--space-xs) 0 var(--space-lg);
|
|
131
|
+
font-size: var(--text-sm);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
th, td { text-align: left; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); vertical-align: top; }
|
|
135
|
+
th:first-child, td:first-child { padding-left: 0; }
|
|
136
|
+
th { color: var(--color-muted); font-weight: 500; font-size: var(--text-sm); white-space: nowrap; border-bottom-color: var(--color-rule); }
|
|
137
|
+
th.num { font-family: var(--font-body); }
|
|
138
|
+
tr:last-child td { border-bottom: none; }
|
|
139
|
+
tbody tr:hover td { background: var(--hover); }
|
|
140
|
+
tr.day th { color: var(--color-ink); padding-top: var(--space-lg); font-weight: 500; border-bottom-color: var(--color-rule); }
|
|
141
|
+
tr.day th.num { color: var(--color-muted); font-family: var(--font-outlier); font-weight: 400; }
|
|
142
|
+
|
|
143
|
+
/* a label, not a pill: coloured text with a square tick */
|
|
144
|
+
.badge {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: baseline;
|
|
147
|
+
gap: 0.4em;
|
|
148
|
+
font-size: var(--text-sm);
|
|
149
|
+
font-weight: 500;
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
color: var(--color-muted);
|
|
152
|
+
}
|
|
153
|
+
.badge::before { content: ""; width: 0.5em; height: 0.5em; background: currentColor; flex: none; align-self: center; }
|
|
154
|
+
.badge.declared::before, .badge.ado-stale::before, .badge.ado-card-stale::before { display: none; }
|
|
155
|
+
|
|
156
|
+
.badge.claude { color: var(--color-claude); }
|
|
157
|
+
.badge.claude-subagent { color: var(--color-subagent); }
|
|
158
|
+
.badge.codex { color: var(--color-codex); }
|
|
159
|
+
.badge.ok { color: var(--color-success); }
|
|
160
|
+
.badge.error { color: var(--color-error); }
|
|
161
|
+
.badge.kind-note { color: var(--kind-note); }
|
|
162
|
+
.badge.kind-decision { color: var(--kind-decision); }
|
|
163
|
+
.badge.kind-preference { color: var(--kind-preference); }
|
|
164
|
+
.badge.kind-snippet { color: var(--kind-snippet); }
|
|
165
|
+
.badge.kind-todo { color: var(--kind-todo); }
|
|
166
|
+
|
|
167
|
+
/* ---------- controls ---------- */
|
|
168
|
+
input, textarea, select, button {
|
|
169
|
+
font: inherit;
|
|
170
|
+
font-size: var(--text-sm);
|
|
171
|
+
color: var(--color-ink);
|
|
172
|
+
background: var(--color-paper);
|
|
173
|
+
border: var(--rule-hair) solid var(--color-rule);
|
|
174
|
+
border-radius: 0;
|
|
175
|
+
min-height: var(--control-h);
|
|
176
|
+
padding: 0 var(--space-sm);
|
|
177
|
+
margin: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
textarea { width: 100%; min-height: 7rem; padding: var(--space-xs) var(--space-sm); line-height: 1.5; display: block; margin: var(--space-xs) 0; }
|
|
181
|
+
input, select { max-width: 100%; }
|
|
182
|
+
input:hover, textarea:hover, select:hover { border-color: var(--color-muted-2); }
|
|
183
|
+
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
|
|
184
|
+
input::placeholder, textarea::placeholder { color: var(--color-muted-2); }
|
|
185
|
+
input:disabled, textarea:disabled, select:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
186
|
+
|
|
187
|
+
button {
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
color: var(--color-ink);
|
|
191
|
+
transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
|
|
192
|
+
}
|
|
193
|
+
button:hover { border-color: var(--color-muted); background: var(--hover); }
|
|
194
|
+
button:active { background: var(--color-paper-3); color: var(--color-muted); }
|
|
195
|
+
button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
|
|
196
|
+
button.danger { color: var(--color-error); }
|
|
197
|
+
button.danger:hover { border-color: var(--color-error); }
|
|
198
|
+
|
|
199
|
+
input[type="checkbox"] { min-height: 0; accent-color: var(--color-accent); }
|
|
200
|
+
|
|
201
|
+
details > summary { cursor: pointer; }
|
|
202
|
+
details > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
|
|
203
|
+
.form-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
|
|
204
|
+
.card form + form { margin-top: var(--space-xs); }
|
|
205
|
+
|
|
206
|
+
.chart { width: 100%; height: 220px; display: block; }
|
|
207
|
+
|
|
208
|
+
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: var(--space-md) 0 var(--space-lg); }
|
|
209
|
+
.pill-row .count { font-family: var(--font-outlier); color: var(--color-ink-2); font-weight: 400; }
|
|
210
|
+
|
|
211
|
+
/* memory list */
|
|
212
|
+
.memory-row > summary { display: flex; align-items: baseline; gap: var(--space-xs) var(--space-sm); list-style: none; min-width: 0; }
|
|
213
|
+
.memory-row > summary::-webkit-details-marker { display: none; }
|
|
214
|
+
.memory-row > summary .m-title { flex: 1; min-width: 0; color: var(--color-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
215
|
+
.memory-row[open] > summary .m-title { white-space: normal; }
|
|
216
|
+
.memory-row > summary .m-meta { flex: none; color: var(--color-muted); font-size: var(--text-sm); display: flex; gap: var(--space-sm); white-space: nowrap; }
|
|
217
|
+
@media (max-width: 720px) {
|
|
218
|
+
.memory-row > summary { flex-wrap: wrap; }
|
|
219
|
+
.memory-row > summary .m-meta { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; flex-wrap: wrap; }
|
|
220
|
+
}
|
|
221
|
+
.memory-row[open] > summary { padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
|
|
222
|
+
.memory-row.card { background: none; margin: 0; border-width: 0 0 var(--rule-hair) 0; border-color: var(--color-rule-2); padding: var(--space-sm) 0; }
|
|
223
|
+
.memory-row.card:hover { background: var(--hover); }
|
|
224
|
+
.memory-body { white-space: pre-wrap; margin-top: var(--space-xs); }
|
|
225
|
+
.search-note { margin: var(--space-sm) 0; }
|
|
226
|
+
.create-card { margin-top: var(--space-lg); }
|
|
227
|
+
|
|
228
|
+
/* thin separators instead of middle dots */
|
|
229
|
+
.meta { display: inline-flex; flex-wrap: wrap; gap: 0 var(--space-sm); }
|
|
230
|
+
.part + .part { margin-left: 0.55em; padding-left: 0.55em; border-left: var(--rule-hair) solid var(--color-rule); }
|
|
231
|
+
|
|
232
|
+
/* ---------- Azure DevOps ---------- */
|
|
233
|
+
.page-title-row, .ado-refresh { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
|
|
234
|
+
.page-title-row { justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-md); }
|
|
235
|
+
.page-title-row h1 { margin-bottom: var(--space-2xs); }
|
|
236
|
+
.page-title-row p { margin: 0; }
|
|
237
|
+
.ado-refresh form { margin: 0; }
|
|
238
|
+
.ado-stale, .ado-error { color: var(--color-warn); }
|
|
239
|
+
.ado-error { font-size: var(--text-sm); }
|
|
240
|
+
.ado-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border: var(--rule-hair) solid var(--color-rule); }
|
|
241
|
+
.ado-grid .card { margin: 0; border: 0; border-right: var(--rule-hair) solid var(--color-rule); background: none; }
|
|
242
|
+
.ado-grid .card:last-child { border-right: 0; }
|
|
243
|
+
.ado-list { list-style: none; margin: 0; padding: 0; }
|
|
244
|
+
.ado-list li { border-bottom: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-sm) 0; display: grid; gap: var(--space-3xs); }
|
|
245
|
+
.ado-list li:last-child { border-bottom: 0; padding-bottom: 0; }
|
|
246
|
+
.ado-list a { font-weight: 500; }
|
|
247
|
+
.ado-list .muted { font-size: var(--text-sm); }
|
|
248
|
+
.ado-reviewers { color: var(--color-muted); font-size: var(--text-sm); }
|
|
249
|
+
.ado-reviewers b { color: var(--color-ink-2); font-weight: 400; }
|
|
250
|
+
.ado-tasks h3, .ado-grid h3 { margin: 0 0 var(--space-xs); }
|
|
251
|
+
.ado-change-badge { color: var(--color-accent); font-size: var(--text-xs); font-weight: 500; font-family: var(--font-outlier); }
|
|
252
|
+
.ado-changes { border-color: var(--color-accent); }
|
|
253
|
+
.ado-changes ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; }
|
|
254
|
+
.ado-changes li { display: flex; gap: var(--space-sm); justify-content: space-between; border-top: var(--rule-hair) solid var(--color-rule); padding: var(--space-xs) 0; }
|
|
255
|
+
.ado-changes time { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; font-family: var(--font-outlier); }
|
|
256
|
+
|
|
257
|
+
/* ---------- tokens (Overview) ---------- */
|
|
258
|
+
.panel-tokens {
|
|
259
|
+
flex: none;
|
|
260
|
+
display: grid;
|
|
261
|
+
grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
|
|
262
|
+
gap: 0;
|
|
263
|
+
height: 232px;
|
|
264
|
+
padding: 0;
|
|
265
|
+
}
|
|
266
|
+
.panel-tokens .tok-block { padding: var(--space-md) var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule); }
|
|
267
|
+
.panel-tokens .tok-block:last-child { border-right: 0; }
|
|
268
|
+
.panel-tokens h3 { margin: 0 0 var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); letter-spacing: 0; }
|
|
269
|
+
.panel-tokens .hint { color: var(--color-muted-2); font-size: var(--text-xs); }
|
|
270
|
+
|
|
271
|
+
.tok-block { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
|
|
272
|
+
.tok-big { font-family: var(--font-outlier); font-size: var(--text-3xl); font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
|
|
273
|
+
.tok-split { margin-top: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--text-sm); }
|
|
274
|
+
.tok-split div { display: flex; justify-content: space-between; gap: var(--space-xs); }
|
|
275
|
+
.tok-split span:first-child { color: var(--c); }
|
|
276
|
+
.tok-split b { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-weight: 400; color: var(--color-ink-2); }
|
|
277
|
+
|
|
278
|
+
.tok-spark svg { flex: 1; width: 100%; min-height: 0; display: block; }
|
|
279
|
+
|
|
280
|
+
.tok-models ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); overflow: hidden; }
|
|
281
|
+
.tok-models li { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em; gap: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); }
|
|
282
|
+
.tok-models .m-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-outlier); font-size: 0.95em; color: var(--c, var(--color-ink-2)); }
|
|
283
|
+
.tok-models .m-total { text-align: right; font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-weight: 400; }
|
|
284
|
+
.tok-models .seg { grid-column: 1 / -1; display: flex; height: 3px; overflow: hidden; background: var(--color-rule); }
|
|
285
|
+
.seg i { display: inline-block; height: 100%; }
|
|
286
|
+
.seg-legend { display: inline-flex; gap: var(--space-sm); }
|
|
287
|
+
.seg-legend .sw { display: inline-block; width: 0.6em; height: 0.6em; margin-right: var(--space-2xs); vertical-align: -0.05em; }
|
|
288
|
+
.s-in { background: var(--series-in); }
|
|
289
|
+
.s-out { background: var(--series-out); }
|
|
290
|
+
.s-cr { background: var(--series-cache-r); }
|
|
291
|
+
.s-cw { background: var(--series-cache-w); }
|
|
292
|
+
|
|
293
|
+
@media (max-width: 1100px) {
|
|
294
|
+
.panel-tokens { grid-template-columns: 1fr 1fr; height: auto; }
|
|
295
|
+
.panel-tokens .tok-block { border-bottom: var(--rule-hair) solid var(--color-rule); min-height: 160px; }
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* ---------- messages ---------- */
|
|
299
|
+
.msg-badge {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
min-width: 1.5em;
|
|
302
|
+
padding: 0 0.35em;
|
|
303
|
+
background: var(--color-accent);
|
|
304
|
+
color: var(--color-accent-ink);
|
|
305
|
+
font-family: var(--font-outlier);
|
|
306
|
+
font-size: var(--text-xs);
|
|
307
|
+
line-height: 1.5;
|
|
308
|
+
text-align: center;
|
|
309
|
+
}
|
|
310
|
+
.msg-badge[hidden] { display: none; }
|
|
311
|
+
.badge.declared { color: var(--color-muted-2); font-weight: 400; }
|
|
312
|
+
.badge.msg-message { color: var(--color-ink-2); }
|
|
313
|
+
.badge.msg-question { color: var(--color-accent); }
|
|
314
|
+
.badge.msg-finding { color: var(--color-warn); }
|
|
315
|
+
.badge.msg-event { color: var(--color-muted-2); }
|
|
316
|
+
.badge.st-open, .badge.st-running { color: var(--color-success); }
|
|
317
|
+
.badge.st-answered, .badge.st-finished { color: var(--color-ink-2); }
|
|
318
|
+
.badge.st-closed, .badge.st-stale, .badge.st-stopped { color: var(--color-muted-2); }
|
|
319
|
+
.msg-head { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); align-items: baseline; margin-bottom: var(--space-xs); font-size: var(--text-sm); }
|
|
320
|
+
.msg-head time { margin-left: auto; color: var(--color-muted); font-family: var(--font-outlier); }
|
|
321
|
+
.msg-body { white-space: pre-wrap; word-break: break-word; font-family: var(--font-outlier); font-size: 0.85rem; line-height: 1.6; margin: var(--space-xs) 0; color: var(--color-ink-2); }
|
|
322
|
+
.msg-event { border-style: dashed; }
|
|
323
|
+
.tool-lines summary { color: var(--color-muted); font-size: var(--text-sm); }
|
|
324
|
+
.tool-lines ol { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); font-size: var(--text-sm); }
|
|
325
|
+
.tool-lines .tool { color: var(--color-ink); }
|
|
326
|
+
.msg-filters label { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); }
|
|
327
|
+
.back-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
|
|
328
|
+
|
|
329
|
+
/* ---------- chats (/messages) ---------- */
|
|
330
|
+
.headline-item { border-bottom: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-xs) 0; font-size: var(--text-sm); }
|
|
331
|
+
.headline-item summary { cursor: pointer; display: flex; gap: var(--space-xs); align-items: baseline; list-style: none; }
|
|
332
|
+
.headline-item summary::-webkit-details-marker { display: none; }
|
|
333
|
+
.headline-item time { margin-left: auto; color: var(--color-muted-2); font-size: var(--text-xs); white-space: nowrap; font-family: var(--font-outlier); }
|
|
334
|
+
.headline-icon { width: 1.1em; text-align: center; color: var(--color-muted); }
|
|
335
|
+
.headline-icon.st-live { color: var(--color-accent); }
|
|
336
|
+
.headline-icon.st-done { color: var(--color-success); }
|
|
337
|
+
.headline-icon.st-warn { color: var(--color-warn); }
|
|
338
|
+
.headline-icon.st-question { color: var(--color-accent); }
|
|
339
|
+
.headline-icon.st-stopped { color: var(--color-muted-2); }
|
|
340
|
+
.headline-icon.st-message { color: var(--color-ink-2); }
|
|
341
|
+
.headline-detail { margin: var(--space-xs) 0 0 var(--space-lg); white-space: pre-wrap; font: inherit; color: var(--color-muted); }
|
|
342
|
+
|
|
343
|
+
body.chat-body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
|
|
344
|
+
.live-chat { flex: 1; min-height: 0; max-width: 1200px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); border-inline: var(--rule-hair) solid var(--color-rule); }
|
|
345
|
+
.live-members { min-height: 0; overflow: auto; padding: var(--space-md); border-right: var(--rule-hair) solid var(--color-rule); }
|
|
346
|
+
.live-members h1 { margin: 0; font-size: var(--text-xl); }
|
|
347
|
+
.live-agent { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); }
|
|
348
|
+
.live-agent-info { flex: 1; min-width: 0; }.live-agent-info span, .live-agent-info small { display: block; }.live-agent-info span { overflow-wrap: break-word; }.live-agent-info small, .live-agent > small { color: var(--color-muted); }.live-agent > button, .live-agent > small { flex: none; }
|
|
349
|
+
.agent-dot { display: inline-block; flex: none; width: .65em; height: .65em; border-radius: 50%; background: var(--agent); margin-right: .35em; vertical-align: .05em; }
|
|
350
|
+
.live-pane { min-height: 0; display: flex; flex-direction: column; }.live-note { padding: 0 var(--space-md) var(--space-sm); font-size: var(--text-xs); }
|
|
351
|
+
.chat-app { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); max-width: 1440px; width: 100%; margin: 0 auto; border-inline: var(--rule-hair) solid var(--color-rule); }
|
|
352
|
+
.chat-list-pane { display: flex; flex-direction: column; min-height: 0; border-right: var(--rule-hair) solid var(--color-rule); }
|
|
353
|
+
.chat-list-head { padding: var(--space-md) var(--space-md) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
|
|
354
|
+
.chat-list-head h1 { margin: 0 0 var(--space-xs); font-size: var(--text-xl); }
|
|
355
|
+
.chat-filters summary { color: var(--color-muted); font-size: var(--text-sm); }
|
|
356
|
+
.chat-filters form { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-sm); }
|
|
357
|
+
.chat-filters form > a { font-size: var(--text-sm); color: var(--color-muted); }
|
|
358
|
+
.chat-filters select { width: 100%; }
|
|
359
|
+
.chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
|
|
360
|
+
.chat-row a {
|
|
361
|
+
display: grid;
|
|
362
|
+
grid-template-columns: 2rem minmax(0, 1fr);
|
|
363
|
+
gap: var(--space-sm);
|
|
364
|
+
align-items: start;
|
|
365
|
+
padding: var(--space-sm) var(--space-md);
|
|
366
|
+
color: var(--color-ink);
|
|
367
|
+
border-bottom: var(--rule-hair) solid var(--color-rule-2);
|
|
368
|
+
border-left: 2px solid transparent;
|
|
369
|
+
}
|
|
370
|
+
.chat-row a:hover { background: var(--hover); text-decoration: none; }
|
|
371
|
+
.chat-row.on a { background: var(--color-paper-2); border-left-color: var(--color-accent); }
|
|
372
|
+
.avatar {
|
|
373
|
+
width: 2rem;
|
|
374
|
+
height: 2rem;
|
|
375
|
+
display: grid;
|
|
376
|
+
place-items: center;
|
|
377
|
+
font-family: var(--font-outlier);
|
|
378
|
+
font-size: var(--text-sm);
|
|
379
|
+
color: var(--color-ink-2);
|
|
380
|
+
border: var(--rule-hair) solid var(--color-rule);
|
|
381
|
+
background: var(--color-paper-2);
|
|
382
|
+
}
|
|
383
|
+
.avatar.k-s { color: var(--color-claude); border-color: var(--color-subagent); }
|
|
384
|
+
.cr-main { min-width: 0; display: grid; gap: var(--space-3xs); }
|
|
385
|
+
.cr-top, .cr-bottom { display: flex; gap: var(--space-xs); align-items: baseline; min-width: 0; }
|
|
386
|
+
.cr-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: var(--text-sm); }
|
|
387
|
+
.cr-top time { color: var(--color-muted-2); font-size: var(--text-xs); white-space: nowrap; font-family: var(--font-outlier); }
|
|
388
|
+
.cr-preview { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-muted); font-size: var(--text-sm); }
|
|
389
|
+
.cr-who { color: var(--color-ink); }
|
|
390
|
+
.cr-live { color: var(--color-accent); font-size: var(--text-xs); }
|
|
391
|
+
.chat-none { padding: var(--space-md); font-size: var(--text-sm); }
|
|
392
|
+
|
|
393
|
+
.chat-pane { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
|
|
394
|
+
.chat-pane > p.muted { padding: 0 var(--space-md) var(--space-sm); font-size: var(--text-xs); }
|
|
395
|
+
.chat-empty { margin: auto; max-width: 30rem; padding: var(--space-xl); display: grid; gap: var(--space-md); font-size: var(--text-sm); }
|
|
396
|
+
.chat-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
|
|
397
|
+
.chat-head form { margin: 0; }
|
|
398
|
+
.chat-back { display: none; font-size: var(--text-lg); padding: 0 var(--space-xs); }
|
|
399
|
+
.ch-main { flex: 1; min-width: 0; }
|
|
400
|
+
.ch-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
|
|
401
|
+
.ch-members { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
|
|
402
|
+
.ch-members .chip { color: var(--c, var(--color-muted)); white-space: nowrap; display: inline-flex; align-items: center; }
|
|
403
|
+
.ch-members .chip a { color: inherit; }
|
|
404
|
+
.ch-members .dot { display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.4em; background: var(--color-muted-2); }
|
|
405
|
+
.ch-members .st-running .dot { background: var(--color-success); }
|
|
406
|
+
.ch-members .st-finished .dot { background: var(--color-ink-2); }
|
|
407
|
+
.ch-members .st-stale .dot { background: var(--color-warn); }
|
|
408
|
+
|
|
409
|
+
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-md) clamp(var(--space-sm), 3vw, var(--space-xl)) var(--space-lg); }
|
|
410
|
+
.chat-items { display: flex; flex-direction: column; gap: var(--space-xs); max-width: 60rem; margin: 0 auto; }
|
|
411
|
+
.day-sep { display: flex; align-items: center; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-xs); }
|
|
412
|
+
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }
|
|
413
|
+
.day-sep span { font-size: var(--text-xs); color: var(--color-muted); font-family: var(--font-outlier); }
|
|
414
|
+
.bubble {
|
|
415
|
+
max-width: min(82%, 46rem);
|
|
416
|
+
padding: var(--space-xs) var(--space-sm);
|
|
417
|
+
background: var(--color-paper-2);
|
|
418
|
+
border: var(--rule-hair) solid var(--color-rule-2);
|
|
419
|
+
border-left: 2px solid var(--c, var(--color-rule));
|
|
420
|
+
align-self: flex-start;
|
|
421
|
+
overflow-wrap: anywhere;
|
|
422
|
+
}
|
|
423
|
+
.bubble.mine { align-self: flex-end; background: none; border: var(--rule-hair) solid var(--color-rule); border-right: 2px solid var(--color-user); }
|
|
424
|
+
.bubble.agent-bubble { border-left: 3px solid var(--agent); }
|
|
425
|
+
.bubble.l-question { border-color: var(--color-rule); border-left-color: var(--color-accent); }
|
|
426
|
+
.bubble.l-finding { border-color: var(--color-rule); border-left-color: var(--color-warn); }
|
|
427
|
+
.bubble.l-stopped { opacity: 0.7; }
|
|
428
|
+
.b-who { font-size: var(--text-xs); font-weight: 500; color: var(--c, var(--color-muted)); margin-bottom: var(--space-3xs); }
|
|
429
|
+
.agent-bubble .b-who { color: var(--agent); }
|
|
430
|
+
.b-who a { color: inherit; }
|
|
431
|
+
.b-to, .b-declared { color: var(--color-muted); font-weight: 400; }
|
|
432
|
+
.b-subject { font-weight: 500; margin-bottom: var(--space-3xs); }
|
|
433
|
+
.b-text { white-space: pre-wrap; margin: 0; font: inherit; font-size: var(--text-sm); line-height: 1.55; color: var(--color-ink-2); }
|
|
434
|
+
pre.b-text { font-family: var(--font-outlier); font-size: 0.8rem; }
|
|
435
|
+
.bubble.long:not(.open) .b-text { max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(var(--color-paper) 70%, transparent); mask-image: linear-gradient(var(--color-paper) 70%, transparent); }
|
|
436
|
+
.b-more { margin: var(--space-2xs) 0 0; min-height: 24px; padding: 0 var(--space-xs); font-size: var(--text-xs); }
|
|
437
|
+
.b-foot { display: flex; gap: var(--space-xs); justify-content: flex-end; align-items: center; font-size: var(--text-xs); color: var(--color-muted-2); margin-top: var(--space-2xs); font-family: var(--font-outlier); }
|
|
438
|
+
.delivery { display: grid; gap: var(--space-3xs); margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
|
|
439
|
+
.b-label { font-family: var(--font-body); color: var(--color-muted); }
|
|
440
|
+
.b-label.question { color: var(--color-accent); }
|
|
441
|
+
.b-label.finding { color: var(--color-warn); }
|
|
442
|
+
.b-label.task { color: var(--color-claude); }
|
|
443
|
+
.b-label.report { color: var(--color-ink-2); }
|
|
444
|
+
.sysline { align-self: stretch; font-size: var(--text-xs); color: var(--color-muted); }
|
|
445
|
+
.sysline summary { list-style: none; padding: var(--space-3xs) 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
446
|
+
.sysline summary::-webkit-details-marker { display: none; }
|
|
447
|
+
.sysline summary:hover { color: var(--color-ink-2); }
|
|
448
|
+
.sysline summary b { color: var(--c); font-weight: 500; }
|
|
449
|
+
.sysline .count, .sysline time { color: var(--color-muted-2); font-family: var(--font-outlier); }
|
|
450
|
+
.sysline ol {
|
|
451
|
+
margin: var(--space-2xs) 0 var(--space-xs);
|
|
452
|
+
padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xl);
|
|
453
|
+
font-family: var(--font-outlier);
|
|
454
|
+
font-size: var(--text-xs);
|
|
455
|
+
background: var(--color-paper-3);
|
|
456
|
+
border: var(--rule-hair) solid var(--color-rule);
|
|
457
|
+
max-height: 18rem;
|
|
458
|
+
overflow: auto;
|
|
459
|
+
overflow-wrap: anywhere;
|
|
460
|
+
}
|
|
461
|
+
.sysline .tool { color: var(--color-ink); }
|
|
462
|
+
.bubble.enter, .sysline.enter { animation: chat-in var(--dur-short) var(--ease-out); }
|
|
463
|
+
@keyframes chat-in { from { opacity: 0; } to { opacity: 1; } }
|
|
464
|
+
.new-pill {
|
|
465
|
+
position: absolute;
|
|
466
|
+
left: 50%;
|
|
467
|
+
transform: translateX(-50%);
|
|
468
|
+
bottom: 5rem;
|
|
469
|
+
background: var(--color-accent);
|
|
470
|
+
border-color: var(--color-accent);
|
|
471
|
+
color: var(--color-accent-ink);
|
|
472
|
+
font-size: var(--text-xs);
|
|
473
|
+
}
|
|
474
|
+
.new-pill:hover { background: var(--color-focus); border-color: var(--color-focus); }
|
|
475
|
+
.new-pill[hidden] { display: none; }
|
|
476
|
+
.chat-input { display: flex; gap: var(--space-xs); align-items: flex-end; padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
|
|
477
|
+
.chat-input textarea { flex: 1; min-height: 2.5rem; max-height: 10rem; resize: none; margin: 0; }
|
|
478
|
+
.chat-input button { min-height: 2.5rem; background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
|
|
479
|
+
.chat-input button:hover { background: var(--color-focus); border-color: var(--color-focus); }
|
|
480
|
+
.chat-input button:active { background: var(--color-accent); color: var(--color-accent-ink); opacity: 0.85; }
|
|
481
|
+
.chat-error { color: var(--color-error); margin: 0; padding: 0 var(--space-md) var(--space-xs); font-size: var(--text-sm); }
|
|
482
|
+
.chat-error[hidden] { display: none; }
|
|
483
|
+
@media (prefers-reduced-motion: reduce) { .bubble.enter, .sysline.enter { animation: none; } }
|
|
484
|
+
@media (max-width: 760px) {
|
|
485
|
+
.live-chat { grid-template-columns: minmax(0, 1fr); overflow: auto; }.live-members { max-height: 35vh; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
|
|
486
|
+
.chat-app { grid-template-columns: minmax(0, 1fr); border-inline: 0; }
|
|
487
|
+
.chat-app.has-chat .chat-list-pane, .chat-app:not(.has-chat) .chat-pane { display: none; }
|
|
488
|
+
.chat-list-pane { border-right: 0; }
|
|
489
|
+
.chat-back { display: inline; }
|
|
490
|
+
.bubble { max-width: 92%; }
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* ---------- maintenance ---------- */
|
|
494
|
+
.run-error { color: var(--color-error); }
|
|
495
|
+
td.when { font-family: var(--font-outlier); font-size: 0.82rem; white-space: nowrap; color: var(--color-ink-2); }
|
|
496
|
+
.change-card h3 { margin: 0 0 var(--space-xs); font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-sm); color: var(--color-ink); }
|
|
497
|
+
.change-card h3 small { color: var(--color-muted); font-family: var(--font-body); }
|
|
498
|
+
.change-card pre { font-family: var(--font-outlier); font-size: 0.8rem; white-space: pre-wrap; background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-xs) var(--space-sm); color: var(--color-ink-2); }
|
|
499
|
+
.change-card ul { padding-left: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
|
|
500
|
+
.maintenance-failing { border-color: var(--color-error); }
|
|
501
|
+
|
|
502
|
+
/* ---------- small screens ---------- */
|
|
503
|
+
@media (max-width: 720px) {
|
|
504
|
+
.topbar { gap: var(--space-sm); padding: 0 var(--space-md); }
|
|
505
|
+
main.page { padding: var(--space-lg) var(--space-md) var(--space-2xl); }
|
|
506
|
+
table { display: block; overflow-x: auto; }
|
|
507
|
+
.grid-cards .card, .ado-grid .card { border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
|
|
508
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
--space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
|
|
4
|
+
--text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem;
|
|
5
|
+
--text-display-s: 1.44rem; --text-display: 1.728rem; --text-section: 1.2rem; --text-title: 1rem; --text-lead: 1rem;
|
|
6
|
+
--ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
7
|
+
--dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
|
|
8
|
+
--color-error: oklch(72% 0.15 27); --color-success: oklch(76% 0.13 150);
|
|
9
|
+
--container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
|
|
10
|
+
--z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
|
|
11
|
+
--color-paper: oklch(9% 0.008 75); --color-paper-2: oklch(12.5% 0.009 75); --color-paper-3: oklch(6.5% 0.007 75);
|
|
12
|
+
--color-ink: oklch(94% 0.010 80); --color-ink-2: oklch(84% 0.011 80); --color-muted: oklch(68% 0.012 80); --color-muted-2: oklch(50% 0.010 80);
|
|
13
|
+
--color-rule: oklch(25% 0.010 78); --color-rule-2: oklch(16% 0.009 78);
|
|
14
|
+
--color-accent: oklch(72% 0.17 45); --color-accent-ink: oklch(10% 0.02 45); --color-accent-2: oklch(74% 0.12 250); --color-focus: oklch(78% 0.15 45);
|
|
15
|
+
--font-display: "Switzer", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
|
|
16
|
+
--font-outlier: "Geist Mono", ui-monospace, monospace;
|
|
17
|
+
--radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
|
|
18
|
+
--tracking-display: -0.04em; --display-weight: 500;
|
|
19
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{% extends 'base.html' %}
|
|
2
|
+
{% block title %}Azure DevOps · Brain{% endblock %}
|
|
3
|
+
{% block body %}
|
|
4
|
+
<section id="ado-changes" class="ado-changes card" hidden></section>
|
|
5
|
+
{% if snapshot.pending %}
|
|
6
|
+
<h1>Azure DevOps</h1>
|
|
7
|
+
<div class="card muted">Loading…</div>
|
|
8
|
+
{% elif not snapshot.configured %}
|
|
9
|
+
<h1>Azure DevOps</h1>
|
|
10
|
+
<div class="card muted">{% if snapshot.config_error %}Azure DevOps config problem: {{ snapshot.config_error }}{% endif %}{% if snapshot.token_error %}{% if snapshot.config_error %} · {% endif %}Azure DevOps token problem: {{ snapshot.token_error }}{% endif %}{% if snapshot.missing %}{% if snapshot.config_error or snapshot.token_error %} · {% endif %}Azure DevOps is not configured: {% if 'token' in snapshot.missing %}no token in ~/.devmem/ado_token{% endif %}{% if 'token' in snapshot.missing and 'config' in snapshot.missing %} and {% endif %}{% if 'config' in snapshot.missing %}no organization/project: create ~/.devmem/ado.json or set DEVMEM_ADO_ORG and DEVMEM_ADO_PROJECT for the panel{% endif %}{% elif snapshot.error %}Azure DevOps error: {{ snapshot.error }}{% endif %}</div>
|
|
11
|
+
<form action="/ado/refresh" method="post"><button type="submit">Refresh</button></form>
|
|
12
|
+
{% else %}
|
|
13
|
+
{% macro pr_list(items, empty) -%}
|
|
14
|
+
{% if items %}
|
|
15
|
+
<ul class="ado-list">
|
|
16
|
+
{% for pr in items %}
|
|
17
|
+
<li>
|
|
18
|
+
<a href="{{ pr.url }}" target="_blank" rel="noopener"><span class="mono">#{{ pr.id }}</span> {{ pr.title }}</a>
|
|
19
|
+
<span class="muted meta"><span class="mono">{{ pr.repo }}</span><span>created {{ (pr.created_date | when) or 'unknown' }}</span></span>
|
|
20
|
+
<span class="ado-reviewers">
|
|
21
|
+
{% for reviewer in pr.reviewers %}{{ reviewer.name }} <b>({{ reviewer.vote }})</b>{% if not loop.last %}, {% endif %}{% endfor %}
|
|
22
|
+
</span>
|
|
23
|
+
{% if pr.pending_reviewers is defined %}<span class="muted meta"><span>Pending: {{ pr.pending_reviewers|join(', ') if pr.pending_reviewers else 'no named pending reviewers' }}</span><span>{{ pr.age_label }}</span></span>{% endif %}
|
|
24
|
+
</li>
|
|
25
|
+
{% endfor %}
|
|
26
|
+
</ul>
|
|
27
|
+
{% else %}<p class="muted">{{ empty }}</p>{% endif %}
|
|
28
|
+
{%- endmacro %}
|
|
29
|
+
|
|
30
|
+
<div class="page-title-row">
|
|
31
|
+
<div>
|
|
32
|
+
<h1>Azure DevOps</h1>
|
|
33
|
+
<p class="muted">{{ snapshot.project_active_count }} active PRs in the configured project</p>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="ado-refresh">
|
|
36
|
+
<span class="muted">Last refresh: {{ (snapshot.refreshed_at | when) or 'not yet' }}</span>
|
|
37
|
+
{% if snapshot.stale %}<span class="badge ado-stale">stale</span>{% endif %}
|
|
38
|
+
{% if snapshot.error %}<span class="ado-error">{{ snapshot.error }}</span>{% endif %}
|
|
39
|
+
<form action="/ado/refresh" method="post"><button type="submit">Refresh</button></form>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<h2>Waiting for me</h2>
|
|
44
|
+
<div class="ado-grid">
|
|
45
|
+
<section class="card"><h3>To review <span class="hint">{{ snapshot.to_review|length }}</span></h3>{{ pr_list(snapshot.to_review, 'No pull requests need your review.') }}</section>
|
|
46
|
+
<section class="card"><h3>Approved, not completed <span class="hint">{{ snapshot.my_approved_not_completed|length }}</span></h3>{{ pr_list(snapshot.my_approved_not_completed, 'No approved pull requests are waiting to land.') }}</section>
|
|
47
|
+
<section class="card"><h3>Changes requested <span class="hint">{{ snapshot.my_changes_requested|length }}</span></h3>{{ pr_list(snapshot.my_changes_requested, 'No pull requests have requested changes.') }}</section>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<h2>Waiting for others</h2>
|
|
51
|
+
<section class="card">{{ pr_list(snapshot.my_waiting_on_others, 'No authored pull requests are waiting on reviewers.') }}</section>
|
|
52
|
+
|
|
53
|
+
<h2>My open tasks <span class="hint">{{ snapshot.open_tasks|length }}</span></h2>
|
|
54
|
+
{% if snapshot.open_tasks_by_state %}
|
|
55
|
+
{% for state, tasks in snapshot.open_tasks_by_state.items() %}
|
|
56
|
+
<section class="card ado-tasks"><h3>{{ state }} <span class="hint">{{ tasks|length }}</span></h3>
|
|
57
|
+
<ul class="ado-list">{% for task in tasks %}<li><a href="{{ task.url }}" target="_blank" rel="noopener"><span class="mono">#{{ task.id }}</span> {{ task.title }}</a><span class="muted meta"><span>{{ task.type }}</span><span>changed {{ (task.changed_date | when) or 'unknown' }}</span></span></li>{% endfor %}</ul>
|
|
58
|
+
</section>
|
|
59
|
+
{% endfor %}
|
|
60
|
+
{% else %}<p class="muted">No open work items assigned to you.</p>{% endif %}
|
|
61
|
+
{% endif %}
|
|
62
|
+
{% endblock %}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% extends 'base.html' %}
|
|
2
|
+
{% block title %}Agents · Brain{% endblock %}
|
|
3
|
+
{% block body %}
|
|
4
|
+
<h1>Agents</h1>
|
|
5
|
+
<p class="muted">Connected now means last seen under 5 minutes and its PID is alive.</p>
|
|
6
|
+
<table>
|
|
7
|
+
<thead><tr><th>Client</th><th class="num">PID</th><th>CWD</th><th>Last seen</th><th class="num">Calls</th></tr></thead>
|
|
8
|
+
<tbody>
|
|
9
|
+
{% for x in clients %}
|
|
10
|
+
<tr>
|
|
11
|
+
<td>{{ x.client_name }} {% if x.connected %}<span class="badge ok">connected</span>{% endif %}</td>
|
|
12
|
+
<td class="num">{{ x.pid }}</td>
|
|
13
|
+
<td class="mono">{{ x.cwd }}</td>
|
|
14
|
+
<td><time data-rel datetime="{{ x.last_seen_at }}">{{ x.last_seen_at }}</time></td>
|
|
15
|
+
<td class="num">{{ x.tool_count }}</td>
|
|
16
|
+
</tr>
|
|
17
|
+
{% endfor %}
|
|
18
|
+
</tbody>
|
|
19
|
+
</table>
|
|
20
|
+
|
|
21
|
+
<h2>Last memory tool calls</h2>
|
|
22
|
+
<table>
|
|
23
|
+
<thead><tr><th>When</th><th>Client</th><th>Tool</th><th>Arguments</th></tr></thead>
|
|
24
|
+
<tbody>
|
|
25
|
+
{% for x in calls %}
|
|
26
|
+
<tr>
|
|
27
|
+
<td><time data-rel datetime="{{ x.at }}">{{ x.at }}</time></td>
|
|
28
|
+
<td>{{ x.client_name }}</td>
|
|
29
|
+
<td>{{ x.tool }}{% if not x.ok %} <span class="badge error">error</span>{% endif %}</td>
|
|
30
|
+
<td class="mono muted">{{ x.args_summary }}</td>
|
|
31
|
+
</tr>
|
|
32
|
+
{% endfor %}
|
|
33
|
+
</tbody>
|
|
34
|
+
</table>
|
|
35
|
+
{% endblock %}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{% extends 'base.html' %}
|
|
2
|
+
{% block title %}Audit · Brain{% endblock %}
|
|
3
|
+
{% block body %}
|
|
4
|
+
<h1>Audit</h1>
|
|
5
|
+
<p class="muted">Report only: no memories are changed.</p>
|
|
6
|
+
<table>
|
|
7
|
+
<thead><tr><th>ID</th><th>Title</th><th class="num">Size</th><th>Updated</th><th>Reason</th></tr></thead>
|
|
8
|
+
<tbody>
|
|
9
|
+
{% for x in rows %}
|
|
10
|
+
<tr>
|
|
11
|
+
<td>#{{ x.id }}</td><td>{{ x.title }}</td><td class="num">{{ x.size }}</td>
|
|
12
|
+
<td><time data-rel datetime="{{ x.updated_at }}">{{ x.updated_at }}</time></td><td>{{ x.reason }}</td>
|
|
13
|
+
</tr>
|
|
14
|
+
{% else %}
|
|
15
|
+
<tr><td colspan="5" class="muted">No audit findings.</td></tr>
|
|
16
|
+
{% endfor %}
|
|
17
|
+
</tbody>
|
|
18
|
+
</table>
|
|
19
|
+
{% endblock %}
|