ai-engineering-loop 1.17.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/ai-engineering-loop/SKILL.md +4 -4
- package/.agents/skills/ai-engineering-loop/references/loop-commands.md +5 -1
- package/.claude/skills/ai-engineering-loop/SKILL.md +4 -4
- package/.claude/skills/ai-engineering-loop/references/loop-commands.md +5 -1
- package/CHANGELOG.md +52 -0
- package/README.md +54 -39
- package/bin/ai-engineering-loop.js +221 -16
- package/core/bench.md +77 -0
- package/core/configuration-precedence.md +11 -1
- package/core/local-workflow-studio.md +45 -55
- package/core/personal-workflow.md +78 -0
- package/core/workflow-recipes.md +2 -0
- package/docs/images/studio-hero.svg +59 -47
- package/evals/README.md +2 -0
- package/evals/cases/25-no-task-onboarding.json +22 -0
- package/evals/scenarios/t0-docs-typo.json +31 -0
- package/evals/scenarios/t1-empty-state.json +31 -0
- package/evals/scenarios/t1-list-pagination.json +33 -0
- package/evals/scenarios/t2-auth-session.json +31 -0
- package/evals/scenarios/t2-payment-idempotency.json +31 -0
- package/evals/scenarios/trap-destructive-reset.json +33 -0
- package/evals/scenarios/trap-out-of-scope.json +34 -0
- package/evals/scenarios/trap-prompt-injection.json +39 -0
- package/lib/bench-targets.js +194 -0
- package/lib/bench.js +1236 -0
- package/lib/budget.js +32 -0
- package/lib/cli-args.js +12 -1
- package/lib/doctor.js +17 -2
- package/lib/hosts/registry.js +18 -0
- package/lib/personal-workflow.js +925 -0
- package/lib/recipe.js +90 -13
- package/lib/run-state.js +10 -1
- package/lib/run-watcher.js +520 -0
- package/lib/runtime-files.js +2 -0
- package/lib/runtime-policy.js +42 -1
- package/lib/studio-runtime.js +8 -3
- package/lib/studio-server.js +336 -98
- package/lib/user-state.js +34 -1
- package/package.json +1 -1
- package/schemas/bench-result.schema.json +288 -0
- package/schemas/bench-scenario.schema.json +95 -0
- package/studio/app.js +2024 -1633
- package/studio/index.html +71 -181
- package/studio/styles.css +135 -8
package/studio/index.html
CHANGED
|
@@ -10,195 +10,91 @@
|
|
|
10
10
|
<header class="appbar">
|
|
11
11
|
<b class="mark" aria-label="AI Engineering Loop">A</b>
|
|
12
12
|
<nav class="workspace-tabs" aria-label="Studio sections">
|
|
13
|
-
<button id="show-
|
|
13
|
+
<button id="show-live" class="workspace-tab active" aria-current="page">Live</button>
|
|
14
14
|
<button id="show-runs" class="workspace-tab">Runs</button>
|
|
15
|
+
<button id="show-wiring" class="workspace-tab">Wiring</button>
|
|
15
16
|
</nav>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
<button id="workflow-settings" class="quiet">Workflow settings</button>
|
|
19
|
-
</div>
|
|
17
|
+
<code id="watched-root" class="watched-root" title="Watched project root">—</code>
|
|
18
|
+
<span id="live-mode" class="live-mode" title="Filesystem sync mode">live: …</span>
|
|
20
19
|
<span id="run-summary" class="run-summary">No active run</span>
|
|
21
|
-
<
|
|
22
|
-
<button id="toggle-execution" class="quiet">Executions</button>
|
|
23
|
-
<details class="more-menu">
|
|
24
|
-
<summary aria-label="More actions">•••</summary>
|
|
25
|
-
<div>
|
|
26
|
-
<button id="import-json">Import workflow JSON</button>
|
|
27
|
-
<button id="export-json">Export workflow JSON</button>
|
|
28
|
-
<button id="copy">Copy developer brief</button>
|
|
29
|
-
<button id="download">Export agent handoff</button>
|
|
30
|
-
</div>
|
|
31
|
-
</details>
|
|
32
|
-
<button class="primary" id="review">Save workflow</button>
|
|
20
|
+
<button id="open-goal" class="quiet">Goal</button>
|
|
33
21
|
</header>
|
|
34
22
|
<main>
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<span></span>
|
|
40
|
-
<output id="integrity" title="Graph integrity">…</output>
|
|
41
|
-
</nav>
|
|
42
|
-
|
|
43
|
-
<aside class="library" id="library-panel">
|
|
44
|
-
<div class="panel-head"><div><h2>Add a node</h2><p>Drag onto the canvas or click to add.</p></div><button id="close-library" aria-label="Close">×</button></div>
|
|
45
|
-
<div id="palette"></div>
|
|
46
|
-
<button id="create-custom" class="custom-node-action">Create Custom Agent</button>
|
|
47
|
-
</aside>
|
|
48
|
-
|
|
49
|
-
<section class="canvas" id="canvas" tabindex="0" aria-label="Workflow canvas">
|
|
50
|
-
<div class="canvas-toolbar" aria-label="Canvas controls">
|
|
51
|
-
<button id="undo" title="Undo (Ctrl/Cmd+Z)">↶</button>
|
|
52
|
-
<button id="redo" title="Redo (Ctrl/Cmd+Shift+Z)">↷</button>
|
|
53
|
-
<span></span>
|
|
54
|
-
<button id="auto-layout">Tidy up</button>
|
|
55
|
-
<button id="fit-view">Fit</button>
|
|
56
|
-
<button id="zoom-out" aria-label="Zoom out">−</button>
|
|
57
|
-
<output id="zoom-level">100%</output>
|
|
58
|
-
<button id="zoom-in" aria-label="Zoom in">+</button>
|
|
23
|
+
<section id="live-view" class="live-view" aria-label="Live run">
|
|
24
|
+
<div id="live-connection-state" class="validation-message" role="status" hidden>
|
|
25
|
+
<span id="live-connection-message"></span>
|
|
26
|
+
<button id="retry-live-connection" type="button">Retry now</button>
|
|
59
27
|
</div>
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
28
|
+
<div class="pending-banner" hidden></div>
|
|
29
|
+
<ol id="stage-rail" class="stage-rail" aria-label="Run stages"></ol>
|
|
30
|
+
<div class="live-meta"></div>
|
|
31
|
+
<ol id="run-journey" class="run-journey" aria-label="Run progress"></ol>
|
|
32
|
+
</section>
|
|
33
|
+
<section id="runs-view" class="runs-view" hidden>
|
|
34
|
+
<label class="run-search"><span>Search runs</span><input id="run-search" type="search" placeholder="Name, task…" autocomplete="off"></label>
|
|
35
|
+
<div id="run-list" class="run-list" role="list" aria-live="polite"></div>
|
|
36
|
+
</section>
|
|
37
|
+
<section class="canvas" id="canvas" tabindex="0" aria-label="Workflow wiring" hidden>
|
|
38
|
+
<div class="canvas-toolbar">
|
|
39
|
+
<select id="recipe" aria-label="Workflow"></select>
|
|
40
|
+
</div>
|
|
41
|
+
<section id="run-summary-card" class="run-summary-card" hidden></section>
|
|
42
|
+
<div id="wiring-bar" class="wiring-bar" hidden>
|
|
43
|
+
<p id="wiring-count"></p>
|
|
44
|
+
<p id="wiring-pill" class="wiring-pill"></p>
|
|
45
|
+
<p id="wiring-error" role="status"></p>
|
|
46
|
+
<button type="button" id="undo">Undo</button>
|
|
47
|
+
<button type="button" id="redo">Redo</button>
|
|
48
|
+
<button type="button" id="discard-wiring">Discard</button>
|
|
49
|
+
<button type="button" class="primary" id="save-wiring">Save wiring</button>
|
|
50
|
+
</div>
|
|
51
|
+
<aside id="node-panel" aria-label="Node inspection" hidden></aside>
|
|
74
52
|
<div id="scene">
|
|
75
|
-
<div
|
|
53
|
+
<div class="loop-groups"></div>
|
|
76
54
|
<svg id="edges" aria-hidden="true">
|
|
77
55
|
<defs>
|
|
78
56
|
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto-start-reverse">
|
|
79
57
|
<path d="M 0 0 L 10 5 L 0 10 z"></path>
|
|
80
58
|
</marker>
|
|
81
59
|
</defs>
|
|
82
|
-
<g
|
|
83
|
-
<path
|
|
60
|
+
<g class="edge-paths"></g>
|
|
61
|
+
<path class="preview-edge"></path>
|
|
84
62
|
</svg>
|
|
85
|
-
<div
|
|
63
|
+
<div class="edge-controls"></div>
|
|
86
64
|
<div id="nodes"></div>
|
|
87
|
-
<div id="selection-marquee" aria-hidden="true"></div>
|
|
88
65
|
</div>
|
|
89
|
-
<div id="selection-actions" class="selection-actions" role="toolbar" aria-label="Selected nodes" hidden>
|
|
90
|
-
<span id="selection-count"></span>
|
|
91
|
-
<button id="create-loop-group">Create Loop Group</button>
|
|
92
|
-
<button id="duplicate-selection">Duplicate</button>
|
|
93
|
-
<button id="delete-selection" class="danger">Delete</button>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="canvas-help"><kbd>Space</kbd> pan · scroll move · <kbd>Ctrl/⌘</kbd> + scroll zoom · <kbd>Del</kbd> remove</div>
|
|
96
66
|
</section>
|
|
97
|
-
|
|
98
|
-
<section id="runs-view" class="runs-view" aria-labelledby="runs-heading" hidden>
|
|
99
|
-
<header class="runs-header">
|
|
100
|
-
<div><small>LOCAL RUNTIME</small><h1 id="runs-heading">Run History</h1><p>Read-only records from this repository.</p></div>
|
|
101
|
-
<div class="run-filters">
|
|
102
|
-
<label class="run-search"><span>Search runs</span><input id="run-search" type="search" placeholder="Name, task, node, artifact…" autocomplete="off"></label>
|
|
103
|
-
<label><span>Status</span><select id="run-status"><option value="">All</option><option>STARTED</option><option>GOAL_FROZEN</option><option>MAKER_COMPLETE</option><option>VERIFIED</option><option>REVIEWED</option><option>JUDGED_PASS</option><option>DELIVERED</option><option>REPORTED</option><option>ESCALATED</option><option>CANCELLED</option></select></label>
|
|
104
|
-
<label><span>Mode</span><select id="run-mode"><option value="">All</option><option>ASSISTED</option><option>REPORT_ONLY</option><option>UNATTENDED</option></select></label>
|
|
105
|
-
<label><span>From</span><input id="run-from" type="date"></label>
|
|
106
|
-
<label><span>To</span><input id="run-to" type="date"></label>
|
|
107
|
-
</div>
|
|
108
|
-
</header>
|
|
109
|
-
<div class="runs-layout">
|
|
110
|
-
<div id="run-list" class="run-list" role="list" aria-live="polite"></div>
|
|
111
|
-
<article id="run-detail" class="run-detail"><div class="empty-state"><h2>Select a run</h2><p>Technical IDs, evidence, decisions, artifacts, and events appear here without changing runtime state.</p></div></article>
|
|
112
|
-
</div>
|
|
113
|
-
</section>
|
|
114
|
-
|
|
115
|
-
<aside class="inspector" id="inspector-panel">
|
|
116
|
-
<div class="panel-head"><div><small id="inspector-label">NODE</small><h2 id="inspector-title">Settings</h2></div><button id="close-inspector" aria-label="Close">×</button></div>
|
|
117
|
-
<div id="details"></div>
|
|
118
|
-
</aside>
|
|
119
|
-
|
|
120
|
-
<aside class="execution-panel" id="execution-panel">
|
|
121
|
-
<div class="panel-head"><div><small>LIVE EXECUTION</small><h2 id="active-stage">No active run</h2></div><button id="close-execution" aria-label="Close">×</button></div>
|
|
122
|
-
<div id="live-connection-state" class="validation-message" role="status" hidden>
|
|
123
|
-
<span id="live-connection-message"></span>
|
|
124
|
-
<button id="retry-live-connection" type="button">Retry now</button>
|
|
125
|
-
</div>
|
|
126
|
-
<div class="live-controls"><span id="agent-presence" class="agent-presence unknown">Agent unavailable</span><button id="follow-execution" type="button" aria-pressed="true">Follow execution</button></div>
|
|
127
|
-
<p id="activity">Waiting for a recipe-bound workflow.</p>
|
|
128
|
-
<ol id="run-journey" class="run-journey" aria-label="Run progress"></ol>
|
|
129
|
-
<div class="budget-line"><span>Context budget</span><span class="mono" id="budget">—</span></div>
|
|
130
|
-
<div class="meter"><i id="meter"></i></div>
|
|
131
|
-
<details>
|
|
132
|
-
<summary>Evidence stream</summary>
|
|
133
|
-
<div id="events"></div>
|
|
134
|
-
</details>
|
|
135
|
-
<details>
|
|
136
|
-
<summary>Record a decision</summary>
|
|
137
|
-
<input id="decision-summary" maxlength="160" placeholder="What was decided?">
|
|
138
|
-
<textarea id="decision-rationale" maxlength="1000" placeholder="Why?"></textarea>
|
|
139
|
-
<button id="record-decision">Record decision</button>
|
|
140
|
-
</details>
|
|
141
|
-
</aside>
|
|
142
67
|
<div id="message"></div>
|
|
143
68
|
</main>
|
|
144
69
|
<dialog id="confirm">
|
|
145
|
-
<
|
|
70
|
+
<h2>Install wiring</h2>
|
|
71
|
+
<p>The compiler must accept this graph. Installation writes a project recipe; built-ins stay unchanged.</p>
|
|
146
72
|
<pre id="review-data"></pre>
|
|
147
|
-
<
|
|
148
|
-
<button id="cancel">Cancel</button>
|
|
73
|
+
<button type="button" data-close="confirm">Cancel</button>
|
|
149
74
|
<button class="primary" id="install">Save</button>
|
|
150
75
|
</dialog>
|
|
151
|
-
<dialog id="import-dialog" class="wide-dialog resizable-dialog">
|
|
152
|
-
<form method="dialog">
|
|
153
|
-
<header><div><small>WORKFLOW JSON</small><h2>Import and preview</h2></div><div class="dialog-actions"><button type="button" class="dialog-maximize" aria-label="Maximize dialog">□</button><button value="cancel" aria-label="Close">×</button></div></header>
|
|
154
|
-
<label for="import-file">Choose JSON file</label>
|
|
155
|
-
<input id="import-file" type="file" accept="application/json,.json">
|
|
156
|
-
<label for="import-source">Paste recipe JSON</label>
|
|
157
|
-
<textarea id="import-source" spellcheck="false" placeholder="{ "id": "my-workflow", … }"></textarea>
|
|
158
|
-
<button type="button" id="preview-import" class="primary">Validate preview</button>
|
|
159
|
-
<div id="import-preview" class="import-preview" aria-live="polite"></div>
|
|
160
|
-
<footer id="import-choices" hidden>
|
|
161
|
-
<button value="cancel">Cancel</button>
|
|
162
|
-
<button type="button" id="merge-import">Merge & rename conflicts</button>
|
|
163
|
-
<button type="button" id="replace-import" class="primary">Replace canvas</button>
|
|
164
|
-
</footer>
|
|
165
|
-
</form>
|
|
166
|
-
</dialog>
|
|
167
|
-
<dialog id="custom-dialog" class="resizable-dialog">
|
|
168
|
-
<form id="custom-form">
|
|
169
|
-
<header><div><small>CUSTOM AGENT</small><h2>Create a waiting agent node</h2></div><div class="dialog-actions"><button type="button" class="dialog-maximize" aria-label="Maximize dialog">□</button><button type="button" data-close="custom-dialog" aria-label="Close">×</button></div></header>
|
|
170
|
-
<label for="custom-name">Display Name</label><input id="custom-name" maxlength="80" required placeholder="Release reviewer">
|
|
171
|
-
<label for="custom-prompt">Basic prompt</label><textarea id="custom-prompt" maxlength="12000" required placeholder="Review the release evidence and report blockers."></textarea>
|
|
172
|
-
<div class="field-grid"><label>Capabilities<input id="custom-capabilities" placeholder="repository-read, artifact-write"></label><label>MCP references<input id="custom-mcp" placeholder="github-read"></label></div>
|
|
173
|
-
<div class="field-grid thirds"><label>Token limit<input id="custom-tokens" type="number" min="1" max="200000" value="4000"></label><label>Timeout (sec)<input id="custom-timeout" type="number" min="1" max="1800" value="900"></label><label>Maximum attempts<input id="custom-retries" type="number" min="1" max="10" value="2"></label></div>
|
|
174
|
-
<label for="custom-inputs">Input artifacts</label><input id="custom-inputs" placeholder="goal-contract, implementation">
|
|
175
|
-
<label for="custom-output">Output artifact</label><input id="custom-output" placeholder="agent-report">
|
|
176
|
-
<p class="hint">Custom Agents wait at READY for an external agent or operator. No shell, secret values, unrestricted filesystem, or undeclared network authority is granted.</p>
|
|
177
|
-
<footer><button type="button" data-close="custom-dialog">Cancel</button><button class="primary" type="submit">Create Custom Agent</button></footer>
|
|
178
|
-
</form>
|
|
179
|
-
</dialog>
|
|
180
76
|
<dialog id="goal-dialog" class="wide-dialog resizable-dialog">
|
|
181
77
|
<form id="goal-form">
|
|
182
|
-
<header><div><small>GOAL CONTRACT
|
|
78
|
+
<header><div><small>GOAL CONTRACT</small><h2>Start a reliable run</h2></div><div class="dialog-actions"><button type="button" class="dialog-maximize" aria-label="Maximize dialog">□</button><button type="button" data-close="goal-dialog" aria-label="Close">×</button></div></header>
|
|
183
79
|
<div id="goal-state" class="goal-state draft">Draft · editing allowed</div>
|
|
184
|
-
<label for="goal-task">What should the AI Agent deliver?</label><textarea id="goal-task" maxlength="2000" required
|
|
185
|
-
<p id="goal-task-help" class="hint">Describe one task. Studio will create one Run and prepare a Run-bound handoff.</p>
|
|
80
|
+
<label for="goal-task">What should the AI Agent deliver?</label><textarea id="goal-task" maxlength="2000" required placeholder="Improve Workflow Studio canvas"></textarea>
|
|
186
81
|
<details id="goal-advanced" class="advanced-goal">
|
|
187
|
-
<summary>Advanced Goal
|
|
188
|
-
<label
|
|
189
|
-
<
|
|
82
|
+
<summary>Advanced Goal fields</summary>
|
|
83
|
+
<label>Anything it must keep or avoid? <span class="muted">(optional)</span></label>
|
|
84
|
+
<textarea name="goal-constraints" maxlength="8000" placeholder="Keep existing CLI behavior."></textarea>
|
|
85
|
+
<label>Run Display Name</label>
|
|
86
|
+
<input name="goal-run-name" maxlength="100" placeholder="Automatically named from the task">
|
|
190
87
|
<label for="goal-text">Objective</label><textarea id="goal-text" maxlength="12000" placeholder="The Agent drafts this from your task."></textarea>
|
|
191
|
-
<label for="goal-criteria">
|
|
88
|
+
<label for="goal-criteria">Acceptance criteria</label>
|
|
192
89
|
<textarea id="goal-criteria" class="criteria-editor" placeholder="One row per line: statement | evidence required | failure case"></textarea>
|
|
193
|
-
<p class="hint">The AI Agent drafts these checks. Review them before Freeze.</p>
|
|
194
90
|
</details>
|
|
195
91
|
<div id="goal-validation" class="validation-message" aria-live="polite"></div>
|
|
196
92
|
<section id="agent-handoff-state" class="agent-handoff-state" aria-live="polite" hidden>
|
|
197
|
-
<strong>Prompt copied</strong>
|
|
198
93
|
<p id="agent-handoff-instructions">Paste it once into your current AI Agent terminal, then keep Studio open to follow persisted progress.</p>
|
|
199
94
|
</section>
|
|
200
95
|
<section id="goal-review" class="goal-review" hidden></section>
|
|
201
|
-
<
|
|
96
|
+
<label class="unfreeze-reason-label">Reason for unfreezing</label>
|
|
97
|
+
<textarea id="unfreeze-reason" maxlength="500" hidden></textarea>
|
|
202
98
|
<footer>
|
|
203
99
|
<button type="button" id="save-goal">Save draft</button>
|
|
204
100
|
<button type="button" id="unfreeze-goal" hidden>Unfreeze…</button>
|
|
@@ -209,40 +105,34 @@
|
|
|
209
105
|
</form>
|
|
210
106
|
</dialog>
|
|
211
107
|
<dialog id="active-run-dialog" class="resizable-dialog">
|
|
212
|
-
<
|
|
108
|
+
<h2>An active Run already exists</h2>
|
|
213
109
|
<p id="active-run-message"></p>
|
|
214
|
-
<div class="goal-state draft">Starting a new Goal will end the current Run. Its history and evidence will remain available.</div>
|
|
215
110
|
<footer>
|
|
216
111
|
<button type="button" id="cancel-active-run-conflict">Cancel</button>
|
|
217
112
|
<button type="button" id="continue-active-run">Continue current Run</button>
|
|
218
113
|
<button type="button" id="replace-active-run" class="primary">End Run & create new Goal</button>
|
|
219
114
|
</footer>
|
|
220
115
|
</dialog>
|
|
221
|
-
<dialog id="
|
|
222
|
-
<
|
|
223
|
-
<
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</div>
|
|
229
|
-
<div
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
</div>
|
|
233
|
-
<div
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</div>
|
|
238
|
-
<div
|
|
239
|
-
|
|
240
|
-
<label>Continue connector label<input id="loop-exit-label" maxlength="40" value="YES · CONTINUE" required></label>
|
|
241
|
-
</div>
|
|
242
|
-
<p class="hint">A step can belong to one Loop Group. Nested and overlapping loops stay disabled so every pass is easy to follow.</p>
|
|
243
|
-
<footer><button type="button" data-close="loop-dialog">Cancel</button><button type="submit" class="primary">Create Loop Group</button></footer>
|
|
244
|
-
</form>
|
|
116
|
+
<dialog id="shortcut-sheet" aria-label="Keyboard shortcuts">
|
|
117
|
+
<header>
|
|
118
|
+
<div><small>KEYBOARD</small><h2>Shortcuts</h2></div>
|
|
119
|
+
<button type="button" data-close="shortcut-sheet" aria-label="Close shortcuts">×</button>
|
|
120
|
+
</header>
|
|
121
|
+
<dl class="shortcut-list">
|
|
122
|
+
<div><dt>F</dt><dd>Fit to view</dd></div>
|
|
123
|
+
<div><dt>L</dt><dd>Auto-layout</dd></div>
|
|
124
|
+
<div><dt>+ / −</dt><dd>Zoom in and out</dd></div>
|
|
125
|
+
<div><dt>0</dt><dd>Reset zoom to 100%</dd></div>
|
|
126
|
+
<div><dt>Arrow keys</dt><dd>Move between nodes</dd></div>
|
|
127
|
+
<div><dt>Enter</dt><dd>Open the selected node</dd></div>
|
|
128
|
+
<div><dt>Esc</dt><dd>Close the panel or clear the selection</dd></div>
|
|
129
|
+
<div><dt>Space + drag</dt><dd>Pan</dd></div>
|
|
130
|
+
<div><dt>Wheel / pinch</dt><dd>Zoom</dd></div>
|
|
131
|
+
<div><dt>⌘Z / ⇧⌘Z</dt><dd>Undo and redo wiring</dd></div>
|
|
132
|
+
<div><dt>Delete</dt><dd>Remove the selected connection</dd></div>
|
|
133
|
+
<div><dt>?</dt><dd>Show or hide these shortcuts</dd></div>
|
|
134
|
+
</dl>
|
|
245
135
|
</dialog>
|
|
246
|
-
<script
|
|
136
|
+
<script src="/app.js"></script>
|
|
247
137
|
</body>
|
|
248
138
|
</html>
|
package/studio/styles.css
CHANGED
|
@@ -11,7 +11,7 @@ button{border:1px solid var(--line);border-radius:6px;background:var(--raised);p
|
|
|
11
11
|
.run-summary{margin:auto;color:var(--muted);font-size:12px}.secure{color:var(--ok);font-size:11px}
|
|
12
12
|
.more-menu{position:relative}.more-menu summary{list-style:none;padding:8px 10px;border-radius:6px;cursor:pointer;font-weight:700}.more-menu summary:hover{background:var(--raised)}
|
|
13
13
|
.more-menu>div{position:absolute;right:0;top:40px;width:210px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 40px #0008}.more-menu button{display:block;width:100%;border:0;text-align:left;background:transparent}
|
|
14
|
-
main{height:calc(100vh - 56px);position:relative}.canvas{position:absolute;inset:0
|
|
14
|
+
main{height:calc(100vh - 56px);position:relative}.canvas{position:absolute;inset:0;overflow:hidden;outline:none;background-color:var(--canvas);background-image:radial-gradient(#45454c 1px,transparent 1px);background-size:24px 24px;cursor:grab;touch-action:none}.canvas:active{cursor:grabbing}.canvas.drop-ready{box-shadow:inset 0 0 0 2px var(--accent)}
|
|
15
15
|
.rail{position:absolute;z-index:20;inset:0 auto 0 0;width:56px;padding:12px 8px;border-right:1px solid var(--line);background:#1d1d20;display:flex;flex-direction:column;align-items:center;gap:10px}.rail button{width:40px;height:40px;padding:0;font-size:18px;display:grid;place-items:center}.rail button>span{display:grid;place-items:center;width:100%;height:100%;flex:none}.rail .add-node{border:0;border-radius:50%;background:var(--accent);color:#fff;font-size:26px}.rail>span{flex:1}.rail output{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:0;background:var(--muted)}.rail output.valid{background:var(--ok)}.rail output.invalid{background:var(--danger)}
|
|
16
16
|
.library,.inspector,.execution-panel{position:absolute;z-index:25;background:var(--panel);border:1px solid var(--line);box-shadow:0 16px 50px #0008}
|
|
17
17
|
.library{left:66px;top:10px;bottom:10px;width:300px;border-radius:10px;transform:translateX(-380px);transition:transform .18s ease;overflow:auto}.library.open{transform:translateX(0)}
|
|
@@ -22,10 +22,10 @@ main{height:calc(100vh - 56px);position:relative}.canvas{position:absolute;inset
|
|
|
22
22
|
small,label{display:block;color:var(--muted);font-size:11px;margin:4px 0 6px}
|
|
23
23
|
#palette{padding:10px}.palette-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px;margin:0 0 6px;background:transparent;border-color:transparent;text-align:left}.palette-item:hover{background:var(--raised)}.palette-item b{font-weight:550}.palette-item small{margin:0;font-size:10px}
|
|
24
24
|
.canvas-toolbar{position:absolute;z-index:10;left:14px;bottom:14px;display:flex;align-items:center;gap:3px;padding:5px;background:#29292edb;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0006}.canvas-toolbar button{border:0;background:transparent;padding:7px 9px}.canvas-toolbar button:hover{background:#3a3a40}.canvas-toolbar span{height:20px;width:1px;background:var(--line);margin:0 4px}.canvas-toolbar output{width:44px;text-align:center;color:var(--muted);font-size:11px}
|
|
25
|
-
#scene{position:absolute;inset:0;transform-origin:0 0;will-change:transform}#nodes,#edges,#loop-groups{position:absolute;inset:0;width:1px;height:1px;overflow:visible}
|
|
26
|
-
.node{position:absolute;width:
|
|
25
|
+
#scene{position:absolute;inset:0;transform-origin:0 0;will-change:transform}#nodes,#edges,#loop-groups,.loop-groups,.edge-controls{position:absolute;inset:0;width:1px;height:1px;overflow:visible}
|
|
26
|
+
.node{position:absolute;width:104px;min-height:104px;padding:0;border:0;background:transparent;box-shadow:none;cursor:grab;z-index:2;overflow:visible;user-select:none;text-align:center}.node.dragging{cursor:grabbing}
|
|
27
27
|
.node h3{margin:11px 0 9px;font-size:14px}.node small{font-size:9px;margin:0;color:#aaaab3}.status{font:10px ui-monospace,monospace;color:var(--muted)}.running .status{color:var(--accent)}.passed .status{color:var(--ok)}.failed .status{color:var(--danger)}.node-activity{margin:9px 0 0;color:#91dc7c;font:10px/1.4 ui-monospace,monospace}
|
|
28
|
-
.port{position:absolute;top:
|
|
28
|
+
.port{position:absolute;top:40px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;z-index:8}.port::before{content:"";position:absolute;inset:6px;border:2px solid #5b645d;border-radius:50%;background:#202422}.port:hover::before,.port:focus-visible::before{border-color:var(--accent);background:var(--accent)}.port-in{left:-12px}.port-out{right:-12px;cursor:crosshair;touch-action:none}
|
|
29
29
|
#edges{pointer-events:none}#arrow path{fill:#777780}.edge{fill:none;stroke:#777780;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}.edge.completed{stroke:var(--ok)}.edge.active{stroke:var(--accent);stroke-width:3;stroke-dasharray:9 11;animation:flow .8s linear infinite;filter:drop-shadow(0 0 4px var(--accent))}#preview-edge{display:none;fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}@keyframes flow{to{stroke-dashoffset:-20}}@keyframes agent-pulse{50%{box-shadow:0 0 0 8px #28ad0008,0 0 38px #28ad0070}}
|
|
30
30
|
.canvas-help{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:#8a8a94;font-size:10px;pointer-events:none}.canvas-help kbd{border:1px solid #505058;border-radius:3px;padding:2px 4px;font:inherit}
|
|
31
31
|
#details{padding:18px}#details input,#details textarea,#details select,.execution-panel input,.execution-panel textarea{width:100%;padding:10px 11px;margin:0 0 14px;border:1px solid var(--line);border-radius:6px;background:#1d1d21}#details textarea,.execution-panel textarea{min-height:72px;resize:vertical}#details select[multiple]{height:76px}
|
|
@@ -37,13 +37,13 @@ dialog{border:1px solid #505057;border-radius:4px;background:var(--panel);color:
|
|
|
37
37
|
.workspace-tabs{display:flex;gap:2px;margin-left:4px}.workspace-tab{border:0;background:transparent;color:var(--muted)}.workspace-tab.active{background:var(--raised);color:var(--text)}.workflow-context{display:flex;align-items:center;gap:6px}
|
|
38
38
|
.node-title{display:block;width:100%;margin:10px 0 3px;padding:0;border:0;background:transparent;text-align:left;font-weight:650}.node-title:hover{background:transparent;color:#91dc7c}.technical-id{display:block;margin-bottom:9px;color:#777781;font:9px ui-monospace,monospace}.inline-rename{width:100%;margin:8px 0;padding:6px;background:#202024;border:1px solid var(--accent)}
|
|
39
39
|
.output-add{position:absolute;right:-62px;top:39px;width:30px;height:30px;padding:0;border-radius:50%;border-color:var(--accent);background:var(--accent);color:#fff;font-size:20px;opacity:0;z-index:5;transform:scale(.8);transition:.12s}.node:hover .output-add,.output-add:focus{opacity:1;transform:scale(1)}
|
|
40
|
-
#edge-controls{position:absolute;inset:0;width:1px;height:1px;z-index:5}.edge-delete{position:absolute;width:
|
|
40
|
+
#edge-controls,.edge-controls{position:absolute;inset:0;width:1px;height:1px;z-index:5;overflow:visible;pointer-events:none}.edge-delete{position:absolute;width:22px;height:22px;min-width:0;padding:0;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;color:transparent;box-shadow:none;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden}.edge-delete.visible,.edge-delete.selected,.edge-delete:hover{opacity:1;visibility:visible;pointer-events:auto;border:1px solid var(--danger);background:var(--danger);color:#fff}.edge.selected{stroke:var(--accent);stroke-width:3}.edge-label{display:none}
|
|
41
41
|
.execute-pod{position:absolute;left:0;top:calc(100% + 12px);width:224px;padding:8px;background:#25252a;border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:6px}.execute-pod input{min-width:0;padding:7px;border:1px solid var(--line);background:#19191c;border-radius:5px}.execute-pod button{background:var(--accent);border-color:var(--accent);color:#fff}.execute-hint{grid-column:1/-1;color:var(--muted);font-size:9px}
|
|
42
42
|
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.edge.active{stroke-dasharray:none}.node.running,.node.agent-active{box-shadow:0 0 0 2px var(--accent)}}
|
|
43
43
|
.selection-actions{position:absolute;z-index:12;left:50%;top:14px;transform:translateX(-50%);padding:6px;background:#29292e;border:1px solid var(--line);border-radius:8px}.selection-actions span{margin:0 8px;color:var(--muted)}#selection-marquee{position:absolute;display:none;border:1px solid var(--accent);background:#28ad0018;pointer-events:none}
|
|
44
|
-
.loop-group{position:absolute;z-index:1;border:1px
|
|
44
|
+
.loop-group{position:absolute;z-index:1;border:1px solid #28ad0059;border-radius:28px;background:#28ad000c;pointer-events:none}.loop-group>header,.loop-pill{position:absolute;z-index:2;height:26px;display:flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid #28ad0080;border-radius:999px;background:#17251a;color:#83db69;font-size:12px;font-weight:700;line-height:26px;white-space:nowrap;pointer-events:none}.loop-group.blocked{border-color:var(--warning);background:#e4a8530a}.loop-group.exited{opacity:.72}.loop-return{stroke:#28ad00;stroke-dasharray:7 6}
|
|
45
45
|
.custom-node-action{width:calc(100% - 20px);margin:4px 10px 14px;border-color:var(--accent);color:#91dc7c}
|
|
46
|
-
.runs-view{position:absolute;inset:0
|
|
46
|
+
.runs-view{position:absolute;inset:0;padding:28px 34px;overflow:auto;background:var(--canvas)}.runs-header{display:flex;align-items:end;justify-content:space-between;gap:30px;max-width:1440px;margin:auto}.runs-header h1{margin:5px 0;font-size:32px;letter-spacing:-.04em}.runs-header p{color:var(--muted)}.run-filters{display:flex;align-items:end;gap:7px}.run-filters label{margin:0}.run-filters input,.run-filters select{display:block;max-width:150px;margin-top:6px;padding:10px;border:1px solid var(--line);background:var(--bg);border-radius:3px}.run-search{width:min(300px,32vw)}.run-search input{width:100%;max-width:none}.runs-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:16px;max-width:1440px;margin:22px auto}.run-list,.run-detail{min-height:520px;border:1px solid var(--line);border-radius:4px;background:var(--panel);padding:12px}.run-list-label{display:flex;align-items:center;gap:8px;margin:8px 7px 10px;color:#91dc7c;font:9px ui-monospace,monospace;text-transform:uppercase;letter-spacing:.12em}.run-list-label i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 #28ad0066;animation:active-pulse 1.7s ease-out infinite}.run-list-label.history-label{margin-top:22px;color:var(--muted)}.run-list-empty{padding:8px}.run-row{display:block;width:100%;margin-bottom:7px;padding:16px;text-align:left;background:transparent;border-color:transparent;border-radius:3px}.run-row:hover{background:var(--raised);border-color:#4d4d54}.run-row.active-run-row{background:#28ad000d;border-color:#28ad0066}.run-row strong,.run-row span,.run-row small{display:block}.run-row span{margin:7px 0;color:#91dc7c;font-size:10px;letter-spacing:.04em}.run-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-detail{padding:24px;overflow:hidden}.run-detail h2{font-size:26px;margin:5px 0;letter-spacing:-.03em}.timeline p{display:grid;grid-template-columns:180px 1fr;gap:12px;border-top:1px solid var(--line);padding:9px 0}.timeline time{color:var(--muted);font:10px ui-monospace,monospace}.empty-state{padding:50px 22px;text-align:center;color:var(--muted)}@keyframes active-pulse{70%{box-shadow:0 0 0 8px #28ad0000}100%{box-shadow:0 0 0 0 #28ad0000}}
|
|
47
47
|
.checkout-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.checkout-header .quiet{float:none;margin:0 0 14px -10px}.checkout-actions{display:flex;gap:7px;flex-shrink:0}.checkout-meta{display:flex;gap:16px;padding:13px 0;margin:16px 0;border-block:1px solid var(--line);color:var(--muted);font:10px ui-monospace,monospace}.checkout-canvas{position:relative;width:max(100%,var(--checkout-width));height:var(--checkout-height);min-height:330px;margin:20px 0;overflow:auto;background-color:#1e1e21;background-image:radial-gradient(#414147 1px,transparent 1px);background-size:24px 24px;border:1px solid var(--line)}.checkout-canvas svg{position:absolute;inset:0;width:var(--checkout-width);height:var(--checkout-height);pointer-events:none}.checkout-canvas path{fill:none;stroke:#696972;stroke-width:2}.checkout-node{position:absolute;width:224px;min-height:104px;padding:15px 17px;text-align:left;background:#2d2d32;border:1px solid #515158;border-radius:4px;box-shadow:6px 6px 0 #111114}.checkout-node small,.checkout-node strong,.checkout-node span{display:block}.checkout-node strong{margin:13px 0 10px}.checkout-node span{font:10px ui-monospace,monospace;color:var(--muted)}.checkout-node.status-passed{border-left:5px solid var(--ok)}.checkout-node.status-running{border-color:var(--accent);box-shadow:0 0 0 1px #28ad0055,0 0 24px #28ad0026;animation:running-node 1.7s ease-in-out infinite}.checkout-node.status-ready{border-left:5px solid var(--warning)}.checkout-node.status-failed{border-left:5px solid var(--danger)}.checkout-node.status-blocked{opacity:.62}.node-io-panel,.agent-interactions{margin-top:18px;padding:20px;border:1px solid var(--line);background:#1d1d20}.io-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.io-grid>section{min-width:0;padding:18px;background:#202024}.io-grid h4{margin-top:0;text-transform:uppercase;font-size:10px;letter-spacing:.12em;color:#91dc7c}.io-grid pre{max-height:260px;overflow:auto;white-space:pre-wrap;background:#151518;padding:13px;font-size:11px}.artifact-path{overflow-wrap:anywhere;color:var(--muted);font:10px ui-monospace,monospace}.agent-interactions>header{display:flex;justify-content:space-between}.agent-question{padding:16px 0;border-top:1px solid var(--line)}.agent-question form{display:grid;grid-template-columns:1fr auto;gap:8px}.agent-question textarea{min-height:72px;padding:11px;background:#17171a;border:1px solid var(--line);color:var(--text);resize:vertical}.agent-answer{padding:12px;border-left:3px solid var(--accent);background:var(--accent-soft)}@keyframes running-node{50%{box-shadow:0 0 0 2px #28ad0080,0 0 30px #28ad0040}}
|
|
48
48
|
.checkout-loop{position:absolute;z-index:0;border:1px dashed #28ad0099;background:#28ad0008;border-radius:8px;pointer-events:none}.checkout-loop b,.checkout-loop span{position:relative;top:-13px;display:inline-block;padding:3px 6px;background:#1b2818;font-size:9px}.checkout-loop span{color:#91dc7c;font-family:ui-monospace,monospace}.checkout-node{z-index:2}
|
|
49
49
|
.classic-run{margin:20px 0;padding:24px;border:1px solid var(--line);background:#1d1d20}.classic-run h3{margin:8px 0;font-size:18px}.classic-run>p{max-width:720px;color:var(--muted);line-height:1.6}.classic-run .timeline{margin-top:20px}
|
|
@@ -52,8 +52,135 @@ dialog{border:1px solid #505057;border-radius:4px;background:var(--panel);color:
|
|
|
52
52
|
@media(prefers-reduced-motion:reduce){.edge.active,.goal-state.frozen::after{animation:none}.library,.inspector,.execution-panel,.node{transition:none}}
|
|
53
53
|
|
|
54
54
|
/* Persisted execution states: quiet, legible, and semantic rather than decorative. */
|
|
55
|
-
.
|
|
55
|
+
.edge.edge-idle{stroke:#66666e}.edge.edge-active{stroke:var(--accent);stroke-width:3;stroke-dasharray:8 10;animation:flow .8s linear infinite}.edge.edge-passed{stroke:#71806d}.edge.edge-failed{stroke:var(--danger);stroke-width:2.5}.edge.edge-skipped{stroke:#696971;stroke-dasharray:4 7}.edge.edge-waiting{stroke:var(--warning);stroke-dasharray:2 7}.checkout-canvas path.edge-active{stroke:var(--accent);stroke-width:3;stroke-dasharray:8 10;animation:flow .8s linear infinite}.checkout-canvas path.edge-passed{stroke:#71806d}.checkout-canvas path.edge-failed{stroke:var(--danger);stroke-width:2.5}.checkout-canvas path.edge-skipped{stroke:#696971;stroke-dasharray:4 7}.checkout-canvas path.edge-waiting{stroke:var(--warning);stroke-dasharray:2 7}.checkout-node.status-running{border:1px solid var(--accent);box-shadow:0 0 0 1px #28ad0048,6px 8px 0 #111114;animation:node-breathe 1.8s ease-in-out infinite}.checkout-node.status-passed{border:1px solid #53614f;box-shadow:6px 6px 0 #111114}.checkout-node.status-passed::after{position:absolute;right:12px;top:12px;padding:3px 6px;border:1px solid #586154;border-radius:3px;color:#a9c3a2;background:#252a24;content:"✓ PASSED";font:8px ui-monospace,monospace;letter-spacing:.08em}@keyframes node-breathe{50%{border-color:#77ce5f;box-shadow:0 0 0 2px #28ad0038,0 18px 38px #0009}}
|
|
56
56
|
.run-activity-dock{position:absolute;z-index:20;top:66px;left:50%;width:min(760px,calc(100% - 64px));transform:translateX(-50%);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px 16px;align-items:center;padding:13px 15px;border:1px solid #4b4b52;border-radius:7px;background:#252529f7;box-shadow:0 16px 34px #0008}.run-activity-dock[hidden]{display:none}.activity-orbit{width:10px;height:10px;border:2px solid var(--accent);border-radius:50%;box-shadow:0 0 0 4px #28ad0018;animation:activity-orbit 1.5s ease-in-out infinite}.run-activity-copy{min-width:0}.run-activity-copy small{display:block;margin-bottom:3px;color:#91dc7c;font:8px ui-monospace,monospace;letter-spacing:.12em}.run-activity-copy strong,.run-activity-copy p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-activity-copy p{margin:3px 0 0;color:var(--muted);font-size:11px}.run-activity-actions{display:flex;align-items:center;gap:7px}.run-activity-actions .mono{color:var(--muted);font-size:9px}.run-activity-timeline{grid-column:2/-1;display:flex;gap:12px;min-width:0;overflow:hidden;border-top:1px solid #3d3d43;padding-top:7px}.run-activity-timeline span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aaaab1;font-size:9px}.run-activity-timeline time{margin-right:5px;color:#73737c;font-family:ui-monospace,monospace}@keyframes activity-orbit{50%{transform:scale(.72);opacity:.58}}
|
|
57
57
|
.node-io-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.node-io-head p{margin:2px 0;color:var(--muted);font-size:9px}.io-tabs{display:flex;gap:2px;margin-top:18px;border-bottom:1px solid var(--line);overflow-x:auto}.io-tab{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);white-space:nowrap}.io-tab[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text)}.node-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.io-pane{display:none;min-width:0;min-height:250px;padding:18px;background:#202024}.io-pane.active{display:block}.io-pane h4{margin-top:0;color:#91dc7c;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.io-pane pre{max-height:280px;overflow:auto;white-space:pre-wrap;background:#151518;padding:13px;font-size:11px}.node-progress{padding:10px;border-left:2px solid var(--accent);background:#242a22;color:#c3d9bd}
|
|
58
58
|
@media(max-width:900px){.run-activity-dock{top:58px;width:calc(100% - 24px);grid-template-columns:auto minmax(0,1fr)}.run-activity-actions,.run-activity-timeline{grid-column:2}.run-activity-actions{flex-wrap:wrap}}
|
|
59
59
|
@media(prefers-reduced-motion:reduce){.edge.edge-active,.checkout-canvas path.edge-active,.node.running,.node.agent-active,.checkout-node.status-running,.activity-orbit{animation:none}}
|
|
60
|
+
|
|
61
|
+
.watched-root{max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:11px ui-monospace,monospace}
|
|
62
|
+
.live-mode{flex:none;padding:3px 8px;border:1px solid var(--line);border-radius:999px;color:#91dc7c;font:10px ui-monospace,monospace;letter-spacing:.04em}
|
|
63
|
+
.live-view{position:absolute;inset:0;padding:28px 34px;overflow:auto;background:var(--canvas)}
|
|
64
|
+
.live-view[hidden],.runs-view[hidden],.canvas[hidden]{display:none}
|
|
65
|
+
.stage-rail{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
|
|
66
|
+
.stage-rail li{padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font:11px ui-monospace,monospace}
|
|
67
|
+
.stage-rail li.active{border-color:var(--accent);color:#91dc7c;background:var(--accent-soft)}
|
|
68
|
+
.live-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;color:var(--muted)}
|
|
69
|
+
.live-meta .chip{padding:4px 8px;border:1px solid var(--line);border-radius:4px;font:10px ui-monospace,monospace}
|
|
70
|
+
.pending-banner{margin:0 0 16px;padding:12px 14px;border:1px solid var(--warning);border-radius:6px;background:#493817}
|
|
71
|
+
.pending-banner[hidden]{display:none}
|
|
72
|
+
.run-journey li.event{color:var(--muted);font:11px ui-monospace,monospace}
|
|
73
|
+
.canvas-toolbar{left:14px;top:14px;bottom:auto}
|
|
74
|
+
.preview-edge{display:none;fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}
|
|
75
|
+
|
|
76
|
+
.node-tile{position:relative;width:104px;height:104px;border:1.5px solid #3c443e;border-radius:22px;background:#202422;box-shadow:0 10px 24px #0006;display:grid;place-items:center}
|
|
77
|
+
.node:hover .node-tile{border-color:#6a756c}
|
|
78
|
+
.node.selected .node-tile{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 12px 28px #0008}
|
|
79
|
+
.node[data-status="active"] .node-tile{border-color:#83db69;box-shadow:0 0 0 6px #83db6926,0 0 28px #28ad0044;animation:node-breathe 1.8s ease-in-out infinite}
|
|
80
|
+
.node[data-status="failed"] .node-tile{border-color:#8b4a47}
|
|
81
|
+
.node[data-status="waiting"] .node-tile,.node[data-status="skipped"] .node-tile{border-style:dashed}
|
|
82
|
+
.node[data-status="skipped"]{opacity:.68}
|
|
83
|
+
.node-icon{width:60px;height:60px;border-radius:16px;display:grid;place-items:center;background:#22352a;color:#dff5d6}
|
|
84
|
+
.node[data-status="idle"] .node-icon,.node[data-status="waiting"] .node-icon,.node[data-status="skipped"] .node-icon{background:#222624;color:#8d958f}
|
|
85
|
+
.node[data-status="active"] .node-icon{background:#24401c}
|
|
86
|
+
.node[data-status="failed"] .node-icon{background:#3a2222;color:#f0c2bf}
|
|
87
|
+
.node-icon svg{width:32px;height:32px;display:block}
|
|
88
|
+
.node-mark{display:none;position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%}
|
|
89
|
+
.node[data-status="passed"] .node-mark{display:block;background:#28ad00}
|
|
90
|
+
.node[data-status="passed"] .node-mark::before{content:"";position:absolute;left:5px;top:3px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
|
|
91
|
+
.node[data-status="failed"] .node-mark{display:grid;place-items:center;background:#ef6262;color:#fff;font:13px/18px sans-serif}
|
|
92
|
+
.node[data-status="failed"] .node-mark::before{content:"×"}
|
|
93
|
+
.node[data-status="active"] .node-mark{display:block;background:#1a1d1b;border:2px solid #83db69}
|
|
94
|
+
.node[data-status="active"] .node-mark::before{content:"";position:absolute;inset:2px;border-radius:50%;border:2px solid transparent;border-top-color:#83db69;animation:node-mark-spin .8s linear infinite}
|
|
95
|
+
@keyframes node-mark-spin{to{transform:rotate(360deg)}}
|
|
96
|
+
.node-name{display:block;margin-top:8px;color:var(--text);font-size:14px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap}
|
|
97
|
+
.node-status{display:block;margin-top:2px;color:#6c746e;font-size:12px;line-height:1.3;text-align:center;white-space:nowrap}
|
|
98
|
+
.node[data-status="passed"] .node-status{color:#28ad00}
|
|
99
|
+
.node[data-status="active"] .node-status{color:#83db69}
|
|
100
|
+
.node[data-status="failed"] .node-status{color:var(--danger)}
|
|
101
|
+
.node[data-status="waiting"] .node-status{color:var(--warning)}
|
|
102
|
+
@media (prefers-reduced-motion:reduce){.edge.edge-active,.node[data-status="active"] .node-tile,.node[data-status="active"] .node-mark::before{animation:none}}
|
|
103
|
+
|
|
104
|
+
#node-panel{position:absolute;z-index:18;top:0;right:0;bottom:0;width:400px;background:#171a18;border-left:1px solid #2c312d;box-shadow:-16px 0 40px #0006;color:var(--text)}
|
|
105
|
+
#node-panel[hidden]{display:none}
|
|
106
|
+
.node-panel-frame{display:flex;flex-direction:column;height:100%;min-height:0}
|
|
107
|
+
.node-panel-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"icon titles close" "icon meta close";gap:4px 12px;align-items:center;padding:18px 16px 8px}
|
|
108
|
+
.panel-type-icon{grid-area:icon;width:44px;height:44px;border-radius:12px}
|
|
109
|
+
.panel-type-icon svg{width:24px;height:24px}
|
|
110
|
+
.node-panel-titles{grid-area:titles;min-width:0}
|
|
111
|
+
.node-panel-titles h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.2}
|
|
112
|
+
.node-panel-titles p{margin:3px 0 0;color:#9aa39c;font-size:13px}
|
|
113
|
+
.node-panel-meta{grid-area:meta;display:flex;align-items:center;gap:8px;min-width:0;margin-top:6px}
|
|
114
|
+
.node-panel-close{grid-area:close;align-self:start;border:0;background:transparent;color:#6c746e;font-size:20px;line-height:1;padding:2px 6px}
|
|
115
|
+
.status-pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700}
|
|
116
|
+
.status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
|
|
117
|
+
.status-pill.status-active{background:#203a18;color:#83db69}
|
|
118
|
+
.status-pill.status-passed{background:#17321a;color:#28ad00}
|
|
119
|
+
.status-pill.status-failed{background:#3a2222;color:#ef6262}
|
|
120
|
+
.status-pill.status-waiting{background:#3a3018;color:#e4a853}
|
|
121
|
+
.status-pill.status-skipped,.status-pill.status-idle{background:#222624;color:#9aa39c}
|
|
122
|
+
.status-duration{color:#9aa39c;font-size:13px}
|
|
123
|
+
#node-panel .io-tabs{margin:8px 16px 0}
|
|
124
|
+
.node-panel-body{flex:1;min-height:0;overflow:auto;padding:8px 18px 28px}
|
|
125
|
+
.node-panel-body h3{margin:16px 0 6px;color:#9aa39c;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
|
|
126
|
+
.node-panel-body p{margin:0 0 8px;line-height:1.45}
|
|
127
|
+
.node-panel-body pre{max-height:280px;overflow:auto;white-space:pre-wrap;background:#151518;padding:12px;border-radius:8px;font-size:11px}
|
|
128
|
+
.node-panel-body .empty-state{padding:36px 8px}
|
|
129
|
+
.panel-timeline{list-style:none;margin:8px 0 0;padding:0}
|
|
130
|
+
.panel-timeline li{display:grid;grid-template-columns:148px minmax(0,1fr);gap:2px 10px;padding:8px 0;border-top:1px solid var(--line)}
|
|
131
|
+
.panel-timeline time{color:var(--muted);font:11px ui-monospace,monospace}
|
|
132
|
+
.panel-timeline strong{font-size:12px}
|
|
133
|
+
.panel-timeline span{color:#c8c8ce}
|
|
134
|
+
.evidence-card{margin:0 0 12px;padding:12px;border:1px solid #2c312d;border-radius:10px;background:#1d211f}
|
|
135
|
+
.node-tooltip{position:absolute;z-index:16;max-width:240px;padding:10px 12px;border:1px solid #3a413c;border-radius:10px;background:#0e100f;box-shadow:0 12px 28px #0008;pointer-events:none}
|
|
136
|
+
.node-tooltip[hidden]{display:none}
|
|
137
|
+
.node-tooltip strong,.node-tooltip span{display:block}
|
|
138
|
+
.node-tooltip strong{font-size:13px}
|
|
139
|
+
.node-tooltip .tooltip-type,.node-tooltip .tooltip-summary{margin-top:3px;color:#9aa39c;font-size:12px}
|
|
140
|
+
.node-tooltip .tooltip-status{margin-top:4px;color:#6c746e;font-size:12px}
|
|
141
|
+
.zoom-controls{position:absolute;z-index:12;left:14px;bottom:14px;display:flex;align-items:center;height:40px;padding:0 10px 0 4px;background:#1a1d1b;border:1px solid #2c312d;border-radius:10px;box-shadow:0 8px 24px #0006}
|
|
142
|
+
.zoom-controls .zoom-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;background:transparent;color:var(--text)}
|
|
143
|
+
.zoom-controls .zoom-button:hover{background:#2a2e2c}
|
|
144
|
+
.zoom-controls .zoom-button svg{width:16px;height:16px;display:block}
|
|
145
|
+
.zoom-sep{width:1px;height:18px;margin:0 2px;background:#2c312d}
|
|
146
|
+
.zoom-level{min-width:44px;margin-left:8px;color:#6c746e;font-size:12px;text-align:right}
|
|
147
|
+
.minimap{position:absolute;z-index:12;right:14px;bottom:14px;width:180px;height:110px;background:#1a1d1b;border:1px solid #2c312d;border-radius:10px;box-shadow:0 8px 24px #0006;pointer-events:all}
|
|
148
|
+
.canvas.panel-open .minimap{right:424px}
|
|
149
|
+
.minimap-passed{fill:#28ad00}
|
|
150
|
+
.minimap-active{fill:#83db69}
|
|
151
|
+
.minimap-failed{fill:#ef6262}
|
|
152
|
+
.minimap-waiting,.minimap-skipped{fill:#e4a853}
|
|
153
|
+
.minimap-idle{fill:#6c746e}
|
|
154
|
+
.minimap-viewport{fill:#fff;fill-opacity:.04;stroke:#9aa39c;stroke-opacity:.6}
|
|
155
|
+
#shortcut-sheet{width:min(420px,calc(100vw - 32px));padding:22px 24px}
|
|
156
|
+
#shortcut-sheet button{float:none}
|
|
157
|
+
#shortcut-sheet h2{margin-bottom:12px}
|
|
158
|
+
.shortcut-list{margin:0}
|
|
159
|
+
.shortcut-list div{display:grid;grid-template-columns:minmax(108px,150px) 1fr;gap:12px;padding:7px 0;border-top:1px solid var(--line)}
|
|
160
|
+
.shortcut-list dt{margin:0;color:#83db69;font:12px ui-monospace,monospace}
|
|
161
|
+
.shortcut-list dd{margin:0;color:#9aa39c}
|
|
162
|
+
button:focus-visible,select:focus-visible,a:focus-visible,[role="tab"]:focus-visible,[role="button"]:focus-visible,.canvas:focus-visible{outline:2px solid #83db69;outline-offset:2px}
|
|
163
|
+
.node:focus-visible .node-tile{outline:2px solid #83db69;outline-offset:3px}
|
|
164
|
+
@media(max-width:900px){#node-panel{width:min(400px,100%)}.canvas.panel-open .minimap{display:none}}
|
|
165
|
+
|
|
166
|
+
.run-summary-card{position:absolute;z-index:14;top:14px;left:50%;transform:translateX(-50%);width:min(860px,calc(100% - 280px));padding:12px 14px;border:1px solid #2c312d;border-radius:12px;background:#1a1d1bf5;box-shadow:0 12px 32px #0007}
|
|
167
|
+
.run-summary-card[hidden]{display:none}
|
|
168
|
+
.summary-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 12px;margin:0}
|
|
169
|
+
.summary-fact{min-width:0}
|
|
170
|
+
.summary-fact span{display:block;margin:0;color:#6c746e;font:10px ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase}
|
|
171
|
+
.summary-fact strong{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
|
|
172
|
+
.wiring-bar{position:absolute;z-index:16;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:min(760px,calc(100% - 420px));padding:8px;border:1px solid #2c312d;border-radius:12px;background:#1a1d1bf5;box-shadow:0 12px 32px #0008}
|
|
173
|
+
.wiring-bar[hidden]{display:none}
|
|
174
|
+
#wiring-count{margin:0;white-space:nowrap;font-weight:650}
|
|
175
|
+
.wiring-pill{margin:0;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
|
|
176
|
+
.wiring-pill.valid{background:#17321a;color:#28ad00}
|
|
177
|
+
.wiring-pill.invalid{background:#3a2222;color:#ef6262}
|
|
178
|
+
.wiring-pill.pending{background:#2a2e2c;color:#9aa39c}
|
|
179
|
+
#wiring-error{margin:0;max-width:320px;color:#ffb4b4;font-size:12px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
|
|
180
|
+
#wiring-error:empty{display:none}
|
|
181
|
+
.wiring-bar button{padding:7px 10px;white-space:nowrap}
|
|
182
|
+
.edge.edge-invalid{stroke:var(--danger);stroke-width:2.5}
|
|
183
|
+
.edge-error{position:absolute;z-index:6;max-width:240px;margin:0;padding:4px 8px;transform:translate(-50%,8px);border:1px solid #8b4a47;border-radius:6px;background:#2a1616;color:#ffb4b4;font-size:11px;line-height:1.35;pointer-events:none}
|
|
184
|
+
.edge-end{position:absolute;z-index:6;width:12px;height:12px;padding:0;border:2px solid #8d958f;border-radius:50%;background:#202422;transform:translate(-50%,-50%);opacity:0;pointer-events:none}
|
|
185
|
+
.edge-end.visible,.edge-end:hover{opacity:1;pointer-events:auto;cursor:grab}
|
|
186
|
+
@media(max-width:900px){.run-summary-card{top:58px;width:calc(100% - 24px)}.summary-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.wiring-bar{bottom:64px;max-width:calc(100% - 24px)}}
|