feat(workflow): record steps skipped by when as skipped

This commit is contained in:
sam committed 2026-10-05 20:20:23 +11:00
1 parent cf8868b744
commit 261a50bc40
15 files changed
+93 -25

No files matched your search

+4 -6
View File
@@ -207,8 +207,10 @@ func wrapStep(step StepRecord, body func(context.Context, *TaskContext) error) S
}
return Stage{Name: name, ContinueOnFailure: step.OnFailure == onFailureContinue, Run: func(ctx context.Context, tc *TaskContext) error {
tc.stepResult = StepResult{}
tc.skippedWhen = ""
if step.When != "" && !when.holds(tc) {
tc.Log.Info("step skipped", "step", name, "when", step.When)
tc.skippedWhen = step.When
return nil
}
err := runAttempts(ctx, tc, name, attempts, backoff, body)
@@ -281,13 +283,9 @@ func runBranch(ctx context.Context, tc *TaskContext, stages []Stage) error {
tc.StepID = stepID
runErr := stage.Run(ctx, tc)
tc.StepID = parentID
to, detail := taskstate.StepSucceeded, ""
switch {
case runErr == nil:
case ctx.Err() != nil:
to, detail := stageOutcome(tc.skippedWhen, runErr)
if runErr != nil && ctx.Err() != nil {
to, detail = taskstate.StepInterrupted, runErr.Error()
default:
to, detail = taskstate.StepFailed, runErr.Error()
}
if err := tc.finishChildStep(ctx, stepID, to, detail, 0); err != nil {
return err
+8 -1
View File
@@ -3,6 +3,7 @@ package workflow
import (
"context"
"errors"
"log/slog"
"testing"
"github.com/samcharles93/archie-core/internal/domain/workflow/task"
@@ -60,11 +61,17 @@ func TestRunBranchRecordsChildSteps(t *testing.T) {
wantStatus: taskstate.StepFailed,
wantDetail: "boom",
},
{
name: "a branch step whose when was false",
stage: wrapStep(StepRecord{ID: "agent.run", When: "task.title"}, func(context.Context, *TaskContext) error { return nil }),
wantStatus: taskstate.StepSkipped,
wantDetail: "task.title",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
store := &fakeStepStore{}
tc := &TaskContext{Task: &task.Task{ID: 1, Attempt: 1}, Store: store, StepID: 7, workflowBranch: "docs"}
tc := &TaskContext{Task: &task.Task{ID: 1, Attempt: 1}, Store: store, StepID: 7, workflowBranch: "docs", Log: slog.Default()}
err := runBranch(context.Background(), tc, []Stage{tt.stage})
if !errors.Is(err, tt.wantErr) {
t.Fatalf("err = %v, want %v", err, tt.wantErr)
+21 -6
View File
@@ -81,6 +81,11 @@ type TaskContext struct {
// stepResults holds each finished step's, by step id.
stepResult StepResult
stepResults map[string]StepResult
// skippedWhen is the when condition that skipped the stage whose body just
// ran; empty when the stage ran. wrapStep sets it and the engine reads it
// to record the step as skipped. It is per-attempt scratch state, reset by
// wrapStep before every step.
skippedWhen string
Task *Task
Repo config.Repo
@@ -355,12 +360,7 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) {
return
}
finishTo := taskstate.StepSucceeded
finishDetail := ""
if err != nil {
finishTo = taskstate.StepFailed
finishDetail = err.Error()
}
finishTo, finishDetail := stageOutcome(tc.skippedWhen, err)
// The outcome event is the store's own stage_finish row, written in the
// FinishStep transaction -- not a second copy emitted beside it. A
// failed recording write parks the execution, like a failed start.
@@ -384,6 +384,21 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) {
finish(ctx, tc, log)
}
// stageOutcome is how a stage that ran to its end records: a stage whose when
// was false is skipped, with the condition as its detail; an error fails it;
// anything else succeeds. Interruption is the caller's call, because it owns
// the detached context the record needs.
func stageOutcome(skippedWhen string, err error) (taskstate.StepStatus, string) {
switch {
case skippedWhen != "":
return taskstate.StepSkipped, skippedWhen
case err != nil:
return taskstate.StepFailed, err.Error()
default:
return taskstate.StepSucceeded, ""
}
}
// resultsAfter is what a stage records for a later attempt resumed after it:
// the results so far when the run moves past the stage, else nothing.
func (tc *TaskContext) resultsAfter(stage Stage, err error) []byte {
@@ -233,6 +233,10 @@ func stepEventData(to taskstate.StepStatus, durationMS int64, detail string) map
data["error"] = detail
case taskstate.StepInterrupted:
data["interrupted"] = true
case taskstate.StepSkipped:
// The detail is the when condition that skipped the step.
data["skipped"] = true
data["when"] = detail
}
return data
}
+6 -2
View File
@@ -16,6 +16,9 @@ const (
StepFailed StepStatus = "failed"
StepCancelled StepStatus = "cancelled"
StepInterrupted StepStatus = "interrupted"
// StepSkipped is a step whose when condition was false: it never ran, but
// it is still a step of the attempt and is recorded as one.
StepSkipped StepStatus = "skipped"
)
// executionTransitions lists every legal execution status move. Terminal
@@ -38,12 +41,13 @@ var executionTransitions = map[string][]string{
// vocabulary.
var stepTransitions = map[StepStatus][]StepStatus{
StepPending: {StepRunning, StepCancelled},
StepRunning: {StepSucceeded, StepFailed, StepCancelled, StepInterrupted},
StepRunning: {StepSucceeded, StepFailed, StepCancelled, StepInterrupted, StepSkipped},
StepSucceeded: nil,
StepFailed: nil,
StepCancelled: nil,
StepInterrupted: nil,
StepSkipped: nil,
}
// CanTransition reports whether a WorkflowExecution may move from one status to
@@ -63,7 +67,7 @@ func CanStepTransition(from, to StepStatus) bool {
// only moves again as a fresh step in a new attempt.
func StepTerminal(status StepStatus) bool {
switch status {
case StepSucceeded, StepFailed, StepCancelled, StepInterrupted:
case StepSucceeded, StepFailed, StepCancelled, StepInterrupted, StepSkipped:
return true
default:
return false
+26
View File
@@ -0,0 +1,26 @@
package taskstate
import "testing"
// The step guard is the store's own enforcement of which step moves are legal.
// A skipped step is a running step's outcome and a terminal state: one that
// never started cannot skip, and one that skipped never moves again.
func TestStepTransitions(t *testing.T) {
tests := []struct {
name string
from, to StepStatus
want bool
}{
{"a running step is skipped", StepRunning, StepSkipped, true},
{"a running step still succeeds", StepRunning, StepSucceeded, true},
{"a pending step is not skipped", StepPending, StepSkipped, false},
{"a skipped step does not move", StepSkipped, StepRunning, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := CanStepTransition(tt.from, tt.to); got != tt.want {
t.Fatalf("CanStepTransition(%s, %s) = %v, want %v", tt.from, tt.to, got, tt.want)
}
})
}
}
+3
View File
@@ -21,6 +21,7 @@ const (
attemptStatusFailed = "failed"
attemptStatusInterrupted = "interrupted"
attemptStatusRunning = "running"
attemptStatusSkipped = "skipped"
attemptStatusUnknown = "unknown"
)
@@ -284,6 +285,8 @@ func mapStepStatus(status taskstate.StepStatus, inFlight bool) string {
return attemptStatusFailed
case taskstate.StepCancelled, taskstate.StepInterrupted:
return attemptStatusInterrupted
case taskstate.StepSkipped:
return attemptStatusSkipped
case taskstate.StepRunning:
if inFlight {
return attemptStatusRunning
+1 -1
View File
@@ -1 +1 @@
.vue-flow{z-index:0;direction:ltr;width:100%;height:100%;position:relative;overflow:hidden}.vue-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1px;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-textbg{fill:#fff}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.vue-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{pointer-events:none;min-width:5px;min-height:5px;position:absolute}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{bottom:0;left:50%;transform:translate(-50%,50%)}.vue-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{z-index:5;margin:15px;position:absolute}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.workflow-flow-edge path{stroke:var(--color-muted-foreground);stroke-width:1.5px}.workflow-data-edge path{stroke:var(--color-primary);stroke-dasharray:5 4;stroke-width:1.25px}@keyframes step-running{50%{box-shadow:0 0 0 4px color-mix(in oklab, var(--color-info) 30%, transparent)}}.step-running{animation:1.6s ease-in-out infinite step-running}.workflow-canvas .vue-flow__controls{box-shadow:none}.workflow-canvas .vue-flow__controls-button{background:var(--color-card);border-color:var(--color-border);fill:var(--color-foreground)}.workflow-canvas .vue-flow__controls-button:hover{background:var(--color-secondary)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--twLine truncated
.vue-flow{z-index:0;direction:ltr;width:100%;height:100%;position:relative;overflow:hidden}.vue-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1px;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-textbg{fill:#fff}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.vue-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{pointer-events:none;min-width:5px;min-height:5px;position:absolute}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{bottom:0;left:50%;transform:translate(-50%,50%)}.vue-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{z-index:5;margin:15px;position:absolute}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.workflow-flow-edge path{stroke:var(--color-muted-foreground);stroke-width:1.5px}.workflow-data-edge path{stroke:var(--color-primary);stroke-dasharray:5 4;stroke-width:1.25px}@keyframes step-running{50%{box-shadow:0 0 0 4px color-mix(in oklab, var(--color-info) 30%, transparent)}}.step-running{animation:1.6s ease-in-out infinite step-running}.workflow-canvas .vue-flow__controls{box-shadow:none}.workflow-canvas .vue-flow__controls-button{background:var(--color-card);border-color:var(--color-border);fill:var(--color-foreground)}.workflow-canvas .vue-flow__controls-button:hover{background:var(--color-secondary)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--twLine truncated
+2 -2
View File
@@ -18,7 +18,7 @@ Defaulting to \`null\`.`),null)}function TS(e){return CS(e)&&!Number.isNaN(e)&&e
`)}),a=null):a=[];continue}if(a){a.push(c);continue}let l=jE(c),u=e+1<n.length?jE(n[e+1]):null;if(l&&u&&ME(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=jE(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind:`table`,head:l.map(e=>kE(e)),rows:r.map(e=>e.map(e=>kE(e)))});continue}if(!c.trim()){o(),s();continue}let d=c.match(/^(#{1,3})\s+(.+)$/);if(d){o(),s(),t.push({kind:`h${d[1].length}`,inline:kE(d[2])});continue}let f=c.match(/^\s*[-*]\s+(.+)$/),p=c.match(/^\s*\d+[.)]\s+(.+)$/);if(f||p){o();let e=p?`ol`:`ul`;(!i||i.tag!==e)&&(s(),i={tag:e,items:[]}),i.items.push((f||p)[1]);continue}if(c.startsWith(`>`)){o(),s(),t.push({kind:`blockquote`,inline:kE(c.replace(/^>\s?/,``))});continue}r.push(c)}return o(),s(),a&&t.push({kind:`pre`,code:a.join(`
`)}),t}function jE(e){let t=String(e||``).trim();if(!t.includes(`|`))return null;let n=t.replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim());return n.length>1&&n.every(e=>e!==``)?n:null}function ME(e){return e.every(e=>/^:?-{3,}:?$/.test(e))}var NE={class:`[overflow-wrap:anywhere]`},PE={key:0,class:`my-2 overflow-auto rounded-md border border-border bg-background/60 p-3`},FE={class:`font-mono text-[0.85em]`},IE={key:1,class:`my-3 w-full border-collapse text-[0.92em]`},LE={key:2,class:`my-2 border-l-[3px] border-primary pl-3 text-fg-muted`},RE={key:3,class:`mt-1 mb-2 text-xl leading-tight font-semibold tracking-[-0.02em]`},zE={key:4,class:`mt-1 mb-2 text-lg leading-tight font-semibold tracking-[-0.02em]`},BE={key:5,class:`mt-1 mb-2 text-base leading-tight font-semibold tracking-[-0.02em]`},VE={key:6,class:`my-2.5 flex list-disc flex-col gap-1 pl-5`},Ree={key:7,class:`my-2.5 flex list-decimal flex-col gap-1 pl-5`},zee={key:8,class:`mb-2.5 last:mb-0`},Bee=L({__name:`ChatMarkdown`,props:{text:{}},setup(e){let t=e,n=Y(()=>AE(t.text));return(e,t)=>(V(),H(`div`,NE,[(V(!0),H(B,null,R(n.value,(e,t)=>(V(),H(B,{key:t},[e.kind===`pre`?(V(),H(`pre`,PE,[W(`code`,FE,M(e.code),1)])):e.kind===`table`?(V(),H(`table`,IE,[W(`thead`,null,[W(`tr`,null,[(V(!0),H(B,null,R(e.head,(e,t)=>(V(),H(`th`,{key:t,class:`border border-border bg-muted px-2 py-1.5 text-left font-semibold`},[G(DE,{inline:e},null,8,[`inline`])]))),128))])]),W(`tbody`,null,[(V(!0),H(B,null,R(e.rows,(e,t)=>(V(),H(`tr`,{key:t},[(V(!0),H(B,null,R(e,(e,t)=>(V(),H(`td`,{key:t,class:`border border-border px-2 py-1.5 text-left`},[G(DE,{inline:e},null,8,[`inline`])]))),128))]))),128))])])):e.kind===`blockquote`?(V(),H(`blockquote`,LE,[G(DE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h1`?(V(),H(`h1`,RE,[G(DE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h2`?(V(),H(`h2`,zE,[G(DE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h3`?(V(),H(`h3`,BE,[G(DE,{inline:e.inline},null,8,[`inline`])])):e.kind===`ul`?(V(),H(`ul`,VE,[(V(!0),H(B,null,R(e.items,(e,t)=>(V(),H(`li`,{key:t},[G(DE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`ol`?(V(),H(`ol`,Ree,[(V(!0),H(B,null,R(e.items,(e,t)=>(V(),H(`li`,{key:t},[G(DE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`p`?(V(),H(`p`,zee,[G(DE,{inline:e.inline},null,8,[`inline`])])):q(``,!0)],64))),128))]))}}),Vee={class:`truncate`},Hee=L({__name:`ChatNavChip`,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=Qi(`RouterLink`);return V(),U(r,{to:e.path,title:`Go to ${e.label||e.path}`,class:`inline-flex max-w-full items-center gap-1.5 rounded-full border border-primary/45 bg-primary-soft px-2.5 py-1 text-xs font-semibold text-link transition-colors hover:border-primary hover:bg-primary/15 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`},{default:F(()=>[G(P(Xu),{"aria-hidden":`true`,class:`size-3.5 shrink-0`}),W(`span`,Vee,M(e.label||e.path),1)]),_:1},8,[`to`,`title`])}}}),Uee={key:1,class:`flex items-baseline gap-1.5 [overflow-wrap:anywhere]`},Wee={class:`font-semibold text-foreground`},Gee={key:0,class:`font-mono text-[0.95em] text-fg-subtle`},Kee=L({__name:`ChatToolCall`,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=Y(()=>t.tool.name||t.tool.Name||t.tool.tool||`tool`),r=Y(()=>t.tool.parameters||t.tool.Parameters||``),i=Y(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=Y(()=>t.tool.summary||t.tool.Summary||t.tool.text||t.tool.err||t.tool.Err||(t.streaming?i.value?`failed`:`running…`:`done`));return(t,o)=>e.tool.path?(V(),U(Hee,{key:0,path:e.tool.path,label:e.tool.label},null,8,[`path`,`label`])):(V(),H(`div`,Uee,[G(P(Zd),{"aria-hidden":`true`,class:`size-3.5 shrink-0 self-center text-fg-subtle`}),W(`span`,Wee,M(n.value),1),r.value?(V(),H(`code`,Gee,M(r.value),1)):q(``,!0),W(`span`,{class:j(P(X)(`text-fg-muted`,i.value&&`text-danger`))},M(a.value),3)]))}}),qee={key:0,class:`mb-2 grid gap-0.5 text-xs`},Jee={key:1,class:`mb-2 flex flex-wrap gap-1.5`},Yee={key:3,class:`whitespace-pre-wrap`},HE=L({__name:`ChatBubble`,props:{text:{},tools:{default:()=>[]},media:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),H(`div`,{class:j([`flex`,e.assistant?`justify-start`:`justify-end`])},[W(`div`,{class:j(P(X)(`max-w-[min(78ch,86%)] rounded-[0.85rem] px-4 py-3 leading-normal [overflow-wrap:anywhere]`,e.assistant?`bg-muted`:`bg-primary/15`))},[e.assistant&&e.tools.length?(V(),H(`div`,qee,[(V(!0),H(B,null,R(e.tools,(t,n)=>(V(),U(Kee,{key:n,tool:t,streaming:e.streaming},null,8,[`tool`,`streaming`]))),128))])):q(``,!0),e.media.length?(V(),H(`div`,Jee,[(V(!0),H(B,null,R(e.media,(e,t)=>(V(),U(bE,{key:t,attachment:e},null,8,[`attachment`]))),128))])):q(``,!0),e.assistant?(V(),U(Bee,{key:2,text:e.text},null,8,[`text`])):(V(),H(`div`,Yee,M(e.text),1)),z(t.$slots,`default`)],2)],2))}}),Xee={class:`w-full self-center justify-self-center py-6 text-center`},Zee={class:`grid gap-2`},Qee=[`onClick`],$ee=L({__name: Line truncated
`).map(e=>e.trim()).find(Boolean)||``,r=n.length>Rj?`${n.slice(0,Rj).trimEnd()}…`:n;return{text:r,full:t,truncated:r!==t}}var Bj=[`title`],Vj=L({__name:`ActivityRow`,props:{event:{}},emits:[`open`],setup(e,{emit:t}){let n=e,r=t,i=Y(()=>uj(n.event)),a=Y(()=>zj(n.event));function o(){i.value>0&&r(`open`,i.value)}let s=Y(()=>n.event.at?vA(n.event.at):`—`);return(e,t)=>(V(),U(P(Fj),{class:j(i.value>0?`cursor-pointer`:``),role:i.value>0?`link`:void 0,tabindex:i.value>0?0:void 0,title:i.value>0?`Open task details`:void 0,onClick:o,onKeydown:[Hl(Bl(o,[`prevent`]),[`enter`]),Hl(Bl(o,[`prevent`]),[`space`])]},{default:F(()=>[G(P(Pj),{class:`font-medium`},{default:F(()=>[K(M(n.event.kind||n.event.type||`event`),1)]),_:1}),G(P(Pj),{class:`font-mono`},{default:F(()=>[K(M(i.value>0?`#${i.value}`:`—`),1)]),_:1}),G(P(Pj),{class:`w-[55%] max-w-0`},{default:F(()=>[W(`span`,{class:`block truncate`,title:a.value.truncated?a.value.full:void 0},M(a.value.text),9,Bj)]),_:1}),G(P(Pj),null,{default:F(()=>[K(M(s.value),1)]),_:1})]),_:1},8,[`class`,`role`,`tabindex`,`title`,`onKeydown`]))}}),Hj=[{value:`all`,label:`All`},{value:`tasks`,label:`Tasks`},{value:`system`,label:`System`}];function Uj(e){return(Number(e?.task_id)||0)>0}function Wj(e,t){return t===`tasks`?Uj(e):t!==`system`||!Uj(e)}function Gj(e,t){return e.filter(e=>Wj(e,t))}function Kj(e,t){return e>0?``:t===`all`?`Waiting for activity`:t===`tasks`?`No task events yet`:`No system events yet`}function qj(e,t){return`${e}:${t??0}`}function Jj(e){let t=[];for(let n of e){let e=n.kind||n.type||`event`,r=Number(n.task_id)||0,i=qj(zj(n).text,r),a=t[t.length-1];if(a&&a.key===i){a.count+=1,a.events.push(n);continue}t.push({key:i,label:e,taskID:r,count:1,representative:n,events:[n]})}return t}var Yj={role:`region`,"aria-label":`Live activity`,"aria-live":`polite`},Xj={class:`max-h-[28rem] overflow-y-auto`},Zj=[`aria-expanded`,`aria-label`,`onClick`],Qj=[`title`],$j=L({__name:`LiveActivityCard`,setup(e){let t=rD(),{activity:n,streamKind:r,streamState:i}=Fu(xk()),a=N(`all`),o=Y(()=>Gj(n.value,a.value)),s=Y(()=>Kj(o.value.length,a.value)),c=qt(new Set),l=Y(()=>Jj(o.value));function u(e){c.has(e)?c.delete(e):c.add(e)}function d(e){return c.has(e.key)}function f(e){return zj(e.representative)}function p(e){return e.representative.at?vA(e.representative.at):`—`}function m(e){t.push(`/tasks?task=${encodeURIComponent(e)}`)}return(e,t)=>(V(),U(P(dA),null,{default:F(()=>[G(P(gA),null,{default:F(()=>[G(P(_A),null,{default:F(()=>[...t[1]||=[K(`Live activity`,-1)]]),_:1}),G(P(fA),{class:`flex items-center gap-2`},{default:F(()=>[G(P(Aj),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,label:`Filter activity`,options:P(Hj)},null,8,[`modelValue`,`options`]),G(P(cA),{variant:P(r)},{default:F(()=>[K(M(P(i)),1)]),_:1},8,[`variant`])]),_:1})]),_:1}),G(P(pA),null,{default:F(()=>[W(`div`,Yj,[W(`div`,Xj,[G(P(Mj),null,{default:F(()=>[G(P(Lj),{class:`sticky top-0 z-10 bg-card`},{default:F(()=>[G(P(Fj),null,{default:F(()=>[G(P(Ij),null,{default:F(()=>[...t[2]||=[K(`Event`,-1)]]),_:1}),G(P(Ij),null,{default:F(()=>[...t[3]||=[K(`Task`,-1)]]),_:1}),G(P(Ij),null,{default:F(()=>[...t[4]||=[K(`Detail`,-1)]]),_:1}),G(P(Ij),null,{default:F(()=>[...t[5]||=[K(`When`,-1)]]),_:1})]),_:1})]),_:1}),G(P(Nj),null,{default:F(()=>[o.value.length?q(``,!0):(V(),U(P(Fj),{key:0},{default:F(()=>[G(P(Pj),{colspan:`4`},{default:F(()=>[G(P(eA),null,{default:F(()=>[G(P(rA),null,{default:F(()=>[G(P(oA),null,{default:F(()=>[K(M(s.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),o.value.length?(V(!0),H(B,{key:1},R(l.value,e=>(V(),H(B,{key:e.key},[e.count===1?(V(),U(Vj,{key:0,event:e.representative,onOpen:m},null,8,[`event`])):(V(),H(B,{key:1},[G(P(Fj),{class:j(e.taskID>0?`cursor-pointer`:``),role:e.taskID>0?`link`:void 0,tabindex:e.taskID>0?0:void 0,title:e.taskID>0?`Open task details`:void 0,onClick:t=>e.taskID>0&&m(e.taskID),onKeydown:[Hl(Bl(t=>e.taskID>0&&m(e.taskID),[`prevent`]),[`enter`]),Hl(Bl(t=>e.taskID>0&&m(e.taskID),[`prevent`]),[`space`])]},{default:F(()=>[G(P(Pj),{class:`font-medium`},{default:F(()=>[W(`button`,{type:`button`,class:`inline-flex items-center gap-1 rounded hover:opacity-80`,"aria-expanded":d(e),"aria-label":`${d(e)?`Hide`:`Show`} ${e.count} ${e.label} events`,onClick:Bl(t=>u(e.key),[`stop`])},[d(e)?(V(),U(P(rd),{key:0,class:`size-3.5 shrink-0 text-fg-subtle`})):(V(),U(P(id),{key:1,class:`size-3.5 shrink-0 text-fg-subtle`})),K(` `+M(e.label)+` `,1),G(P(cA),{variant:`idle`},{default:F(()=>[K(`×`+M(e.count),1)]),_:2},1024)],8,Zj)]),_:2},1024),G(P(Pj),{class:`font-mono`},{default:F(()=>[K(M(e.taskID>0?`#${e.taskID}`:`—`),1)]),_:2},1024),G(P(Pj),{class:`w-[55%] max-w-0`},{default:F(()=>[W(`span`,{class:`block truncate`,title:f(e).truncated?f(e).full:void 0},M(f(e).text),9,Qj)]),_:2},1024),G(P(Pj),null,{default:F(()=>[K(M(p(e)),1)]),_:2},1024)]),_:2},1032,[`class`,`role`,`tabindex`,`title`,`onClick`,`onKeydown`]),d(e)?(V(!0),H(B,{key:0},R(e.events,(t,n)=>(V(),U(Vj,{key:`${e.key}:${n}`,ev Line truncated
`)){let e=n.indexOf(`:`);if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function bN(e,t){if(!e.event_type)return{label:`Unidentified`,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name:`Deleted type`,identified:!0}}function xN(e,t){if(!e)return`No event type`;let n=t.find(t=>t.id===e);return n?`${n.source} / ${n.name}`:`Deleted type`}function SN(e){let t=[...(e.headers||[]).map(e=>`${e.name} = ${e.value}`),...(e.payload||[]).map(e=>e.op===`present`?`${e.path} present`:`${e.path} = ${e.value??``}`)];return t.length?t.join(` · `):`any event`}function CN(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!==``).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!==``).map(e=>e.op===`present`?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value??``})}}var wN=N([]),TN=N([]),EN=N(!0),DN=N(null),ON=N(null),kN=N(!1),AN=N(null);async function jN(){try{let e=await Z.eventTypes();EN.value=e.enabled!==!1,wN.value=e.event_types||[],TN.value=e.proposals||[],DN.value=null}catch(e){DN.value=e.message||String(e)}}function MN(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function NN(e){AN.value=null,ON.value=e}function PN(e){let t=HN.value.find(t=>String(t.id)===e.sample_id);NN({mode:`proposal`,id:null,source:e.source,name:``,rule:MN(e.rule),headersText:``,body:t?.body||``,exampleHeaders:e.headers||{}})}function FN(e=``){NN({mode:`paste`,id:null,source:e,name:``,rule:{headers:[],payload:[]},headersText:``,body:``,exampleHeaders:{}})}function IN(e){NN({mode:`edit`,id:e.id,source:e.source,name:e.name,rule:MN(e.rule),headersText:``,body:``,exampleHeaders:{}})}function LN(){ON.value=null}async function RN(){let e=ON.value;if(e){kN.value=!0;try{if(e.mode===`edit`&&e.id)await Z.eventTypeUpdate(e.id,{name:e.name,rule:CN(e.rule)});else{let t=e.mode===`paste`?yN(e.headersText):e.exampleHeaders;await Z.eventTypeCreate({source:e.source,name:e.name,rule:e.mode===`paste`?void 0:CN(e.rule),example:{headers:t,body:e.body}})}ON.value=null,await jN()}catch(e){AN.value=e.message||String(e)}finally{kN.value=!1}}}var zN=N(null);async function BN(){let e=zN.value;if(zN.value=null,e)try{await Z.eventTypeDelete(e.id),await jN()}catch(e){DN.value=e.message||String(e)}}var VN=100,HN=N([]),UN=N(!0),WN=N(null),GN=N(!0),KN=N(null);async function qN(){try{let e=await Z.captures(VN);UN.value=e.enabled!==!1,HN.value=e.captures||[],WN.value=null}catch(e){WN.value=e.message||String(e)}finally{GN.value=!1}}function JN(e){let t=HN.value.find(t=>t.id===e);return t&&(KN.value=t),!!t}function YN(){HN.value.length&&(KN.value=HN.value[0])}function XN(){Sk(`captures`,()=>{qN(),jN()})}var ZN=`archie.theme`,QN=`archie.density`,$N=`archie.motion`,eP=`archie.tooltips`;function tP(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r)?r:n}catch{return n}}function nP(e,t){try{localStorage.setItem(e,t)}catch{}}function rP(e){if(e!==`system`)return e;try{return matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}catch{return`dark`}}var iP=Pu(`appearance`,()=>{let e=N(tP(ZN,[`system`,`dark`,`light`],`dark`)),t=N(tP(QN,[`comfortable`,`compact`],`comfortable`)),n=N(tP($N,[`system`,`reduced`],`system`)),r=N(tP(eP,[`on`,`off`],`on`)===`on`),i=!1;function a(){document.documentElement.dataset.theme=rP(e.value)}function o(t){e.value=t,a(),nP(ZN,t)}function s(e){t.value=e,document.documentElement.dataset.density=e,nP(QN,e)}function c(e){n.value=e,document.documentElement.dataset.motion=e,nP($N,e)}function l(e){r.value=e,nP(eP,e?`on`:`off`)}function u(){if(!i){i=!0,a(),document.documentElement.dataset.density=t.value,document.documentElement.dataset.motion=n.value;try{matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.value===`system`&&a()})}catch{}}}return{theme:e,density:t,motion:n,tooltipsEnabled:r,initialize:u,setTheme:o,setDensity:s,setMotion:c,setTooltips:l}}),aP=L({__name:`Tooltip`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=Xh(n,t),{tooltipsEnabled:i}=Fu(iP());return(e,t)=>(V(),U(P(ZC),J({"data-slot":`tooltip`},P(r),{disabled:n.disabled||!P(i)}),{default:F(t=>[z(e.$slots,`default`,ve(cs(t)))]),_:3},16,[`disabled`]))}}),oP=L({inheritAttrs:!1,__name:`TooltipContent`,props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:0},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Xh(_w(n,`class`),r);return(e,t)=>(V(),U(P(tw),null,{default:F( Line truncated
`)){let e=n.indexOf(`:`);if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function bN(e,t){if(!e.event_type)return{label:`Unidentified`,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name:`Deleted type`,identified:!0}}function xN(e,t){if(!e)return`No event type`;let n=t.find(t=>t.id===e);return n?`${n.source} / ${n.name}`:`Deleted type`}function SN(e){let t=[...(e.headers||[]).map(e=>`${e.name} = ${e.value}`),...(e.payload||[]).map(e=>e.op===`present`?`${e.path} present`:`${e.path} = ${e.value??``}`)];return t.length?t.join(` · `):`any event`}function CN(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!==``).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!==``).map(e=>e.op===`present`?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value??``})}}var wN=N([]),TN=N([]),EN=N(!0),DN=N(null),ON=N(null),kN=N(!1),AN=N(null);async function jN(){try{let e=await Z.eventTypes();EN.value=e.enabled!==!1,wN.value=e.event_types||[],TN.value=e.proposals||[],DN.value=null}catch(e){DN.value=e.message||String(e)}}function MN(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function NN(e){AN.value=null,ON.value=e}function PN(e){let t=HN.value.find(t=>String(t.id)===e.sample_id);NN({mode:`proposal`,id:null,source:e.source,name:``,rule:MN(e.rule),headersText:``,body:t?.body||``,exampleHeaders:e.headers||{}})}function FN(e=``){NN({mode:`paste`,id:null,source:e,name:``,rule:{headers:[],payload:[]},headersText:``,body:``,exampleHeaders:{}})}function IN(e){NN({mode:`edit`,id:e.id,source:e.source,name:e.name,rule:MN(e.rule),headersText:``,body:``,exampleHeaders:{}})}function LN(){ON.value=null}async function RN(){let e=ON.value;if(e){kN.value=!0;try{if(e.mode===`edit`&&e.id)await Z.eventTypeUpdate(e.id,{name:e.name,rule:CN(e.rule)});else{let t=e.mode===`paste`?yN(e.headersText):e.exampleHeaders;await Z.eventTypeCreate({source:e.source,name:e.name,rule:e.mode===`paste`?void 0:CN(e.rule),example:{headers:t,body:e.body}})}ON.value=null,await jN()}catch(e){AN.value=e.message||String(e)}finally{kN.value=!1}}}var zN=N(null);async function BN(){let e=zN.value;if(zN.value=null,e)try{await Z.eventTypeDelete(e.id),await jN()}catch(e){DN.value=e.message||String(e)}}var VN=100,HN=N([]),UN=N(!0),WN=N(null),GN=N(!0),KN=N(null);async function qN(){try{let e=await Z.captures(VN);UN.value=e.enabled!==!1,HN.value=e.captures||[],WN.value=null}catch(e){WN.value=e.message||String(e)}finally{GN.value=!1}}function JN(e){let t=HN.value.find(t=>t.id===e);return t&&(KN.value=t),!!t}function YN(){HN.value.length&&(KN.value=HN.value[0])}function XN(){Sk(`captures`,()=>{qN(),jN()})}var ZN=`archie.theme`,QN=`archie.density`,$N=`archie.motion`,eP=`archie.tooltips`;function tP(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r)?r:n}catch{return n}}function nP(e,t){try{localStorage.setItem(e,t)}catch{}}function rP(e){if(e!==`system`)return e;try{return matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}catch{return`dark`}}var iP=Pu(`appearance`,()=>{let e=N(tP(ZN,[`system`,`dark`,`light`],`dark`)),t=N(tP(QN,[`comfortable`,`compact`],`comfortable`)),n=N(tP($N,[`system`,`reduced`],`system`)),r=N(tP(eP,[`on`,`off`],`on`)===`on`),i=!1;function a(){document.documentElement.dataset.theme=rP(e.value)}function o(t){e.value=t,a(),nP(ZN,t)}function s(e){t.value=e,document.documentElement.dataset.density=e,nP(QN,e)}function c(e){n.value=e,document.documentElement.dataset.motion=e,nP($N,e)}function l(e){r.value=e,nP(eP,e?`on`:`off`)}function u(){if(!i){i=!0,a(),document.documentElement.dataset.density=t.value,document.documentElement.dataset.motion=n.value;try{matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.value===`system`&&a()})}catch{}}}return{theme:e,density:t,motion:n,tooltipsEnabled:r,initialize:u,setTheme:o,setDensity:s,setMotion:c,setTooltips:l}}),aP=L({__name:`Tooltip`,props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=Xh(n,t),{tooltipsEnabled:i}=Fu(iP());return(e,t)=>(V(),U(P(ZC),J({"data-slot":`tooltip`},P(r),{disabled:n.disabled||!P(i)}),{default:F(t=>[z(e.$slots,`default`,ve(cs(t)))]),_:3},16,[`disabled`]))}}),oP=L({inheritAttrs:!1,__name:`TooltipContent`,props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:0},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=Xh(_w(n,`class`),r);return(e,t)=>(V(),U(P(tw),null,{default:F( Line truncated
`)}};iJ.defaultYaml={explicit:!1,version:`1.2`},iJ.defaultTags={"!!":`tag:yaml.org,2002:`};function aJ(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function oJ(e){let t=new Set;return Zq(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function sJ(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function cJ(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=oJ(e);let a=sJ(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(Uq(t.node)||Gq(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function lJ(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=lJ(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=lJ(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=lJ(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=lJ(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function uJ(e,t,n){if(Array.isArray(e))return e.map((e,t)=>uJ(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!qq(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var dJ=class{constructor(e){Object.defineProperty(this,Rq,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Bq(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=uJ(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?lJ(i,{"":o},``,o):o}},fJ=class extends dJ{constructor(e){super(Mq),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Zq(e,{Node:(e,t)=>{(zq(t)||qq(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(uJ(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=pJ(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(aJ(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function pJ(e,t,n){if(zq(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Gq(t)){let r=0;for(let i of t.items){let t=pJ(e,i,n);t>r&&(r=t)}return r}if(Hq(t)){let r=pJ(e,t.key,n),i=pJ(e,t.value,n);return Math.max(r,i)}return 1}var mJ=e=>!e||typeof e!=`function`&&typeof e!=`object`,hJ=class extends dJ{constructor(e){super(Iq),this.value=e}toJSON(e,t){return t?.keep?this.value:uJ(this.value,e,t)}toString(){return String(this.value)}};hJ.BLOCK_FOLDED=`BLOCK_FOLDED`,hJ.BLOCK_LITERAL=`BLOCK_LITERAL`,hJ.PLAIN=`PLAIN`,hJ.QUOTE_DOUBLE=`QUOTE_DOUBLE`,hJ.QUOTE_SINGLE=`QUOTE_SINGLE`;var gJ=`tag:yaml.org,2002:`;function _J(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function vJ(e,t,n){if(Bq(e)&&(e=e.contents),Kq(e))return e;if(Hq(e)){let t=n.schema[Pq].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new fJ(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=gJ+t.slice(2));let l=_J(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new hJ(e);return c&&(c.node=t),t Line truncated
`)?CJ(n,t):n.includes(`
`)?`
@@ -153,4 +153,4 @@ Edge: ${e}
Source: ${t}
Target: ${n}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed
Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>`The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead`},j7=class extends Error{constructor(e,...t){super(A7[e]?.call(A7,...t)),this.name=`VueFlowError`,this.code=e,this.args=t}};function M7(e){return`clientX`in e}function Ate(e){return`sourceEvent`in e}function N7(e,t){let n=M7(e),r,i;return n?(r=e.clientX,i=e.clientY):`touches`in e&&e.touches.length>0?(r=e.touches[0].clientX,i=e.touches[0].clientY):`changedTouches`in e&&e.changedTouches.length>0?(r=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(r=0,i=0),{x:r-(t?.left??0),y:i-(t?.top??0)}}var P7=()=>typeof navigator<`u`&&(navigator==null?void 0:navigator.userAgent)?.indexOf(`Mac`)>=0;function jte(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function F7(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var Mte=()=>!0;function I7(e){e?.classList.remove(`valid`,`connecting`,`vue-flow__handle-valid`,`vue-flow__handle-connecting`)}function Nte(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())D5(i,E5(e))>0&&r.push(e);return r}var Pte=250;function Fte(e,t,n,r){let i=[],a=1/0,o=Nte(e,n,t+Pte);for(let n of o){let o=[...n.handleBounds?.source??[],...n.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=T7(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function L7(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=Mte},u,d,f,p){let m=a===`target`,h=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:g,y:_}=N7(e),v=o.elementFromPoint(g,_),y=v?.classList.contains(`${s}-flow__handle`)?v:h,b={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=R7(void 0,y),t=y.getAttribute(`data-nodeid`),a=y.getAttribute(`data-handleid`),o=y.classList.contains(`connectable`),s=y.classList.contains(`connectableend`);if(!t||!e)return b;let c={source:m?t:r,sourceHandle:m?a:i,target:m?r:t,targetHandle:m?i:a};b.connection=c,b.isValid=o&&s&&(n===l5.Strict?m&&e===`source`||!m&&e===`target`:t!==r||a!==i)&&l(c,{nodes:d,edges:u,sourceNode:f(c.source),targetNode:f(c.target)}),b.toHandle=z7(t,e,a,p,n,!0)}return b}function R7(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function Ite(e,t){let n=null;return t?n=`valid`:e&&!t&&(n=`invalid`),n}function Lte(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function z7(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===l5.Strict?o.handleBounds?.[t]:[...o.handleBounds?.source??[],...o.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...T7(o,c,c.position,!0)}:c}var B7={[o5.Left]:o5.Right,[o5.Right]:o5.Left,[o5.Top]:o5.Bottom,[o5.Bottom]:o5.Top},Rte=[`production`,`prod`];function V7(e,...t){H7()&&console.warn(`[Vue Flow]: ${e}`,...t)}function H7(){return!Rte.includes(`production`)}function U7(e,t,n,r,i){let a=t.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...O5(t)}}):null}function W7(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),Kn(()=>{o.blur()})):n([e])}function G7(e){return P(e)!==void 0}function zte(e,t,n,r){if(!e||!e.source||!e.target)return n(new j7(k7.EDGE_INVALID,e?.id??`[ID UNKNOWN]`)),!1;let i;return i=M5(e)?e:{...e,id:H5(e)},i=R5(i,void 0,r),!U5(i,t)&&i}function Bte(e,t,n,r,i){if(!t.source||!t.target)return i(new j7(k7.EDGE_INVALID,e.id)),!1;if(!n)return i(new j7(k7.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r?H5(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function K7(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!N5(o)){n(new j7(k7.NODE_INVALID,o?.id));continue}let s=L5(o,t(o.id),o.parentNode);o.parentNode&&(r[o.parentNode]=!0),i[a]=s}for(let e of i){let a=t(e.parentNode)||i.find(t=>t.id===e.parentNode);e.parentNode&&!a&&n(new j7(k7.NODE_MISSING_PARENT,e.id,e.parentNode)),(e.parentNode||r[e.id])&&(r[e.id]&&(e.isParent=!0),a&&(a.isParent=!0))}return i}function q7(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function J7(e,t,n){e.clear();for(let t of n){let{source:n,target:r,sourceHandle:i=null,targetHandle:a=null}=t,o={edgeId:t.id,source:n,target:r,sourceHandle:i,targetHandle:a},s=`${n}-${i}--${r}-${a}`;q7(`source`Line truncated
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>`The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead`},j7=class extends Error{constructor(e,...t){super(A7[e]?.call(A7,...t)),this.name=`VueFlowError`,this.code=e,this.args=t}};function M7(e){return`clientX`in e}function Ate(e){return`sourceEvent`in e}function N7(e,t){let n=M7(e),r,i;return n?(r=e.clientX,i=e.clientY):`touches`in e&&e.touches.length>0?(r=e.touches[0].clientX,i=e.touches[0].clientY):`changedTouches`in e&&e.changedTouches.length>0?(r=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(r=0,i=0),{x:r-(t?.left??0),y:i-(t?.top??0)}}var P7=()=>typeof navigator<`u`&&(navigator==null?void 0:navigator.userAgent)?.indexOf(`Mac`)>=0;function jte(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function F7(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var Mte=()=>!0;function I7(e){e?.classList.remove(`valid`,`connecting`,`vue-flow__handle-valid`,`vue-flow__handle-connecting`)}function Nte(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())D5(i,E5(e))>0&&r.push(e);return r}var Pte=250;function Fte(e,t,n,r){let i=[],a=1/0,o=Nte(e,n,t+Pte);for(let n of o){let o=[...n.handleBounds?.source??[],...n.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=T7(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function L7(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=Mte},u,d,f,p){let m=a===`target`,h=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:g,y:_}=N7(e),v=o.elementFromPoint(g,_),y=v?.classList.contains(`${s}-flow__handle`)?v:h,b={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=R7(void 0,y),t=y.getAttribute(`data-nodeid`),a=y.getAttribute(`data-handleid`),o=y.classList.contains(`connectable`),s=y.classList.contains(`connectableend`);if(!t||!e)return b;let c={source:m?t:r,sourceHandle:m?a:i,target:m?r:t,targetHandle:m?i:a};b.connection=c,b.isValid=o&&s&&(n===l5.Strict?m&&e===`source`||!m&&e===`target`:t!==r||a!==i)&&l(c,{nodes:d,edges:u,sourceNode:f(c.source),targetNode:f(c.target)}),b.toHandle=z7(t,e,a,p,n,!0)}return b}function R7(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function Ite(e,t){let n=null;return t?n=`valid`:e&&!t&&(n=`invalid`),n}function Lte(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function z7(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===l5.Strict?o.handleBounds?.[t]:[...o.handleBounds?.source??[],...o.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...T7(o,c,c.position,!0)}:c}var B7={[o5.Left]:o5.Right,[o5.Right]:o5.Left,[o5.Top]:o5.Bottom,[o5.Bottom]:o5.Top},Rte=[`production`,`prod`];function V7(e,...t){H7()&&console.warn(`[Vue Flow]: ${e}`,...t)}function H7(){return!Rte.includes(`production`)}function U7(e,t,n,r,i){let a=t.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...O5(t)}}):null}function W7(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),Kn(()=>{o.blur()})):n([e])}function G7(e){return P(e)!==void 0}function zte(e,t,n,r){if(!e||!e.source||!e.target)return n(new j7(k7.EDGE_INVALID,e?.id??`[ID UNKNOWN]`)),!1;let i;return i=M5(e)?e:{...e,id:H5(e)},i=R5(i,void 0,r),!U5(i,t)&&i}function Bte(e,t,n,r,i){if(!t.source||!t.target)return i(new j7(k7.EDGE_INVALID,e.id)),!1;if(!n)return i(new j7(k7.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r?H5(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function K7(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!N5(o)){n(new j7(k7.NODE_INVALID,o?.id));continue}let s=L5(o,t(o.id),o.parentNode);o.parentNode&&(r[o.parentNode]=!0),i[a]=s}for(let e of i){let a=t(e.parentNode)||i.find(t=>t.id===e.parentNode);e.parentNode&&!a&&n(new j7(k7.NODE_MISSING_PARENT,e.id,e.parentNode)),(e.parentNode||r[e.id])&&(r[e.id]&&(e.isParent=!0),a&&(a.isParent=!0))}return i}function q7(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function J7(e,t,n){e.clear();for(let t of n){let{source:n,target:r,sourceHandle:i=null,targetHandle:a=null}=t,o={edgeId:t.id,source:n,target:r,sourceHandle:i,targetHandle:a},s=`${n}-${i}--${r}-${a}`;q7(`source`Line truncated
+3 -1
View File
@@ -44,7 +44,9 @@ const nodeClass = computed(() =>
? "border-warn"
: props.stage.status === "running"
? "border-info"
: "border-border-strong",
: props.stage.status === "skipped"
? "border-dashed border-muted-foreground/60"
: "border-border-strong",
),
);
</script>
+1
View File
@@ -24,6 +24,7 @@ const STAGE_STATUS: Record<string, StageStatusMeta> = {
failed: { label: "failed", kind: "danger" },
interrupted: { label: "interrupted", kind: "warn" },
running: { label: "running", kind: "info" },
skipped: { label: "skipped", kind: "idle" },
unknown: { label: "unknown", kind: "idle" },
};
+6 -4
View File
@@ -69,10 +69,12 @@ export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
return {
title: data.interrupted
? `Stage interrupted: ${stage}`
: data.error
? `Stage failed: ${stage}`
: `Finished stage: ${stage}`,
detail: [context, text(data.error)].filter(Boolean).join(" — "),
: data.skipped
? `Skipped stage: ${stage}`
: data.error
? `Stage failed: ${stage}`
: `Finished stage: ${stage}`,
detail: [context, text(data.error), text(data.when)].filter(Boolean).join(" — "),
};
}
if (ev.kind === "task_retried") {
+3 -1
View File
@@ -13,6 +13,7 @@ const STATE_CLASSES: Record<string, string> = {
failed: "border-danger/80",
interrupted: "border-warn/70",
running: "border-info step-running",
skipped: "border-dashed border-muted-foreground/60",
};
const stateClass = computed(() => {
@@ -27,6 +28,7 @@ const STATE_LABELS: Record<string, string> = {
failed: "Failed",
interrupted: "Interrupted",
running: "Running",
skipped: "Skipped",
};
function duration(ms?: number): string {
@@ -77,7 +79,7 @@ function duration(ms?: number): string {
<div
v-if="data.run"
class="mt-1 flex items-center gap-1.5 text-[11px]"
:class="{ 'text-ok': data.run.status === 'ok', 'text-danger': data.run.status === 'failed', 'text-info': data.run.status === 'running', 'text-warn': data.run.status === 'interrupted' }"
:class="{ 'text-ok': data.run.status === 'ok', 'text-danger': data.run.status === 'failed', 'text-info': data.run.status === 'running', 'text-warn': data.run.status === 'interrupted', 'text-fg-subtle': data.run.status === 'skipped' }"
:title="data.run.error || undefined"
>
<span class="size-1.5 rounded-full bg-current" aria-hidden="true" />
+1 -1
View File
@@ -53,7 +53,7 @@ export interface StageRun {
finished_at?: string;
agents?: AgentRun[];
name: string;
status: "ok" | "failed" | "interrupted" | "running" | "unknown" | string;
status: "ok" | "failed" | "interrupted" | "running" | "skipped" | "unknown" | string;
duration_ms?: number;
error?: string;
}
+4
View File
@@ -14,6 +14,8 @@ steps:
- {id: test, type: command.run, settings: {run: go test}}
docs:
- {id: write, type: agent.run, settings: {mission: m, read_only: true}}
lint:
- {id: vet, type: command.run, when: "task.title", settings: {run: go vet}}
`;
test("withRuns maps every branch node to its own recorded row", () => {
@@ -24,12 +26,14 @@ test("withRuns maps every branch node to its own recorded row", () => {
{ name: "build/compile", status: "ok" },
{ name: "build/test", status: "failed", error: "boom" },
{ name: "docs/write", status: "ok" },
{ name: "lint/vet", status: "skipped" },
];
const run = withRuns(graph, stages);
const cases: Array<[(string | number)[], string, string]> = [
[["steps", 0, "parallel", "build", 0], "build/compile", "ok"],
[["steps", 0, "parallel", "build", 1], "build/test", "failed"],
[["steps", 0, "parallel", "docs", 0], "docs/write", "ok"],
[["steps", 0, "parallel", "lint", 0], "lint/vet", "skipped"],
];
for (const [path, name, status] of cases) {
const node = run.nodes.find(