@cotal-ai/web 0.138.2 → 0.139.1
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/dist/web/assets/AgentPage-CpDkKMSj.js +1 -0
- package/dist/web/assets/FailedTip-DfF85PmB.js +1 -0
- package/dist/web/assets/bash-CLZ0U2zV.js +1 -0
- package/dist/web/assets/characters-BsW4RWhl.js +9 -0
- package/dist/web/assets/controller-D_lQfVDy.js +70 -0
- package/dist/web/assets/core-Bfff_dYO.js +12 -0
- package/dist/web/assets/diff-woXpYk--.js +1 -0
- package/dist/web/assets/dist-BB9Crw5c.js +1 -0
- package/dist/web/assets/dist-DktEa9vr.js +1 -0
- package/dist/web/assets/engine-javascript-C30F4iNc.js +141 -0
- package/dist/web/assets/index-DQdr6c2w.css +1 -0
- package/dist/web/assets/index-Dfeh4Ewy.js +13 -0
- package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/assets/javascript-BgS3c2Ky.js +1 -0
- package/dist/web/assets/json-qhed-kSA.js +1 -0
- package/dist/web/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/web/assets/python-gzcpVVnB.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/typescript-bsJCZSQ-.js +1 -0
- package/dist/web/assets/yaml-rwi0_p6S.js +1 -0
- package/dist/web/bundle-licenses.json +389 -0
- package/dist/web/index.html +9 -513
- package/dist/web/theme-boot.js +8 -0
- package/dist/web.d.ts +312 -21
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +647 -121
- package/dist/web.js.map +1 -1
- package/package.json +30 -6
- package/dist/web/agui-frame.js +0 -210
- package/dist/web/app.js +0 -1428
- package/dist/web/event-order.js +0 -283
- package/dist/web/graph.html +0 -225
- package/dist/web/graph.js +0 -868
- package/dist/web/harness.js +0 -46
- package/dist/web/md.js +0 -31
- package/dist/web/parts.js +0 -114
- package/dist/web/presence-ages.js +0 -33
- package/dist/web/presence.js +0 -17
- package/dist/web/snapshot.js +0 -99
- package/dist/web/vendor/marked.umd.js +0 -79
- package/dist/web/vendor/purify.min.js +0 -3
- package/dist/web/vendor/vendor-manifest.json +0 -18
package/dist/web/index.html
CHANGED
|
@@ -1,522 +1,18 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
+
<script src="/theme-boot.js"></script>
|
|
5
|
+
|
|
4
6
|
<meta charset="utf-8" />
|
|
5
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>Cotal
|
|
7
|
-
<
|
|
8
|
-
<link rel="
|
|
9
|
-
<link
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/>
|
|
13
|
-
<style>
|
|
14
|
-
:root {
|
|
15
|
-
--bg: #0d1117; --panel: #161b22; --tile: #1c2230; --line: #21262d;
|
|
16
|
-
--fg: #e6edf3; --dim: #8b949e; --faint: #6e7681;
|
|
17
|
-
--blue: #58a6ff; --green: #3fb950; --amber: #d29922; --orange: #db6d28; --red: #f85149;
|
|
18
|
-
--tint-green: #1f2d24; --tint-amber: #2a2417; --peer-amber: #221e12; --tag-amber: #3a2e12;
|
|
19
|
-
--sel: #15233a; --intent: #10203a; --intent-badge: #16345c; --rollup: #12161d;
|
|
20
|
-
--font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
21
|
-
--nav-w: 300px; --rail-w: 340px; /* side-panel widths — drag-adjustable + persisted (app.js) */
|
|
22
|
-
--roster-h: 34%; --channels-h: 32%; /* nav section heights — drag-adjustable (dms = remainder) */
|
|
23
|
-
}
|
|
24
|
-
* { box-sizing: border-box; }
|
|
25
|
-
html, body { height: 100%; }
|
|
26
|
-
body {
|
|
27
|
-
margin: 0; display: grid; grid-template-rows: 76px 1fr;
|
|
28
|
-
font-family: var(--font); font-size: 13px; line-height: 1.45;
|
|
29
|
-
background: var(--bg); color: var(--fg);
|
|
30
|
-
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* ── Header ── */
|
|
34
|
-
header {
|
|
35
|
-
display: flex; align-items: center; gap: 20px; padding: 0 24px;
|
|
36
|
-
background: var(--panel); border-bottom: 1px solid var(--line);
|
|
37
|
-
}
|
|
38
|
-
.brand { display: flex; align-items: center; gap: 10px; }
|
|
39
|
-
.brand .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
|
|
40
|
-
.brand .title { font-size: 18px; font-weight: 700; color: var(--fg); }
|
|
41
|
-
.brand .space { font-size: 14px; color: var(--dim); }
|
|
42
|
-
.brand-graph {
|
|
43
|
-
font-size: 12px; font-weight: 600; color: var(--dim); text-decoration: none;
|
|
44
|
-
padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px;
|
|
45
|
-
}
|
|
46
|
-
.brand-graph:hover { color: var(--fg); border-color: var(--blue); }
|
|
47
|
-
.pill {
|
|
48
|
-
display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
|
|
49
|
-
border-radius: 20px; background: var(--tint-green);
|
|
50
|
-
}
|
|
51
|
-
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
|
|
52
|
-
.pill .t { font-size: 11px; font-weight: 600; color: var(--green); }
|
|
53
|
-
.pill.down { background: #2a1717; }
|
|
54
|
-
.pill.down .d { background: var(--red); } .pill.down .t { color: var(--red); }
|
|
55
|
-
/* last-good data on screen, refresh refused - amber, and it carries a text label, never colour alone */
|
|
56
|
-
.pill.stale { background: var(--tint-amber); }
|
|
57
|
-
.pill.stale .d { background: var(--amber); } .pill.stale .t { color: var(--amber); }
|
|
58
|
-
|
|
59
|
-
/* HealthBand tiles */
|
|
60
|
-
.tiles { margin-left: auto; display: flex; gap: 10px; }
|
|
61
|
-
.tile {
|
|
62
|
-
display: flex; align-items: center; gap: 9px; padding: 8px 12px;
|
|
63
|
-
border-radius: 8px; background: var(--tile); border: 1px solid var(--line);
|
|
64
|
-
}
|
|
65
|
-
.tile .bar { width: 3px; height: 24px; border-radius: 2px; background: var(--faint); }
|
|
66
|
-
.tile .c { display: flex; flex-direction: column; gap: 1px; }
|
|
67
|
-
.tile .n { font-size: 17px; font-weight: 700; color: var(--fg); line-height: 1.1; }
|
|
68
|
-
.tile .lbl { font-size: 10.5px; color: var(--dim); letter-spacing: .3px; line-height: 1.1; }
|
|
69
|
-
.tile.working .bar { background: var(--green); }
|
|
70
|
-
/* Waiting tile is quiet at zero — amber only when something needs a human (alarm discipline). */
|
|
71
|
-
.tile.waiting.alert { background: var(--tint-amber); border-color: var(--amber); }
|
|
72
|
-
.tile.waiting.alert .bar { background: var(--amber); }
|
|
73
|
-
.tile.waiting.alert .n { color: var(--amber); }
|
|
74
|
-
.tile.oldest .bar { background: var(--orange); }
|
|
75
|
-
|
|
76
|
-
/* ── Body grid ── */
|
|
77
|
-
/* minmax(0, …) not 1fr: a bare `1fr` is minmax(AUTO, 1fr), so wide unwrappable centre content
|
|
78
|
-
(a markdown <pre>, a long token) expands the track past the viewport. Pinning the minimum to
|
|
79
|
-
0 keeps the column bounded; overflow is then handled inside (pre scrolls, prose wraps). */
|
|
80
|
-
main { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w); min-height: 0; position: relative; }
|
|
81
|
-
/* Empty NEEDS YOU collapses to a thin strip — lane still exists, not always full width. */
|
|
82
|
-
main.rail-thin { grid-template-columns: var(--nav-w) minmax(0, 1fr) 44px; }
|
|
83
|
-
/* Drag handles sitting over the nav|centre and centre|rail borders. Absolute so they don't add
|
|
84
|
-
grid tracks; the centre (minmax(0,1fr)) just absorbs the remainder. A faint line appears on
|
|
85
|
-
hover/drag; the border stays put. Right handle hides while the rail is collapsed. */
|
|
86
|
-
.resizer { position: absolute; top: 0; bottom: 0; width: 7px; z-index: 6; cursor: col-resize; touch-action: none; }
|
|
87
|
-
.resizer.left { left: calc(var(--nav-w) - 3.5px); }
|
|
88
|
-
.resizer.right { right: calc(var(--rail-w) - 3.5px); }
|
|
89
|
-
main.rail-thin .resizer.right { display: none; }
|
|
90
|
-
.resizer::after {
|
|
91
|
-
content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
|
|
92
|
-
width: 2px; background: transparent; transition: background .12s;
|
|
93
|
-
}
|
|
94
|
-
.resizer:hover::after, .resizer.drag::after { background: var(--blue); }
|
|
95
|
-
aside.nav {
|
|
96
|
-
background: var(--panel); border-right: 1px solid var(--line);
|
|
97
|
-
display: flex; flex-direction: column; min-height: 0; min-width: 0;
|
|
98
|
-
overflow-x: hidden; overflow-y: hidden; /* never sideways; sections scroll internally */
|
|
99
|
-
}
|
|
100
|
-
/* Three independent scroll regions so CHANNELS never sinks below a long roster. */
|
|
101
|
-
.nav-sec {
|
|
102
|
-
display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
|
|
103
|
-
}
|
|
104
|
-
/* Section heights are drag-adjustable (the .v-resizer handles below): roster + channels carry
|
|
105
|
-
explicit heights, dms takes the remainder. Defaults live in :root. */
|
|
106
|
-
.roster-sec { flex: 0 0 var(--roster-h); }
|
|
107
|
-
.channels-sec { flex: 0 0 var(--channels-h); }
|
|
108
|
-
.dms-sec { flex: 1 1 0; min-height: 90px; }
|
|
109
|
-
/* Vertical drag handles between the nav sections; the faint line replaces the old borders. */
|
|
110
|
-
.v-resizer { flex: 0 0 7px; position: relative; cursor: row-resize; touch-action: none; }
|
|
111
|
-
.v-resizer::after {
|
|
112
|
-
content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
|
|
113
|
-
height: 1px; background: var(--line); transition: background .12s, height .12s;
|
|
114
|
-
}
|
|
115
|
-
.v-resizer:hover::after, .v-resizer.drag::after { background: var(--blue); height: 2px; }
|
|
116
|
-
.nav-body {
|
|
117
|
-
overflow-x: hidden; overflow-y: auto; min-height: 0; min-width: 0; flex: 1;
|
|
118
|
-
}
|
|
119
|
-
/* V1 defence-in-depth: no unbroken token may force horizontal scroll, whatever the id shape. */
|
|
120
|
-
.nav-body * { min-width: 0; }
|
|
121
|
-
.peer, .chan, .dm { max-width: 100%; overflow: hidden; }
|
|
122
|
-
aside.rail {
|
|
123
|
-
background: var(--panel); border-right: 0; border-left: 1px solid var(--line);
|
|
124
|
-
overflow-y: auto; min-height: 0;
|
|
125
|
-
}
|
|
126
|
-
aside.rail.collapsed {
|
|
127
|
-
padding: 10px 0; overflow: hidden;
|
|
128
|
-
display: flex; align-items: flex-start; justify-content: center;
|
|
129
|
-
}
|
|
130
|
-
.rail-collapsed {
|
|
131
|
-
writing-mode: vertical-rl; transform: rotate(180deg);
|
|
132
|
-
font-size: 10.5px; font-weight: 700; letter-spacing: .9px;
|
|
133
|
-
color: var(--faint); white-space: nowrap; user-select: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ghead {
|
|
137
|
-
display: flex; align-items: center; gap: 6px; padding: 12px 16px; flex: none;
|
|
138
|
-
font-size: 11px; font-weight: 600; letter-spacing: .8px; color: var(--dim);
|
|
139
|
-
background: var(--panel); position: sticky; top: 0; z-index: 1;
|
|
140
|
-
}
|
|
141
|
-
.ghead .c { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--faint); }
|
|
142
|
-
|
|
143
|
-
/* ── Roster ── */
|
|
144
|
-
.machine { display: flex; gap: 6px; padding: 10px 16px 2px; font-size: 11px; color: var(--faint); }
|
|
145
|
-
.machine .h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
146
|
-
.machine .c { margin-left: auto; }
|
|
147
|
-
.peer {
|
|
148
|
-
display: flex; gap: 9px; padding: 8px 16px; align-items: flex-start;
|
|
149
|
-
}
|
|
150
|
-
.peer.waiting { background: var(--peer-amber); border-left: 2px solid var(--amber); padding-left: 14px; }
|
|
151
|
-
.peer .dot { width: 7px; font-size: 11px; line-height: 19px; flex: none; text-align: center; }
|
|
152
|
-
.dot.working { color: var(--green); } .dot.waiting { color: var(--amber); }
|
|
153
|
-
.dot.idle, .dot.offline { color: var(--faint); }
|
|
154
|
-
.peer .c { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
|
155
|
-
.peer .l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
156
|
-
.peer .name {
|
|
157
|
-
font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap;
|
|
158
|
-
overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
|
|
159
|
-
}
|
|
160
|
-
.peer .role { font-size: 11px; color: var(--faint); white-space: nowrap;
|
|
161
|
-
overflow: hidden; text-overflow: ellipsis; }
|
|
162
|
-
.peer .act { font-size: 11.5px; color: var(--dim); white-space: nowrap;
|
|
163
|
-
overflow: hidden; text-overflow: ellipsis; }
|
|
164
|
-
.peer.waiting .act { color: var(--amber); }
|
|
165
|
-
.presence-facts { font-size: 12px; color: var(--dim); line-height: 1.5;
|
|
166
|
-
white-space: normal; overflow-wrap: anywhere; }
|
|
167
|
-
.tag {
|
|
168
|
-
font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
|
|
169
|
-
white-space: nowrap; background: var(--tag-amber); color: var(--amber);
|
|
170
|
-
}
|
|
171
|
-
/* Attention (dnd/focus only; open/absent are silent). Shape glyph + label — never colour alone. */
|
|
172
|
-
.att {
|
|
173
|
-
font-size: 10px; line-height: 1; flex: none;
|
|
174
|
-
}
|
|
175
|
-
.att.dnd { color: var(--orange); }
|
|
176
|
-
.att.focus { color: var(--blue); }
|
|
177
|
-
.att-badge {
|
|
178
|
-
display: inline-flex; align-items: center; gap: 4px;
|
|
179
|
-
font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
|
|
180
|
-
background: var(--tile); border: 1px solid var(--line); color: var(--dim);
|
|
181
|
-
}
|
|
182
|
-
.att-badge.dnd { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 45%, transparent);
|
|
183
|
-
background: color-mix(in srgb, var(--orange) 12%, transparent); }
|
|
184
|
-
.att-badge.focus { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 45%, transparent);
|
|
185
|
-
background: color-mix(in srgb, var(--blue) 12%, transparent); }
|
|
186
|
-
.d-badge.model .var { color: var(--dim); font-weight: 500; }
|
|
187
|
-
.d-badge.model.muted { color: var(--faint); font-style: italic; font-family: inherit; }
|
|
188
|
-
.d-chip.mode-quiet { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
|
|
189
|
-
.d-chip.mode-muted { color: var(--faint); }
|
|
190
|
-
/* A peer row is a click-through into its Agent Detail card. */
|
|
191
|
-
.peer.nav { cursor: pointer; }
|
|
192
|
-
.peer.nav:hover { background: #ffffff06; }
|
|
193
|
-
.peer.nav.sel { background: var(--sel); }
|
|
194
|
-
.peer.nav:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
|
|
195
|
-
|
|
196
|
-
/* ── Channels ── */
|
|
197
|
-
.chan {
|
|
198
|
-
display: flex; align-items: center; gap: 8px; padding: 6px 16px;
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
}
|
|
201
|
-
.chan:hover { background: #ffffff06; }
|
|
202
|
-
.chan.sel { background: var(--sel); border-left: 2px solid var(--blue); padding-left: 14px; }
|
|
203
|
-
.chan .l { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
|
|
204
|
-
.chan .hash { font-size: 12px; color: var(--dim); flex: none; }
|
|
205
|
-
.chan .glyph { font-size: 12px; color: var(--blue); flex: none; }
|
|
206
|
-
.chan .name { font-size: 13px; color: var(--blue); overflow: hidden;
|
|
207
|
-
text-overflow: ellipsis; white-space: nowrap; }
|
|
208
|
-
.chan.sel .name { font-weight: 600; color: var(--fg); }
|
|
209
|
-
.chan .count { font-size: 11px; color: var(--faint); flex: none; }
|
|
210
|
-
.chan.sel .count { color: var(--dim); }
|
|
211
|
-
.mention {
|
|
212
|
-
font-size: 10px; font-weight: 700; color: var(--bg); background: var(--blue);
|
|
213
|
-
padding: 1px 6px; border-radius: 9px; flex: none;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/* ── Feed ── */
|
|
217
|
-
section { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
|
|
218
|
-
.feed-head {
|
|
219
|
-
display: flex; align-items: center; gap: 10px; padding: 14px 20px;
|
|
220
|
-
border-bottom: 1px solid var(--line); flex: none;
|
|
221
|
-
}
|
|
222
|
-
.feed-head .h { font-size: 15px; font-weight: 700; color: var(--fg); }
|
|
223
|
-
.feed-head .sub { font-size: 12px; color: var(--dim); }
|
|
224
|
-
.feed-head .ctrls { margin-left: auto; display: flex; gap: 8px; align-items: center; }
|
|
225
|
-
.chip {
|
|
226
|
-
font-size: 11px; padding: 4px 10px; border-radius: 14px; cursor: pointer;
|
|
227
|
-
color: var(--faint); user-select: none; border: 1px solid transparent; white-space: nowrap;
|
|
228
|
-
}
|
|
229
|
-
.chip.mode.on { background: var(--tile); border-color: var(--line); color: var(--fg); }
|
|
230
|
-
.chip.pause.on { color: var(--amber); }
|
|
231
|
-
.chip.static { cursor: default; }
|
|
232
|
-
/* Policy chips (delivery/replay): must pass WCAG AA on dark bg at 11px (≥4.5:1). --dim fails; --fg passes. */
|
|
233
|
-
.chip.policy {
|
|
234
|
-
cursor: default; font-weight: 600; color: var(--fg);
|
|
235
|
-
background: var(--tile); border-color: var(--line);
|
|
236
|
-
}
|
|
237
|
-
.chip.danger { color: var(--red); }
|
|
238
|
-
.chip.danger:hover { background: #2a1717; border-color: var(--red); }
|
|
239
|
-
|
|
240
|
-
/* Ordering notice: what the bootstrap found out about the event stream it merged. Shape and
|
|
241
|
-
text carry the meaning; `.fault` only adds emphasis, so colour is never the whole signal. */
|
|
242
|
-
.order-notice {
|
|
243
|
-
flex: none; padding: 8px 20px; font-size: 12px; color: var(--fg);
|
|
244
|
-
background: var(--tile); border-bottom: 1px solid var(--line);
|
|
245
|
-
}
|
|
246
|
-
.order-notice.fault { border-left: 3px solid var(--amber); }
|
|
247
|
-
|
|
248
|
-
.feed { overflow-y: auto; min-height: 0; flex: 1; display: flex; flex-direction: column;
|
|
249
|
-
gap: 2px; padding: 8px; }
|
|
250
|
-
.sys { text-align: center; padding: 5px 12px; font-size: 11px; color: var(--faint); }
|
|
251
|
-
.msg { display: flex; gap: 10px; padding: 7px 12px; align-items: flex-start; }
|
|
252
|
-
.msg .ts { font-size: 11px; color: var(--faint); flex: none; width: 40px; line-height: 19px; }
|
|
253
|
-
.msg .badge {
|
|
254
|
-
font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
|
|
255
|
-
background: var(--line); flex: none; line-height: 1.4;
|
|
256
|
-
}
|
|
257
|
-
.badge.chat { color: var(--blue); } .badge.unicast { color: var(--amber); }
|
|
258
|
-
.badge.anycast { color: var(--green); } .badge.intent { color: var(--blue); background: var(--intent-badge); }
|
|
259
|
-
.msg .c { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
|
260
|
-
.msg .l1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
|
|
261
|
-
.msg .who { font-size: 13px; font-weight: 600; color: var(--fg); }
|
|
262
|
-
.msg .role { font-size: 10.5px; color: var(--faint); }
|
|
263
|
-
.msg .tgt { font-size: 11px; color: var(--dim); }
|
|
264
|
-
.msg .body { font-size: 12.5px; color: var(--fg); word-break: break-word; }
|
|
265
|
-
/* Progressive disclosure: long bodies clamp to a fixed HEIGHT (rendered markdown is block
|
|
266
|
-
content, not one text box, so line-clamp won't do). A soft mask fades the cut edge; the
|
|
267
|
-
button reveals the rest. Never silent truncate. */
|
|
268
|
-
.body.clamp .body-text { max-height: 5.4em; overflow: hidden; }
|
|
269
|
-
.body.clamp:not(.open) .body-text {
|
|
270
|
-
-webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
|
|
271
|
-
}
|
|
272
|
-
.body.clamp.open .body-text { max-height: none; -webkit-mask-image: none; mask-image: none; }
|
|
273
|
-
.body-more {
|
|
274
|
-
appearance: none; background: none; border: 0; padding: 2px 0 0; margin-top: 2px;
|
|
275
|
-
font: inherit; font-size: 11px; font-weight: 600; color: var(--blue); cursor: pointer;
|
|
276
|
-
}
|
|
277
|
-
.body-more:hover { text-decoration: underline; }
|
|
278
|
-
.chip.toggle-all { color: var(--dim); }
|
|
279
|
-
.chip.toggle-all:hover { color: var(--fg); background: var(--tile); border-color: var(--line); }
|
|
280
|
-
|
|
281
|
-
/* Rendered markdown in a message body — compact, feed-friendly spacing. Only the tags md.js
|
|
282
|
-
(marked + DOMPurify) can emit reach here. */
|
|
283
|
-
.body.md > :first-child { margin-top: 0; }
|
|
284
|
-
.body.md > :last-child { margin-bottom: 0; }
|
|
285
|
-
.md p { margin: 0 0 6px; }
|
|
286
|
-
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
|
|
287
|
-
margin: 9px 0 4px; font-size: 13px; font-weight: 700; color: var(--fg); line-height: 1.3;
|
|
288
|
-
}
|
|
289
|
-
.md h1 { font-size: 15px; } .md h2 { font-size: 14px; }
|
|
290
|
-
.md ul, .md ol { margin: 4px 0 6px; padding-left: 20px; }
|
|
291
|
-
.md li { margin: 1px 0; }
|
|
292
|
-
.md li > p { margin: 0; }
|
|
293
|
-
.md code {
|
|
294
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
|
|
295
|
-
background: var(--tile); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px;
|
|
296
|
-
}
|
|
297
|
-
.md pre {
|
|
298
|
-
margin: 5px 0 7px; padding: 9px 11px; border-radius: 7px; overflow-x: auto;
|
|
299
|
-
background: var(--tile); border: 1px solid var(--line);
|
|
300
|
-
}
|
|
301
|
-
.md pre code { background: none; border: 0; padding: 0; font-size: 11.5px; display: block; white-space: pre; }
|
|
302
|
-
.md blockquote { margin: 5px 0; padding: 2px 0 2px 11px; border-left: 2px solid var(--line); color: var(--dim); }
|
|
303
|
-
.md a { color: var(--blue); text-decoration: none; }
|
|
304
|
-
.md a:hover { text-decoration: underline; }
|
|
305
|
-
.md strong { font-weight: 700; color: var(--fg); }
|
|
306
|
-
.md em { font-style: italic; }
|
|
307
|
-
.md del { color: var(--faint); }
|
|
308
|
-
.md hr { border: 0; border-top: 1px solid var(--line); margin: 9px 0; }
|
|
309
|
-
.msg.intent { background: var(--intent); border-left: 2px solid var(--blue); padding-left: 10px; }
|
|
310
|
-
.msg.intent .tgt { color: var(--blue); }
|
|
311
|
-
.subpill {
|
|
312
|
-
font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
|
|
313
|
-
background: var(--tint-amber); color: var(--amber); flex: none;
|
|
314
|
-
}
|
|
315
|
-
.rollup {
|
|
316
|
-
display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 6px 12px;
|
|
317
|
-
border-radius: 6px; background: var(--rollup);
|
|
318
|
-
}
|
|
319
|
-
.rollup .ar { font-size: 13px; color: var(--faint); }
|
|
320
|
-
.rollup .t { font-size: 11.5px; color: var(--dim); }
|
|
321
|
-
|
|
322
|
-
/* ── NEEDS YOU rail ── */
|
|
323
|
-
aside.rail:not(.collapsed) { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
324
|
-
.rail-head { display: flex; align-items: center; justify-content: space-between; }
|
|
325
|
-
.rail-head .t { font-size: 12px; font-weight: 700; color: var(--fg); letter-spacing: .8px; }
|
|
326
|
-
.rail-head .n {
|
|
327
|
-
font-size: 11px; font-weight: 700; color: var(--bg); background: var(--red);
|
|
328
|
-
padding: 2px 8px; border-radius: 12px;
|
|
329
|
-
}
|
|
330
|
-
.card {
|
|
331
|
-
border-radius: 10px; background: var(--tile); border: 1px solid var(--ac, var(--line));
|
|
332
|
-
padding: 14px; display: flex; flex-direction: column; gap: 9px;
|
|
333
|
-
}
|
|
334
|
-
.card.nav { cursor: pointer; transition: border-color .12s, background .12s; }
|
|
335
|
-
.card.nav:hover { border-color: var(--ac); }
|
|
336
|
-
.card.nav.sel { border-color: var(--ac); background: var(--tint-amber, var(--tile)); }
|
|
337
|
-
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
338
|
-
.card .cat-l { display: flex; align-items: center; gap: 7px; }
|
|
339
|
-
.card .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
|
|
340
|
-
.card .cat { font-size: 10.5px; font-weight: 700; color: var(--ac); letter-spacing: .4px; }
|
|
341
|
-
.card .age { font-size: 10px; color: var(--dim); background: var(--line);
|
|
342
|
-
padding: 1px 6px; border-radius: 4px; }
|
|
343
|
-
.card .title { font-size: 13.5px; font-weight: 600; color: var(--fg); }
|
|
344
|
-
.card .crole { font-size: 11px; font-weight: 500; color: var(--faint); margin-left: 7px; }
|
|
345
|
-
.card .desc { font-size: 12px; color: var(--dim); }
|
|
346
|
-
/* Live waiting cards: one-line preview (gist at a glance); full text lives in the click-through detail. */
|
|
347
|
-
.card.nav .desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
348
|
-
.card .btns { display: flex; gap: 8px; }
|
|
349
|
-
.btn {
|
|
350
|
-
font-size: 11.5px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
|
|
351
|
-
border: 1px solid transparent; white-space: nowrap;
|
|
352
|
-
}
|
|
353
|
-
.btn.primary { background: var(--ac); color: var(--bg); font-weight: 700; }
|
|
354
|
-
.btn.secondary { border-color: var(--line); color: var(--fg); font-weight: 500; }
|
|
355
|
-
.tone-amber { --ac: var(--amber); } .tone-red { --ac: var(--red); }
|
|
356
|
-
.tone-orange { --ac: var(--orange); } .tone-blue { --ac: var(--blue); }
|
|
357
|
-
.rail-foot { font-size: 10.5px; color: var(--faint); }
|
|
358
|
-
|
|
359
|
-
/* ── Channel view (center) ── */
|
|
360
|
-
.ch-head {
|
|
361
|
-
display: flex; flex-direction: column; gap: 5px; padding: 14px 20px;
|
|
362
|
-
background: var(--panel); border-bottom: 1px solid var(--line); flex: none;
|
|
363
|
-
}
|
|
364
|
-
.ch-head .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
365
|
-
.ch-head .title { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
366
|
-
.ch-head .h { font-size: 17px; font-weight: 700; color: var(--fg); }
|
|
367
|
-
.ch-head .sub { font-size: 11px; color: var(--faint); white-space: nowrap; }
|
|
368
|
-
.ch-head .purpose { font-size: 12px; color: var(--dim); }
|
|
369
|
-
.clist { overflow-y: auto; min-height: 0; flex: 1; display: flex; flex-direction: column;
|
|
370
|
-
gap: 2px; padding: 10px; }
|
|
371
|
-
.cmsg { display: flex; gap: 10px; padding: 7px 12px; align-items: flex-start; }
|
|
372
|
-
.cmsg .ts { font-size: 11px; color: var(--faint); flex: none; width: 40px; line-height: 19px; }
|
|
373
|
-
.cmsg .dot { font-size: 11px; flex: none; width: 14px; text-align: center; line-height: 19px; }
|
|
374
|
-
.cmsg .c { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
|
375
|
-
.cmsg .l1 { display: flex; align-items: center; gap: 6px; }
|
|
376
|
-
.cmsg .who { font-size: 13px; font-weight: 600; color: var(--fg); }
|
|
377
|
-
.cmsg .role { font-size: 10.5px; color: var(--faint); }
|
|
378
|
-
.cmsg .body { font-size: 12.5px; color: var(--fg); word-break: break-word; }
|
|
379
|
-
.chan .dclass {
|
|
380
|
-
font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 3px; flex: none;
|
|
381
|
-
border: 1px solid var(--line); color: var(--faint); letter-spacing: .3px;
|
|
382
|
-
}
|
|
383
|
-
.chan .dclass.live { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
|
|
384
|
-
.chan .dclass.durable { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
|
|
385
|
-
/* Replay at a glance: ↻ present = on, struck = off (shape, not colour alone). */
|
|
386
|
-
.chan .replay { font-size: 12px; line-height: 1; flex: none; }
|
|
387
|
-
.chan .replay.on { color: var(--dim); }
|
|
388
|
-
.chan .replay.off { color: var(--faint); text-decoration: line-through; }
|
|
389
|
-
.thread {
|
|
390
|
-
align-self: flex-start; margin-top: 2px; font-size: 10.5px; color: var(--blue);
|
|
391
|
-
background: var(--line); padding: 3px 8px; border-radius: 6px;
|
|
392
|
-
}
|
|
393
|
-
.unread-mark { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
|
|
394
|
-
.unread-mark .line { flex: 1; height: 1px; background: var(--red); }
|
|
395
|
-
.unread-mark .t { font-size: 10.5px; font-weight: 600; color: var(--red); white-space: nowrap; }
|
|
396
|
-
|
|
397
|
-
.ch-head .ctrls { display: flex; align-items: center; gap: 8px; }
|
|
398
|
-
.cmsg .dir { font-size: 11px; color: var(--dim); }
|
|
399
|
-
.dtag { font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
|
|
400
|
-
background: var(--line); color: var(--amber); }
|
|
401
|
-
|
|
402
|
-
/* ── Direct messages (sidebar lens) ── */
|
|
403
|
-
.dm { display: flex; align-items: center; gap: 6px; padding: 7px 16px; cursor: pointer; }
|
|
404
|
-
.dm:hover { background: #ffffff06; }
|
|
405
|
-
.dm.sel { background: var(--sel); }
|
|
406
|
-
.dm .caret, .dm .ln { width: 10px; flex: none; text-align: center; font-size: 9px; color: var(--faint); }
|
|
407
|
-
.dm .l { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
|
|
408
|
-
.dm .dot { width: 12px; flex: none; text-align: center; font-size: 11px; }
|
|
409
|
-
.dm .nm {
|
|
410
|
-
font-size: 13.5px; font-weight: 600; color: var(--fg); white-space: nowrap;
|
|
411
|
-
overflow: hidden; text-overflow: ellipsis; min-width: 0;
|
|
412
|
-
}
|
|
413
|
-
.dm .role { font-size: 11px; color: var(--faint); white-space: nowrap;
|
|
414
|
-
overflow: hidden; text-overflow: ellipsis; }
|
|
415
|
-
.dm .threads { font-size: 11px; color: var(--faint); flex: none; }
|
|
416
|
-
.dm.sub { padding-left: 34px; }
|
|
417
|
-
.dm.sub .nm { font-size: 12.5px; font-weight: 400; }
|
|
418
|
-
.dm.sub .dot { width: 10px; font-size: 10px; }
|
|
419
|
-
|
|
420
|
-
.empty { color: var(--faint); padding: 22px 16px; font-size: 12px; }
|
|
421
|
-
|
|
422
|
-
/* ── Agent Detail (centre drill-down) ── */
|
|
423
|
-
.detail { padding: 22px 24px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto; }
|
|
424
|
-
.detail .d-head { display: flex; align-items: center; gap: 9px; }
|
|
425
|
-
.detail .d-head .dot { font-size: 13px; }
|
|
426
|
-
.detail .d-status { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--dim); }
|
|
427
|
-
.detail.amber .d-status { color: var(--amber); }
|
|
428
|
-
.detail .d-age { margin-left: auto; font-size: 11px; color: var(--faint); }
|
|
429
|
-
.detail .d-who { font-size: 20px; font-weight: 700; color: var(--fg); display: flex; align-items: baseline; }
|
|
430
|
-
.detail .d-who .crole { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 8px; }
|
|
431
|
-
.detail .d-label { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: var(--faint); text-transform: uppercase; }
|
|
432
|
-
.detail .d-block { font-size: 13px; color: var(--fg); line-height: 1.5; padding: 12px 14px; border-radius: 8px;
|
|
433
|
-
background: var(--tile); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
|
|
434
|
-
.detail.amber .d-block { border-color: var(--amber); background: var(--tint-amber); }
|
|
435
|
-
.detail .d-block.muted { color: var(--dim); }
|
|
436
|
-
.detail .d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
|
|
437
|
-
.detail .d-badge {
|
|
438
|
-
font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
|
|
439
|
-
background: var(--tile); border: 1px solid var(--line); color: var(--dim);
|
|
440
|
-
}
|
|
441
|
-
.detail .d-badge.model { font-family: ui-monospace, monospace; color: var(--fg); letter-spacing: -.2px; }
|
|
442
|
-
/* Harness (host connector) badge — brand-coloured via --hc; used in the detail view (pill
|
|
443
|
-
with label) and the roster row (bare icon). */
|
|
444
|
-
.harness-badge {
|
|
445
|
-
display: inline-flex; align-items: center; gap: 6px;
|
|
446
|
-
font-size: 11px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
|
|
447
|
-
color: var(--hc); border: 1px solid color-mix(in srgb, var(--hc) 45%, transparent);
|
|
448
|
-
background: color-mix(in srgb, var(--hc) 15%, transparent);
|
|
449
|
-
}
|
|
450
|
-
.harness-ico { display: inline-flex; align-items: center; flex: none; }
|
|
451
|
-
.harness-badge svg, .harness-ico svg { width: 13px; height: 13px; display: block; }
|
|
452
|
-
.detail .d-desc { font-size: 13px; color: var(--fg); line-height: 1.5; }
|
|
453
|
-
.detail .d-sec { display: flex; flex-direction: column; gap: 7px; }
|
|
454
|
-
.detail .d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
455
|
-
.detail .d-chip {
|
|
456
|
-
font-size: 11px; padding: 2px 9px; border-radius: 12px;
|
|
457
|
-
background: var(--tile); border: 1px solid var(--line); color: var(--dim);
|
|
458
|
-
}
|
|
459
|
-
.detail .d-skills { display: flex; flex-direction: column; gap: 8px; }
|
|
460
|
-
.detail .d-skill {
|
|
461
|
-
display: flex; flex-direction: column; gap: 1px; padding: 8px 12px;
|
|
462
|
-
border-radius: 8px; background: var(--tile); border: 1px solid var(--line);
|
|
463
|
-
}
|
|
464
|
-
.detail .d-skill .nm { font-size: 12.5px; font-weight: 600; color: var(--fg); }
|
|
465
|
-
.detail .d-skill .dsc { font-size: 11.5px; color: var(--dim); }
|
|
466
|
-
.detail .d-kv { display: flex; flex-direction: column; gap: 4px; }
|
|
467
|
-
.detail .d-kv .row { display: flex; gap: 10px; font-size: 12px; }
|
|
468
|
-
.detail .d-kv .k { color: var(--faint); min-width: 90px; flex: none; }
|
|
469
|
-
.detail .d-kv .v { color: var(--fg); word-break: break-word; }
|
|
470
|
-
.detail .d-foot {
|
|
471
|
-
display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px;
|
|
472
|
-
padding-top: 11px; border-top: 1px solid var(--line);
|
|
473
|
-
}
|
|
474
|
-
.detail .d-foot-item { font-size: 10.5px; color: var(--faint); }
|
|
475
|
-
.detail .d-foot-item.id { font-family: ui-monospace, monospace; word-break: break-all; }
|
|
476
|
-
</style>
|
|
8
|
+
<title>Cotal</title>
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-Dfeh4Ewy.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-BB9Crw5c.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/controller-D_lQfVDy.js">
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DQdr6c2w.css">
|
|
477
14
|
</head>
|
|
478
15
|
<body>
|
|
479
|
-
<
|
|
480
|
-
<span class="brand">
|
|
481
|
-
<span class="mark"></span>
|
|
482
|
-
<span class="title">Cotal</span>
|
|
483
|
-
<span class="space" id="space"></span>
|
|
484
|
-
<span class="pill down" id="conn"><span class="d"></span><span class="t">connecting</span></span>
|
|
485
|
-
<span class="pill stale" id="stale" hidden><span class="d"></span><span class="t"></span></span>
|
|
486
|
-
<a class="brand-graph" href="/graph">Graph view →</a>
|
|
487
|
-
</span>
|
|
488
|
-
<div class="tiles" id="tiles"></div>
|
|
489
|
-
</header>
|
|
490
|
-
<main id="main">
|
|
491
|
-
<aside class="nav">
|
|
492
|
-
<div class="nav-sec roster-sec" id="sec-roster">
|
|
493
|
-
<div class="ghead">ONLINE <span class="c" id="online-c"></span></div>
|
|
494
|
-
<div class="nav-body" id="roster"></div>
|
|
495
|
-
</div>
|
|
496
|
-
<div class="v-resizer" id="rz-roster" title="Drag to resize · double-click to reset"></div>
|
|
497
|
-
<div class="nav-sec channels-sec" id="sec-channels">
|
|
498
|
-
<div class="ghead">CHANNELS</div>
|
|
499
|
-
<div class="nav-body" id="channels"></div>
|
|
500
|
-
</div>
|
|
501
|
-
<div class="v-resizer" id="rz-channels" title="Drag to resize · double-click to reset"></div>
|
|
502
|
-
<div class="nav-sec dms-sec" id="sec-dms">
|
|
503
|
-
<div class="ghead">DIRECT MESSAGES</div>
|
|
504
|
-
<div class="nav-body" id="dms"></div>
|
|
505
|
-
</div>
|
|
506
|
-
</aside>
|
|
507
|
-
<section id="center"></section>
|
|
508
|
-
<aside class="rail" id="rail"></aside>
|
|
509
|
-
<div class="resizer left" id="rz-left" title="Drag to resize · double-click to reset"></div>
|
|
510
|
-
<div class="resizer right" id="rz-right" title="Drag to resize · double-click to reset"></div>
|
|
511
|
-
</main>
|
|
512
|
-
<script src="/vendor/marked.umd.js"></script>
|
|
513
|
-
<script src="/vendor/purify.min.js"></script>
|
|
514
|
-
<script src="/snapshot.js"></script>
|
|
515
|
-
<script src="/harness.js"></script>
|
|
516
|
-
<script src="/parts.js"></script>
|
|
517
|
-
<script src="/agui-frame.js"></script>
|
|
518
|
-
<script src="/event-order.js"></script>
|
|
519
|
-
<script src="/md.js"></script>
|
|
520
|
-
<script type="module" src="/app.js"></script>
|
|
16
|
+
<div id="root"></div>
|
|
521
17
|
</body>
|
|
522
18
|
</html>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(function bootTheme(storage, root) {
|
|
2
|
+
let theme = "system";
|
|
3
|
+
try {
|
|
4
|
+
const saved = storage().getItem("cotal.theme");
|
|
5
|
+
if (saved === "light" || saved === "dark" || saved === "system") theme = saved;
|
|
6
|
+
} catch {}
|
|
7
|
+
root.setAttribute("data-theme", theme);
|
|
8
|
+
})(() => localStorage, document.documentElement);
|