@atolis-hq/wake 0.3.108 → 0.3.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/bootstrap/surface-api-work-applications.js +30 -1
- package/dist/src/bootstrap/version.js +1 -1
- package/dist/src/integrations/github/application/inbound-comment-syntax.js +2 -0
- package/dist/src/integrations/github/application/inbound-review-signals.js +52 -7
- package/dist/src/integrations/github/contracts/vocabulary.js +3 -1
- package/dist/src/orchestration/application/coordination-claims.js +33 -1
- package/dist/src/orchestration/application/group-budget-recorder.js +2 -2
- package/dist/src/orchestration/application/orchestration-service.js +50 -4
- package/dist/src/orchestration/application/request-child.js +1 -1
- package/dist/src/orchestration/contracts/event-decoder.js +19 -1
- package/dist/src/orchestration/contracts/events.js +1 -0
- package/dist/src/orchestration/domain/interpreter.js +1 -1
- package/dist/src/orchestration/domain/operator-retry-policy.js +5 -0
- package/dist/src/surfaces/api/presenters/orchestration.js +2 -1
- package/dist/src/surfaces/api/routes/commands.js +1 -1
- package/dist/src/surfaces/api/routes/work.js +1 -0
- package/dist/src/surfaces/web-assets/assets/{index-BWmnT1sZ.css → index-D543o6jw.css} +1 -1
- package/dist/src/surfaces/web-assets/assets/index-DZHWNeNA.js +1179 -0
- package/dist/src/surfaces/web-assets/index.html +2 -2
- package/package.json +1 -1
- package/dist/src/surfaces/web-assets/assets/index-BeuYgPoB.js +0 -1179
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pullRequestProjection } from '../activities/index.js';
|
|
2
2
|
import { executionProjection, runsByWorkflowInstanceProjection, } from '../execution/index.js';
|
|
3
3
|
import { correlationId, EventActorKind } from '../kernel/index.js';
|
|
4
|
-
import { OperatorRetryIneligibleError, orchestrationProjection, selectOperatorRetryTarget, workflowsByWorkItemProjection, } from '../orchestration/index.js';
|
|
4
|
+
import { ApprovalAuthorityKind, GroupBudgetExtensionIneligibleError, isGroupBudgetExtensionEligible, OperatorRetryIneligibleError, orchestrationProjection, selectOperatorRetryTarget, workflowsByWorkItemProjection, } from '../orchestration/index.js';
|
|
5
5
|
import { workCorrelationsProjection, } from '../resources/index.js';
|
|
6
6
|
import { ApiCommandStatus, fromWorkItemKey, presentResource, presentRun, presentWorkflowInstance, presentWorkItem, } from '../surfaces/index.js';
|
|
7
7
|
import { workItemId, WorkStatus } from '../work/index.js';
|
|
@@ -86,6 +86,32 @@ export function createSurfaceWorkApplications(root, now) {
|
|
|
86
86
|
}
|
|
87
87
|
return accepted(command.idempotencyKey, now());
|
|
88
88
|
},
|
|
89
|
+
async extend(key, command) {
|
|
90
|
+
const id = decodeWorkItemId(key);
|
|
91
|
+
if (id === undefined)
|
|
92
|
+
return extendIneligible('Work item was not found');
|
|
93
|
+
const work = await root.work.get(id);
|
|
94
|
+
if (work === null)
|
|
95
|
+
return extendIneligible('Work item was not found');
|
|
96
|
+
if (work.deleted === true)
|
|
97
|
+
return extendIneligible('Work item is deleted');
|
|
98
|
+
if (work.state !== WorkStatus.Open)
|
|
99
|
+
return extendIneligible('Work item is not open');
|
|
100
|
+
const primary = (await root.orchestration.listForWorkItem(id)).find((workflow) => workflow.parentWorkflowInstanceId === undefined);
|
|
101
|
+
if (primary === undefined)
|
|
102
|
+
return extendIneligible('Work item has no primary workflow');
|
|
103
|
+
if (!isGroupBudgetExtensionEligible(primary))
|
|
104
|
+
return extendIneligible('Workflow is not blocked on a gate budget exhaustion');
|
|
105
|
+
try {
|
|
106
|
+
await root.orchestration.extendBlockedGroupBudget(primary.workflowInstanceId, { kind: ApprovalAuthorityKind.Human }, commandContext(command.idempotencyKey, now));
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
if (error instanceof GroupBudgetExtensionIneligibleError)
|
|
110
|
+
return extendIneligible(error.message);
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
113
|
+
return accepted(command.idempotencyKey, now());
|
|
114
|
+
},
|
|
89
115
|
};
|
|
90
116
|
}
|
|
91
117
|
async function workDetail(root, key, now) {
|
|
@@ -203,3 +229,6 @@ function accepted(idempotencyKey, acceptedAt) {
|
|
|
203
229
|
function retryIneligible(detail) {
|
|
204
230
|
return { conflict: true, code: 'retry-ineligible', detail };
|
|
205
231
|
}
|
|
232
|
+
function extendIneligible(detail) {
|
|
233
|
+
return { conflict: true, code: 'extend-ineligible', detail };
|
|
234
|
+
}
|
|
@@ -20,6 +20,8 @@ export function recognizedCommand(body) {
|
|
|
20
20
|
return GitHubBuiltInCommand.Changes;
|
|
21
21
|
if (matchesCommand(line, GitHubBuiltInCommand.Retry))
|
|
22
22
|
return GitHubBuiltInCommand.Retry;
|
|
23
|
+
if (line === GitHubBuiltInCommand.Extend)
|
|
24
|
+
return GitHubBuiltInCommand.Extend;
|
|
23
25
|
return null;
|
|
24
26
|
}
|
|
25
27
|
export function isPlainReply(body) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
import { ActivityOutcomeKind, ReviewActorKind, ReviewDecisionKind, ReviewerAuthorizationSource, createPullRequestService, isReviewAuthorized, } from '../../../activities/index.js';
|
|
3
|
-
import { ApprovalAuthorityKind, selectOperatorRetryTarget, } from '../../../orchestration/index.js';
|
|
3
|
+
import { ApprovalAuthorityKind, isGroupBudgetExtensionEligible, selectOperatorRetryTarget, } from '../../../orchestration/index.js';
|
|
4
4
|
import { BuiltInResourceKind, ResourceCorrelationRole, ResourceStreamKind, resourceId, } from '../../../resources/index.js';
|
|
5
5
|
import { WorkStatus } from '../../../work/index.js';
|
|
6
6
|
import { GitHubBuiltInCommand, UnknownGitHubIdentity } from '../contracts/vocabulary.js';
|
|
@@ -77,15 +77,18 @@ async function applyIssueReviewSignal(input) {
|
|
|
77
77
|
const resource = await resources.get(resourceIdValue);
|
|
78
78
|
const command = recognizedCommand(event.payload.body);
|
|
79
79
|
const plainReply = isPlainReply(event.payload.body);
|
|
80
|
-
if (command
|
|
81
|
-
return
|
|
80
|
+
if (command !== null)
|
|
81
|
+
return applyIssueCommand({
|
|
82
82
|
event,
|
|
83
|
+
command,
|
|
84
|
+
resource,
|
|
83
85
|
resources,
|
|
84
86
|
work,
|
|
87
|
+
lookup,
|
|
85
88
|
orchestration,
|
|
89
|
+
adapter,
|
|
86
90
|
resourceId: resourceIdValue,
|
|
87
91
|
});
|
|
88
|
-
}
|
|
89
92
|
if (resource?.kind === BuiltInResourceKind.PullRequest) {
|
|
90
93
|
await applyWorkflowSignal({
|
|
91
94
|
event,
|
|
@@ -101,9 +104,7 @@ async function applyIssueReviewSignal(input) {
|
|
|
101
104
|
});
|
|
102
105
|
return;
|
|
103
106
|
}
|
|
104
|
-
if (
|
|
105
|
-
await applyIssueApprovalSignal({ ...input, command });
|
|
106
|
-
else if (plainReply) {
|
|
107
|
+
if (plainReply) {
|
|
107
108
|
await applyWorkflowSignal({
|
|
108
109
|
event,
|
|
109
110
|
resources,
|
|
@@ -116,6 +117,50 @@ async function applyIssueReviewSignal(input) {
|
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
119
|
}
|
|
120
|
+
async function applyIssueCommand(input) {
|
|
121
|
+
const { command, resource, resourceId: resourceIdValue } = input;
|
|
122
|
+
if (command === GitHubBuiltInCommand.Retry)
|
|
123
|
+
return applyIssueRetrySignal({ ...input, resourceId: resourceIdValue });
|
|
124
|
+
if (command === GitHubBuiltInCommand.Extend)
|
|
125
|
+
return applyIssueBudgetExtension({ ...input, resourceId: resourceIdValue });
|
|
126
|
+
if (resource?.kind === BuiltInResourceKind.PullRequest)
|
|
127
|
+
return applyWorkflowSignal({
|
|
128
|
+
...input,
|
|
129
|
+
resourceId: resourceIdValue,
|
|
130
|
+
outcome: command === GitHubBuiltInCommand.Approved
|
|
131
|
+
? ActivityOutcomeKind.Done
|
|
132
|
+
: ActivityOutcomeKind.Rejected,
|
|
133
|
+
acceptWaitingSignal: true,
|
|
134
|
+
resumeBlockedOnChanges: command === GitHubBuiltInCommand.Changes,
|
|
135
|
+
});
|
|
136
|
+
return applyIssueApprovalSignal({
|
|
137
|
+
...input,
|
|
138
|
+
command: command,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
async function applyIssueBudgetExtension(input) {
|
|
142
|
+
const { event, resources, work, orchestration, resourceId: resourceIdValue } = input;
|
|
143
|
+
if (orchestration === undefined)
|
|
144
|
+
return;
|
|
145
|
+
if (!isReviewAuthorized({
|
|
146
|
+
actorId: event.payload.actor.id,
|
|
147
|
+
actorKind: event.payload.actor.kind,
|
|
148
|
+
resourceAuthorId: UnknownGitHubIdentity,
|
|
149
|
+
authorization: event.payload.authorization ?? { source: ReviewerAuthorizationSource.None },
|
|
150
|
+
}))
|
|
151
|
+
return;
|
|
152
|
+
const workItemIds = (await resources.correlations(resourceIdValue))
|
|
153
|
+
.filter((correlation) => correlation.role === ResourceCorrelationRole.Primary)
|
|
154
|
+
.map((correlation) => correlation.workItemId);
|
|
155
|
+
for (const workItemId of workItemIds) {
|
|
156
|
+
if (!(await isEligibleWorkItem(work, workItemId)))
|
|
157
|
+
continue;
|
|
158
|
+
const primary = (await orchestration.listAll()).find((workflow) => workflow.workItemId === workItemId && workflow.parentWorkflowInstanceId === undefined);
|
|
159
|
+
if (primary === undefined || !isGroupBudgetExtensionEligible(primary))
|
|
160
|
+
continue;
|
|
161
|
+
await orchestration.extendBlockedGroupBudget(primary.workflowInstanceId, { kind: ApprovalAuthorityKind.Human }, commandContext(event));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
119
164
|
async function applyIssueRetrySignal(input) {
|
|
120
165
|
const { event, resources, work, orchestration, resourceId: resourceIdValue } = input;
|
|
121
166
|
if (orchestration === undefined)
|
|
@@ -57,7 +57,8 @@ export const GitHubOutboundAction = {
|
|
|
57
57
|
// Comment-channel commands the GitHub adapter recognizes from human replies.
|
|
58
58
|
// /approved and /changes drive issue-review and PR-issue-comment signals;
|
|
59
59
|
// /accepted and /changes drive formal (native) PR review comments; /retry
|
|
60
|
-
// resumes a blocked/failed stage
|
|
60
|
+
// resumes a blocked/failed stage; /extend grants one exhausted gate attempt.
|
|
61
|
+
// Kept as the single source of truth for both
|
|
61
62
|
// recognition (inbound-comment-syntax.ts, review-command-translator.ts) and
|
|
62
63
|
// the commands/instructions surface, so the two cannot drift.
|
|
63
64
|
export const GitHubBuiltInCommand = defineClosedVocabulary({
|
|
@@ -65,4 +66,5 @@ export const GitHubBuiltInCommand = defineClosedVocabulary({
|
|
|
65
66
|
Accepted: '/accepted',
|
|
66
67
|
Changes: '/changes',
|
|
67
68
|
Retry: '/retry',
|
|
69
|
+
Extend: '/extend',
|
|
68
70
|
});
|
|
@@ -2,6 +2,7 @@ import { createEventDraft, EventSourceKind, } from '../../kernel/index.js';
|
|
|
2
2
|
import { selectOrchestrationEvent } from '../contracts/event-decoder.js';
|
|
3
3
|
import { OrchestrationEventType } from '../contracts/events.js';
|
|
4
4
|
import { isOrchestrationGroupStream, primaryOrchestrationGroupStream, } from '../contracts/streams.js';
|
|
5
|
+
import { ApprovalAuthorityKind } from '../contracts/vocabulary.js';
|
|
5
6
|
import { claimWithCasRetry } from './durable-append.js';
|
|
6
7
|
export class CoordinationClaims {
|
|
7
8
|
journal;
|
|
@@ -49,7 +50,7 @@ export class CoordinationClaims {
|
|
|
49
50
|
read: () => this.journal.readStream(stream),
|
|
50
51
|
decode: groupEvents,
|
|
51
52
|
alreadyClaimed: (events) => claimedRequestIds(events).has(request.requestId),
|
|
52
|
-
canAppend: (events) => events.
|
|
53
|
+
canAppend: (_rawEvents, events) => claimedRequestIds(events).size < request.maxPerGroup + budgetGrants(events),
|
|
53
54
|
append: async (sequence) => {
|
|
54
55
|
await this.journal.append(stream, sequence, [
|
|
55
56
|
createEventDraft({
|
|
@@ -70,6 +71,31 @@ export class CoordinationClaims {
|
|
|
70
71
|
return true;
|
|
71
72
|
return claimedRequestIds(groupEvents(await this.journal.readStream(stream))).has(request.requestId);
|
|
72
73
|
}
|
|
74
|
+
async grantBudget(stream, requestId, context, authority) {
|
|
75
|
+
if (authority.kind !== ApprovalAuthorityKind.Human)
|
|
76
|
+
throw new Error('A group budget extension requires human authority');
|
|
77
|
+
await claimWithCasRetry({
|
|
78
|
+
read: () => this.journal.readStream(stream),
|
|
79
|
+
decode: groupEvents,
|
|
80
|
+
alreadyClaimed: (events) => events.some((event) => event.eventType === OrchestrationEventType.GroupBudgetGranted &&
|
|
81
|
+
event.payload.commandId === context.commandId),
|
|
82
|
+
append: async (sequence) => {
|
|
83
|
+
await this.journal.append(stream, sequence, [
|
|
84
|
+
createEventDraft({
|
|
85
|
+
eventId: `${context.commandId}:${OrchestrationEventType.GroupBudgetGranted}:${requestId}`,
|
|
86
|
+
eventType: OrchestrationEventType.GroupBudgetGranted,
|
|
87
|
+
occurredAt: context.occurredAt,
|
|
88
|
+
correlationId: context.correlationId,
|
|
89
|
+
causationId: context.commandId,
|
|
90
|
+
actor: context.actor,
|
|
91
|
+
source: { kind: EventSourceKind.Internal, id: 'orchestration-service' },
|
|
92
|
+
stream,
|
|
93
|
+
payload: { key: stream.id, requestId, commandId: context.commandId },
|
|
94
|
+
}),
|
|
95
|
+
]);
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
73
99
|
}
|
|
74
100
|
function primaryOwner(events) {
|
|
75
101
|
for (const event of events) {
|
|
@@ -77,6 +103,7 @@ function primaryOwner(events) {
|
|
|
77
103
|
case OrchestrationEventType.PrimaryClaimed:
|
|
78
104
|
return event.payload.workflowInstanceId;
|
|
79
105
|
case OrchestrationEventType.GroupClaimed:
|
|
106
|
+
case OrchestrationEventType.GroupBudgetGranted:
|
|
80
107
|
break;
|
|
81
108
|
default:
|
|
82
109
|
assertNever(event);
|
|
@@ -90,12 +117,17 @@ function claimedRequestIds(events) {
|
|
|
90
117
|
case OrchestrationEventType.GroupClaimed:
|
|
91
118
|
return [event.payload.requestId];
|
|
92
119
|
case OrchestrationEventType.PrimaryClaimed:
|
|
120
|
+
case OrchestrationEventType.GroupBudgetGranted:
|
|
93
121
|
return [];
|
|
94
122
|
default:
|
|
95
123
|
return assertNever(event);
|
|
96
124
|
}
|
|
97
125
|
}));
|
|
98
126
|
}
|
|
127
|
+
function budgetGrants(events) {
|
|
128
|
+
return events.filter((event) => event.eventType === OrchestrationEventType.GroupBudgetGranted)
|
|
129
|
+
.length;
|
|
130
|
+
}
|
|
99
131
|
function groupEvents(events) {
|
|
100
132
|
return events
|
|
101
133
|
.map(selectOrchestrationEvent)
|
|
@@ -10,9 +10,9 @@ export class GroupBudgetRecorder {
|
|
|
10
10
|
constructor(journal) {
|
|
11
11
|
this.journal = journal;
|
|
12
12
|
}
|
|
13
|
-
async record(parent, metadata, maxPerGroup, context) {
|
|
13
|
+
async record(parent, metadata, workflowName, maxPerGroup, context) {
|
|
14
14
|
const stream = workflowInstanceStream(workflowInstanceId(parent.workflowInstanceId));
|
|
15
|
-
const payload = { ...metadata, maxPerGroup };
|
|
15
|
+
const payload = { ...metadata, workflowName, maxPerGroup };
|
|
16
16
|
for (;;) {
|
|
17
17
|
const events = await this.journal.readStream(stream);
|
|
18
18
|
if (events.some((event) => {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { selectOrchestrationEvent } from '../contracts/event-decoder.js';
|
|
2
|
+
import { OrchestrationEventType } from '../contracts/events.js';
|
|
3
|
+
import { workflowInstanceId as toWorkflowInstanceId, } from '../contracts/identifiers.js';
|
|
4
|
+
import { childOrchestrationGroupStream, workflowInstanceStream } from '../contracts/streams.js';
|
|
5
|
+
import { ApprovalAuthorityKind } from '../contracts/vocabulary.js';
|
|
6
|
+
import { isGroupBudgetExtensionEligible } from '../domain/operator-retry-policy.js';
|
|
1
7
|
import { AcceptActivityOutcome } from './accept-activity-outcome.js';
|
|
2
8
|
import { AcceptSignal } from './accept-signal.js';
|
|
3
9
|
import { AdvanceWorkflow } from './advance-workflow.js';
|
|
@@ -16,18 +22,21 @@ export class OrchestrationService {
|
|
|
16
22
|
advanceWorkflow;
|
|
17
23
|
childWorkflows;
|
|
18
24
|
projections;
|
|
19
|
-
definitions;
|
|
20
25
|
coordinateAcceptSignal = (operation) => operation();
|
|
21
26
|
watchChildCancellation;
|
|
27
|
+
claims;
|
|
28
|
+
journal;
|
|
29
|
+
definitions;
|
|
22
30
|
constructor(journal, work, definitions, projections) {
|
|
23
31
|
this.projections = projections;
|
|
32
|
+
this.journal = journal;
|
|
24
33
|
const repository = new OrchestrationRepository(journal);
|
|
25
|
-
|
|
34
|
+
this.claims = new CoordinationClaims(journal);
|
|
26
35
|
this.definitions = new WorkflowDefinitionRegistry(journal, projections, definitions);
|
|
27
|
-
this.startWorkflow = new StartWorkflow(repository, claims, work, this.definitions);
|
|
36
|
+
this.startWorkflow = new StartWorkflow(repository, this.claims, work, this.definitions);
|
|
28
37
|
this.advanceWorkflow = new AdvanceWorkflow(repository, this.startWorkflow);
|
|
29
38
|
this.acceptWorkflowSignal = new AcceptSignal(repository, this.startWorkflow, work);
|
|
30
|
-
this.childWorkflows = new RequestChild(repository, claims, new GroupBudgetRecorder(journal), this.startWorkflow, this.advanceWorkflow);
|
|
39
|
+
this.childWorkflows = new RequestChild(repository, this.claims, new GroupBudgetRecorder(journal), this.startWorkflow, this.advanceWorkflow);
|
|
31
40
|
this.acceptActivityOutcome = new AcceptActivityOutcome(repository, this.startWorkflow, (context) => this.childWorkflows.reconcileChildCompletions(context));
|
|
32
41
|
}
|
|
33
42
|
start(command, context) {
|
|
@@ -78,6 +87,31 @@ export class OrchestrationService {
|
|
|
78
87
|
resumeBlockedStageForChanges(workflowInstanceId, context) {
|
|
79
88
|
return this.transitionWatchChildren(context, () => this.advanceWorkflow.resumeBlockedStageForChanges(workflowInstanceId, context));
|
|
80
89
|
}
|
|
90
|
+
async extendBlockedGroupBudget(workflowInstanceId, authority, context) {
|
|
91
|
+
if (authority.kind !== ApprovalAuthorityKind.Human)
|
|
92
|
+
throw new GroupBudgetExtensionIneligibleError('A group budget extension requires human authority');
|
|
93
|
+
const parent = await this.advanceWorkflow.get(workflowInstanceId);
|
|
94
|
+
if (parent === null || !isGroupBudgetExtensionEligible(parent))
|
|
95
|
+
throw new GroupBudgetExtensionIneligibleError('Workflow is not blocked on a gate budget exhaustion');
|
|
96
|
+
const exhausted = (await journalGroupBudgetExhaustion(this.journal, parent.workflowInstanceId)).at(-1);
|
|
97
|
+
if (exhausted === undefined)
|
|
98
|
+
throw new GroupBudgetExtensionIneligibleError('Workflow has no durable gate budget exhaustion to extend');
|
|
99
|
+
const workflowName = exhausted.workflowName ??
|
|
100
|
+
this.definitions
|
|
101
|
+
.currentDefinition(parent.workflowName)
|
|
102
|
+
.definition.watches.find((watch) => watch.id === exhausted.watchId)?.workflow;
|
|
103
|
+
if (workflowName === undefined)
|
|
104
|
+
throw new GroupBudgetExtensionIneligibleError('Workflow has no durable gate definition to extend');
|
|
105
|
+
const group = childOrchestrationGroupStream(parent.orchestrationGroupId, exhausted.watchId);
|
|
106
|
+
await this.claims.grantBudget(group, exhausted.requestId, context, authority);
|
|
107
|
+
await this.waitForSignal(parent.workflowInstanceId, parent.waitingFor, context);
|
|
108
|
+
return this.requestChild({
|
|
109
|
+
...exhausted,
|
|
110
|
+
workflowName,
|
|
111
|
+
maxPerGroup: exhausted.maxPerGroup,
|
|
112
|
+
requestId: toWorkflowInstanceId(exhausted.requestId),
|
|
113
|
+
}, { ...context, commandId: `${context.commandId}:dispatch` });
|
|
114
|
+
}
|
|
81
115
|
get(id) {
|
|
82
116
|
return this.advanceWorkflow.get(id);
|
|
83
117
|
}
|
|
@@ -138,4 +172,16 @@ export class OrchestrationService {
|
|
|
138
172
|
return this.transitionWatchChildren(context, () => this.advanceWorkflow.applyResourceTransition(workflowInstanceId, target, evidenceId, context));
|
|
139
173
|
}
|
|
140
174
|
}
|
|
175
|
+
export class GroupBudgetExtensionIneligibleError extends Error {
|
|
176
|
+
constructor(detail) {
|
|
177
|
+
super(detail);
|
|
178
|
+
this.name = 'GroupBudgetExtensionIneligibleError';
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
async function journalGroupBudgetExhaustion(journal, workflowInstanceId) {
|
|
182
|
+
return (await journal.readStream(workflowInstanceStream(workflowInstanceId))).flatMap((event) => {
|
|
183
|
+
const owned = selectOrchestrationEvent(event);
|
|
184
|
+
return owned?.eventType === OrchestrationEventType.GroupBudgetExhausted ? [owned.payload] : [];
|
|
185
|
+
});
|
|
186
|
+
}
|
|
141
187
|
export const createOrchestrationService = (journal, work, definitions, projections) => new OrchestrationService(journal, work, definitions, projections);
|
|
@@ -30,7 +30,7 @@ export class RequestChild {
|
|
|
30
30
|
const group = childOrchestrationGroupStream(parent.view.orchestrationGroupId, request.watchId);
|
|
31
31
|
const metadata = coordinationMetadata(parent.view, request);
|
|
32
32
|
if (!(await this.claims.claimWithinBudget(group, request, context))) {
|
|
33
|
-
await this.groupBudgets.record(parent.view, metadata, request.maxPerGroup, context);
|
|
33
|
+
await this.groupBudgets.record(parent.view, metadata, request.workflowName, request.maxPerGroup, context);
|
|
34
34
|
return { kind: 'group-budget-exhausted', requestId: request.requestId };
|
|
35
35
|
}
|
|
36
36
|
return this.workflows.execute({
|
|
@@ -184,6 +184,16 @@ const groupClaimedEnvelope = childGroupEnvelope(OrchestrationEventType.GroupClai
|
|
|
184
184
|
message: 'Group claim key must identify its stream',
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
+
const groupBudgetGrantedEnvelope = childGroupEnvelope(OrchestrationEventType.GroupBudgetGranted, z
|
|
188
|
+
.object({ key: childGroupIdSchema, requestId: z.string().min(1), commandId: z.string().min(1) })
|
|
189
|
+
.strict()).superRefine((event, context) => {
|
|
190
|
+
if (event.payload.key !== event.stream.id)
|
|
191
|
+
context.addIssue({
|
|
192
|
+
code: 'custom',
|
|
193
|
+
path: ['payload', 'key'],
|
|
194
|
+
message: 'Group budget grant key must identify its stream',
|
|
195
|
+
});
|
|
196
|
+
});
|
|
187
197
|
const eventSchema = z.discriminatedUnion('eventType', [
|
|
188
198
|
workflowEnvelope(OrchestrationEventType.InstanceStarted, z.union([
|
|
189
199
|
z
|
|
@@ -277,9 +287,16 @@ const eventSchema = z.discriminatedUnion('eventType', [
|
|
|
277
287
|
workflowEnvelope(OrchestrationEventType.ChildCompleted, childMetadataSchema),
|
|
278
288
|
workflowEnvelope(OrchestrationEventType.ChildCompletionConsumed, childMetadataSchema),
|
|
279
289
|
workflowEnvelope(OrchestrationEventType.CausalActivationRejected, childMetadataSchema),
|
|
280
|
-
workflowEnvelope(OrchestrationEventType.GroupBudgetExhausted, z
|
|
290
|
+
workflowEnvelope(OrchestrationEventType.GroupBudgetExhausted, z
|
|
291
|
+
.object({
|
|
292
|
+
...childMetadataShape,
|
|
293
|
+
maxPerGroup: z.number().int().positive(),
|
|
294
|
+
workflowName: brandedStringSchema(workflowName).optional(),
|
|
295
|
+
})
|
|
296
|
+
.strict()),
|
|
281
297
|
primaryClaimedEnvelope,
|
|
282
298
|
groupClaimedEnvelope,
|
|
299
|
+
groupBudgetGrantedEnvelope,
|
|
283
300
|
]);
|
|
284
301
|
export function decodeOrchestrationEvent(event) {
|
|
285
302
|
const result = eventSchema.safeParse(event);
|
|
@@ -299,6 +316,7 @@ export function selectWorkflowOrchestrationEvent(event) {
|
|
|
299
316
|
switch (owned.eventType) {
|
|
300
317
|
case OrchestrationEventType.PrimaryClaimed:
|
|
301
318
|
case OrchestrationEventType.GroupClaimed:
|
|
319
|
+
case OrchestrationEventType.GroupBudgetGranted:
|
|
302
320
|
case OrchestrationEventType.WorkflowDefinitionRegistered:
|
|
303
321
|
return null;
|
|
304
322
|
default:
|
|
@@ -27,6 +27,7 @@ export const OrchestrationEventType = {
|
|
|
27
27
|
GroupBudgetExhausted: 'orchestration.group-budget-exhausted',
|
|
28
28
|
PrimaryClaimed: 'orchestration.primary-claimed',
|
|
29
29
|
GroupClaimed: 'orchestration.group-claimed',
|
|
30
|
+
GroupBudgetGranted: 'orchestration.group-budget-granted',
|
|
30
31
|
};
|
|
31
32
|
export const WatchGateVerdictSignal = signalName('orchestration.watch-gate-verdict');
|
|
32
33
|
export const ApprovedSignal = signalName('approved');
|
|
@@ -10,7 +10,7 @@ import { finishRoute } from './transition.js';
|
|
|
10
10
|
export { startInstance } from './activation-policy.js';
|
|
11
11
|
export { acceptSignal, waitForSignal } from './signal-policy.js';
|
|
12
12
|
export { requestSupplementalActivity } from './supplemental-policy.js';
|
|
13
|
-
export { isChangesResumeEligible, isOperatorRetryEligible, requestChangesResume, requestOperatorRetry, selectOperatorRetryTarget, } from './operator-retry-policy.js';
|
|
13
|
+
export { isChangesResumeEligible, isGroupBudgetExtensionEligible, isOperatorRetryEligible, requestChangesResume, requestOperatorRetry, selectOperatorRetryTarget, } from './operator-retry-policy.js';
|
|
14
14
|
export { isRunnerQuotaRetryEligible, requestRunnerQuotaRetry, } from './runner-quota-retry-policy.js';
|
|
15
15
|
export function acceptActivityOutcome(definition, state, input) {
|
|
16
16
|
if (!isPendingOutcome(state, input))
|
|
@@ -60,6 +60,11 @@ export function isChangesResumeEligible(view) {
|
|
|
60
60
|
view.lastOutcome?.kind === ActivityOutcomeKind.Blocked &&
|
|
61
61
|
view.acceptedOutcomes.includes(pending.activationId));
|
|
62
62
|
}
|
|
63
|
+
export function isGroupBudgetExtensionEligible(view) {
|
|
64
|
+
return (view.status === WorkflowStatus.Blocked &&
|
|
65
|
+
view.blockReason?.startsWith('watch group budget exhausted for ') === true &&
|
|
66
|
+
view.waitingFor !== undefined);
|
|
67
|
+
}
|
|
63
68
|
export function requestOperatorRetry(definition, state, input) {
|
|
64
69
|
if (input.commandId.length === 0)
|
|
65
70
|
return { kind: 'ignored', reason: 'operator retry command id is required' };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isOperatorRetryEligible, WorkflowStatus, } from '../../../orchestration/index.js';
|
|
1
|
+
import { isGroupBudgetExtensionEligible, isOperatorRetryEligible, WorkflowStatus, } from '../../../orchestration/index.js';
|
|
2
2
|
import { toWorkItemKey } from '../contracts/work.js';
|
|
3
3
|
export function presentWorkflowInstance(value) {
|
|
4
4
|
return {
|
|
@@ -15,6 +15,7 @@ export function presentWorkflowInstance(value) {
|
|
|
15
15
|
? { blockReason: value.blockReason }
|
|
16
16
|
: {}),
|
|
17
17
|
...(isOperatorRetryEligible(value) ? { retryEligible: true } : {}),
|
|
18
|
+
...(isGroupBudgetExtensionEligible(value) ? { extendEligible: true } : {}),
|
|
18
19
|
...(value.waitingFor === undefined
|
|
19
20
|
? {}
|
|
20
21
|
: { waitingFor: { signalKind: value.waitingFor.signalKind } }),
|
|
@@ -35,7 +35,7 @@ async function dispatchAmbiguousRunResolution(applications, pathname, body) {
|
|
|
35
35
|
return accepted(await operation(runId, request), applications.now());
|
|
36
36
|
}
|
|
37
37
|
async function dispatchWorkCommand(applications, pathname, request) {
|
|
38
|
-
const match = /^\/api\/v1\/work-items\/([^/]+)\/commands\/(freeze|unfreeze|delete|retry)$/.exec(pathname);
|
|
38
|
+
const match = /^\/api\/v1\/work-items\/([^/]+)\/commands\/(freeze|unfreeze|delete|retry|extend)$/.exec(pathname);
|
|
39
39
|
if (match === null)
|
|
40
40
|
return undefined;
|
|
41
41
|
const decoded = decodePathSegment(match[1]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._shell_c5v2a_1{grid-template-rows:auto auto auto 1fr;min-height:100vh;display:grid}._header_c5v2a_6{align-items:center;gap:var(--space-2);padding:.55rem var(--space-4);background:var(--brand);color:var(--ink-inverse);display:flex}._brand_c5v2a_14{align-items:center;gap:var(--space-2);color:var(--ink-inverse);font-family:-apple-system,Segoe UI,Roboto,sans-serif;font-weight:700;font-size:var(--text-lg);letter-spacing:.01em;text-decoration:none;display:inline-flex}._brandLogo_c5v2a_25{width:1.75rem;height:1.75rem}._brandVersion_c5v2a_29{color:#ffffffb3;font-family:-apple-system,Segoe UI,Roboto,sans-serif;font-size:.78rem;font-weight:400}._statusBand_c5v2a_35{align-items:center;gap:var(--space-4);padding:.45rem var(--space-4);background:var(--brand-dark);font-size:var(--text-sm);color:var(--ink-inverse);border-top:1px solid #0000002e;flex-wrap:wrap;display:flex}._nav_c5v2a_46{padding:.4rem var(--space-4) 0;background:var(--brand-darker);scrollbar-width:none;-ms-overflow-style:none;border-bottom:1px solid var(--border);gap:.25rem;display:flex;overflow-x:auto}._nav_c5v2a_46::-webkit-scrollbar{display:none}._nav_c5v2a_46 a{color:var(--nav-ink-idle);white-space:nowrap;transition:color var(--motion-fast) ease;border-bottom:2px solid #0000;margin-bottom:-1px;padding:.4rem .7rem .45rem;text-decoration:none}._nav_c5v2a_46 a:hover{color:var(--ink-inverse);text-decoration:none}._nav_c5v2a_46 a[aria-current=page]{color:var(--accent-light);border-bottom-color:var(--accent);font-weight:700}._main_c5v2a_77{width:100%;min-width:0;padding:var(--space-6) var(--space-4);margin:0}._pageHeader_c5v2a_83{justify-content:space-between;align-items:end;gap:var(--space-4);margin-bottom:var(--space-5);display:flex}._pageHeader_c5v2a_83 h1{margin:0}._panel_c5v2a_93{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-4);box-shadow:var(--shadow)}._badge_c5v2a_100{background:var(--surface-card);color:var(--ink);border-radius:999px;align-items:center;gap:.4rem;padding:.2rem .55rem;font-size:.85rem;font-weight:700;display:inline-flex}._badge_c5v2a_100:before{content:"";background:currentColor;border-radius:50%;flex:none;width:.55rem;height:.55rem}._badge_c5v2a_100>span{align-items:center;gap:.3rem;display:inline-flex}._good_c5v2a_124{color:var(--good)}._warning_c5v2a_127{color:var(--warning)}._bad_c5v2a_100{color:var(--bad)}._cold_c5v2a_133{color:#7dd3fc;background:#0e74902e;box-shadow:inset 0 0 0 1px #7dd3fc59}._info_c5v2a_138{color:var(--accent-light)}._button_c5v2a_141{appearance:none;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink);font:inherit;font-size:var(--text-sm);cursor:pointer;padding:.22rem .55rem;font-weight:600}._button_c5v2a_141:hover:not(:disabled){border-color:var(--accent-light);color:var(--accent-light)}._button_c5v2a_141:disabled{opacity:.62;cursor:wait}._secondary_c5v2a_161{background:0 0}._tableWrap_c5v2a_164{overflow-x:auto}._table_c5v2a_164{border-collapse:collapse;width:100%;font-size:var(--text-sm)}._table_c5v2a_164 caption{text-align:left;font-weight:700;font-size:var(--text-sm);padding-bottom:.5rem}._table_c5v2a_164 th,._table_c5v2a_164 td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.25rem .45rem;line-height:1.3}._table_c5v2a_164 th{color:var(--ink-muted);font-weight:600;font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.03em}._state_c5v2a_193{border:1px dashed var(--border);border-radius:var(--radius);padding:var(--space-5);color:var(--ink-muted)}._error_c5v2a_199{border-color:var(--bad);color:var(--bad)}._stale_c5v2a_203{color:var(--warning);font-size:.85rem}._statusActions_c5v2a_207{align-items:center;gap:.6rem;display:flex}._tickButton_c5v2a_212{border:1px solid var(--accent);color:var(--accent-light);background:#2dd4bf24;font-weight:700}._tickButton_c5v2a_212:hover:not(:disabled){border-color:var(--accent-light);background:#2dd4bf3d}._pauseControl_c5v2a_222{border:1px solid var(--bad);color:var(--warning);border-radius:var(--radius-sm);font-size:var(--text-sm);background:#dc262629;align-items:center;gap:.4rem;padding:.2rem .55rem;font-weight:700;display:inline-flex}._pauseControl_c5v2a_222 button{appearance:none;border:1px solid var(--bad);border-radius:var(--radius-sm);color:inherit;font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;padding:.1rem .4rem;font-weight:700}._pauseControl_c5v2a_222 button:hover:not(:disabled){background:#dc26263d}._pauseControl_c5v2a_222 button:disabled{opacity:.62;cursor:wait}._pagination_c5v2a_253{justify-content:flex-end;gap:.6rem;margin-block:1rem;display:flex}._live_c5v2a_259{min-height:1.4rem}._header_c5v2a_6 ._live_c5v2a_259{color:var(--warning)}._json_c5v2a_265{background:var(--surface-inset);color:var(--ink);padding:var(--space-3);border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:.75rem;overflow:auto}._chip_c5v2a_274{background:var(--border);color:var(--ink);border-radius:var(--radius-sm);font-size:var(--text-xs);align-items:center;gap:.25rem;margin-right:.2rem;padding:.05rem .35rem;display:inline-flex}._chipOutline_c5v2a_285{border:1px solid var(--border-strong);color:var(--ink-muted);background:0 0}._chipOutline_c5v2a_285._good_c5v2a_124{color:var(--good)}._chipOutline_c5v2a_285._warning_c5v2a_127{color:var(--warning)}._chipOutline_c5v2a_285._bad_c5v2a_100{color:var(--bad)}._chipOutline_c5v2a_285._cold_c5v2a_133{color:#7dd3fc}._chipOutline_c5v2a_285._info_c5v2a_138{color:var(--accent-light)}._tile_c5v2a_305{background:var(--surface-panel);border-radius:var(--radius);min-width:120px;padding:.6rem .9rem}._tileValue_c5v2a_311{font-size:1.3rem;font-weight:700}._tileLabel_c5v2a_315{color:var(--ink-muted);font-size:var(--text-xs);text-transform:uppercase}@media (width<=42rem){._header_c5v2a_6{padding-inline:var(--space-3)}._nav_c5v2a_46{padding-inline:var(--space-2)}._main_c5v2a_77{width:100%;padding:var(--space-4) var(--space-2) 0}._pageHeader_c5v2a_83{flex-direction:column;align-items:start}}._boardControls_eilh5_1{justify-content:flex-end;margin-bottom:.75rem;display:flex}._boardControls_eilh5_1 label{color:var(--ink-muted);font-size:var(--text-sm);align-items:center;gap:.4rem;font-weight:600;display:flex}._boardControls_eilh5_1 select{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.1rem;color:var(--ink);font:inherit;padding-inline:.5rem}._boardControls_eilh5_1 select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2dd4bf26}._swimlanes_eilh5_28{gap:1rem;display:grid}._swimlaneHeader_eilh5_32{font-size:var(--text-sm);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin:0 0 .4rem;font-weight:700}._swimlaneToggle_eilh5_40{justify-content:space-between;align-items:center;gap:var(--space-2);width:100%;color:inherit;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:0;display:flex}._swimlaneToggle_eilh5_40:hover,._swimlaneToggle_eilh5_40:focus-visible{color:var(--accent-light)}._swimlaneToggle_eilh5_40:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}._board_eilh5_1{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:.6rem;display:grid;overflow-x:auto}._column_eilh5_69{background:var(--surface-panel);border-radius:var(--radius);flex-direction:column;min-height:200px;padding:.5rem;display:flex}._columnHeader_eilh5_77{justify-content:space-between;align-items:center;gap:var(--space-2);margin:.2rem .4rem .5rem;display:flex}._column_eilh5_69 h2{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin:0}._cards_eilh5_91{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}._card_eilh5_91{background:var(--surface-card);border:1px solid var(--border);border-left:3px solid var(--border-strong);font-size:var(--text-sm);border-radius:.5rem;overflow:hidden}._card_eilh5_91:hover,._card_eilh5_91:focus-within{border-color:var(--accent)}._cardLink_eilh5_110{min-height:100%;color:var(--ink);transition:background var(--motion-fast) ease;padding:.5rem;text-decoration:none;display:block}._cardLink_eilh5_110:hover{background:var(--surface-inset);text-decoration:none}._cardLink_eilh5_110:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}._cardRef_eilh5_126{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);margin-bottom:.15rem;display:block}._cardTitle_eilh5_133{color:var(--ink);margin-bottom:.25rem;font-weight:600;display:block}._cardMeta_eilh5_139{flex-wrap:wrap;align-items:center;gap:.3rem;margin-top:.2rem;display:flex}._metaIcon_eilh5_146{flex:none;width:.75rem;height:.75rem}._cardStats_eilh5_151{color:var(--ink-muted);margin-top:.3rem;font-size:.7rem}._childRun_eilh5_156{border-radius:var(--radius-sm);background:var(--surface-inset);border:1px solid var(--border);color:var(--ink-muted);font-size:var(--text-xs);grid-template-columns:auto 1fr;align-items:center;gap:.25rem .45rem;margin-top:.45rem;padding:.4rem;display:grid}._childRunDot_eilh5_169{background:var(--accent);border-radius:50%;width:.48rem;height:.48rem;box-shadow:0 0 0 3px #2dd4bf24}._childRunDot_eilh5_169[data-active-run=true]{animation:1.5s ease-out infinite _active-run-pulse_eilh5_1;box-shadow:0 0 #86efac99}@keyframes _active-run-pulse_eilh5_1{70%{box-shadow:0 0 0 .38rem #86efac00}to{box-shadow:0 0 #86efac00}}._childRunTitle_eilh5_188{color:var(--ink);font-weight:650}._childRunMeta_eilh5_192{color:var(--ink-muted)}._columnToggle_eilh5_195{border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:1.65rem;height:1.65rem;color:var(--ink-muted);cursor:pointer;font-size:var(--text-base);background:0 0;flex:none;justify-content:center;align-items:center;line-height:1;display:none}._finishedColumnToggle_eilh5_210{display:inline-flex}._columnToggle_eilh5_195:hover{border-color:var(--accent);color:var(--accent-light)}._filters_eilh5_217{flex-wrap:wrap;align-items:end;gap:.6rem;margin-bottom:1rem;display:flex}._filters_eilh5_217 label{color:var(--ink-muted);font-weight:600;font-size:var(--text-sm);gap:.25rem;display:grid}._filters_eilh5_217 input,._filters_eilh5_217 select{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.35rem;color:var(--ink);font:inherit;padding-inline:.55rem}._filters_eilh5_217 input:focus,._filters_eilh5_217 select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2dd4bf26}._detail_eilh5_247{gap:var(--space-3);display:grid}._detail_eilh5_247>h2{margin:0}._summary_eilh5_254{font-size:var(--text-sm);grid-template-columns:max-content 1fr;align-items:baseline;gap:.35rem .7rem;margin:0;display:grid}._summary_eilh5_254 dt{color:var(--ink-muted);margin:0}._summary_eilh5_254 dd{overflow-wrap:anywhere;min-width:0;margin:0}._overviewLayout_eilh5_271{gap:var(--space-5);grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;display:grid}._overviewSidebar_eilh5_277{gap:var(--space-3);grid-column:2;min-width:0;display:grid}._overviewMain_eilh5_283{grid-area:1/1;min-width:0}._sidebarSectionTitle_eilh5_288{font-size:var(--text-sm)}._resourceList_eilh5_291{margin:0 0 var(--space-4);gap:var(--space-2);flex-direction:column;padding:0;list-style:none;display:flex}._resourceCard_eilh5_299{padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-card);color:inherit;flex-direction:column;gap:.35rem;text-decoration:none;display:flex}a._resourceCard_eilh5_299:hover{border-color:var(--accent);text-decoration:none}._resourceCardTop_eilh5_314{align-items:center;gap:var(--space-2);display:flex}._resourceCardIcon_eilh5_319{color:var(--ink-muted);flex:none}._resourceCardTitle_eilh5_323{min-width:0;font-weight:600;font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}._resourceCardExt_eilh5_332{color:var(--ink-muted);opacity:0;flex:none}._resourceCard_eilh5_299:hover ._resourceCardExt_eilh5_332{opacity:1}._resourceCardMeta_eilh5_340{font-size:var(--text-sm);padding-left:calc(18px + var(--space-2));flex-wrap:wrap;align-items:baseline;gap:.4rem;display:flex}._resourceId_eilh5_348{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);overflow-wrap:anywhere}._eventList_eilh5_354{flex-direction:column;gap:.45rem;margin:1rem 0;padding:0;list-style:none;display:flex}._event_eilh5_354{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.25rem;overflow:hidden}._event_eilh5_354:hover{border-color:var(--border-strong)}._event_eilh5_354 time{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs)}._eventType_eilh5_377{font-weight:650;font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._eventId_eilh5_385{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._toolbar_eilh5_394{flex-wrap:wrap;align-items:center;gap:.7rem;display:flex}._modalBackdrop_eilh5_400{background:var(--brand-darker);padding:var(--space-4);z-index:10;place-items:center;display:grid;position:fixed;inset:0}._modal_eilh5_400{background:var(--surface-panel);border:1px solid var(--border-strong);box-shadow:var(--shadow);color:var(--ink);border-radius:var(--radius);width:100%;max-width:none;height:100%;max-height:none;padding:var(--space-4);overflow:auto}._modalHeader_eilh5_423{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}._modalRef_eilh5_430{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-sm)}._modalClose_eilh5_435{appearance:none;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink);cursor:pointer;font:inherit;font-size:var(--text-sm);padding:.35rem .7rem;font-weight:700}._modalClose_eilh5_435:hover{border-color:var(--accent-light);color:var(--accent-light)}._tiles_eilh5_451{margin-bottom:var(--space-4);flex-wrap:wrap;gap:.6rem;display:flex}@media (width<=42rem){._overviewLayout_eilh5_271{grid-template-columns:minmax(0,1fr)}._overviewSidebar_eilh5_277,._overviewMain_eilh5_283{grid-area:auto/1}._resourceList_eilh5_291>li,._resourceCard_eilh5_299,._resourceCardTop_eilh5_314{min-width:0}._resourceCardTitle_eilh5_323{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;overflow:visible}._resourceCardExt_eilh5_332{opacity:1}._board_eilh5_1{display:block;overflow:visible}._column_eilh5_69{min-height:unset;margin-bottom:.75rem}._columnToggle_eilh5_195{display:inline-flex}._eventId_eilh5_385{display:none}._modalBackdrop_eilh5_400{background:0 0;padding:0;display:block;position:static}._modal_eilh5_400{box-shadow:none;border:0;width:auto;height:auto;max-height:none;padding:0}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}._transcript_eilh5_516{margin:var(--space-3) 0 0;padding:0;list-style:none}._transcriptEntry_eilh5_521{background:var(--surface-inset);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:.75rem;overflow:hidden}._transcriptHead_eilh5_528{gap:var(--space-3);color:var(--ink-muted);background:var(--surface-panel);border-bottom:1px solid var(--border);font-family:var(--font-mono);font-size:var(--text-xs);padding:.45rem .6rem;display:flex}._transcriptText_eilh5_538{white-space:pre-wrap;font-family:var(--font-mono);background:0 0;margin:0;padding:.6rem;font-size:.76rem;overflow-x:auto}._transcriptLayout_eilh5_547{gap:var(--space-4);margin-top:var(--space-3);grid-template-columns:minmax(15rem,22rem) minmax(0,1fr);display:grid}._transcriptGroups_eilh5_553{align-content:start;align-self:start;gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}._transcriptGroup_eilh5_553{width:100%;padding:var(--space-2);color:var(--ink);text-align:left;background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;font:inherit;font-size:var(--text-xs);overflow-wrap:anywhere;gap:.2rem;display:grid}._transcriptGroup_eilh5_553:hover,._transcriptGroup_eilh5_553[aria-pressed=true]{border-color:var(--accent);background:var(--surface-inset)}._transcriptConversation_eilh5_582{min-width:0}._transcriptFilters_eilh5_585{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}._transcriptFilters_eilh5_585 label{align-items:center;gap:var(--space-2);color:var(--ink-muted);font-size:var(--text-sm);display:flex}._transcriptFilters_eilh5_585 select{color:var(--ink);background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit}._transcriptInput_eilh5_605,._transcriptAgent_eilh5_606{border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}._transcriptInput_eilh5_605{background:var(--surface-inset);border-left:3px solid var(--accent);margin-left:12%}._transcriptAgent_eilh5_606{background:var(--surface-card);border-left:3px solid var(--border-strong);margin-right:12%}._transcriptRunSeparator_eilh5_621{align-items:center;gap:var(--space-2);margin:var(--space-3) 0;color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);display:flex}._transcriptRunSeparator_eilh5_621:before,._transcriptRunSeparator_eilh5_621:after{content:"";background:var(--border);flex:1;height:1px}._eventButton_eilh5_638{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:minmax(11rem,14rem) minmax(0,1fr) minmax(8rem,18rem) 2.4rem;align-items:center;gap:.65rem;padding:.45rem .65rem;display:grid}._eventType_eilh5_377{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;overflow:visible}@media (width<=42rem){._transcriptLayout_eilh5_547{grid-template-columns:minmax(0,1fr)}._transcriptInput_eilh5_605,._transcriptAgent_eilh5_606{margin-inline:0}._eventButton_eilh5_638{grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) 2.2rem}._eventType_eilh5_377{text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;grid-area:2/1/auto/-1;overflow:hidden}}._eventChevron_eilh5_678{color:var(--ink-muted);justify-self:end}._eventPayload_eilh5_682{border-top:1px solid var(--border);overflow-x:auto}._eventPayload_eilh5_682 pre{padding:var(--space-3);white-space:pre;margin:0}._tabs_eilh5_691{padding:.4rem var(--space-4) 0;border-bottom:1px solid var(--border);background:0 0;gap:.25rem;margin:0;display:flex}._tabs_eilh5_691 button{color:var(--nav-ink-idle);font:inherit;white-space:nowrap;cursor:pointer;transition:color var(--motion-fast) ease;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:.4rem .7rem .45rem}._tabs_eilh5_691 button:hover{color:var(--ink-inverse)}._tabs_eilh5_691 button[aria-selected=true]{color:var(--accent-light);border-bottom-color:var(--accent);font-weight:700}._actionBar_eilh5_720{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}._dangerButton_eilh5_726{border-color:var(--bad);color:var(--bad)}._diagram_1i18p_1{box-sizing:border-box;scrollbar-color:transparent transparent;scrollbar-width:thin;inline-size:100%;min-inline-size:0;max-inline-size:100%;overflow:auto visible}._diagram_1i18p_1::-webkit-scrollbar{height:.35rem}._diagram_1i18p_1::-webkit-scrollbar-button{width:0;height:0;display:none}._diagram_1i18p_1::-webkit-scrollbar-thumb{background:padding-box padding-box;border:2px solid #0000;border-radius:999px}._diagram_1i18p_1:hover,._diagram_1i18p_1:focus-within{scrollbar-color:var(--border-strong) transparent}._diagram_1i18p_1:hover::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:padding-box}._diagram_1i18p_1:focus-within::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:padding-box}._diagram_1i18p_1[data-direction=RIGHT]{cursor:grab;touch-action:pan-y}._dragging_1i18p_45{-webkit-user-select:none;user-select:none;cursor:grabbing!important}._canvas_1i18p_50{min-width:var(--graph-width);min-height:var(--graph-height);position:relative}._canvasLoading_1i18p_56{visibility:hidden}._edges_1i18p_60{width:var(--graph-width);height:var(--graph-height);pointer-events:none;z-index:0;position:absolute;inset:0;overflow:visible}._edges_1i18p_60 path{fill:none;stroke:var(--border-strong,#64748b);stroke-width:1.5px}._edges_1i18p_60 marker path{fill:context-stroke}._edgeActive_1i18p_80 path{stroke:var(--accent);stroke-width:2px}._edgeLabel_1i18p_85{z-index:2;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink-muted);font-size:var(--text-xs);pointer-events:none;opacity:0;transition:opacity var(--motion-fast) ease;padding:.1rem .35rem;line-height:1.2;position:absolute;transform:translate(-50%,-50%)}._edgeLabelActive_1i18p_101{opacity:1}._stage_1i18p_105{z-index:1;position:absolute}._stage_1i18p_105:hover,._stage_1i18p_105:focus-within{border-color:var(--border);border-left-color:var(--border-strong)}._stageCard_1i18p_116{grid-template-columns:1fr auto;gap:.2rem;padding:.5rem;display:grid}._stageCard_1i18p_116:hover{background:var(--surface-card)}._stageTitleRow_1i18p_127{align-items:center;gap:.4rem;display:flex}._stageCard_1i18p_116 button{align-self:start}._chips_1i18p_137,._metrics_1i18p_138,._stageTotals_1i18p_139{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}._stageTotals_1i18p_139{color:var(--ink-muted);grid-column:1/-1;font-size:.7rem}._children_1i18p_152{gap:.3rem;padding:.4rem;display:grid}._childCard_1i18p_158{align-items:start;gap:.2rem .35rem;margin-top:0;padding:.35rem}._childCardWithoutStatus_1i18p_165{grid-template-columns:1fr}._childCard_1i18p_158:hover,._childCard_1i18p_158:focus-within{border-color:var(--accent)}._childStatusDot_1i18p_174{align-self:start;margin-top:.22rem}._collapsedStatusDot_1i18p_179{justify-self:end}._collapsedStatusDots_1i18p_183{justify-self:end;gap:.35rem;display:flex}._childTitle_1i18p_189{align-items:center;gap:.35rem;display:flex}._childKindIcon_1i18p_195{width:.72rem;color:var(--ink-muted)}._metrics_1i18p_138,._childCard_1i18p_158 ._metrics_1i18p_138{color:var(--ink-muted);font-size:var(--text-xs);margin-top:.2rem}._childStatusDot_1i18p_174[data-status=pending]{background:var(--border-strong);box-shadow:none}._childStatusDot_1i18p_174[data-status=active]{background:var(--good)}._childStatusDot_1i18p_174[data-status=completed],._childStatusDot_1i18p_174[data-status=waiting],._childStatusDot_1i18p_174[data-status=blocked],._childStatusDot_1i18p_174[data-status=failed]{box-sizing:border-box;box-shadow:none;background:0 0}._childStatusDot_1i18p_174[data-status=completed]{border:2px solid var(--good)}._childStatusDot_1i18p_174[data-status=waiting],._childStatusDot_1i18p_174[data-status=blocked]{border:2px solid var(--warning)}._childStatusDot_1i18p_174[data-status=failed]{border:2px solid var(--bad)}._childStatusDot_1i18p_174[data-active-run=true]{animation:1.5s ease-out infinite _active-run-pulse_1i18p_1;box-shadow:0 0 #86efac99}@keyframes _active-run-pulse_1i18p_1{70%{box-shadow:0 0 0 .38rem #86efac00}to{box-shadow:0 0 #86efac00}}._srOnly_1i18p_253{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}._canvas_1i18p_50[data-direction=DOWN]{align-items:start;gap:.5rem;min-width:100%;min-height:0;display:grid}._canvas_1i18p_50[data-direction=DOWN] ._edges_1i18p_60,._canvas_1i18p_50[data-direction=DOWN] ._edgeLabel_1i18p_85{display:none}._canvas_1i18p_50[data-direction=DOWN] ._stage_1i18p_105{width:100%;position:static}._canvas_1i18p_50[data-direction=DOWN] ._stageCard_1i18p_116{cursor:pointer;min-height:0}._canvas_1i18p_50[data-direction=DOWN] ._stageCard_1i18p_116 button{display:none}._canvas_1i18p_50[data-direction=DOWN] ._childCard_1i18p_158:hover,._canvas_1i18p_50[data-direction=DOWN] ._childCard_1i18p_158:focus-within{border-color:var(--border)}:root{--wake-ink-950:#14161a;--wake-ink-900:#1a1d23;--wake-ink-850:#22262e;--wake-ink-800:#101216;--wake-ink-700:#2c313a;--wake-ink-600:#3a4150;--wake-grey-300:#cbd5e1;--wake-grey-400:#9aa2ad;--wake-grey-100:#e8e8e8;--wake-white:#fff;--wake-teal-700:#103a37;--wake-teal-650:#134e4a;--wake-teal-600:#0f766e;--wake-mint-400:#2dd4bf;--wake-mint-300:#5eead4;--wake-green-300:#7fe3a3;--wake-green-900:#1f3d2c;--wake-blue-300:#7fb3ff;--wake-blue-900:#1f3350;--wake-purple-300:#c79bff;--wake-purple-900:#2d1f50;--wake-amber-300:#ffcf7f;--wake-amber-900:#4a3510;--wake-red-300:#ff8f7f;--wake-red-900:#3d1f1f;--wake-slate-400:#9aa2ad;--wake-slate-900:#252830;--surface:var(--wake-ink-950);--surface-panel:var(--wake-ink-900);--surface-card:var(--wake-ink-850);--surface-inset:var(--wake-ink-800);--border:var(--wake-ink-700);--border-strong:var(--wake-ink-600);--ink:var(--wake-grey-100);--ink-muted:var(--wake-grey-400);--ink-inverse:var(--wake-white);--brand:var(--wake-teal-600);--brand-dark:var(--wake-teal-650);--brand-darker:var(--wake-teal-700);--nav-ink-idle:var(--wake-grey-300);--accent:var(--wake-mint-400);--accent-light:var(--wake-mint-300);--good:var(--wake-green-300);--warning:var(--wake-amber-300);--bad:var(--wake-red-300);--cond-ready-fg:var(--wake-green-300);--cond-ready-bg:var(--wake-green-900);--cond-scheduled-fg:var(--wake-blue-300);--cond-scheduled-bg:var(--wake-blue-900);--cond-active-fg:var(--wake-purple-300);--cond-active-bg:var(--wake-purple-900);--cond-needs-input-fg:var(--wake-amber-300);--cond-needs-input-bg:var(--wake-amber-900);--cond-error-fg:var(--wake-red-300);--cond-error-bg:var(--wake-red-900);--cond-finished-fg:var(--wake-slate-400);--cond-finished-bg:var(--wake-slate-900);--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--radius:.65rem;--radius-sm:.4rem;--shadow:0 1px 3px #00000059;--focus-ring:var(--wake-mint-300);--font-sans:Inter, ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Consolas, monospace;--text-xs:.72rem;--text-sm:.8rem;--text-base:1rem;--text-lg:1.15rem;--content-width:76rem;--motion-fast:.12s}*{box-sizing:border-box}html{color:var(--ink);background:var(--surface);font-family:var(--font-sans);line-height:1.5}body{margin:0}a{color:var(--accent-light);text-underline-offset:.18em;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
|
|
1
|
+
._shell_c5v2a_1{grid-template-rows:auto auto auto 1fr;min-height:100vh;display:grid}._header_c5v2a_6{align-items:center;gap:var(--space-2);padding:.55rem var(--space-4);background:var(--brand);color:var(--ink-inverse);display:flex}._brand_c5v2a_14{align-items:center;gap:var(--space-2);color:var(--ink-inverse);font-family:-apple-system,Segoe UI,Roboto,sans-serif;font-weight:700;font-size:var(--text-lg);letter-spacing:.01em;text-decoration:none;display:inline-flex}._brandLogo_c5v2a_25{width:1.75rem;height:1.75rem}._brandVersion_c5v2a_29{color:#ffffffb3;font-family:-apple-system,Segoe UI,Roboto,sans-serif;font-size:.78rem;font-weight:400}._statusBand_c5v2a_35{align-items:center;gap:var(--space-4);padding:.45rem var(--space-4);background:var(--brand-dark);font-size:var(--text-sm);color:var(--ink-inverse);border-top:1px solid #0000002e;flex-wrap:wrap;display:flex}._nav_c5v2a_46{padding:.4rem var(--space-4) 0;background:var(--brand-darker);scrollbar-width:none;-ms-overflow-style:none;border-bottom:1px solid var(--border);gap:.25rem;display:flex;overflow-x:auto}._nav_c5v2a_46::-webkit-scrollbar{display:none}._nav_c5v2a_46 a{color:var(--nav-ink-idle);white-space:nowrap;transition:color var(--motion-fast) ease;border-bottom:2px solid #0000;margin-bottom:-1px;padding:.4rem .7rem .45rem;text-decoration:none}._nav_c5v2a_46 a:hover{color:var(--ink-inverse);text-decoration:none}._nav_c5v2a_46 a[aria-current=page]{color:var(--accent-light);border-bottom-color:var(--accent);font-weight:700}._main_c5v2a_77{width:100%;min-width:0;padding:var(--space-6) var(--space-4);margin:0}._pageHeader_c5v2a_83{justify-content:space-between;align-items:end;gap:var(--space-4);margin-bottom:var(--space-5);display:flex}._pageHeader_c5v2a_83 h1{margin:0}._panel_c5v2a_93{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-4);box-shadow:var(--shadow)}._badge_c5v2a_100{background:var(--surface-card);color:var(--ink);border-radius:999px;align-items:center;gap:.4rem;padding:.2rem .55rem;font-size:.85rem;font-weight:700;display:inline-flex}._badge_c5v2a_100:before{content:"";background:currentColor;border-radius:50%;flex:none;width:.55rem;height:.55rem}._badge_c5v2a_100>span{align-items:center;gap:.3rem;display:inline-flex}._good_c5v2a_124{color:var(--good)}._warning_c5v2a_127{color:var(--warning)}._bad_c5v2a_100{color:var(--bad)}._cold_c5v2a_133{color:#7dd3fc;background:#0e74902e;box-shadow:inset 0 0 0 1px #7dd3fc59}._info_c5v2a_138{color:var(--accent-light)}._button_c5v2a_141{appearance:none;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink);font:inherit;font-size:var(--text-sm);cursor:pointer;padding:.22rem .55rem;font-weight:600}._button_c5v2a_141:hover:not(:disabled){border-color:var(--accent-light);color:var(--accent-light)}._button_c5v2a_141:disabled{opacity:.62;cursor:wait}._secondary_c5v2a_161{background:0 0}._tableWrap_c5v2a_164{overflow-x:auto}._table_c5v2a_164{border-collapse:collapse;width:100%;font-size:var(--text-sm)}._table_c5v2a_164 caption{text-align:left;font-weight:700;font-size:var(--text-sm);padding-bottom:.5rem}._table_c5v2a_164 th,._table_c5v2a_164 td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.25rem .45rem;line-height:1.3}._table_c5v2a_164 th{color:var(--ink-muted);font-weight:600;font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.03em}._state_c5v2a_193{border:1px dashed var(--border);border-radius:var(--radius);padding:var(--space-5);color:var(--ink-muted)}._error_c5v2a_199{border-color:var(--bad);color:var(--bad)}._stale_c5v2a_203{color:var(--warning);font-size:.85rem}._statusActions_c5v2a_207{align-items:center;gap:.6rem;display:flex}._tickButton_c5v2a_212{border:1px solid var(--accent);color:var(--accent-light);background:#2dd4bf24;font-weight:700}._tickButton_c5v2a_212:hover:not(:disabled){border-color:var(--accent-light);background:#2dd4bf3d}._pauseControl_c5v2a_222{border:1px solid var(--bad);color:var(--warning);border-radius:var(--radius-sm);font-size:var(--text-sm);background:#dc262629;align-items:center;gap:.4rem;padding:.2rem .55rem;font-weight:700;display:inline-flex}._pauseControl_c5v2a_222 button{appearance:none;border:1px solid var(--bad);border-radius:var(--radius-sm);color:inherit;font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;padding:.1rem .4rem;font-weight:700}._pauseControl_c5v2a_222 button:hover:not(:disabled){background:#dc26263d}._pauseControl_c5v2a_222 button:disabled{opacity:.62;cursor:wait}._pagination_c5v2a_253{justify-content:flex-end;gap:.6rem;margin-block:1rem;display:flex}._live_c5v2a_259{min-height:1.4rem}._header_c5v2a_6 ._live_c5v2a_259{color:var(--warning)}._json_c5v2a_265{background:var(--surface-inset);color:var(--ink);padding:var(--space-3);border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:.75rem;overflow:auto}._chip_c5v2a_274{background:var(--border);color:var(--ink);border-radius:var(--radius-sm);font-size:var(--text-xs);align-items:center;gap:.25rem;margin-right:.2rem;padding:.05rem .35rem;display:inline-flex}._chipOutline_c5v2a_285{border:1px solid var(--border-strong);color:var(--ink-muted);background:0 0}._chipOutline_c5v2a_285._good_c5v2a_124{color:var(--good)}._chipOutline_c5v2a_285._warning_c5v2a_127{color:var(--warning)}._chipOutline_c5v2a_285._bad_c5v2a_100{color:var(--bad)}._chipOutline_c5v2a_285._cold_c5v2a_133{color:#7dd3fc}._chipOutline_c5v2a_285._info_c5v2a_138{color:var(--accent-light)}._tile_c5v2a_305{background:var(--surface-panel);border-radius:var(--radius);min-width:120px;padding:.6rem .9rem}._tileValue_c5v2a_311{font-size:1.3rem;font-weight:700}._tileLabel_c5v2a_315{color:var(--ink-muted);font-size:var(--text-xs);text-transform:uppercase}@media (width<=42rem){._header_c5v2a_6{padding-inline:var(--space-3)}._nav_c5v2a_46{padding-inline:var(--space-2)}._main_c5v2a_77{width:100%;padding:var(--space-4) var(--space-2) 0}._pageHeader_c5v2a_83{flex-direction:column;align-items:start}}._boardControls_eilh5_1{justify-content:flex-end;margin-bottom:.75rem;display:flex}._boardControls_eilh5_1 label{color:var(--ink-muted);font-size:var(--text-sm);align-items:center;gap:.4rem;font-weight:600;display:flex}._boardControls_eilh5_1 select{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.1rem;color:var(--ink);font:inherit;padding-inline:.5rem}._boardControls_eilh5_1 select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2dd4bf26}._swimlanes_eilh5_28{gap:1rem;display:grid}._swimlaneHeader_eilh5_32{font-size:var(--text-sm);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin:0 0 .4rem;font-weight:700}._swimlaneToggle_eilh5_40{justify-content:space-between;align-items:center;gap:var(--space-2);width:100%;color:inherit;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:0;display:flex}._swimlaneToggle_eilh5_40:hover,._swimlaneToggle_eilh5_40:focus-visible{color:var(--accent-light)}._swimlaneToggle_eilh5_40:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}._board_eilh5_1{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:.6rem;display:grid;overflow-x:auto}._column_eilh5_69{background:var(--surface-panel);border-radius:var(--radius);flex-direction:column;min-height:200px;padding:.5rem;display:flex}._columnHeader_eilh5_77{justify-content:space-between;align-items:center;gap:var(--space-2);margin:.2rem .4rem .5rem;display:flex}._column_eilh5_69 h2{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin:0}._cards_eilh5_91{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}._card_eilh5_91{background:var(--surface-card);border:1px solid var(--border);border-left:3px solid var(--border-strong);font-size:var(--text-sm);border-radius:.5rem;overflow:hidden}._card_eilh5_91:hover,._card_eilh5_91:focus-within{border-color:var(--accent)}._cardLink_eilh5_110{min-height:100%;color:var(--ink);transition:background var(--motion-fast) ease;padding:.5rem;text-decoration:none;display:block}._cardLink_eilh5_110:hover{background:var(--surface-inset);text-decoration:none}._cardLink_eilh5_110:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}._cardRef_eilh5_126{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);margin-bottom:.15rem;display:block}._cardTitle_eilh5_133{color:var(--ink);margin-bottom:.25rem;font-weight:600;display:block}._cardMeta_eilh5_139{flex-wrap:wrap;align-items:center;gap:.3rem;margin-top:.2rem;display:flex}._metaIcon_eilh5_146{flex:none;width:.75rem;height:.75rem}._cardStats_eilh5_151{color:var(--ink-muted);margin-top:.3rem;font-size:.7rem}._childRun_eilh5_156{border-radius:var(--radius-sm);background:var(--surface-inset);border:1px solid var(--border);color:var(--ink-muted);font-size:var(--text-xs);grid-template-columns:auto 1fr;align-items:center;gap:.25rem .45rem;margin-top:.45rem;padding:.4rem;display:grid}._childRunDot_eilh5_169{background:var(--accent);border-radius:50%;width:.48rem;height:.48rem;box-shadow:0 0 0 3px #2dd4bf24}._childRunDot_eilh5_169[data-active-run=true]{animation:1.5s ease-out infinite _active-run-pulse_eilh5_1;box-shadow:0 0 #86efac99}@keyframes _active-run-pulse_eilh5_1{70%{box-shadow:0 0 0 .38rem #86efac00}to{box-shadow:0 0 #86efac00}}._childRunTitle_eilh5_188{color:var(--ink);font-weight:650}._childRunMeta_eilh5_192{color:var(--ink-muted)}._columnToggle_eilh5_195{border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:1.65rem;height:1.65rem;color:var(--ink-muted);cursor:pointer;font-size:var(--text-base);background:0 0;flex:none;justify-content:center;align-items:center;line-height:1;display:none}._finishedColumnToggle_eilh5_210{display:inline-flex}._columnToggle_eilh5_195:hover{border-color:var(--accent);color:var(--accent-light)}._filters_eilh5_217{flex-wrap:wrap;align-items:end;gap:.6rem;margin-bottom:1rem;display:flex}._filters_eilh5_217 label{color:var(--ink-muted);font-weight:600;font-size:var(--text-sm);gap:.25rem;display:grid}._filters_eilh5_217 input,._filters_eilh5_217 select{background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.35rem;color:var(--ink);font:inherit;padding-inline:.55rem}._filters_eilh5_217 input:focus,._filters_eilh5_217 select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2dd4bf26}._detail_eilh5_247{gap:var(--space-3);display:grid}._detail_eilh5_247>h2{margin:0}._summary_eilh5_254{font-size:var(--text-sm);grid-template-columns:max-content 1fr;align-items:baseline;gap:.35rem .7rem;margin:0;display:grid}._summary_eilh5_254 dt{color:var(--ink-muted);margin:0}._summary_eilh5_254 dd{overflow-wrap:anywhere;min-width:0;margin:0}._overviewLayout_eilh5_271{gap:var(--space-5);grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;display:grid}._overviewSidebar_eilh5_277{gap:var(--space-3);grid-column:2;min-width:0;display:grid}._overviewMain_eilh5_283{grid-area:1/1;min-width:0}._sidebarSectionTitle_eilh5_288{font-size:var(--text-sm)}._resourceList_eilh5_291{margin:0 0 var(--space-4);gap:var(--space-2);flex-direction:column;padding:0;list-style:none;display:flex}._resourceCard_eilh5_299{padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-card);color:inherit;flex-direction:column;gap:.35rem;text-decoration:none;display:flex}a._resourceCard_eilh5_299:hover{border-color:var(--accent);text-decoration:none}._resourceCardTop_eilh5_314{align-items:center;gap:var(--space-2);display:flex}._resourceCardIcon_eilh5_319{color:var(--ink-muted);flex:none}._resourceCardTitle_eilh5_323{min-width:0;font-weight:600;font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}._resourceCardExt_eilh5_332{color:var(--ink-muted);opacity:0;flex:none}._resourceCard_eilh5_299:hover ._resourceCardExt_eilh5_332{opacity:1}._resourceCardMeta_eilh5_340{font-size:var(--text-sm);padding-left:calc(18px + var(--space-2));flex-wrap:wrap;align-items:baseline;gap:.4rem;display:flex}._resourceId_eilh5_348{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);overflow-wrap:anywhere}._eventList_eilh5_354{flex-direction:column;gap:.45rem;margin:1rem 0;padding:0;list-style:none;display:flex}._event_eilh5_354{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-sm);min-height:2.25rem;overflow:hidden}._event_eilh5_354:hover{border-color:var(--border-strong)}._event_eilh5_354 time{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs)}._eventType_eilh5_377{font-weight:650;font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._eventId_eilh5_385{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._toolbar_eilh5_394{flex-wrap:wrap;align-items:center;gap:.7rem;display:flex}._modalBackdrop_eilh5_400{background:var(--brand-darker);padding:var(--space-4);z-index:10;place-items:center;display:grid;position:fixed;inset:0}._modal_eilh5_400{background:var(--surface-panel);border:1px solid var(--border-strong);box-shadow:var(--shadow);color:var(--ink);border-radius:var(--radius);width:100%;max-width:none;height:100%;max-height:none;padding:var(--space-4);overflow:auto}._modalHeader_eilh5_423{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}._modalRef_eilh5_430{color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-sm)}._modalClose_eilh5_435{appearance:none;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink);cursor:pointer;font:inherit;font-size:var(--text-sm);padding:.35rem .7rem;font-weight:700}._modalClose_eilh5_435:hover{border-color:var(--accent-light);color:var(--accent-light)}._tiles_eilh5_451{margin-bottom:var(--space-4);flex-wrap:wrap;gap:.6rem;display:flex}@media (width<=42rem){._overviewLayout_eilh5_271{grid-template-columns:minmax(0,1fr)}._overviewSidebar_eilh5_277,._overviewMain_eilh5_283{grid-area:auto/1}._resourceList_eilh5_291>li,._resourceCard_eilh5_299,._resourceCardTop_eilh5_314{min-width:0}._resourceCardTitle_eilh5_323{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;overflow:visible}._resourceCardExt_eilh5_332{opacity:1}._board_eilh5_1{display:block;overflow:visible}._column_eilh5_69{min-height:unset;margin-bottom:.75rem}._columnToggle_eilh5_195{display:inline-flex}._eventId_eilh5_385{display:none}._modalBackdrop_eilh5_400{background:0 0;padding:0;display:block;position:static}._modal_eilh5_400{box-shadow:none;border:0;width:auto;height:auto;max-height:none;padding:0}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}._transcript_eilh5_516{margin:var(--space-3) 0 0;padding:0;list-style:none}._transcriptEntry_eilh5_521{background:var(--surface-inset);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:.75rem;overflow:hidden}._transcriptHead_eilh5_528{gap:var(--space-3);color:var(--ink-muted);background:var(--surface-panel);border-bottom:1px solid var(--border);font-family:var(--font-mono);font-size:var(--text-xs);padding:.45rem .6rem;display:flex}._transcriptText_eilh5_538{white-space:pre-wrap;font-family:var(--font-mono);background:0 0;margin:0;padding:.6rem;font-size:.76rem;overflow-x:auto}._transcriptLayout_eilh5_547{gap:var(--space-4);margin-top:var(--space-3);grid-template-columns:minmax(15rem,22rem) minmax(0,1fr);display:grid}._transcriptGroups_eilh5_553{align-content:start;align-self:start;gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}._transcriptGroup_eilh5_553{width:100%;padding:var(--space-2);color:var(--ink);text-align:left;background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;font:inherit;font-size:var(--text-xs);overflow-wrap:anywhere;gap:.2rem;display:grid}._transcriptGroup_eilh5_553:hover,._transcriptGroup_eilh5_553[aria-pressed=true]{border-color:var(--accent);background:var(--surface-inset)}._transcriptConversation_eilh5_582{min-width:0}._transcriptFilters_eilh5_585{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}._transcriptFilters_eilh5_585 label{align-items:center;gap:var(--space-2);color:var(--ink-muted);font-size:var(--text-sm);display:flex}._transcriptFilters_eilh5_585 select{color:var(--ink);background:var(--surface-panel);border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit}._transcriptInput_eilh5_605,._transcriptAgent_eilh5_606{border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}._transcriptInput_eilh5_605{background:var(--surface-inset);border-left:3px solid var(--accent);margin-left:12%}._transcriptAgent_eilh5_606{background:var(--surface-card);border-left:3px solid var(--border-strong);margin-right:12%}._transcriptRunSeparator_eilh5_621{align-items:center;gap:var(--space-2);margin:var(--space-3) 0;color:var(--ink-muted);font-family:var(--font-mono);font-size:var(--text-xs);display:flex}._transcriptRunSeparator_eilh5_621:before,._transcriptRunSeparator_eilh5_621:after{content:"";background:var(--border);flex:1;height:1px}._eventButton_eilh5_638{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:minmax(11rem,14rem) minmax(0,1fr) minmax(8rem,18rem) 2.4rem;align-items:center;gap:.65rem;padding:.45rem .65rem;display:grid}._eventType_eilh5_377{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;overflow:visible}@media (width<=42rem){._transcriptLayout_eilh5_547{grid-template-columns:minmax(0,1fr)}._transcriptInput_eilh5_605,._transcriptAgent_eilh5_606{margin-inline:0}._eventButton_eilh5_638{grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) 2.2rem}._eventType_eilh5_377{text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;grid-area:2/1/auto/-1;overflow:hidden}}._eventChevron_eilh5_678{color:var(--ink-muted);justify-self:end}._eventPayload_eilh5_682{border-top:1px solid var(--border);overflow-x:auto}._eventPayload_eilh5_682 pre{padding:var(--space-3);white-space:pre;margin:0}._tabs_eilh5_691{padding:.4rem var(--space-4) 0;border-bottom:1px solid var(--border);background:0 0;gap:.25rem;margin:0;display:flex}._tabs_eilh5_691 button{color:var(--nav-ink-idle);font:inherit;white-space:nowrap;cursor:pointer;transition:color var(--motion-fast) ease;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:.4rem .7rem .45rem}._tabs_eilh5_691 button:hover{color:var(--ink-inverse)}._tabs_eilh5_691 button[aria-selected=true]{color:var(--accent-light);border-bottom-color:var(--accent);font-weight:700}._actionBar_eilh5_720{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}._dangerButton_eilh5_726{border-color:var(--bad);color:var(--bad)}._diagram_1r90h_1{box-sizing:border-box;scrollbar-color:transparent transparent;scrollbar-width:thin;inline-size:100%;min-inline-size:0;max-inline-size:100%;overflow:auto visible}._diagram_1r90h_1::-webkit-scrollbar{height:.35rem}._diagram_1r90h_1::-webkit-scrollbar-button{width:0;height:0;display:none}._diagram_1r90h_1::-webkit-scrollbar-thumb{background:padding-box padding-box;border:2px solid #0000;border-radius:999px}._diagram_1r90h_1:hover,._diagram_1r90h_1:focus-within{scrollbar-color:var(--border-strong) transparent}._diagram_1r90h_1:hover::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:padding-box}._diagram_1r90h_1:focus-within::-webkit-scrollbar-thumb{background:var(--border-strong);background-clip:padding-box}._diagram_1r90h_1[data-direction=RIGHT]{cursor:grab;touch-action:pan-y}._dragging_1r90h_45{-webkit-user-select:none;user-select:none;cursor:grabbing!important}._canvas_1r90h_50{min-width:var(--graph-width);min-height:var(--graph-height);position:relative}._canvasLoading_1r90h_56{visibility:hidden}._edges_1r90h_60{width:var(--graph-width);height:var(--graph-height);pointer-events:none;z-index:0;position:absolute;inset:0;overflow:visible}._edges_1r90h_60 path{fill:none;stroke:var(--border-strong,#64748b);stroke-width:1.5px}._edges_1r90h_60 marker path{fill:context-stroke}._edgeActive_1r90h_80 path{stroke:var(--accent);stroke-width:2px}._edgeLabel_1r90h_85{z-index:2;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--ink-muted);font-size:var(--text-xs);pointer-events:none;opacity:0;transition:opacity var(--motion-fast) ease;padding:.1rem .35rem;line-height:1.2;position:absolute;transform:translate(-50%,-50%)}._edgeLabelActive_1r90h_101{opacity:1}._stage_1r90h_105{z-index:1;position:absolute}._stage_1r90h_105:hover,._stage_1r90h_105:focus-within{border-color:var(--border);border-left-color:var(--border-strong)}._stageCard_1r90h_116{grid-template-columns:1fr auto;gap:.2rem;padding:.5rem;display:grid}._stageCard_1r90h_116:hover{background:var(--surface-card)}._stageTitleRow_1r90h_127{align-items:center;gap:.4rem;display:flex}._stageCard_1r90h_116 button{align-self:start}._chips_1r90h_137,._metrics_1r90h_138,._stageTotals_1r90h_139{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}._stageTotals_1r90h_139{color:var(--ink-muted);grid-column:1/-1;font-size:.7rem}._children_1r90h_152{gap:.3rem;padding:.4rem;display:grid}._childCard_1r90h_158{align-items:start;gap:.2rem .35rem;margin-top:0;padding:.35rem}._childCardWithoutStatus_1r90h_165{grid-template-columns:1fr}._childCard_1r90h_158:hover,._childCard_1r90h_158:focus-within{border-color:var(--accent)}._childStatusDot_1r90h_174{align-self:start;margin-top:.22rem}._collapsedStatusDot_1r90h_179{justify-self:end}._collapsedStatusDots_1r90h_183{justify-self:end;gap:.35rem;display:flex}._childTitle_1r90h_189{align-items:center;gap:.35rem;display:flex}._childKindIcon_1r90h_195{width:.72rem;color:var(--ink-muted)}._metrics_1r90h_138,._childCard_1r90h_158 ._metrics_1r90h_138{color:var(--ink-muted);font-size:var(--text-xs);margin-top:.2rem}._childStatusDot_1r90h_174[data-status=pending]{background:var(--border-strong);box-shadow:none}._childStatusDot_1r90h_174[data-status=active]{background:var(--good)}._childStatusDot_1r90h_174[data-status=completed],._childStatusDot_1r90h_174[data-status=waiting],._childStatusDot_1r90h_174[data-status=blocked],._childStatusDot_1r90h_174[data-status=failed],._childStatusDot_1r90h_174[data-status=needs-clarification]{box-sizing:border-box;box-shadow:none;background:0 0}._childStatusDot_1r90h_174[data-status=completed]{border:2px solid var(--good)}._childStatusDot_1r90h_174[data-status=waiting],._childStatusDot_1r90h_174[data-status=blocked]{border:2px solid var(--warning)}._childStatusDot_1r90h_174[data-status=failed]{border:2px solid var(--bad)}._childStatusDot_1r90h_174[data-status=needs-clarification]{border:2px solid var(--accent-light)}._childStatusDot_1r90h_174[data-active-run=true]{animation:1.5s ease-out infinite _active-run-pulse_1r90h_1;box-shadow:0 0 #86efac99}@keyframes _active-run-pulse_1r90h_1{70%{box-shadow:0 0 0 .38rem #86efac00}to{box-shadow:0 0 #86efac00}}._srOnly_1r90h_258{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}._canvas_1r90h_50[data-direction=DOWN]{align-items:start;gap:.5rem;min-width:100%;min-height:0;display:grid}._canvas_1r90h_50[data-direction=DOWN] ._edges_1r90h_60,._canvas_1r90h_50[data-direction=DOWN] ._edgeLabel_1r90h_85{display:none}._canvas_1r90h_50[data-direction=DOWN] ._stage_1r90h_105{width:100%;position:static}._canvas_1r90h_50[data-direction=DOWN] ._stageCard_1r90h_116{cursor:pointer;min-height:0}._canvas_1r90h_50[data-direction=DOWN] ._stageCard_1r90h_116 button{display:none}._canvas_1r90h_50[data-direction=DOWN] ._childCard_1r90h_158:hover,._canvas_1r90h_50[data-direction=DOWN] ._childCard_1r90h_158:focus-within{border-color:var(--border)}:root{--wake-ink-950:#14161a;--wake-ink-900:#1a1d23;--wake-ink-850:#22262e;--wake-ink-800:#101216;--wake-ink-700:#2c313a;--wake-ink-600:#3a4150;--wake-grey-300:#cbd5e1;--wake-grey-400:#9aa2ad;--wake-grey-100:#e8e8e8;--wake-white:#fff;--wake-teal-700:#103a37;--wake-teal-650:#134e4a;--wake-teal-600:#0f766e;--wake-mint-400:#2dd4bf;--wake-mint-300:#5eead4;--wake-green-300:#7fe3a3;--wake-green-900:#1f3d2c;--wake-blue-300:#7fb3ff;--wake-blue-900:#1f3350;--wake-purple-300:#c79bff;--wake-purple-900:#2d1f50;--wake-amber-300:#ffcf7f;--wake-amber-900:#4a3510;--wake-red-300:#ff8f7f;--wake-red-900:#3d1f1f;--wake-slate-400:#9aa2ad;--wake-slate-900:#252830;--surface:var(--wake-ink-950);--surface-panel:var(--wake-ink-900);--surface-card:var(--wake-ink-850);--surface-inset:var(--wake-ink-800);--border:var(--wake-ink-700);--border-strong:var(--wake-ink-600);--ink:var(--wake-grey-100);--ink-muted:var(--wake-grey-400);--ink-inverse:var(--wake-white);--brand:var(--wake-teal-600);--brand-dark:var(--wake-teal-650);--brand-darker:var(--wake-teal-700);--nav-ink-idle:var(--wake-grey-300);--accent:var(--wake-mint-400);--accent-light:var(--wake-mint-300);--good:var(--wake-green-300);--warning:var(--wake-amber-300);--bad:var(--wake-red-300);--cond-ready-fg:var(--wake-green-300);--cond-ready-bg:var(--wake-green-900);--cond-scheduled-fg:var(--wake-blue-300);--cond-scheduled-bg:var(--wake-blue-900);--cond-active-fg:var(--wake-purple-300);--cond-active-bg:var(--wake-purple-900);--cond-needs-input-fg:var(--wake-amber-300);--cond-needs-input-bg:var(--wake-amber-900);--cond-error-fg:var(--wake-red-300);--cond-error-bg:var(--wake-red-900);--cond-finished-fg:var(--wake-slate-400);--cond-finished-bg:var(--wake-slate-900);--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--radius:.65rem;--radius-sm:.4rem;--shadow:0 1px 3px #00000059;--focus-ring:var(--wake-mint-300);--font-sans:Inter, ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Consolas, monospace;--text-xs:.72rem;--text-sm:.8rem;--text-base:1rem;--text-lg:1.15rem;--content-width:76rem;--motion-fast:.12s}*{box-sizing:border-box}html{color:var(--ink);background:var(--surface);font-family:var(--font-sans);line-height:1.5}body{margin:0}a{color:var(--accent-light);text-underline-offset:.18em;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
|