agenter-app 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/Agenter.vbs +9 -0
- package/LICENSE +21 -0
- package/README.md +168 -2
- package/cli.js +71 -0
- package/hook.js +49 -0
- package/install.js +73 -0
- package/lib/open-dashboard.js +26 -0
- package/open.js +29 -0
- package/package.json +47 -4
- package/public/app.js +1414 -0
- package/public/index.html +188 -0
- package/public/style.css +551 -0
- package/scripts/install-shortcuts.ps1 +36 -0
- package/server.js +1434 -0
package/public/style.css
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
/* Warm charcoal neutrals with a soft pastel accent. The accent is a fill color
|
|
2
|
+
(buttons, toggles) with dark text on it; --accent-ink is the same hue tuned
|
|
3
|
+
to be readable as text on the page background. */
|
|
4
|
+
:root {
|
|
5
|
+
--sans: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
|
|
6
|
+
--mono: "Geist Mono", "Cascadia Code", "Cascadia Mono", ui-monospace, Consolas, monospace;
|
|
7
|
+
|
|
8
|
+
/* accent presets (picker in the sidebar) */
|
|
9
|
+
--accent: #b7d4a6;
|
|
10
|
+
--accent-deep: #4c7a38;
|
|
11
|
+
|
|
12
|
+
--bg: #f4f3ef;
|
|
13
|
+
--sidebar: #ecebe6;
|
|
14
|
+
--panel: #fbfbf9;
|
|
15
|
+
--panel-2: #f0efea;
|
|
16
|
+
--hover: rgba(30, 28, 20, .05);
|
|
17
|
+
--border: #e0ded7;
|
|
18
|
+
--border-strong: #cbc8bf;
|
|
19
|
+
--text: #1c1c1a;
|
|
20
|
+
--text-2: #4b4a45;
|
|
21
|
+
--muted: #7d7b74;
|
|
22
|
+
--accent-ink: var(--accent-deep);
|
|
23
|
+
--accent-soft: color-mix(in srgb, var(--accent) 28%, transparent);
|
|
24
|
+
--accent-text: #161813;
|
|
25
|
+
--warn: #a8640a;
|
|
26
|
+
--warn-soft: rgba(214, 140, 30, .13);
|
|
27
|
+
--danger: #c2413f;
|
|
28
|
+
--danger-soft: rgba(194, 65, 63, .1);
|
|
29
|
+
--ok: #3d7f45;
|
|
30
|
+
--ok-soft: rgba(61, 127, 69, .12);
|
|
31
|
+
--work: #2f6fbf;
|
|
32
|
+
--work-soft: rgba(47, 111, 191, .11);
|
|
33
|
+
--code-bg: #efeee9;
|
|
34
|
+
--del-bg: #f8e4e1;
|
|
35
|
+
--add-bg: #e3efdc;
|
|
36
|
+
--shadow-sm: 0 1px 2px rgba(30, 28, 20, .06);
|
|
37
|
+
--shadow: 0 1px 3px rgba(30, 28, 20, .06), 0 8px 24px rgba(30, 28, 20, .06);
|
|
38
|
+
--radius: 10px;
|
|
39
|
+
--avatar-l: 40%;
|
|
40
|
+
color-scheme: light;
|
|
41
|
+
}
|
|
42
|
+
:root[data-theme="dark"] {
|
|
43
|
+
--bg: #1c1c1c;
|
|
44
|
+
--sidebar: #1f1f1f;
|
|
45
|
+
--panel: #252525;
|
|
46
|
+
--panel-2: #2b2b2b;
|
|
47
|
+
--hover: rgba(255, 255, 255, .045);
|
|
48
|
+
--border: #303030;
|
|
49
|
+
--border-strong: #3d3d3d;
|
|
50
|
+
--text: #ededea;
|
|
51
|
+
--text-2: #bdbcb7;
|
|
52
|
+
--muted: #8c8b86;
|
|
53
|
+
--accent-ink: var(--accent);
|
|
54
|
+
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
|
|
55
|
+
--warn: #e9b45c;
|
|
56
|
+
--warn-soft: rgba(233, 180, 92, .13);
|
|
57
|
+
--danger: #ea7a72;
|
|
58
|
+
--danger-soft: rgba(234, 122, 114, .12);
|
|
59
|
+
--ok: #8ccf8a;
|
|
60
|
+
--ok-soft: rgba(140, 207, 138, .12);
|
|
61
|
+
--work: #79b0f2;
|
|
62
|
+
--work-soft: rgba(121, 176, 242, .12);
|
|
63
|
+
--code-bg: #1f1f1f;
|
|
64
|
+
--del-bg: #3a2322;
|
|
65
|
+
--add-bg: #253222;
|
|
66
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
|
|
67
|
+
--shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
|
|
68
|
+
--avatar-l: 70%;
|
|
69
|
+
color-scheme: dark;
|
|
70
|
+
}
|
|
71
|
+
:root[data-accent="clay"] { --accent: #dc9474; --accent-deep: #a2522f; }
|
|
72
|
+
:root[data-accent="teal"] { --accent: #73cfcb; --accent-deep: #1d7a76; }
|
|
73
|
+
:root[data-accent="rose"] { --accent: #e58aa6; --accent-deep: #ad3a61; }
|
|
74
|
+
:root[data-accent="lavender"] { --accent: #b8acf2; --accent-deep: #6450c4; }
|
|
75
|
+
|
|
76
|
+
* { box-sizing: border-box; }
|
|
77
|
+
html, body { height: 100%; margin: 0; }
|
|
78
|
+
body {
|
|
79
|
+
background: var(--bg);
|
|
80
|
+
color: var(--text);
|
|
81
|
+
font: 14px/1.55 var(--sans);
|
|
82
|
+
-webkit-font-smoothing: antialiased;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
}
|
|
85
|
+
code, pre, kbd, .mono { font-family: var(--mono); font-size: 12.5px; }
|
|
86
|
+
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
|
|
87
|
+
button { font: inherit; color: inherit; }
|
|
88
|
+
a { color: var(--accent-ink); }
|
|
89
|
+
kbd {
|
|
90
|
+
display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 5px; text-align: center;
|
|
91
|
+
border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--panel);
|
|
92
|
+
color: var(--text-2); font-size: 11px; line-height: 16px;
|
|
93
|
+
}
|
|
94
|
+
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
95
|
+
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
96
|
+
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
|
|
97
|
+
|
|
98
|
+
/* ---------- shell ---------- */
|
|
99
|
+
.app { display: flex; height: 100vh; }
|
|
100
|
+
.sidebar {
|
|
101
|
+
width: 300px; flex: none; display: flex; flex-direction: column; gap: 6px;
|
|
102
|
+
background: var(--sidebar); border-right: 1px solid var(--border); padding: 14px 10px 10px; min-height: 0;
|
|
103
|
+
}
|
|
104
|
+
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; }
|
|
105
|
+
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
|
|
106
|
+
.logo { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative; }
|
|
107
|
+
.logo::after { content: ""; position: absolute; inset: 6px; background: var(--accent-text); transform: rotate(45deg); border-radius: 2px; }
|
|
108
|
+
.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
|
|
109
|
+
.conn.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
|
|
110
|
+
.conn.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
|
|
111
|
+
|
|
112
|
+
.nav-item {
|
|
113
|
+
display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
|
|
114
|
+
background: transparent; cursor: pointer; font-weight: 600; text-align: left;
|
|
115
|
+
}
|
|
116
|
+
.nav-item:hover { background: var(--hover); }
|
|
117
|
+
.nav-item.active { background: var(--panel); box-shadow: var(--shadow-sm); }
|
|
118
|
+
.count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 19px; }
|
|
119
|
+
|
|
120
|
+
.search { position: relative; display: flex; align-items: center; margin: 4px 0 2px; }
|
|
121
|
+
.search .ic { position: absolute; left: 10px; color: var(--muted); width: 14px; height: 14px; }
|
|
122
|
+
.search input {
|
|
123
|
+
width: 100%; padding: 7px 34px 7px 31px; border-radius: 8px; border: 1px solid var(--border);
|
|
124
|
+
background: var(--panel); color: var(--text); font: inherit; font-size: 13px;
|
|
125
|
+
}
|
|
126
|
+
.search input:focus { outline: 2px solid var(--accent-ink); outline-offset: -1px; }
|
|
127
|
+
.search input::-webkit-search-cancel-button { display: none; }
|
|
128
|
+
.search kbd { position: absolute; right: 8px; }
|
|
129
|
+
|
|
130
|
+
.session-list { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
|
|
131
|
+
.group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 10px 4px; display: flex; justify-content: space-between; }
|
|
132
|
+
.s-item {
|
|
133
|
+
display: grid; grid-template-columns: 32px 1fr auto; gap: 0 10px; align-items: center;
|
|
134
|
+
padding: 7px 8px; border-radius: 9px; cursor: pointer; position: relative;
|
|
135
|
+
}
|
|
136
|
+
.s-item:hover { background: var(--hover); }
|
|
137
|
+
.s-item.selected { background: var(--panel); box-shadow: var(--shadow-sm); }
|
|
138
|
+
.s-item.dim .avatar, .s-item.dim .s-name { opacity: .6; }
|
|
139
|
+
.s-main { min-width: 0; }
|
|
140
|
+
.s-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; min-width: 0; }
|
|
141
|
+
.s-name .s-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
142
|
+
.s-name .agent-tag { flex: none; }
|
|
143
|
+
.s-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
144
|
+
.s-sub.needs { color: var(--warn); font-weight: 600; }
|
|
145
|
+
.s-when { font-size: 11px; color: var(--muted); align-self: start; padding-top: 2px; }
|
|
146
|
+
|
|
147
|
+
.avatar {
|
|
148
|
+
--h: 240;
|
|
149
|
+
width: 32px; height: 32px; border-radius: 9px; flex: none; position: relative;
|
|
150
|
+
display: grid; place-items: center; font-weight: 700; font-size: 12.5px; letter-spacing: -.02em;
|
|
151
|
+
color: hsl(var(--h) 70% var(--avatar-l)); background: hsl(var(--h) 70% 50% / .14);
|
|
152
|
+
}
|
|
153
|
+
.avatar.lg { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
|
|
154
|
+
.avatar .st { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--sidebar); background: var(--muted); }
|
|
155
|
+
.s-item.selected .avatar .st { border-color: var(--panel); }
|
|
156
|
+
.st.working { background: var(--work); }
|
|
157
|
+
.st.waiting { background: var(--warn); animation: pulse 1s ease-in-out infinite; }
|
|
158
|
+
.st.vscode { background: var(--warn); }
|
|
159
|
+
.st.idle { background: var(--ok); }
|
|
160
|
+
.st.dormant, .st.ended { background: var(--border-strong); }
|
|
161
|
+
@keyframes pulse { 50% { opacity: .35; } }
|
|
162
|
+
|
|
163
|
+
/* plan usage */
|
|
164
|
+
.usage { border-top: 1px solid var(--border); padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 10px; }
|
|
165
|
+
.usage-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
|
|
166
|
+
.usage-head .plan { text-transform: none; letter-spacing: 0; font-weight: 500; padding: 0 6px; border-radius: 99px; background: var(--panel-2); }
|
|
167
|
+
.usage-head button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 5px; display: grid; }
|
|
168
|
+
.usage-head button:hover { color: var(--text); background: var(--hover); }
|
|
169
|
+
.usage-head button.spin .ic { animation: spin .8s linear infinite; }
|
|
170
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
171
|
+
.meter { --c: var(--accent-ink); }
|
|
172
|
+
.meter.warn { --c: var(--warn); }
|
|
173
|
+
.meter.crit { --c: var(--danger); }
|
|
174
|
+
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--text-2); }
|
|
175
|
+
.meter-top b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
|
|
176
|
+
.meter.warn .meter-top b, .meter.crit .meter-top b { color: var(--c); }
|
|
177
|
+
.bar { height: 6px; border-radius: 99px; background: var(--panel-2); margin: 5px 0 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
|
|
178
|
+
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .4s ease; }
|
|
179
|
+
.meter-sub { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
180
|
+
.usage-note { font-size: 11.5px; color: var(--muted); }
|
|
181
|
+
.usage-block { display: flex; flex-direction: column; gap: 10px; }
|
|
182
|
+
.usage-head .usage-toggle {
|
|
183
|
+
display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 2px; margin: -2px; border: 0; border-radius: 5px;
|
|
184
|
+
background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left;
|
|
185
|
+
}
|
|
186
|
+
.usage-head .usage-toggle:hover { color: var(--text); background: none; }
|
|
187
|
+
.usage-sum { margin-left: auto; display: flex; gap: 5px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
188
|
+
.usage-sum i { font-style: normal; color: var(--muted); font-weight: 400; }
|
|
189
|
+
.usage-sum .warn { color: var(--warn); }
|
|
190
|
+
.usage-sum .crit { color: var(--danger); }
|
|
191
|
+
.usage-head .usage-toggle + button { margin-left: 4px; }
|
|
192
|
+
.usage-block + .usage-block { border-top: 1px dashed var(--border); padding-top: 10px; }
|
|
193
|
+
.agent-tag {
|
|
194
|
+
display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 5px; vertical-align: 1px;
|
|
195
|
+
font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 16px;
|
|
196
|
+
background: var(--panel-2); color: var(--text-2); border: 1px solid var(--border);
|
|
197
|
+
}
|
|
198
|
+
.head-title .agent-tag { flex: none; margin-left: 0; }
|
|
199
|
+
.usage-note.err { color: var(--warn); }
|
|
200
|
+
|
|
201
|
+
.usage-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid var(--warn); background: var(--warn-soft); }
|
|
202
|
+
.usage-banner.crit { border-color: var(--danger); background: var(--danger-soft); }
|
|
203
|
+
.usage-banner .ic { color: var(--warn); width: 18px; height: 18px; }
|
|
204
|
+
.usage-banner.crit .ic { color: var(--danger); }
|
|
205
|
+
.usage-banner b { display: block; }
|
|
206
|
+
.usage-banner span { font-size: 13px; color: var(--text-2); }
|
|
207
|
+
|
|
208
|
+
.sidebar-foot { border-top: 1px solid var(--border); padding: 10px 6px 2px; display: flex; flex-direction: column; gap: 8px; }
|
|
209
|
+
.settings > summary {
|
|
210
|
+
list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
|
|
211
|
+
font-size: 13px; font-weight: 500; color: var(--text-2); padding: 4px 6px; margin: 0 -6px; border-radius: 7px;
|
|
212
|
+
}
|
|
213
|
+
.settings > summary::-webkit-details-marker { display: none; }
|
|
214
|
+
.settings > summary:hover { background: var(--hover); color: var(--text); }
|
|
215
|
+
.settings > summary .ic { width: 14px; height: 14px; }
|
|
216
|
+
.settings > summary .chev { margin-left: auto; transition: transform .15s; transform: rotate(180deg); }
|
|
217
|
+
.settings[open] > summary .chev { transform: none; }
|
|
218
|
+
.settings-body { display: flex; flex-direction: column; gap: 9px; padding: 8px 0 4px; }
|
|
219
|
+
.select-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
|
|
220
|
+
.select-row span { margin-right: auto; }
|
|
221
|
+
.select-row select {
|
|
222
|
+
font: inherit; font-size: 12.5px; color: var(--text); background: var(--panel); cursor: pointer;
|
|
223
|
+
border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px;
|
|
224
|
+
}
|
|
225
|
+
.select-row select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
|
|
226
|
+
.card-head .countdown { color: var(--warn); font-variant-numeric: tabular-nums; }
|
|
227
|
+
.theme-row { display: flex; align-items: center; font-size: 13px; color: var(--text-2); }
|
|
228
|
+
.theme-row > span { margin-right: auto; }
|
|
229
|
+
.segmented { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); }
|
|
230
|
+
.segmented button {
|
|
231
|
+
display: grid; place-items: center; width: 28px; height: 22px; border: 0; border-radius: 6px;
|
|
232
|
+
background: transparent; color: var(--muted); cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
.segmented button:hover { color: var(--text); }
|
|
235
|
+
.segmented button[aria-checked="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
|
|
236
|
+
.segmented button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
|
|
237
|
+
.segmented .ic { width: 14px; height: 14px; }
|
|
238
|
+
.accent-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
|
|
239
|
+
.accent-row span { margin-right: auto; }
|
|
240
|
+
.accent-row button {
|
|
241
|
+
width: 16px; height: 16px; border-radius: 4px; border: 0; padding: 0; cursor: pointer;
|
|
242
|
+
background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
|
|
243
|
+
}
|
|
244
|
+
.accent-row button[aria-checked="true"] { outline: 2px solid var(--text-2); outline-offset: 2px; }
|
|
245
|
+
.accent-row button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
|
|
246
|
+
.foot-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -8px; }
|
|
247
|
+
|
|
248
|
+
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text-2); }
|
|
249
|
+
.switch input { position: absolute; opacity: 0; pointer-events: none; }
|
|
250
|
+
.switch .track { width: 30px; height: 18px; border-radius: 9px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; }
|
|
251
|
+
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
|
|
252
|
+
.switch input:checked + .track { background: var(--accent-ink); }
|
|
253
|
+
.switch input:checked + .track::after { transform: translateX(12px); }
|
|
254
|
+
.switch input:focus-visible + .track { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
|
|
255
|
+
|
|
256
|
+
/* ---------- buttons ---------- */
|
|
257
|
+
.btn {
|
|
258
|
+
display: inline-flex; align-items: center; gap: 6px; justify-content: center;
|
|
259
|
+
border: 1px solid var(--border-strong); background: var(--panel); color: var(--text);
|
|
260
|
+
padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 500;
|
|
261
|
+
transition: background .12s, border-color .12s, transform .05s;
|
|
262
|
+
}
|
|
263
|
+
.btn:hover { background: var(--panel-2); }
|
|
264
|
+
.btn:active { transform: translateY(1px); }
|
|
265
|
+
.btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
|
|
266
|
+
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
|
|
267
|
+
.btn.primary:hover { filter: brightness(1.08); }
|
|
268
|
+
.btn.danger { color: var(--danger); }
|
|
269
|
+
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
|
|
270
|
+
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
|
|
271
|
+
.btn.ghost:hover { background: var(--hover); color: var(--text); }
|
|
272
|
+
.btn.small { padding: 4px 8px; font-size: 12px; }
|
|
273
|
+
.btn.icon { padding: 6px; }
|
|
274
|
+
.btn:disabled { opacity: .5; pointer-events: none; }
|
|
275
|
+
.btn kbd { margin-left: 2px; }
|
|
276
|
+
.btn.primary kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .7; }
|
|
277
|
+
|
|
278
|
+
/* ---------- main ---------- */
|
|
279
|
+
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
|
280
|
+
.main-head {
|
|
281
|
+
display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 64px;
|
|
282
|
+
border-bottom: 1px solid var(--border); background: var(--panel);
|
|
283
|
+
}
|
|
284
|
+
.head-text { min-width: 0; flex: 1; }
|
|
285
|
+
.head-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
|
|
286
|
+
.head-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
287
|
+
.head-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
288
|
+
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
|
|
289
|
+
.menu-btn { display: none; }
|
|
290
|
+
.path-chip { cursor: pointer; border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; }
|
|
291
|
+
.path-chip:hover { color: var(--text); text-decoration: underline; }
|
|
292
|
+
|
|
293
|
+
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; flex: none; }
|
|
294
|
+
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
295
|
+
.pill.working { background: var(--work-soft); color: var(--work); }
|
|
296
|
+
.pill.waiting, .pill.vscode { background: var(--warn-soft); color: var(--warn); }
|
|
297
|
+
.pill.idle { background: var(--ok-soft); color: var(--ok); }
|
|
298
|
+
.pill.plain::before { display: none; }
|
|
299
|
+
|
|
300
|
+
.split { flex: 1; display: flex; min-height: 0; }
|
|
301
|
+
.chat-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
|
302
|
+
.scroll { flex: 1; overflow-y: auto; }
|
|
303
|
+
.content { max-width: 920px; margin: 0 auto; padding: 22px 28px 28px; }
|
|
304
|
+
|
|
305
|
+
.dock { flex: none; background: linear-gradient(to bottom, transparent, var(--bg) 18px); padding: 0 28px 18px; max-height: 62vh; overflow-y: auto; }
|
|
306
|
+
.dock:empty { display: none; }
|
|
307
|
+
.dock > * { max-width: 864px; margin-left: auto; margin-right: auto; }
|
|
308
|
+
|
|
309
|
+
/* ---------- new session ---------- */
|
|
310
|
+
dialog.new-dialog { max-width: 520px; }
|
|
311
|
+
.new-dialog form { text-align: left; } /* dialogs right-align their form for the lone button */
|
|
312
|
+
.new-dialog h2 { margin: 0; font-size: 17px; }
|
|
313
|
+
.new-dialog .new-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
|
|
314
|
+
.new-dialog .segmented button { width: auto; padding: 0 12px; height: 26px; font-family: inherit; font-size: 12.5px; font-weight: 600; }
|
|
315
|
+
.new-dialog .dlg-sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
|
|
316
|
+
.new-dialog .field-label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 6px; color: var(--text-2); }
|
|
317
|
+
.new-dialog textarea.field { resize: vertical; font: inherit; }
|
|
318
|
+
.new-dialog .dlg-error { margin-top: 12px; font-size: 13px; color: var(--danger); }
|
|
319
|
+
.new-dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
|
|
320
|
+
|
|
321
|
+
/* ---------- steering ---------- */
|
|
322
|
+
.kind-steer .reply-row .hint { white-space: normal; }
|
|
323
|
+
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
|
|
324
|
+
.drive { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
|
|
325
|
+
.drive .segmented button { width: auto; padding: 0 9px; font-family: inherit; font-size: 12px; font-weight: 500; }
|
|
326
|
+
.queued { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
|
|
327
|
+
.queued .q-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
|
|
328
|
+
|
|
329
|
+
/* ---------- app preview ---------- */
|
|
330
|
+
.splitter { flex: none; width: 6px; margin: 0 -3px; z-index: 2; cursor: col-resize; position: relative; }
|
|
331
|
+
.splitter::after { content: ""; position: absolute; inset: 0 2px; background: var(--border); transition: background .12s; }
|
|
332
|
+
.splitter:hover::after, .split.resizing .splitter::after { background: var(--accent); }
|
|
333
|
+
.split.resizing { cursor: col-resize; user-select: none; }
|
|
334
|
+
.split.resizing iframe { pointer-events: none; } /* or the iframe swallows the drag */
|
|
335
|
+
.preview { flex: none; width: var(--preview-w, 50%); min-width: 280px; max-width: calc(100% - 320px); display: flex; flex-direction: column; background: var(--panel); }
|
|
336
|
+
.preview[hidden], .splitter[hidden] { display: none; }
|
|
337
|
+
.pv-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
|
|
338
|
+
.pv-url {
|
|
339
|
+
flex: 1; min-width: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
|
|
340
|
+
background: var(--bg); color: var(--text); font-size: 12.5px;
|
|
341
|
+
}
|
|
342
|
+
.pv-url:focus { outline: none; border-color: var(--accent-ink); }
|
|
343
|
+
.pv-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
|
|
344
|
+
.pv-apps:empty { display: none; }
|
|
345
|
+
.pv-chip {
|
|
346
|
+
display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; cursor: pointer;
|
|
347
|
+
border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12px;
|
|
348
|
+
}
|
|
349
|
+
.pv-chip:hover { background: var(--panel-2); }
|
|
350
|
+
.pv-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
|
|
351
|
+
.pv-chip .mono { font-weight: 600; }
|
|
352
|
+
.pv-apps .scan { margin-left: auto; }
|
|
353
|
+
.pv-body { flex: 1; min-height: 0; position: relative; display: flex; }
|
|
354
|
+
.pv-body iframe { flex: 1; width: 100%; border: 0; background: #fff; }
|
|
355
|
+
.pv-empty { margin: auto; max-width: 340px; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
|
|
356
|
+
.pv-empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 6px; }
|
|
357
|
+
.pv-empty code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
|
|
358
|
+
.pv-empty .btn { margin-top: 12px; }
|
|
359
|
+
.pv-warn { position: absolute; left: 10px; right: 10px; bottom: 10px; }
|
|
360
|
+
.btn.on { background: var(--accent-soft); border-color: var(--accent); }
|
|
361
|
+
|
|
362
|
+
/* ---------- conversation ---------- */
|
|
363
|
+
.convo { display: flex; flex-direction: column; gap: 10px; }
|
|
364
|
+
.msg-user { align-self: flex-end; max-width: 78%; background: var(--accent-soft); border: 1px solid transparent; padding: 9px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; word-break: break-word; }
|
|
365
|
+
.msg-user.from-dash { border-color: var(--accent-ink); }
|
|
366
|
+
.msg-claude { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
|
|
367
|
+
.claude-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-ink); }
|
|
368
|
+
.claude-mark .ic { width: 14px; height: 14px; }
|
|
369
|
+
.md { min-width: 0; word-break: break-word; padding-top: 2px; }
|
|
370
|
+
.md > :first-child { margin-top: 0; }
|
|
371
|
+
.md > :last-child { margin-bottom: 0; }
|
|
372
|
+
.md p, .md ul, .md ol, .md blockquote { margin: 0 0 8px; }
|
|
373
|
+
.md ul, .md ol { padding-left: 22px; }
|
|
374
|
+
.md h1, .md h2, .md h3, .md h4 { margin: 12px 0 6px; font-size: 14.5px; }
|
|
375
|
+
.md h1 { font-size: 16px; }
|
|
376
|
+
.md code { background: var(--code-bg); border: 1px solid var(--border); padding: 0 4px; border-radius: 4px; font-size: 12px; }
|
|
377
|
+
.md pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; overflow-x: auto; white-space: pre; }
|
|
378
|
+
.md pre code { background: none; border: 0; padding: 0; }
|
|
379
|
+
.md .file-ref { color: var(--accent-ink); font-weight: 500; }
|
|
380
|
+
.md blockquote { border-left: 3px solid var(--border-strong); padding-left: 10px; color: var(--text-2); }
|
|
381
|
+
.md table { border-collapse: collapse; margin: 0 0 8px; font-size: 13px; }
|
|
382
|
+
.md td, .md th { border: 1px solid var(--border); padding: 4px 8px; }
|
|
383
|
+
|
|
384
|
+
.tools { margin-left: 36px; display: flex; flex-direction: column; border-left: 2px solid var(--border); padding-left: 10px; gap: 1px; }
|
|
385
|
+
.tool { border-radius: 7px; }
|
|
386
|
+
.tool > summary {
|
|
387
|
+
list-style: none; display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 7px; cursor: pointer;
|
|
388
|
+
font-size: 12.5px; color: var(--text-2); min-width: 0;
|
|
389
|
+
}
|
|
390
|
+
.tool > summary::-webkit-details-marker { display: none; }
|
|
391
|
+
.tool > summary:hover { background: var(--hover); }
|
|
392
|
+
.tool .ic { width: 14px; height: 14px; color: var(--muted); }
|
|
393
|
+
.tool .tname { font-weight: 600; color: var(--text); flex: none; }
|
|
394
|
+
.tool .targ { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: var(--mono); font-size: 12px; flex: 1; min-width: 0; }
|
|
395
|
+
.tool .tstate { flex: none; font-size: 11px; color: var(--muted); }
|
|
396
|
+
.tool .tstate.err { color: var(--danger); font-weight: 600; }
|
|
397
|
+
.tool.err .ic { color: var(--danger); }
|
|
398
|
+
.tool pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; max-height: 320px; overflow: auto; margin: 2px 0 6px 30px; font-size: 12px; }
|
|
399
|
+
.tool .full-arg { margin: 2px 0 2px 30px; color: var(--text-2); font-size: 12px; }
|
|
400
|
+
|
|
401
|
+
.live-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 0 0; color: var(--muted); font-size: 13px; }
|
|
402
|
+
.live-row .targ { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
403
|
+
.dots { display: inline-flex; gap: 3px; padding: 0 6px; }
|
|
404
|
+
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--work); animation: bounce 1.2s infinite ease-in-out; }
|
|
405
|
+
.dots i:nth-child(2) { animation-delay: .15s; }
|
|
406
|
+
.dots i:nth-child(3) { animation-delay: .3s; }
|
|
407
|
+
@keyframes bounce { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
|
|
408
|
+
|
|
409
|
+
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: 13px; background: var(--panel); }
|
|
410
|
+
.notice .ic { margin-top: 2px; color: var(--muted); }
|
|
411
|
+
.notice b { color: var(--text); }
|
|
412
|
+
.dock .notice { box-shadow: var(--shadow-sm); }
|
|
413
|
+
.notice .btn { margin-left: auto; flex: none; }
|
|
414
|
+
|
|
415
|
+
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), var(--hover), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 10px 0; }
|
|
416
|
+
@keyframes shimmer { to { background-position: -200% 0; } }
|
|
417
|
+
|
|
418
|
+
/* ---------- action cards ---------- */
|
|
419
|
+
.card {
|
|
420
|
+
background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
|
|
421
|
+
box-shadow: var(--shadow); margin-top: 12px; overflow: hidden; position: relative;
|
|
422
|
+
animation: rise .18s ease-out;
|
|
423
|
+
}
|
|
424
|
+
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--warn); }
|
|
425
|
+
.card.kind-stop::before { background: var(--accent-ink); }
|
|
426
|
+
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
|
|
427
|
+
.card.kept { animation: none; }
|
|
428
|
+
/* Keyboard shortcuts act on one card only: mark it, and hide the key hints on the rest. */
|
|
429
|
+
.card.kind-permission:not(.kb-target) .actions kbd { display: none; }
|
|
430
|
+
#inboxPending:has(.kind-permission ~ .kind-permission) .card.kb-target { border-color: var(--accent-ink); box-shadow: var(--shadow), 0 0 0 1px var(--accent-ink); }
|
|
431
|
+
.card.flash { animation: flash .5s ease-in-out 3; }
|
|
432
|
+
@keyframes flash { 50% { box-shadow: var(--shadow), 0 0 0 4px var(--accent-ink); } }
|
|
433
|
+
.card.risky::before { background: var(--danger); }
|
|
434
|
+
.risk-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12.5px; }
|
|
435
|
+
.risk-note .ic { flex: none; margin-top: 1px; }
|
|
436
|
+
.card-session { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--panel-2); cursor: pointer; }
|
|
437
|
+
.card-session .avatar { width: 24px; height: 24px; border-radius: 7px; font-size: 10.5px; }
|
|
438
|
+
.card-session .cs-name { font-weight: 600; font-size: 13px; }
|
|
439
|
+
.card-session .cs-title { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
|
|
440
|
+
.card-session .open { color: var(--muted); font-size: 12px; flex: none; }
|
|
441
|
+
.card-session:hover .open { color: var(--accent-ink); }
|
|
442
|
+
.card-body { padding: 14px 16px 16px 18px; }
|
|
443
|
+
.card-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
|
|
444
|
+
.card-head .k-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
|
|
445
|
+
.card.kind-stop .card-head .k-ic { background: var(--accent-soft); color: var(--accent-ink); }
|
|
446
|
+
.card-head .k-title { font-weight: 600; }
|
|
447
|
+
.card-head .k-sub { font-size: 12px; color: var(--muted); }
|
|
448
|
+
.card-head .age { margin-left: auto; color: var(--muted); font-size: 12px; align-self: flex-start; }
|
|
449
|
+
|
|
450
|
+
.tool-body { margin-bottom: 12px; }
|
|
451
|
+
.tool-body .desc { color: var(--text-2); margin-bottom: 8px; }
|
|
452
|
+
.tool-body .path { font-weight: 600; margin-bottom: 6px; word-break: break-all; font-size: 12.5px; }
|
|
453
|
+
.cmd { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; max-height: 300px; overflow: auto; }
|
|
454
|
+
.cmd.shell { padding-left: 28px; position: relative; }
|
|
455
|
+
.cmd.shell::before { content: "\276F"; position: absolute; left: 11px; color: var(--accent-ink); }
|
|
456
|
+
.diff { border: 1px solid var(--border); border-radius: 8px; overflow: auto; max-height: 300px; margin-bottom: 6px; }
|
|
457
|
+
.diff div { padding: 0 10px; white-space: pre-wrap; word-break: break-word; }
|
|
458
|
+
.diff .del { background: var(--del-bg); }
|
|
459
|
+
.diff .add { background: var(--add-bg); }
|
|
460
|
+
|
|
461
|
+
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
462
|
+
.actions .grow { flex: 1; min-width: 180px; }
|
|
463
|
+
.field {
|
|
464
|
+
width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
|
|
465
|
+
border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 13px;
|
|
466
|
+
}
|
|
467
|
+
.field:focus { outline: 2px solid var(--accent-ink); outline-offset: -1px; border-color: transparent; }
|
|
468
|
+
|
|
469
|
+
.last-msg { background: var(--panel-2); border-radius: 9px; padding: 10px 14px; max-height: 240px; overflow: auto; margin-bottom: 12px; font-size: 13.5px; }
|
|
470
|
+
.reply-box { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); transition: border-color .12s, box-shadow .12s; }
|
|
471
|
+
.reply-box:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
472
|
+
.reply-box textarea { width: 100%; min-height: 64px; max-height: 260px; resize: none; border: 0; background: transparent; color: var(--text); font: inherit; padding: 10px 12px 4px; outline: none; display: block; }
|
|
473
|
+
.reply-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 12px; }
|
|
474
|
+
.reply-row .hint { color: var(--muted); font-size: 12px; margin-right: auto; }
|
|
475
|
+
|
|
476
|
+
.question { margin-bottom: 14px; }
|
|
477
|
+
.q-title { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
|
|
478
|
+
.options { display: grid; gap: 6px; }
|
|
479
|
+
.option { display: flex; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; align-items: flex-start; border: 1px solid var(--border); transition: border-color .12s, background .12s; }
|
|
480
|
+
.option:hover { border-color: var(--border-strong); background: var(--panel-2); }
|
|
481
|
+
.option:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); }
|
|
482
|
+
.option input { margin-top: 3px; accent-color: var(--accent-ink); }
|
|
483
|
+
.option .o-label { font-weight: 500; }
|
|
484
|
+
.option .o-desc { color: var(--muted); font-size: 12.5px; }
|
|
485
|
+
.q-other { margin-top: 6px; }
|
|
486
|
+
|
|
487
|
+
/* ---------- inbox / overview ---------- */
|
|
488
|
+
.section-title { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; }
|
|
489
|
+
#inboxPending > .section-title { margin-top: 0; }
|
|
490
|
+
.all-clear { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
|
|
491
|
+
.all-clear .big { width: 38px; height: 38px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
|
|
492
|
+
.all-clear b { display: block; }
|
|
493
|
+
.all-clear span { color: var(--muted); font-size: 13px; }
|
|
494
|
+
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
|
|
495
|
+
.tile {
|
|
496
|
+
background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
|
|
497
|
+
cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; transition: border-color .12s, box-shadow .12s;
|
|
498
|
+
min-width: 0;
|
|
499
|
+
}
|
|
500
|
+
.tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
|
|
501
|
+
.tile.needs { border-color: var(--warn); }
|
|
502
|
+
.tile-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
503
|
+
.tile-top .avatar .st { border-color: var(--panel); }
|
|
504
|
+
.tile-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
505
|
+
.tile-when { font-size: 11.5px; color: var(--muted); }
|
|
506
|
+
.tile-title { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
|
|
507
|
+
.tile-action { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
|
|
508
|
+
.tile.compact { flex-direction: row; align-items: center; padding: 9px 12px; }
|
|
509
|
+
.tile.compact .tile-title { min-height: 0; -webkit-line-clamp: 1; flex: 1; min-width: 0; }
|
|
510
|
+
|
|
511
|
+
.empty { text-align: center; padding: 12vh 20px; color: var(--muted); }
|
|
512
|
+
.empty .avatar { margin: 0 auto 14px; }
|
|
513
|
+
.empty h2 { color: var(--text); font-size: 18px; margin: 0 0 6px; }
|
|
514
|
+
.empty code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; }
|
|
515
|
+
|
|
516
|
+
/* ---------- toasts & dialog ---------- */
|
|
517
|
+
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
|
|
518
|
+
.toast { background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow); animation: rise .18s ease-out; display: flex; gap: 8px; align-items: center; }
|
|
519
|
+
.toast.out { opacity: 0; transition: opacity .3s; }
|
|
520
|
+
dialog { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--text); padding: 22px 24px; box-shadow: var(--shadow); max-width: 440px; width: calc(100% - 32px); }
|
|
521
|
+
dialog::backdrop { background: rgba(0, 0, 0, .35); }
|
|
522
|
+
dialog h2 { margin: 0 0 14px; font-size: 16px; }
|
|
523
|
+
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 13px; }
|
|
524
|
+
.keys dt { white-space: nowrap; }
|
|
525
|
+
.keys dd { margin: 0; color: var(--text-2); }
|
|
526
|
+
dialog form { text-align: right; }
|
|
527
|
+
|
|
528
|
+
.scrim { display: none; }
|
|
529
|
+
|
|
530
|
+
@media (prefers-reduced-motion: reduce) {
|
|
531
|
+
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/* ---------- small screens ---------- */
|
|
535
|
+
@media (max-width: 800px) {
|
|
536
|
+
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); width: min(300px, 86vw); }
|
|
537
|
+
.app.nav-open .sidebar { transform: none; }
|
|
538
|
+
.app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 30; }
|
|
539
|
+
.menu-btn { display: inline-flex; }
|
|
540
|
+
.main-head { padding: 10px 16px; }
|
|
541
|
+
.content { padding: 16px; }
|
|
542
|
+
.dock { padding: 0 16px 14px; }
|
|
543
|
+
.head-actions .label { display: none; }
|
|
544
|
+
.msg-user { max-width: 92%; }
|
|
545
|
+
.btn kbd, .reply-row .hint, .search kbd { display: none; }
|
|
546
|
+
.tools { margin-left: 8px; }
|
|
547
|
+
/* No room side by side: the app goes on top, the conversation below. */
|
|
548
|
+
.split { flex-direction: column; }
|
|
549
|
+
.splitter { display: none; }
|
|
550
|
+
.preview { order: -1; width: auto; max-width: none; min-width: 0; height: 48vh; border-bottom: 1px solid var(--border); }
|
|
551
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Creates "Agenter" shortcuts on the Desktop and in the Start Menu (pin it to the taskbar from there).
|
|
2
|
+
# -Startup also starts the Agenter server silently when you log in to Windows.
|
|
3
|
+
param([switch]$Startup, [switch]$Remove)
|
|
4
|
+
|
|
5
|
+
$root = Split-Path -Parent $PSScriptRoot
|
|
6
|
+
$shell = New-Object -ComObject WScript.Shell
|
|
7
|
+
$targets = @(
|
|
8
|
+
(Join-Path ([Environment]::GetFolderPath('Desktop')) 'Agenter.lnk'),
|
|
9
|
+
(Join-Path ([Environment]::GetFolderPath('Programs')) 'Agenter.lnk')
|
|
10
|
+
)
|
|
11
|
+
$startupLink = Join-Path ([Environment]::GetFolderPath('Startup')) 'Agenter Server.lnk'
|
|
12
|
+
|
|
13
|
+
if ($Remove) {
|
|
14
|
+
foreach ($t in $targets + $startupLink) { if (Test-Path $t) { Remove-Item $t; "Removed $t" } }
|
|
15
|
+
return
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
foreach ($t in $targets) {
|
|
19
|
+
$lnk = $shell.CreateShortcut($t)
|
|
20
|
+
$lnk.TargetPath = "$env:SystemRoot\System32\wscript.exe"
|
|
21
|
+
$lnk.Arguments = "`"$root\Agenter.vbs`""
|
|
22
|
+
$lnk.WorkingDirectory = $root
|
|
23
|
+
$lnk.IconLocation = "$env:SystemRoot\System32\shell32.dll,94"
|
|
24
|
+
$lnk.Description = 'Watch and answer all your Claude Code sessions'
|
|
25
|
+
$lnk.Save()
|
|
26
|
+
"Created $t"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if ($Startup) {
|
|
30
|
+
$lnk = $shell.CreateShortcut($startupLink)
|
|
31
|
+
$lnk.TargetPath = "$env:SystemRoot\System32\wscript.exe"
|
|
32
|
+
$lnk.Arguments = "`"$root\Agenter.vbs`" server"
|
|
33
|
+
$lnk.WorkingDirectory = $root
|
|
34
|
+
$lnk.Save()
|
|
35
|
+
"Created $startupLink (server starts at login)"
|
|
36
|
+
}
|