@agimon-ai/doompi-runner 0.0.1-alpha.67 → 0.0.1-alpha.69
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/package.json +18 -16
- package/src/web/components/BashToolMessage.tsx +2 -2
- package/src/web/components/LaunchRunnerDialog.tsx +8 -11
- package/src/web/components/RunnerLogPanel.tsx +23 -23
- package/src/web/components/RunnerShellPanel.tsx +5 -5
- package/src/web/components/RunnersActivitySection.tsx +6 -6
- package/src/web/components/RunnersPanel.tsx +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/doompi-runner",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.69",
|
|
4
4
|
"description": "Supervised shell execution, background process control, and run logs for Pi coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"src/types/webRunnerLog.ts",
|
|
40
40
|
"README.md",
|
|
41
41
|
"LICENSE",
|
|
42
|
-
"package.json"
|
|
42
|
+
"package.json",
|
|
43
|
+
"!src/web/**/*.stories.tsx"
|
|
43
44
|
],
|
|
44
45
|
"type": "module",
|
|
45
46
|
"main": "./dist/index.cjs",
|
|
@@ -324,12 +325,12 @@
|
|
|
324
325
|
"@xterm/headless": "6.0.0",
|
|
325
326
|
"hono": "4.13.5",
|
|
326
327
|
"typebox": "1.3.25",
|
|
327
|
-
"@agimon-ai/doompi-
|
|
328
|
-
"@agimon-ai/doompi-
|
|
329
|
-
"@agimon-ai/doompi-
|
|
330
|
-
"@agimon-ai/doompi-web-components": "0.0.1-alpha.
|
|
331
|
-
"@agimon-ai/doompi-web-contracts": "0.0.1-alpha.
|
|
332
|
-
"@agimon-ai/doompi-web-security": "0.0.1-alpha.
|
|
328
|
+
"@agimon-ai/doompi-ui": "0.0.1-alpha.69",
|
|
329
|
+
"@agimon-ai/doompi-extension-contracts": "0.0.1-alpha.68",
|
|
330
|
+
"@agimon-ai/doompi-telemetry": "0.0.1-alpha.67",
|
|
331
|
+
"@agimon-ai/doompi-web-components": "0.0.1-alpha.28",
|
|
332
|
+
"@agimon-ai/doompi-web-contracts": "0.0.1-alpha.31",
|
|
333
|
+
"@agimon-ai/doompi-web-security": "0.0.1-alpha.30"
|
|
333
334
|
},
|
|
334
335
|
"devDependencies": {
|
|
335
336
|
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
@@ -340,6 +341,7 @@
|
|
|
340
341
|
"@types/react": "19.2.18",
|
|
341
342
|
"@vitest/coverage-v8": "5.0.0",
|
|
342
343
|
"react": "19.2.8",
|
|
344
|
+
"react-dom": "19.2.8",
|
|
343
345
|
"tsdown": "0.23.0",
|
|
344
346
|
"typescript": "7.0.2",
|
|
345
347
|
"vitest": "5.0.0"
|
|
@@ -357,14 +359,14 @@
|
|
|
357
359
|
}
|
|
358
360
|
},
|
|
359
361
|
"optionalDependencies": {
|
|
360
|
-
"@agimon-ai/doompi-runner-rmux-darwin-
|
|
361
|
-
"@agimon-ai/doompi-runner-rmux-linux-arm64": "0.0.1-alpha.
|
|
362
|
-
"@agimon-ai/doompi-runner-rmux-
|
|
363
|
-
"@agimon-ai/doompi-runner-rtk-darwin-arm64": "0.0.1-alpha.
|
|
364
|
-
"@agimon-ai/doompi-runner-
|
|
365
|
-
"@agimon-ai/doompi-runner-rtk-linux-
|
|
366
|
-
"@agimon-ai/doompi-runner-rtk-linux-
|
|
367
|
-
"@agimon-ai/doompi-runner-
|
|
362
|
+
"@agimon-ai/doompi-runner-rmux-darwin-x64": "0.0.1-alpha.65",
|
|
363
|
+
"@agimon-ai/doompi-runner-rmux-linux-arm64": "0.0.1-alpha.65",
|
|
364
|
+
"@agimon-ai/doompi-runner-rmux-darwin-arm64": "0.0.1-alpha.65",
|
|
365
|
+
"@agimon-ai/doompi-runner-rtk-darwin-arm64": "0.0.1-alpha.65",
|
|
366
|
+
"@agimon-ai/doompi-runner-rmux-linux-x64": "0.0.1-alpha.65",
|
|
367
|
+
"@agimon-ai/doompi-runner-rtk-linux-x64": "0.0.1-alpha.65",
|
|
368
|
+
"@agimon-ai/doompi-runner-rtk-linux-arm64": "0.0.1-alpha.65",
|
|
369
|
+
"@agimon-ai/doompi-runner-rtk-darwin-x64": "0.0.1-alpha.65"
|
|
368
370
|
},
|
|
369
371
|
"engines": {
|
|
370
372
|
"node": ">=22.19.0"
|
|
@@ -101,7 +101,7 @@ export function BashToolMessage({
|
|
|
101
101
|
event.stopPropagation();
|
|
102
102
|
openTransientTab(runnerLogTab(run));
|
|
103
103
|
}}
|
|
104
|
-
className="shrink-0 gap-1 px-1.5 text-
|
|
104
|
+
className="shrink-0 gap-1 px-1.5 text-2xs font-bold"
|
|
105
105
|
>
|
|
106
106
|
<FileIcon className="h-2.5 w-2.5" />
|
|
107
107
|
log
|
|
@@ -122,7 +122,7 @@ export function BashToolMessage({
|
|
|
122
122
|
if (sessionId !== null && runnerId !== undefined)
|
|
123
123
|
requestRunnerStop(sendSessionFrame, sessionId, runnerId);
|
|
124
124
|
}}
|
|
125
|
-
className="shrink-0 px-1.5 text-
|
|
125
|
+
className="shrink-0 px-1.5 text-2xs font-bold"
|
|
126
126
|
>
|
|
127
127
|
{stopping ? 'stopping…' : 'stop'}
|
|
128
128
|
</Button>
|
|
@@ -19,7 +19,7 @@ const COMMAND_ROWS = 3;
|
|
|
19
19
|
const INTERACTIVE_FIELD_ID = 'runner-launch-interactive-field';
|
|
20
20
|
|
|
21
21
|
function FieldLabel({ children }: { children: string }) {
|
|
22
|
-
return <span className="text-
|
|
22
|
+
return <span className="text-2xs font-bold tracking-widest text-doom-faint">{children}</span>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -77,7 +77,7 @@ export function LaunchRunnerDialog({
|
|
|
77
77
|
value={command}
|
|
78
78
|
placeholder="pnpm test"
|
|
79
79
|
onChange={(event) => setCommand(event.target.value)}
|
|
80
|
-
className="text-
|
|
80
|
+
className="text-sm"
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
@@ -90,7 +90,7 @@ export function LaunchRunnerDialog({
|
|
|
90
90
|
value={cwd}
|
|
91
91
|
placeholder="the session's own directory"
|
|
92
92
|
onChange={(event) => setCwd(event.target.value)}
|
|
93
|
-
className="text-
|
|
93
|
+
className="text-xs"
|
|
94
94
|
/>
|
|
95
95
|
</div>
|
|
96
96
|
<div className="flex min-w-0 flex-1 flex-col gap-1">
|
|
@@ -101,7 +101,7 @@ export function LaunchRunnerDialog({
|
|
|
101
101
|
value={name}
|
|
102
102
|
placeholder="chosen for you when empty"
|
|
103
103
|
onChange={(event) => setName(event.target.value)}
|
|
104
|
-
className="text-
|
|
104
|
+
className="text-xs"
|
|
105
105
|
/>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
@@ -115,29 +115,26 @@ export function LaunchRunnerDialog({
|
|
|
115
115
|
checked={interactive}
|
|
116
116
|
onCheckedChange={(checked) => setInteractive(checked === true)}
|
|
117
117
|
/>
|
|
118
|
-
<label htmlFor={INTERACTIVE_FIELD_ID} className="text-
|
|
118
|
+
<label htmlFor={INTERACTIVE_FIELD_ID} className="text-xs text-doom-dim">
|
|
119
119
|
needs a terminal, for a command that prompts (requires rmux or tmux)
|
|
120
120
|
</label>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div className="flex flex-col gap-1 rounded-md border border-doom-border bg-doom-deep px-3 py-2">
|
|
124
124
|
<FieldLabel>SENT TO THE SESSION</FieldLabel>
|
|
125
|
-
<pre
|
|
126
|
-
data-testid="runner-launch-line"
|
|
127
|
-
className="whitespace-pre-wrap break-words text-[10px] text-doom-green"
|
|
128
|
-
>
|
|
125
|
+
<pre data-testid="runner-launch-line" className="whitespace-pre-wrap break-words text-xs text-doom-green">
|
|
129
126
|
{line}
|
|
130
127
|
</pre>
|
|
131
128
|
</div>
|
|
132
129
|
|
|
133
130
|
{problems.length > 0 ? (
|
|
134
|
-
<p data-testid="runner-launch-problem" className="text-
|
|
131
|
+
<p data-testid="runner-launch-problem" className="text-xs text-doom-red">
|
|
135
132
|
{problems.join(' ')}
|
|
136
133
|
</p>
|
|
137
134
|
) : null}
|
|
138
135
|
|
|
139
136
|
<DialogFooter className="flex-wrap sm:flex-nowrap">
|
|
140
|
-
<span className="w-full text-
|
|
137
|
+
<span className="w-full text-2xs text-doom-faint sm:w-auto">
|
|
141
138
|
it appears above once the runtime starts it
|
|
142
139
|
</span>
|
|
143
140
|
<span className="min-w-0 flex-1" />
|
|
@@ -56,8 +56,8 @@ function isMatch(line: string, needle: string, ignoreCase: boolean): boolean {
|
|
|
56
56
|
function MetaRow({ label, value }: { label: string; value: string }) {
|
|
57
57
|
return (
|
|
58
58
|
<span className="flex min-w-0 gap-2.5">
|
|
59
|
-
<span className="w-14 shrink-0 text-
|
|
60
|
-
<span className="min-w-0 flex-1 break-all text-
|
|
59
|
+
<span className="w-14 shrink-0 text-xs text-doom-faint">{label}</span>
|
|
60
|
+
<span className="min-w-0 flex-1 break-all text-xs text-doom-dim">{value}</span>
|
|
61
61
|
</span>
|
|
62
62
|
);
|
|
63
63
|
}
|
|
@@ -74,17 +74,17 @@ function LogRow({ number, line, matched }: { number: number | undefined; line: s
|
|
|
74
74
|
return (
|
|
75
75
|
<div data-testid="runner-log-row" data-matched={matched} className="flex min-w-0 gap-2">
|
|
76
76
|
{number === undefined ? null : (
|
|
77
|
-
<span className="w-12 shrink-0 select-none text-right text-
|
|
77
|
+
<span className="w-12 shrink-0 select-none text-right text-xs leading-relaxed text-doom-faint">{number}</span>
|
|
78
78
|
)}
|
|
79
79
|
<span
|
|
80
80
|
aria-hidden
|
|
81
|
-
className={`w-4 shrink-0 select-none text-
|
|
81
|
+
className={`w-4 shrink-0 select-none text-xs leading-relaxed ${matched ? 'text-doom-yellow' : 'text-doom-faint'}`}
|
|
82
82
|
>
|
|
83
83
|
{matched ? '>>' : ''}
|
|
84
84
|
</span>
|
|
85
85
|
<AnsiLine
|
|
86
86
|
line={line}
|
|
87
|
-
className={`min-w-0 flex-1 whitespace-pre-wrap break-words font-mono text-
|
|
87
|
+
className={`min-w-0 flex-1 whitespace-pre-wrap break-words font-mono text-xs leading-relaxed ${
|
|
88
88
|
matched ? 'text-doom-text' : 'text-doom-dim'
|
|
89
89
|
}`}
|
|
90
90
|
/>
|
|
@@ -207,7 +207,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
207
207
|
return (
|
|
208
208
|
<div data-testid="runner-log-panel" className="flex min-h-0 flex-1 flex-col">
|
|
209
209
|
<div className="flex min-h-11 shrink-0 flex-wrap items-center gap-2 border-b border-doom-border-soft px-3 py-2 sm:h-11 sm:flex-nowrap sm:gap-2.5 sm:px-[26px] sm:py-0">
|
|
210
|
-
<span data-testid="runner-log-name" className="shrink-0 truncate text-
|
|
210
|
+
<span data-testid="runner-log-name" className="shrink-0 truncate text-sm font-bold text-doom-hi">
|
|
211
211
|
{run?.name ?? runId}
|
|
212
212
|
</span>
|
|
213
213
|
<StatusBadge tone={badge.tone} data-testid="runner-log-state">
|
|
@@ -215,13 +215,13 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
215
215
|
</StatusBadge>
|
|
216
216
|
{run ? (
|
|
217
217
|
<>
|
|
218
|
-
<span className="shrink-0 text-
|
|
219
|
-
<span className="shrink-0 text-
|
|
218
|
+
<span className="shrink-0 text-xs text-doom-faint">{elapsed}</span>
|
|
219
|
+
<span className="shrink-0 text-xs text-doom-faint">
|
|
220
220
|
{`pid ${String(run.pid)} · ${run.backend}${run.interactive ? ' · tty' : ''}`}
|
|
221
221
|
</span>
|
|
222
222
|
</>
|
|
223
223
|
) : (
|
|
224
|
-
<span data-testid="runner-log-gone" className="text-
|
|
224
|
+
<span data-testid="runner-log-gone" className="text-xs text-doom-faint">
|
|
225
225
|
no longer listed; its log stays readable
|
|
226
226
|
</span>
|
|
227
227
|
)}
|
|
@@ -234,7 +234,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
234
234
|
disabled={stopping}
|
|
235
235
|
title={stopping ? 'stop requested; the runner reports its own exit' : 'ask the runtime to stop this runner'}
|
|
236
236
|
onClick={() => requestRunnerStop(sendSessionFrame, sessionId, run.id)}
|
|
237
|
-
className="px-2 text-
|
|
237
|
+
className="px-2 text-2xs font-bold"
|
|
238
238
|
>
|
|
239
239
|
{stopping ? 'stopping…' : 'stop'}
|
|
240
240
|
</Button>
|
|
@@ -257,7 +257,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
257
257
|
value={typed}
|
|
258
258
|
placeholder="search this log"
|
|
259
259
|
onChange={(event) => setTyped(event.target.value)}
|
|
260
|
-
className="pl-7 text-
|
|
260
|
+
className="pl-7 text-xs"
|
|
261
261
|
/>
|
|
262
262
|
</span>
|
|
263
263
|
<Button
|
|
@@ -267,7 +267,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
267
267
|
aria-pressed={ignoreCase}
|
|
268
268
|
title="match regardless of case"
|
|
269
269
|
onClick={() => setIgnoreCase((current) => !current)}
|
|
270
|
-
className="px-2 text-
|
|
270
|
+
className="px-2 text-2xs font-bold"
|
|
271
271
|
>
|
|
272
272
|
aA
|
|
273
273
|
</Button>
|
|
@@ -278,14 +278,14 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
278
278
|
disabled={!filtering}
|
|
279
279
|
title="lines of context kept either side of a match"
|
|
280
280
|
onClick={() => setContext((current) => (current === 0 ? CONTEXT_LINES : 0))}
|
|
281
|
-
className="px-2 text-
|
|
281
|
+
className="px-2 text-2xs font-bold"
|
|
282
282
|
>
|
|
283
283
|
{`± ${String(context)} lines`}
|
|
284
284
|
</Button>
|
|
285
285
|
<span className="min-w-0 flex-1" />
|
|
286
286
|
<span
|
|
287
287
|
data-testid="runner-log-stats"
|
|
288
|
-
className="min-w-0 basis-full truncate text-
|
|
288
|
+
className="min-w-0 basis-full truncate text-xs text-doom-faint sm:basis-auto"
|
|
289
289
|
>
|
|
290
290
|
{slice === undefined
|
|
291
291
|
? 'reading…'
|
|
@@ -302,7 +302,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
302
302
|
disabled={filtering || slice?.running !== true}
|
|
303
303
|
title={filtering ? 'a filtered view is a snapshot; clear the query to follow' : 'follow the log as it grows'}
|
|
304
304
|
onClick={() => setFollowing((current) => !current)}
|
|
305
|
-
className="px-2 text-
|
|
305
|
+
className="px-2 text-2xs font-bold"
|
|
306
306
|
>
|
|
307
307
|
{filtering ? 'follow · paused' : 'follow'}
|
|
308
308
|
</Button>
|
|
@@ -316,17 +316,17 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
316
316
|
className="h-full overflow-auto bg-doom-panel-deep px-3 py-3 sm:px-[26px]"
|
|
317
317
|
>
|
|
318
318
|
{error !== undefined ? (
|
|
319
|
-
<p data-testid="runner-log-error" className="text-
|
|
319
|
+
<p data-testid="runner-log-error" className="text-xs text-doom-red">
|
|
320
320
|
{error}
|
|
321
321
|
</p>
|
|
322
322
|
) : slice === undefined ? (
|
|
323
|
-
<p data-testid="runner-log-reading" className="text-
|
|
323
|
+
<p data-testid="runner-log-reading" className="text-xs text-doom-faint">
|
|
324
324
|
reading…
|
|
325
325
|
</p>
|
|
326
326
|
) : slice.exists === false ? (
|
|
327
|
-
<p className="text-
|
|
327
|
+
<p className="text-xs text-doom-faint">this runner has not written a log yet</p>
|
|
328
328
|
) : view.lines.length === 0 ? (
|
|
329
|
-
<p className="text-
|
|
329
|
+
<p className="text-xs text-doom-faint">{filtering ? 'nothing matched' : 'the log is empty'}</p>
|
|
330
330
|
) : (
|
|
331
331
|
view.lines.map((line, index) => {
|
|
332
332
|
const number = numbers[index];
|
|
@@ -338,7 +338,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
338
338
|
<div
|
|
339
339
|
data-testid="runner-log-gap"
|
|
340
340
|
aria-hidden
|
|
341
|
-
className="select-none py-0.5 pl-12 text-
|
|
341
|
+
className="select-none py-0.5 pl-12 text-xs leading-relaxed text-doom-faint"
|
|
342
342
|
>
|
|
343
343
|
⋯
|
|
344
344
|
</div>
|
|
@@ -360,7 +360,7 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
360
360
|
setPinned(true);
|
|
361
361
|
bottom.current?.scrollIntoView({ block: 'end' });
|
|
362
362
|
}}
|
|
363
|
-
className="absolute bottom-3 right-3 px-2 text-
|
|
363
|
+
className="absolute bottom-3 right-3 px-2 text-2xs font-bold"
|
|
364
364
|
>
|
|
365
365
|
jump to latest
|
|
366
366
|
</Button>
|
|
@@ -368,11 +368,11 @@ export function RunnerLogPanel({ sessionId, runId, sendSessionFrame }: WebPlugin
|
|
|
368
368
|
</div>
|
|
369
369
|
|
|
370
370
|
<div className="flex h-8 shrink-0 items-center gap-2.5 border-t border-doom-border-soft px-3 sm:px-[26px]">
|
|
371
|
-
<span data-testid="runner-log-path" className="min-w-0 flex-1 truncate text-
|
|
371
|
+
<span data-testid="runner-log-path" className="min-w-0 flex-1 truncate text-2xs text-doom-faint">
|
|
372
372
|
{run?.logPath ?? slice?.path ?? ''}
|
|
373
373
|
</span>
|
|
374
374
|
{slice !== undefined ? (
|
|
375
|
-
<span className="shrink-0 text-
|
|
375
|
+
<span className="shrink-0 text-2xs text-doom-faint">{formatSize(slice.fileSize)}</span>
|
|
376
376
|
) : null}
|
|
377
377
|
</div>
|
|
378
378
|
</div>
|
|
@@ -80,7 +80,7 @@ export function RunnerShellPanel({ sessionId, runId }: WebPluginSlotProps & { ru
|
|
|
80
80
|
return (
|
|
81
81
|
<div data-testid="runner-shell-panel" className="flex min-h-0 flex-1 flex-col">
|
|
82
82
|
<div className="flex min-h-11 shrink-0 items-center gap-2.5 border-b border-doom-border-soft px-3 sm:h-11 sm:px-[26px]">
|
|
83
|
-
<span data-testid="runner-shell-name" className="shrink-0 truncate text-
|
|
83
|
+
<span data-testid="runner-shell-name" className="shrink-0 truncate text-sm font-bold text-doom-hi">
|
|
84
84
|
{run?.name ?? runId}
|
|
85
85
|
</span>
|
|
86
86
|
<StatusBadge tone={live ? 'running' : 'neutral'} data-testid="runner-shell-state">
|
|
@@ -88,7 +88,7 @@ export function RunnerShellPanel({ sessionId, runId }: WebPluginSlotProps & { ru
|
|
|
88
88
|
</StatusBadge>
|
|
89
89
|
<span className="min-w-0 flex-1" />
|
|
90
90
|
{lost ? (
|
|
91
|
-
<span data-testid="runner-shell-lost" className="shrink-0 text-
|
|
91
|
+
<span data-testid="runner-shell-lost" className="shrink-0 text-2xs text-doom-red">
|
|
92
92
|
the connection to this pane dropped
|
|
93
93
|
</span>
|
|
94
94
|
) : null}
|
|
@@ -99,7 +99,7 @@ export function RunnerShellPanel({ sessionId, runId }: WebPluginSlotProps & { ru
|
|
|
99
99
|
data-testid="runner-shell-interrupt"
|
|
100
100
|
title="send ctrl-c"
|
|
101
101
|
onClick={() => send('\u0003')}
|
|
102
|
-
className="px-2 text-
|
|
102
|
+
className="px-2 text-2xs font-bold"
|
|
103
103
|
>
|
|
104
104
|
ctrl-c
|
|
105
105
|
</Button>
|
|
@@ -114,14 +114,14 @@ export function RunnerShellPanel({ sessionId, runId }: WebPluginSlotProps & { ru
|
|
|
114
114
|
onReady={() => setReady(true)}
|
|
115
115
|
/>
|
|
116
116
|
{ready ? null : (
|
|
117
|
-
<p data-testid="runner-shell-reading" className="text-
|
|
117
|
+
<p data-testid="runner-shell-reading" className="text-xs text-doom-faint">
|
|
118
118
|
attaching…
|
|
119
119
|
</p>
|
|
120
120
|
)}
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div className="flex h-8 shrink-0 items-center border-t border-doom-border-soft px-3 sm:px-[26px]">
|
|
124
|
-
<span className="min-w-0 flex-1 truncate text-
|
|
124
|
+
<span className="min-w-0 flex-1 truncate text-2xs text-doom-faint">
|
|
125
125
|
{live ? 'typing goes straight to the runner' : 'this runner is no longer accepting input'}
|
|
126
126
|
</span>
|
|
127
127
|
</div>
|
|
@@ -34,7 +34,7 @@ export function RunnersActivitySection({ sessionId, sendSessionFrame, openTransi
|
|
|
34
34
|
if (running.length === 0) {
|
|
35
35
|
return (
|
|
36
36
|
<div className="flex items-center gap-2 px-1">
|
|
37
|
-
<p data-testid="activity-summary-runners" className="px-1 text-
|
|
37
|
+
<p data-testid="activity-summary-runners" className="px-1 text-xs text-doom-faint">
|
|
38
38
|
idle
|
|
39
39
|
</p>
|
|
40
40
|
{sessionId === null ? null : (
|
|
@@ -98,12 +98,12 @@ function RunnerRow({
|
|
|
98
98
|
if (sessionId === null) return;
|
|
99
99
|
openTransientTab(runnerLogTab(run));
|
|
100
100
|
}}
|
|
101
|
-
className="min-w-0 gap-0.5 rounded-
|
|
101
|
+
className="min-w-0 gap-0.5 rounded-md px-1 py-1 hover:bg-doom-panel"
|
|
102
102
|
>
|
|
103
103
|
<span className="flex min-w-0 items-center gap-1.5">
|
|
104
104
|
<Dot tone="yellow" pulse />
|
|
105
|
-
<span className="min-w-0 flex-1 truncate text-left text-
|
|
106
|
-
<span className="shrink-0 text-
|
|
105
|
+
<span className="min-w-0 flex-1 truncate text-left text-xs font-bold text-doom-hi">{run.name}</span>
|
|
106
|
+
<span className="shrink-0 text-2xs text-doom-faint">
|
|
107
107
|
{formatRunnerUptime(run.startedAt, now)}
|
|
108
108
|
{run.interactive ? ' · tty' : ''}
|
|
109
109
|
</span>
|
|
@@ -117,7 +117,7 @@ function RunnerRow({
|
|
|
117
117
|
title={
|
|
118
118
|
stopRequested ? 'stop requested; the runner reports its own exit' : 'ask the runtime to stop this runner'
|
|
119
119
|
}
|
|
120
|
-
className="px-1.5 text-
|
|
120
|
+
className="px-1.5 text-2xs font-bold"
|
|
121
121
|
>
|
|
122
122
|
{/* The row is already a button, so the stop control lends it
|
|
123
123
|
the primitive's styling rather than nesting a second one. */}
|
|
@@ -146,7 +146,7 @@ function RunnerRow({
|
|
|
146
146
|
<span
|
|
147
147
|
data-testid={`activity-runner-detail-${run.id}`}
|
|
148
148
|
data-detail={tail === undefined ? 'command' : 'tail'}
|
|
149
|
-
className="truncate pl-3 text-left text-
|
|
149
|
+
className="truncate pl-3 text-left text-2xs text-doom-faint"
|
|
150
150
|
>
|
|
151
151
|
{tail ?? run.command}
|
|
152
152
|
</span>
|
|
@@ -80,8 +80,8 @@ export function RunnersPanel({ sessionId, sendSessionFrame, openTransientTab }:
|
|
|
80
80
|
return (
|
|
81
81
|
<div data-testid="runners-panel" className="flex min-h-0 flex-1 flex-col overflow-auto">
|
|
82
82
|
<div className="flex min-h-11 shrink-0 items-center gap-2.5 border-b border-doom-border-soft px-3 sm:h-11 sm:px-[26px]">
|
|
83
|
-
<span className="text-
|
|
84
|
-
<span data-testid="runners-panel-count" className="text-
|
|
83
|
+
<span className="text-sm font-bold text-doom-hi">runners</span>
|
|
84
|
+
<span data-testid="runners-panel-count" className="text-xs text-doom-faint">
|
|
85
85
|
{running.length === 0 ? 'nothing running' : `${String(running.length)} running`}
|
|
86
86
|
</span>
|
|
87
87
|
<span className="min-w-0 flex-1" />
|
|
@@ -124,7 +124,7 @@ export function RunnersPanel({ sessionId, sendSessionFrame, openTransientTab }:
|
|
|
124
124
|
size="xs"
|
|
125
125
|
data-testid="runners-panel-launch-empty"
|
|
126
126
|
onClick={() => setLaunching(true)}
|
|
127
|
-
className="px-2 text-
|
|
127
|
+
className="px-2 text-2xs font-bold"
|
|
128
128
|
>
|
|
129
129
|
launch a runner
|
|
130
130
|
</Button>
|
|
@@ -181,26 +181,26 @@ function RunnerCard({
|
|
|
181
181
|
return (
|
|
182
182
|
<div
|
|
183
183
|
data-testid={`runners-card-${run.id}`}
|
|
184
|
-
className="flex min-w-0 flex-col gap-1.5 rounded-
|
|
184
|
+
className="flex min-w-0 flex-col gap-1.5 rounded-md border border-doom-border-soft bg-doom-panel p-2.5"
|
|
185
185
|
>
|
|
186
186
|
<div className="flex min-w-0 items-center gap-1.5">
|
|
187
187
|
<Dot tone="yellow" pulse />
|
|
188
|
-
<span className="min-w-0 flex-1 truncate text-
|
|
189
|
-
<span className="shrink-0 text-
|
|
188
|
+
<span className="min-w-0 flex-1 truncate text-sm font-bold text-doom-hi">{run.name}</span>
|
|
189
|
+
<span className="shrink-0 text-2xs text-doom-faint">
|
|
190
190
|
{formatRunnerUptime(run.startedAt, now)}
|
|
191
191
|
{run.interactive ? ' · tty' : ''}
|
|
192
192
|
</span>
|
|
193
193
|
</div>
|
|
194
194
|
|
|
195
|
-
<span className="min-w-0 break-all text-
|
|
196
|
-
<span className="min-w-0 truncate text-
|
|
195
|
+
<span className="min-w-0 break-all text-2xs leading-normal text-doom-dim">{run.command}</span>
|
|
196
|
+
<span className="min-w-0 truncate text-2xs text-doom-faint">{run.cwd}</span>
|
|
197
197
|
|
|
198
198
|
{/* What it is doing, falling back to what it was asked to do until the
|
|
199
199
|
first line of output arrives. */}
|
|
200
200
|
<span
|
|
201
201
|
data-testid={`runners-card-detail-${run.id}`}
|
|
202
202
|
data-detail={tail === undefined ? 'command' : 'tail'}
|
|
203
|
-
className="min-w-0 truncate text-
|
|
203
|
+
className="min-w-0 truncate text-2xs text-doom-faint"
|
|
204
204
|
>
|
|
205
205
|
{tail ?? '…'}
|
|
206
206
|
</span>
|
|
@@ -212,7 +212,7 @@ function RunnerCard({
|
|
|
212
212
|
data-testid={`runners-card-log-${run.id}`}
|
|
213
213
|
title="open this runner's log"
|
|
214
214
|
onClick={() => openTransientTab(runnerLogTab(run))}
|
|
215
|
-
className="px-2 text-
|
|
215
|
+
className="px-2 text-2xs font-bold"
|
|
216
216
|
>
|
|
217
217
|
log
|
|
218
218
|
</Button>
|
|
@@ -225,7 +225,7 @@ function RunnerCard({
|
|
|
225
225
|
data-testid={`runners-card-shell-${run.id}`}
|
|
226
226
|
title="attach to this runner's terminal"
|
|
227
227
|
onClick={() => openTransientTab(runnerShellTab(run))}
|
|
228
|
-
className="px-2 text-
|
|
228
|
+
className="px-2 text-2xs font-bold"
|
|
229
229
|
>
|
|
230
230
|
shell
|
|
231
231
|
</Button>
|
|
@@ -241,7 +241,7 @@ function RunnerCard({
|
|
|
241
241
|
stopRequested ? 'stop requested; the runner reports its own exit' : 'ask the runtime to stop this runner'
|
|
242
242
|
}
|
|
243
243
|
onClick={() => requestRunnerStop(sendSessionFrame, sessionId, run.id)}
|
|
244
|
-
className="px-2 text-
|
|
244
|
+
className="px-2 text-2xs font-bold"
|
|
245
245
|
>
|
|
246
246
|
{stopRequested ? 'stopping…' : 'stop'}
|
|
247
247
|
</Button>
|