@ngockhoale/ckit 0.3.0 → 0.4.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/README.md +14 -2
- package/dist/src/gui/server.d.ts +3 -1
- package/dist/src/gui/server.js +41 -15
- package/dist/src/team/bus.d.ts +60 -0
- package/dist/src/team/bus.js +172 -0
- package/dist/src/team/config.js +5 -4
- package/dist/src/team/engine.d.ts +33 -1
- package/dist/src/team/engine.js +1095 -170
- package/dist/src/team/mcp/hub.d.ts +16 -0
- package/dist/src/team/mcp/hub.js +99 -0
- package/dist/src/team/mcp/stdio-server.d.ts +2 -0
- package/dist/src/team/mcp/stdio-server.js +103 -0
- package/dist/src/team/runners.d.ts +4 -0
- package/dist/src/team/runners.js +8 -2
- package/dist/src/team/scheduler.d.ts +20 -0
- package/dist/src/team/scheduler.js +73 -0
- package/dist/src/team/sessions/claude.d.ts +16 -5
- package/dist/src/team/sessions/claude.js +127 -13
- package/dist/src/team/sessions/codex.d.ts +3 -2
- package/dist/src/team/sessions/codex.js +21 -3
- package/dist/src/team/sessions/fallback.js +6 -2
- package/dist/src/team/sessions/index.d.ts +1 -1
- package/dist/src/team/sessions/index.js +3 -3
- package/dist/src/team/sessions/omp.d.ts +12 -3
- package/dist/src/team/sessions/omp.js +95 -8
- package/dist/src/team/sessions/proc.d.ts +20 -2
- package/dist/src/team/sessions/proc.js +64 -18
- package/dist/src/team/sessions/types.d.ts +23 -2
- package/dist/src/team/telemetry.d.ts +32 -0
- package/dist/src/team/telemetry.js +135 -0
- package/dist/src/team/types.d.ts +173 -1
- package/dist/src/tui/team/model.js +10 -0
- package/gui/app.css +23 -0
- package/gui/app.js +208 -6
- package/gui/comic/comic.css +86 -0
- package/gui/comic/engine.js +44 -0
- package/gui/comic/render.js +73 -16
- package/gui/index.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// Pure run telemetry derived from the journal events of one run (single O(n) pass).
|
|
2
|
+
import { allAgentsOf } from './types.js';
|
|
3
|
+
export function runTelemetry(events, nowMs) {
|
|
4
|
+
let startedAt = null, startMs = 0, endedAt = null, lastMs = 0;
|
|
5
|
+
let firstEventMs = null, firstOutMs = null;
|
|
6
|
+
let directorId = '', turns = 0, directorTurns = 0, modelCalls = 0, rounds = 0, loops = 0, tokens = 0, maxPar = 0, waitingOwnerMs = 0;
|
|
7
|
+
let mode = null, paused = false, ownerSince = null;
|
|
8
|
+
const byClass = {}, perAgent = {};
|
|
9
|
+
const contribs = new Set(), decisions = new Set(), active = new Set();
|
|
10
|
+
const openAt = new Map(), queuedAt = new Map(), cli = new Map();
|
|
11
|
+
const agent = (id) => perAgent[id] ??= { turns: 0, tokens: 0, busyMs: 0, queueMs: 0, lastEventAt: null, lastWait: null };
|
|
12
|
+
const close = (id, ms) => { const o = openAt.get(id); if (o !== undefined) {
|
|
13
|
+
agent(id).busyMs += Math.max(0, ms - o);
|
|
14
|
+
openAt.delete(id);
|
|
15
|
+
} active.delete(id); };
|
|
16
|
+
for (const e of events) {
|
|
17
|
+
const ms = Date.parse(e.at), t = Number.isFinite(ms) ? ms : lastMs;
|
|
18
|
+
lastMs = Math.max(lastMs, t);
|
|
19
|
+
if (e.type === 'run.started') {
|
|
20
|
+
if (startedAt === null) {
|
|
21
|
+
startedAt = e.at;
|
|
22
|
+
startMs = t;
|
|
23
|
+
directorId = e.config.director.id;
|
|
24
|
+
for (const a of allAgentsOf(e.config))
|
|
25
|
+
cli.set(a.id, a.cli);
|
|
26
|
+
}
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (startedAt !== null && firstEventMs === null)
|
|
30
|
+
firstEventMs = Math.max(0, t - startMs);
|
|
31
|
+
if ('agentId' in e)
|
|
32
|
+
agent(e.agentId).lastEventAt = e.at;
|
|
33
|
+
switch (e.type) {
|
|
34
|
+
case 'agent.started': {
|
|
35
|
+
turns++;
|
|
36
|
+
agent(e.agentId).turns++;
|
|
37
|
+
const k = e.turnClass ?? 'unclassified';
|
|
38
|
+
byClass[k] = (byClass[k] ?? 0) + 1;
|
|
39
|
+
if (e.agentId === directorId)
|
|
40
|
+
directorTurns++;
|
|
41
|
+
const c = cli.get(e.agentId);
|
|
42
|
+
if (c !== 'auto' && c !== 'simulated')
|
|
43
|
+
modelCalls++;
|
|
44
|
+
close(e.agentId, t);
|
|
45
|
+
openAt.set(e.agentId, t);
|
|
46
|
+
active.add(e.agentId);
|
|
47
|
+
maxPar = Math.max(maxPar, active.size);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
case 'agent.message':
|
|
51
|
+
if (firstOutMs === null && startedAt !== null)
|
|
52
|
+
firstOutMs = Math.max(0, t - startMs);
|
|
53
|
+
if (e.round !== undefined)
|
|
54
|
+
rounds++;
|
|
55
|
+
if (e.tokens !== null) {
|
|
56
|
+
tokens += e.tokens;
|
|
57
|
+
agent(e.agentId).tokens += e.tokens;
|
|
58
|
+
}
|
|
59
|
+
close(e.agentId, t);
|
|
60
|
+
break;
|
|
61
|
+
case 'agent.activity':
|
|
62
|
+
case 'agent.step':
|
|
63
|
+
if (firstOutMs === null && startedAt !== null)
|
|
64
|
+
firstOutMs = Math.max(0, t - startMs);
|
|
65
|
+
break;
|
|
66
|
+
case 'agent.failed':
|
|
67
|
+
case 'agent.interrupted':
|
|
68
|
+
close(e.agentId, t);
|
|
69
|
+
break;
|
|
70
|
+
case 'agent.wait': {
|
|
71
|
+
const q = queuedAt.get(e.agentId);
|
|
72
|
+
if (q !== undefined && e.reason !== 'waiting-resource') {
|
|
73
|
+
agent(e.agentId).queueMs += Math.max(0, t - q);
|
|
74
|
+
queuedAt.delete(e.agentId);
|
|
75
|
+
}
|
|
76
|
+
if (e.reason === 'waiting-resource' && q === undefined)
|
|
77
|
+
queuedAt.set(e.agentId, t);
|
|
78
|
+
agent(e.agentId).lastWait = e.reason;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
case 'contribution.published':
|
|
82
|
+
contribs.add(e.contribution.contributionId);
|
|
83
|
+
break;
|
|
84
|
+
case 'decision.recorded':
|
|
85
|
+
decisions.add(e.decision.id);
|
|
86
|
+
break;
|
|
87
|
+
case 'loop.detected':
|
|
88
|
+
loops++;
|
|
89
|
+
break;
|
|
90
|
+
case 'mode.chosen':
|
|
91
|
+
mode = e.mode;
|
|
92
|
+
break;
|
|
93
|
+
case 'run.paused':
|
|
94
|
+
paused = true;
|
|
95
|
+
break;
|
|
96
|
+
case 'run.resumed':
|
|
97
|
+
paused = false;
|
|
98
|
+
break;
|
|
99
|
+
case 'run.waiting':
|
|
100
|
+
if (ownerSince === null)
|
|
101
|
+
ownerSince = t;
|
|
102
|
+
break;
|
|
103
|
+
case 'user.message':
|
|
104
|
+
case 'director.decision':
|
|
105
|
+
if (ownerSince !== null) {
|
|
106
|
+
waitingOwnerMs += Math.max(0, t - ownerSince);
|
|
107
|
+
ownerSince = null;
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case 'run.completed':
|
|
111
|
+
endedAt = e.at;
|
|
112
|
+
paused = false;
|
|
113
|
+
if (ownerSince !== null) {
|
|
114
|
+
waitingOwnerMs += Math.max(0, t - ownerSince);
|
|
115
|
+
ownerSince = null;
|
|
116
|
+
}
|
|
117
|
+
for (const id of [...openAt.keys()])
|
|
118
|
+
close(id, t);
|
|
119
|
+
break;
|
|
120
|
+
default: break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const endMs = endedAt !== null ? Date.parse(endedAt) : nowMs ?? lastMs;
|
|
124
|
+
if (ownerSince !== null)
|
|
125
|
+
waitingOwnerMs += Math.max(0, endMs - ownerSince);
|
|
126
|
+
for (const id of [...openAt.keys()])
|
|
127
|
+
close(id, endMs);
|
|
128
|
+
for (const [id, q] of queuedAt)
|
|
129
|
+
agent(id).queueMs += Math.max(0, endMs - q);
|
|
130
|
+
const queueMs = Object.values(perAgent).reduce((n, a) => n + a.queueMs, 0);
|
|
131
|
+
return { startedAt, endedAt, wallMs: startedAt === null ? 0 : Math.max(0, endMs - startMs), firstEventMs, firstAgentOutputMs: firstOutMs,
|
|
132
|
+
turns, turnsByClass: byClass, directorTurns, modelCalls, discussionRounds: rounds, contributions: contribs.size, decisions: decisions.size, loopsDetected: loops, tokens,
|
|
133
|
+
perAgent, maxParallelAgents: maxPar, waitingOwnerMs, queueMs, mode, paused };
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=telemetry.js.map
|
package/dist/src/team/types.d.ts
CHANGED
|
@@ -93,6 +93,74 @@ export type Stage = typeof STAGES[number] | 'extra-team';
|
|
|
93
93
|
export declare function effectiveOrder(c: TeamConfig): string[];
|
|
94
94
|
/** Every agent of the company: director, built-in teams, then extra teams. */
|
|
95
95
|
export declare const allAgentsOf: (c: TeamConfig) => AgentConfig[];
|
|
96
|
+
export type CollabMode = 'DIRECT' | 'DELEGATE' | 'PARALLEL_MERGE' | 'PARALLEL_EXECUTE' | 'TARGETED_DISCUSSION';
|
|
97
|
+
export type TurnClass = 'execution' | 'research' | 'implementation' | 'test' | 'director-synthesis' | 'coordination' | 'clarification' | 'review' | 'discussion' | 'retry';
|
|
98
|
+
export type WaitReason = 'starting' | 'waiting-first-output' | 'generating' | 'executing-tool' | 'waiting-dependency' | 'waiting-agent' | 'waiting-owner' | 'waiting-resource' | 'paused' | 'recovering' | 'idle';
|
|
99
|
+
export type Severity = 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
100
|
+
export interface ContributionFinding {
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly summary: string;
|
|
103
|
+
readonly severity: Severity;
|
|
104
|
+
readonly requirement?: string;
|
|
105
|
+
readonly location?: string;
|
|
106
|
+
readonly evidence?: string;
|
|
107
|
+
readonly confidence?: number;
|
|
108
|
+
readonly action?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface AgentContribution {
|
|
111
|
+
readonly contributionId: string;
|
|
112
|
+
readonly runId: string;
|
|
113
|
+
readonly agentId: string;
|
|
114
|
+
readonly taskId: string;
|
|
115
|
+
readonly goalRevision: number;
|
|
116
|
+
readonly status: 'partial' | 'complete' | 'superseded';
|
|
117
|
+
readonly findings: readonly ContributionFinding[];
|
|
118
|
+
readonly recommendations: readonly string[];
|
|
119
|
+
readonly risks: readonly string[];
|
|
120
|
+
readonly proposedDecisions: readonly string[];
|
|
121
|
+
readonly evidenceRefs: readonly string[];
|
|
122
|
+
readonly unresolvedQuestions: readonly string[];
|
|
123
|
+
readonly createdAt: string;
|
|
124
|
+
readonly updatedAt: string;
|
|
125
|
+
/** Namespace "<team>/<agentId>" (research 8.3); absent in journals before 0.4. */
|
|
126
|
+
readonly ns?: string;
|
|
127
|
+
/** 1-based revision of this agent's contribution to this task (a later revision supersedes earlier ones). */
|
|
128
|
+
readonly revision?: number;
|
|
129
|
+
/** How the agent's turn ended: ok = normal answer, failed = the agent could not run (its contribution is empty). */
|
|
130
|
+
readonly runtimeStatus?: 'ok' | 'failed';
|
|
131
|
+
readonly usage?: {
|
|
132
|
+
readonly tokens: number | null;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/** One merged finding on the board: same requirement + location + normalized summary from several agents collapse into one (highest severity wins). */
|
|
136
|
+
export interface MergedFinding {
|
|
137
|
+
readonly key: string;
|
|
138
|
+
readonly summary: string;
|
|
139
|
+
readonly severity: Severity;
|
|
140
|
+
readonly location?: string;
|
|
141
|
+
readonly requirement?: string;
|
|
142
|
+
readonly agents: readonly string[];
|
|
143
|
+
readonly findingIds: readonly string[];
|
|
144
|
+
}
|
|
145
|
+
export type DecisionStatus = 'proposed' | 'provisional' | 'committed' | 'superseded' | 'rejected' | 'verified';
|
|
146
|
+
export interface DecisionRecord {
|
|
147
|
+
readonly id: string;
|
|
148
|
+
readonly runId: string;
|
|
149
|
+
readonly goalRevision: number;
|
|
150
|
+
readonly title: string;
|
|
151
|
+
readonly requirements: readonly string[];
|
|
152
|
+
readonly contributions: readonly string[];
|
|
153
|
+
readonly selected: string;
|
|
154
|
+
readonly rejected: readonly string[];
|
|
155
|
+
readonly evidence: readonly string[];
|
|
156
|
+
readonly rationale: string;
|
|
157
|
+
readonly affectedTasks: readonly string[];
|
|
158
|
+
readonly requiredVerification: readonly string[];
|
|
159
|
+
readonly authority: 'director' | 'owner' | 'core';
|
|
160
|
+
readonly status: DecisionStatus;
|
|
161
|
+
readonly revision: number;
|
|
162
|
+
}
|
|
163
|
+
export type TaskStatus = 'pending' | 'running' | 'done' | 'failed' | 'blocked';
|
|
96
164
|
export type AgentState = 'idle' | 'thinking' | 'done' | 'failed' | 'waiting';
|
|
97
165
|
/** One journal line (JSONL, append-only, `.ckit/team/runs/<runId>/events.jsonl`). All text is secret-redacted before it is written or emitted. */
|
|
98
166
|
export type TeamEvent = {
|
|
@@ -113,7 +181,9 @@ export type TeamEvent = {
|
|
|
113
181
|
} | {
|
|
114
182
|
readonly type: 'agent.started';
|
|
115
183
|
readonly agentId: string;
|
|
116
|
-
readonly task: string;
|
|
184
|
+
readonly task: string; /** PF-CALLS turn class; absent in journals before 0.4 */
|
|
185
|
+
readonly turnClass?: TurnClass;
|
|
186
|
+
readonly taskId?: string;
|
|
117
187
|
}
|
|
118
188
|
/** Streamed progress while an agent works (tool call, partial thought). Short, one line. */
|
|
119
189
|
| {
|
|
@@ -221,6 +291,101 @@ export type TeamEvent = {
|
|
|
221
291
|
readonly type: 'director.decision';
|
|
222
292
|
readonly decision: 'continue' | 'redirect' | 'stop';
|
|
223
293
|
readonly note: string;
|
|
294
|
+
}
|
|
295
|
+
/** Agent-to-agent mail on the run bus (CKit MCP tools, Director MAIL lines). to = agent id, team id, 'director' or 'all'. kind 'ask' = a question to the Director that blocks the asker until 'answer'. */
|
|
296
|
+
| {
|
|
297
|
+
readonly type: 'agent.mail';
|
|
298
|
+
readonly mailId: string;
|
|
299
|
+
readonly from: string;
|
|
300
|
+
readonly to: string;
|
|
301
|
+
readonly subject: string;
|
|
302
|
+
readonly text: string;
|
|
303
|
+
readonly replyTo?: string;
|
|
304
|
+
readonly kind?: 'mail' | 'ask' | 'answer';
|
|
305
|
+
}
|
|
306
|
+
/** Read receipt: the agent fetched these mails from its inbox (ckit_read_inbox, or delivered inside its next prompt / steered into its running turn). */
|
|
307
|
+
| {
|
|
308
|
+
readonly type: 'agent.mail.read';
|
|
309
|
+
readonly agentId: string;
|
|
310
|
+
readonly mailIds: readonly string[];
|
|
311
|
+
readonly via: 'tool' | 'prompt' | 'steer';
|
|
312
|
+
}
|
|
313
|
+
/** Director task graph (B7): a planned task for one team; deps = task ids that must be done first. Independent tasks run in parallel. */
|
|
314
|
+
| {
|
|
315
|
+
readonly type: 'task.created';
|
|
316
|
+
readonly taskId: string;
|
|
317
|
+
readonly team: string;
|
|
318
|
+
readonly title: string;
|
|
319
|
+
readonly deps: readonly string[];
|
|
320
|
+
} | {
|
|
321
|
+
readonly type: 'task.updated';
|
|
322
|
+
readonly taskId: string;
|
|
323
|
+
readonly status: TaskStatus;
|
|
324
|
+
readonly note?: string;
|
|
325
|
+
}
|
|
326
|
+
/** Owner paused the run (no new agent turn starts) or resumed it. by 'interrupt' = the owner interrupted the running turns. */
|
|
327
|
+
| {
|
|
328
|
+
readonly type: 'run.paused';
|
|
329
|
+
readonly by: 'owner' | 'interrupt';
|
|
330
|
+
} | {
|
|
331
|
+
readonly type: 'run.resumed';
|
|
332
|
+
}
|
|
333
|
+
/** The owner interrupted this agent's running turn; it is redone after resume with the owner's newest guidance. */
|
|
334
|
+
| {
|
|
335
|
+
readonly type: 'agent.interrupted';
|
|
336
|
+
readonly agentId: string;
|
|
337
|
+
}
|
|
338
|
+
/** The context for an agent turn was over budget: older history was summarised; the full text is in the artifact. */
|
|
339
|
+
| {
|
|
340
|
+
readonly type: 'context.compacted';
|
|
341
|
+
readonly agentId: string;
|
|
342
|
+
readonly before: number;
|
|
343
|
+
readonly after: number;
|
|
344
|
+
readonly artifact: string;
|
|
345
|
+
}
|
|
346
|
+
/** The Director's collaboration mode for this run (PF-MODES). */
|
|
347
|
+
| {
|
|
348
|
+
readonly type: 'mode.chosen';
|
|
349
|
+
readonly mode: CollabMode;
|
|
350
|
+
readonly reason: string;
|
|
351
|
+
}
|
|
352
|
+
/** A configured team that does not run in this run (PF-MODES): the Director did not activate it or the goal does not need it (e.g. a read-only goal needs no write/test/QC team). */
|
|
353
|
+
| {
|
|
354
|
+
readonly type: 'team.skipped';
|
|
355
|
+
readonly team: string;
|
|
356
|
+
readonly reason: string;
|
|
357
|
+
}
|
|
358
|
+
/** A typed agent contribution (PF-CONTRIB), persisted on the Decision Board as soon as it arrives (partial while the agent works, complete at the end of its turn). */
|
|
359
|
+
| {
|
|
360
|
+
readonly type: 'contribution.published';
|
|
361
|
+
readonly contribution: AgentContribution;
|
|
362
|
+
}
|
|
363
|
+
/** A Director decision record on the Decision Board (PF-BOARD). Same id + higher revision supersedes. */
|
|
364
|
+
| {
|
|
365
|
+
readonly type: 'decision.recorded';
|
|
366
|
+
readonly decision: DecisionRecord;
|
|
367
|
+
}
|
|
368
|
+
/** Anti-loop guard fired (PF-LOOP): a repeated send-back/question/rejection without new evidence was stopped. */
|
|
369
|
+
| {
|
|
370
|
+
readonly type: 'loop.detected';
|
|
371
|
+
readonly kind: 'return' | 'ask' | 'review' | 'retry';
|
|
372
|
+
readonly from: string;
|
|
373
|
+
readonly reason: string;
|
|
374
|
+
}
|
|
375
|
+
/** Why an agent is not producing output right now (PF-WAIT). Emitted on change only; heartbeats are never progress. */
|
|
376
|
+
| {
|
|
377
|
+
readonly type: 'agent.wait';
|
|
378
|
+
readonly agentId: string;
|
|
379
|
+
readonly reason: WaitReason;
|
|
380
|
+
readonly detail?: string;
|
|
381
|
+
}
|
|
382
|
+
/** Native tool call / tool output of an agent's turn (execution stream). Live-only, like agent.delta. */
|
|
383
|
+
| {
|
|
384
|
+
readonly type: 'agent.tool';
|
|
385
|
+
readonly agentId: string;
|
|
386
|
+
readonly phase: 'call' | 'result';
|
|
387
|
+
readonly name: string;
|
|
388
|
+
readonly text: string;
|
|
224
389
|
} | {
|
|
225
390
|
readonly type: 'run.completed';
|
|
226
391
|
readonly outcome: 'delivered' | 'failed' | 'stopped' | 'declined';
|
|
@@ -245,6 +410,13 @@ export interface TeamRunHandle {
|
|
|
245
410
|
stop(): void;
|
|
246
411
|
/** While the Director waits for the owner's answer: carry on with the Director's stated assumptions. No-op otherwise. */
|
|
247
412
|
proceedWithAssumptions?(): void;
|
|
413
|
+
/** Owner pause: no new agent turn starts until resume (running turns finish). No-op when finished. */
|
|
414
|
+
pause?(): void;
|
|
415
|
+
resume?(): void;
|
|
416
|
+
/** Cancel the running agent turns now and pause; each interrupted turn is redone after resume (with the owner's newest messages). */
|
|
417
|
+
interrupt?(): void;
|
|
418
|
+
/** Resolves once every agent process this run started has exited (after stop/finish). */
|
|
419
|
+
whenClosed?(): Promise<void>;
|
|
248
420
|
/** Resolves when the run completes. */
|
|
249
421
|
readonly done: Promise<'delivered' | 'failed' | 'stopped' | 'declined'>;
|
|
250
422
|
}
|
|
@@ -127,6 +127,16 @@ export function reduceTeam(state, event) {
|
|
|
127
127
|
const withAgent = a ? { ...s0, agents: patch(s0, event.agentId, x => ({ ...x, lastActivity: text })) } : s0;
|
|
128
128
|
return push(withAgent, { kind: 'activity', from: event.agentId, fromTeam: a?.team ?? null, to: '', text, at });
|
|
129
129
|
}
|
|
130
|
+
case 'agent.mail':
|
|
131
|
+
return push(s0, { kind: 'agent', from: event.from, fromTeam: agentOf(s0, event.from)?.team ?? null, to: event.to, text: `✉ ${oneLine(event.subject)}: ${oneLine(event.text)}`, at });
|
|
132
|
+
case 'decision.recorded':
|
|
133
|
+
return push(s0, { kind: 'director', from: 'director', fromTeam: 'director', to: 'all', text: `Decision ${event.decision.status}: ${oneLine(event.decision.title)}`, at });
|
|
134
|
+
case 'loop.detected':
|
|
135
|
+
return push(s0, { kind: 'system', from: 'system', fromTeam: null, to: 'all', text: `Loop stopped (${event.kind}): ${oneLine(event.reason)}`, at, tone: 'bad' });
|
|
136
|
+
case 'run.paused':
|
|
137
|
+
case 'run.resumed':
|
|
138
|
+
return push(s0, { kind: 'system', from: 'system', fromTeam: null, to: 'all', text: event.type === 'run.paused' ? 'Run paused' : 'Run resumed', at });
|
|
139
|
+
default: return s0; // mail receipts, tasks, contributions, waits, tool events: shown in the web GUI only
|
|
130
140
|
}
|
|
131
141
|
}
|
|
132
142
|
/** Duration of the latest completed span of `stage`, or null. */
|
package/gui/app.css
CHANGED
|
@@ -445,3 +445,26 @@ body.noroster #live{grid-template-columns:0 minmax(0,1fr) var(--iw)}body.noroste
|
|
|
445
445
|
.rdot.running{animation:rpulse 1.2s infinite}@keyframes rpulse{50%{opacity:.35}}
|
|
446
446
|
.rbadge{background:var(--am);color:#111;border-radius:8px;padding:0 5px;font-size:10px}
|
|
447
447
|
.aglive{margin-top:6px;font-size:11px;line-height:1.4;color:#9fb0c6;max-height:120px;overflow:auto;white-space:pre-wrap;word-break:break-word;border-left:2px solid #3b4a63;padding-left:6px;font-style:italic}
|
|
448
|
+
/* run controls, inspector tabs, live feed, lanes, board, tasks */
|
|
449
|
+
#rctl{display:inline-flex;gap:4px;flex:none}#rctl[hidden]{display:none}#rctl .chip{padding:2px 9px;font-size:11px}#rctl .chip.dng{color:var(--rd);border-color:#6e2a38;background:rgba(240,86,104,.07)}
|
|
450
|
+
#inspector{position:relative}
|
|
451
|
+
#itabs{display:flex;gap:2px;margin:-4px 0 6px;border-bottom:1px solid var(--b1);flex-wrap:wrap}
|
|
452
|
+
.itab{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:4px 8px;font-size:11px;color:var(--mu)}.itab.on{color:var(--cy);border-bottom-color:var(--cy)}.itab:hover{box-shadow:none}
|
|
453
|
+
#xtele{display:flex;flex-wrap:wrap;gap:4px 8px;margin-bottom:6px;font-size:10.5px}#xtele[hidden],#ipane[hidden],#xpane[hidden]{display:none}
|
|
454
|
+
#xtele .xt em{font-style:normal;color:var(--mu);margin-right:3px;text-transform:uppercase;font-size:9.5px;letter-spacing:.05em}#xtele .pz{color:var(--am);font-weight:700}
|
|
455
|
+
#xpane{height:calc(100% - 64px);min-height:120px;overflow:auto}
|
|
456
|
+
.xfilters{display:flex;gap:4px;margin-bottom:6px}.xfilters select{flex:1;min-width:0;font-size:11px;padding:2px 4px}
|
|
457
|
+
.xfeed{height:calc(100% - 30px);overflow:auto;font-size:11.5px}
|
|
458
|
+
.xr{display:flex;flex-wrap:wrap;gap:2px 6px;padding:3px 0 3px 6px;border-left:2px solid var(--tc,#8A9AAF);border-bottom:1px solid rgba(37,51,71,.5);line-height:1.35}
|
|
459
|
+
.xr .tm{color:var(--mu)}.xr .xty{color:var(--mu);font-size:10px}.xr .xtx{flex-basis:100%;color:#c3cfdf;word-break:break-word}.xteam{font-size:9.5px;color:var(--mu);text-transform:uppercase}
|
|
460
|
+
.xlanes{display:flex;gap:6px;height:100%;overflow-x:auto}
|
|
461
|
+
.xlane{flex:0 0 190px;display:flex;flex-direction:column;gap:4px;border:1px solid var(--b1);border-top:2px solid var(--tc);border-radius:4px;padding:6px;min-height:0;background:rgba(9,15,28,.6)}
|
|
462
|
+
.xlh{display:flex;justify-content:space-between;gap:4px}.xlw{font-size:11px;color:var(--cy)}.xlw.none,.xlw.idle{color:var(--mu)}.xlw.paused,.xlw.waiting-owner{color:var(--am)}
|
|
463
|
+
.xlt{font-size:10.5px;color:var(--gr)}.xlive{flex:1;min-height:60px;overflow:auto;font-size:11px;line-height:1.4;color:#b5c3d8;white-space:pre-wrap;word-break:break-word;border-left:2px solid #3b4a63;padding-left:6px}.xlf{font-size:10px;color:var(--mu)}
|
|
464
|
+
.xb{margin-bottom:6px}.xfind{display:flex;gap:6px;font-size:11.5px;margin:2px 0}
|
|
465
|
+
.sev,.dst,.tst{font:700 9.5px var(--mono);text-transform:uppercase;padding:1px 6px;border-radius:8px;border:1px solid var(--b2);flex:none;height:fit-content}
|
|
466
|
+
.sev.critical,.tst.failed,.dst.rejected{color:var(--rd);border-color:#6e2a38}.sev.high,.tst.blocked{color:var(--am);border-color:#6b4a1c}.sev.medium{color:#E0C341}.sev.low,.sev.info{color:var(--mu)}
|
|
467
|
+
.dst.committed,.dst.verified,.tst.done{color:var(--gr);border-color:#1f5b44}.tst.running{color:var(--cy)}
|
|
468
|
+
.xdh{display:flex;gap:6px;align-items:center;justify-content:space-between}.xsel{font-size:11.5px;margin-top:4px}.xrat{font-size:11px;color:var(--mu);margin-top:3px}.xwait{font-size:11px;color:var(--am);margin-top:3px}
|
|
469
|
+
.xtask.done{opacity:.7}
|
|
470
|
+
.xla{font-size:10.5px;color:var(--cy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tst.skipped{color:var(--mu);border-color:#3b4a63}.xtask.skipped{opacity:.7}
|