agentpen-cli 0.1.2 → 0.1.4

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/web/styles.css DELETED
@@ -1,263 +0,0 @@
1
- :root {
2
- --bg: #14110f;
3
- --panel: #1c1815;
4
- --panel-2: #24201c;
5
- --line: #322c26;
6
- --text: #f1ebe4;
7
- --muted: #a39a8f;
8
- --faint: #6f675e;
9
- --accent: #f0a35e;
10
- --accent-ink: #1a1613;
11
- --green: #7fca8d;
12
- --amber: #f5c451;
13
- --red: #ef7b6c;
14
- --blue: #7fb4e8;
15
- --term-bg: #0e0c0a;
16
- --radius: 10px;
17
- --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
18
- --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
19
- color-scheme: dark;
20
- }
21
- @media (prefers-color-scheme: light) {
22
- :root {
23
- --bg: #faf7f3; --panel: #ffffff; --panel-2: #f3eee8; --line: #e4dcd2; --text: #231d18; --muted: #6d645a; --faint: #9a9086;
24
- --accent: #c9682a; --accent-ink: #ffffff; --green: #2f8f4a; --amber: #a9760a; --red: #c8432f; --blue: #2c6fb3;
25
- color-scheme: light;
26
- }
27
- }
28
- * { box-sizing: border-box; }
29
- html, body { height: 100%; }
30
- body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
31
- #app { min-height: 100%; display: flex; flex-direction: column; }
32
- a { color: var(--accent); text-decoration: none; }
33
- a:hover { text-decoration: underline; }
34
- h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
35
- p { margin: 0; }
36
- code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
37
- button, input, select, textarea { font: inherit; color: inherit; }
38
- :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
39
-
40
- .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 550; white-space: nowrap; }
41
- .btn:hover { border-color: var(--faint); text-decoration: none; }
42
- .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
43
- .btn.primary:hover { filter: brightness(1.07); }
44
- .btn.danger { color: var(--red); }
45
- .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
46
- .btn.ghost:hover { color: var(--text); background: var(--panel-2); }
47
- .btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
48
- .btn:disabled { opacity: 0.55; cursor: default; }
49
- .input, select.input, textarea.input { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
50
- textarea.input { height: auto; padding: 9px 12px; resize: vertical; }
51
- .input::placeholder { color: var(--faint); }
52
- label.field { display: block; font-size: 13px; color: var(--muted); font-weight: 550; }
53
- label.field > .input, label.field > select { margin-top: 6px; color: var(--text); font-weight: 400; }
54
- .row { display: flex; align-items: center; gap: 10px; }
55
- .row.wrap { flex-wrap: wrap; }
56
- .spacer { flex: 1; }
57
- .muted { color: var(--muted); }
58
- .small { font-size: 13px; }
59
- .error { color: var(--red); font-size: 13px; min-height: 1.2em; }
60
- .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
61
- .stack { display: flex; flex-direction: column; gap: 14px; }
62
- .toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 550; z-index: 50; }
63
-
64
- /* brand */
65
- .brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.02em; }
66
- .brand:hover { text-decoration: none; }
67
- .brand i { display: inline-flex; gap: 3px; }
68
- .brand i::before, .brand i::after { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); }
69
- .brand i::before { background: var(--accent); }
70
-
71
- /* landing */
72
- .landing { max-width: 980px; width: 100%; margin: 0 auto; padding: 0 24px 56px; }
73
- .landing nav { display: flex; align-items: center; height: 68px; }
74
- .hero { padding: 56px 0 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
75
- .hero h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.035em; line-height: 1.04; max-width: 15em; }
76
- .hero h1 em { font-style: normal; color: var(--accent); }
77
- .hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; }
78
- .hero .lede code, .steps code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; color: var(--text); }
79
- .start { width: 100%; max-width: 440px; margin-top: 6px; }
80
- .start form { display: flex; gap: 8px; }
81
- .start .input, .start .btn { height: 46px; }
82
- .start .btn { padding: 0 20px; }
83
- .start .card { text-align: left; }
84
- .landing .shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgb(240 163 94 / 0.45); background: #14110f; }
85
- .landing .shot img { display: block; width: 100%; height: auto; }
86
- .steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
87
- .steps li { display: flex; gap: 14px; min-width: 0; }
88
- .steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
89
- .steps h3 { font-size: 17px; margin-bottom: 4px; }
90
- .steps p { color: var(--muted); font-size: 14.5px; }
91
- .foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
92
-
93
- /* centered flows */
94
- .center { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
95
- .center .card { width: 100%; max-width: 420px; padding: 28px; }
96
- .center h1 { font-size: 22px; margin: 18px 0 6px; }
97
- .bigcode { font: 700 26px var(--mono); letter-spacing: 0.08em; padding: 14px; text-align: center; background: var(--panel-2); border-radius: 8px; }
98
-
99
- /* app shell */
100
- .topbar { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
101
- .topbar .ws { margin-left: 14px; height: 32px; width: auto; max-width: 190px; padding: 0 8px; font-weight: 600; background: transparent; }
102
- .topbar a.tab { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-weight: 550; font-size: 14px; }
103
- .topbar a.tab:hover { color: var(--text); text-decoration: none; }
104
- .topbar a.tab.on { color: var(--text); background: var(--panel-2); }
105
- .page { max-width: 1040px; width: 100%; margin: 0 auto; padding: 28px 24px 70px; }
106
- .page > h1 { font-size: 22px; margin-bottom: 4px; }
107
- .page > .sub { color: var(--muted); margin-bottom: 22px; }
108
- .h2 { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 30px 0 12px; display: flex; align-items: center; gap: 8px; }
109
-
110
- .avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #16120f; flex: none; border: 2px solid var(--panel); }
111
- .avatars { display: inline-flex; }
112
- .avatars .avatar + .avatar { margin-left: -8px; }
113
- .avatar.more { background: var(--panel-2); color: var(--muted); }
114
-
115
- .pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
116
- .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
117
- .pill.working { color: var(--green); }
118
- .pill.working::before { animation: pulse 1.4s ease-in-out infinite; }
119
- .pill.blocked { color: var(--accent-ink); background: var(--amber); }
120
- .pill.reconnecting { color: var(--red); }
121
- @keyframes pulse { 50% { opacity: 0.25; } }
122
- @media (prefers-reduced-motion: reduce) { .pill.working::before { animation: none; } }
123
-
124
- .sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
125
- a.session { display: flex; flex-direction: column; gap: 10px; color: inherit; padding: 16px; min-height: 132px; }
126
- a.session:hover { text-decoration: none; border-color: var(--faint); }
127
- a.session.blocked { border-color: var(--amber); }
128
- a.session h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
129
- a.session .meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
130
- .empty { text-align: center; padding: 38px 20px; }
131
- .empty h3 { font-size: 18px; margin-bottom: 6px; }
132
- .cmd { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 16px; background: var(--term-bg); color: #efe8df; border-radius: 9px; font: 14px var(--mono); border: 1px solid var(--line); max-width: 100%; }
133
- .cmd span { overflow-x: auto; white-space: nowrap; }
134
- /* In the narrow sign-up card the command wraps instead of scrolling out of view. */
135
- .center .cmd { display: flex; margin-top: 10px; font-size: 13px; }
136
- .center .cmd span { flex: 1; white-space: normal; overflow-wrap: anywhere; }
137
- .cmd .btn { color: #efe8df; background: #2a2520; border-color: #3a332c; }
138
-
139
- table.list { width: 100%; border-collapse: collapse; }
140
- table.list td, table.list th { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
141
- table.list th { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; }
142
- table.list tr:last-child td { border-bottom: 0; }
143
- table.list td.num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
144
- .tablecard { padding: 4px 8px; overflow-x: auto; }
145
- .meter { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; width: 140px; }
146
- .meter i { display: block; height: 100%; background: var(--accent); }
147
- .setting { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
148
- .setting:last-child { border-bottom: 0; padding-bottom: 0; }
149
- .setting:first-child { padding-top: 0; }
150
- .setting h3 { font-size: 15px; }
151
- .setting p { color: var(--muted); font-size: 13.5px; max-width: 46em; margin-top: 2px; }
152
- .setting .ctl { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
153
-
154
- /* live session */
155
- .room { flex: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; max-height: 100dvh; min-height: 0; overflow: hidden; }
156
- .roombar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
157
- .roombar .title { min-width: 0; }
158
- .roombar h1 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
159
- .roombar .title .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
160
- .roombody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
161
- .stage { background: var(--term-bg); min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
162
- .termwrap { flex: 1; min-height: 0; padding: 12px; overflow: hidden; display: grid; place-items: start center; }
163
- .termwrap .xterm { padding: 0; }
164
- .banner { padding: 8px 14px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
165
- .banner.blocked { background: var(--amber); color: #1a1613; }
166
- .banner.info { background: var(--panel-2); color: var(--muted); }
167
- .banner.reconnecting { background: var(--red); color: #1a1613; }
168
- .side { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
169
- .side .tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
170
- .side .tabs button { flex: 1; }
171
- .side .tabs button.on { background: var(--panel-2); color: var(--text); }
172
- .feed { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
173
- .msg { font-size: 14px; overflow-wrap: anywhere; }
174
- .msg b { font-weight: 650; margin-right: 6px; }
175
- .msg time, .evt time { color: var(--faint); font-size: 11.5px; margin-left: 6px; font-variant-numeric: tabular-nums; }
176
- .evt { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
177
- .evt .q { display: block; margin-top: 3px; padding: 6px 9px; background: var(--panel-2); border-radius: 6px; color: var(--text); font: 12.5px/1.45 var(--mono); }
178
- .composer { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
179
- .composer .modes { display: flex; gap: 4px; }
180
- .composer .modes button.on { background: var(--panel-2); color: var(--text); }
181
- .composer textarea { min-height: 62px; max-height: 180px; }
182
- .people { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; max-height: 30%; overflow-y: auto; }
183
- .people .p { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
184
- .people .p .tag { color: var(--faint); font-size: 12px; margin-left: auto; }
185
- .player { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid #2a2520; color: #cfc7bd; font-size: 13px; }
186
- .player input[type=range] { flex: 1; accent-color: var(--accent); }
187
- .player .btn { background: #2a2520; border-color: #3a332c; color: #efe8df; }
188
-
189
- @media (max-width: 860px) {
190
- .hero { padding-top: 28px; }
191
- .steps { grid-template-columns: 1fr; gap: 20px; }
192
- .start form { flex-direction: column; }
193
- .roombody { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 42%; }
194
- .side { border-left: 0; border-top: 1px solid var(--line); }
195
- .people { display: none; }
196
- .topbar { overflow-x: auto; }
197
- .setting { flex-direction: column; gap: 10px; }
198
- .hide-sm { display: none !important; }
199
- }
200
-
201
- /* conversation view (Codex app sessions) */
202
- .stage.light { background: var(--bg); }
203
- .transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 30px; }
204
- .turns, .thinking { max-width: 780px; margin: 0 auto; }
205
- .turn { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
206
- .bubble { overflow-wrap: anywhere; line-height: 1.6; }
207
- .bubble p, .bubble ul, .bubble pre, .bubble h4 { margin: 0 0 10px; }
208
- .bubble > :last-child { margin-bottom: 0; }
209
- .bubble ul { padding-left: 20px; }
210
- .bubble h4 { font-size: 15px; }
211
- .bubble.user { align-self: flex-end; max-width: 85%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; white-space: pre-wrap; }
212
- .bubble.user .by { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 6px; white-space: normal; }
213
- .bubble.user .by .avatar { width: 20px; height: 20px; font-size: 9px; border: 0; }
214
- .bubble.plan { border-left: 3px solid var(--accent); padding-left: 12px; }
215
- .bubble .label { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
216
- .bubble code, .tool code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
217
- .bubble pre, .tool pre { background: var(--term-bg); color: #e6dfd6; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font: 13px/1.5 var(--mono); white-space: pre; }
218
- .tool { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; background: var(--panel); }
219
- .tool summary { list-style: none; display: flex; gap: 10px; align-items: center; min-width: 0; }
220
- details.tool summary { cursor: pointer; }
221
- .tool summary code { background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
222
- .tool summary .tag { margin-left: auto; flex: none; font-size: 12px; }
223
- .tool pre { margin: 8px 0 2px; max-height: 260px; overflow-y: auto; }
224
- .tool.failed { color: var(--red); border-color: var(--red); }
225
- .thinking { padding-bottom: 6px; }
226
- .bubble.user .queued { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: normal; }
227
-
228
- /* notifications */
229
- .notes { position: fixed; top: 66px; right: 16px; z-index: 40; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
230
- a.note { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; color: var(--text); box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5); font-size: 13.5px; }
231
- a.note:hover { text-decoration: none; border-color: var(--faint); border-left-color: var(--accent); }
232
- a.note.urgent { border-left-color: var(--amber); }
233
- a.note span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
234
- label.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
235
- label.check input { width: 16px; height: 16px; accent-color: var(--accent); }
236
-
237
- /* pick up a session whose host is gone */
238
- .pickup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--text); font-size: 14px; }
239
- .pickup > div:first-child { flex: 1; min-width: 260px; }
240
- .pickup .small { color: var(--muted); margin-top: 2px; }
241
- .pickup .cmd { margin-top: 0; font-size: 13px; }
242
-
243
- /* invited agents, catch-up notes, search */
244
- .msg.agent { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
245
- .msg.agent b { color: var(--accent); }
246
- .msg .tag { font-size: 11.5px; color: var(--faint); margin-right: 6px; }
247
- .msg.err span { color: var(--muted); font-style: italic; }
248
- .banner.driver { background: var(--panel-2); color: var(--text); border-bottom: 1px solid var(--accent); font-weight: 500; }
249
- .banner.driver span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
250
- .summary:empty { display: none; }
251
- .summary { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; max-height: 38%; overflow-y: auto; }
252
- .summary .label { font-size: 11.5px; font-weight: 650; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: space-between; }
253
- .summary .label time { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
254
- .summary ul { margin: 0; padding-left: 18px; color: var(--muted); }
255
- .composer .modes { flex-wrap: wrap; }
256
- .search { display: flex; gap: 8px; margin: 18px 0 0; }
257
- .search .input { height: 40px; }
258
- .hit { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
259
- .hit:last-child { border-bottom: 0; }
260
- .hit:hover { text-decoration: none; background: var(--panel-2); }
261
- .hit .meta { font-size: 12.5px; color: var(--muted); }
262
- .hit .snip { font: 12.5px/1.5 var(--mono); color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
263
- .hit mark { background: none; color: var(--accent); font-weight: 700; }
package/web/team-page.png DELETED
Binary file