ai-engineering-loop 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -1
- package/bin/ai-engineering-loop.js +7 -2
- package/lib/run-checkout.js +22 -9
- package/lib/workflow-runtime.js +40 -2
- package/package.json +1 -1
- package/recipes/default.json +18 -2
- package/studio/app.js +78 -13
- package/studio/styles.css +1 -0
package/README.md
CHANGED
|
@@ -65,6 +65,8 @@ Workflow Studio makes agent work feel like a product, not a terminal session.
|
|
|
65
65
|
- Add the next step directly from any node
|
|
66
66
|
- Rename nodes in place without breaking their identity
|
|
67
67
|
- Select, move, duplicate, or delete groups of nodes
|
|
68
|
+
- Turn selected steps into independent Loop Groups
|
|
69
|
+
- Label repeat and continue paths in plain language
|
|
68
70
|
- Import and export workflow JSON safely
|
|
69
71
|
- Create your own prompt-powered Agent nodes
|
|
70
72
|
|
|
@@ -74,12 +76,34 @@ Write the task in plain language, add the outcomes that matter, and **Freeze** t
|
|
|
74
76
|
|
|
75
77
|
### Follow every Run
|
|
76
78
|
|
|
77
|
-
Runs have human-friendly names instead of cryptic hashes. Search previous work,
|
|
79
|
+
Runs have human-friendly names instead of cryptic hashes. Search previous work, open any Run as a read-only workflow, and see exactly where it stopped.
|
|
80
|
+
|
|
81
|
+
Select a node to inspect its real **Input**, **Output**, **Evidence**, and timeline. The canvas shows the actual status of every step, so completed work, failures, approvals, and waiting nodes are easy to understand.
|
|
82
|
+
|
|
83
|
+
### Continue with your AI agent
|
|
84
|
+
|
|
85
|
+
Use **Copy for AI Agent** to create a ready-to-use handoff for the selected Run. The agent continues with the same Goal, workflow, and evidence instead of starting from scratch.
|
|
86
|
+
|
|
87
|
+
If the agent needs clarification, its questions can appear inside Workflow Studio. You answer them there, and the answer stays attached to the Run.
|
|
88
|
+
|
|
89
|
+
### Repeat only the steps that need another pass
|
|
90
|
+
|
|
91
|
+
Create multiple independent Loop Groups in one workflow:
|
|
92
|
+
|
|
93
|
+
- Select the steps that belong together
|
|
94
|
+
- Choose where the loop starts and where the decision happens
|
|
95
|
+
- Give repeat and continue paths clear labels such as `NO · RETRY` and `YES · CONTINUE`
|
|
96
|
+
- Set a maximum number of passes
|
|
97
|
+
- Follow a separate `Iteration 2 / 3` counter for each group
|
|
98
|
+
|
|
99
|
+
When a loop reaches its limit, Workflow Studio pauses for approval. You can allow one focused extra pass, continue with the current evidence, or stop the Run safely. Nested and overlapping loops stay disabled so the workflow remains easy to read.
|
|
78
100
|
|
|
79
101
|
### Execute with confidence
|
|
80
102
|
|
|
81
103
|
The Execute button lives beside the workflow trigger. A Run starts only when the Goal, workflow, mode, and safety checks are ready.
|
|
82
104
|
|
|
105
|
+
> **New in v1.9.0:** Run Checkout, AI Agent handoff, live Run questions, and Multiple Loop Groups. [See the release](https://github.com/egagofur/ai-engineering-loop/releases/tag/v1.9.0).
|
|
106
|
+
|
|
83
107
|
## One workspace from idea to delivery
|
|
84
108
|
|
|
85
109
|
The experience is organized into four simple moments:
|
|
@@ -868,8 +868,13 @@ function handleRun() {
|
|
|
868
868
|
let mode = modeArg ? normalizeMode(modeArg) : (startsNewRun ? policy.defaultMode : null);
|
|
869
869
|
let workflow = null;
|
|
870
870
|
let requestedRunId = null;
|
|
871
|
-
|
|
872
|
-
|
|
871
|
+
const selectedRecipeId = recipeArg || (
|
|
872
|
+
startsNewRun
|
|
873
|
+
? (mode === RUN_MODES.REPORT_ONLY ? 'audit' : 'default')
|
|
874
|
+
: null
|
|
875
|
+
);
|
|
876
|
+
if (selectedRecipeId) {
|
|
877
|
+
const { recipe } = loadRecipe(CWD, selectedRecipeId);
|
|
873
878
|
if (!mode && current) mode = current.mode;
|
|
874
879
|
if (startsNewRun && !modeArg && !recipe.compatibleModes.includes(mode)) {
|
|
875
880
|
if (recipe.compatibleModes.length !== 1) {
|
package/lib/run-checkout.js
CHANGED
|
@@ -47,17 +47,29 @@ function publicNode(node, state, index) {
|
|
|
47
47
|
|
|
48
48
|
function runCheckout(rootDir, runId) {
|
|
49
49
|
const run = loadRun(rootDir, runId);
|
|
50
|
+
const publicRun = {
|
|
51
|
+
runId: run.runId,
|
|
52
|
+
displayName: run.displayName,
|
|
53
|
+
task: run.task,
|
|
54
|
+
constraints: run.constraints || '',
|
|
55
|
+
state: run.state,
|
|
56
|
+
createdAt: run.createdAt,
|
|
57
|
+
updatedAt: run.updatedAt
|
|
58
|
+
};
|
|
59
|
+
if (!run.workflow) {
|
|
60
|
+
return redactedValue({
|
|
61
|
+
run: publicRun,
|
|
62
|
+
graphHash: null,
|
|
63
|
+
nodes: [],
|
|
64
|
+
edges: [],
|
|
65
|
+
loopGroups: [],
|
|
66
|
+
workflowBound: false,
|
|
67
|
+
readOnly: true
|
|
68
|
+
});
|
|
69
|
+
}
|
|
50
70
|
const workflow = workflowStatus(rootDir, { runId });
|
|
51
71
|
return redactedValue({
|
|
52
|
-
run:
|
|
53
|
-
runId: run.runId,
|
|
54
|
-
displayName: run.displayName,
|
|
55
|
-
task: run.task,
|
|
56
|
-
constraints: run.constraints || '',
|
|
57
|
-
state: run.state,
|
|
58
|
-
createdAt: run.createdAt,
|
|
59
|
-
updatedAt: run.updatedAt
|
|
60
|
-
},
|
|
72
|
+
run: publicRun,
|
|
61
73
|
graphHash: workflow.plan.graphHash,
|
|
62
74
|
nodes: workflow.plan.nodes.map((node, index) => publicNode(node, workflow.state, index)),
|
|
63
75
|
edges: edgesFromPlan(workflow.plan),
|
|
@@ -65,6 +77,7 @@ function runCheckout(rootDir, runId) {
|
|
|
65
77
|
...group,
|
|
66
78
|
runtime: workflow.state.loopGroups[group.id] || null
|
|
67
79
|
})),
|
|
80
|
+
workflowBound: true,
|
|
68
81
|
readOnly: true
|
|
69
82
|
});
|
|
70
83
|
}
|
package/lib/workflow-runtime.js
CHANGED
|
@@ -974,7 +974,23 @@ function applyWorkflowGate(rootDir, gate, { runId, now = new Date(), transitionO
|
|
|
974
974
|
reason: null,
|
|
975
975
|
activity: null
|
|
976
976
|
}, now);
|
|
977
|
-
|
|
977
|
+
const decisionGroup = gate === 'judge' ? loopForDecision(workflow.plan, node.id) : null;
|
|
978
|
+
const loopChanges = [];
|
|
979
|
+
if (decisionGroup && run.state === RUN_STATES.GOAL_FROZEN) {
|
|
980
|
+
const currentLoop = workflow.state.loopGroups[decisionGroup.id];
|
|
981
|
+
const nextIteration = currentLoop.iteration + 1;
|
|
982
|
+
changes = changes.concat(resetLoopNodes(workflow, decisionGroup, nextIteration, now));
|
|
983
|
+
loopChanges.push(loopChange(workflow, decisionGroup.id, {
|
|
984
|
+
status: 'RUNNING',
|
|
985
|
+
iteration: nextIteration,
|
|
986
|
+
lastOutcome: decisionGroup.repeatOutcome
|
|
987
|
+
}, now));
|
|
988
|
+
} else if (decisionGroup && run.state === RUN_STATES.JUDGED_PASS) {
|
|
989
|
+
loopChanges.push(loopChange(workflow, decisionGroup.id, {
|
|
990
|
+
status: 'EXITED',
|
|
991
|
+
lastOutcome: decisionGroup.exitOutcome
|
|
992
|
+
}, now));
|
|
993
|
+
} else if (gate === 'judge' && run.state === RUN_STATES.GOAL_FROZEN) {
|
|
978
994
|
const maker = workflow.plan.nodes.find((candidate) => candidate.type === 'maker');
|
|
979
995
|
for (const resetId of descendants(workflow.plan, maker.id)) {
|
|
980
996
|
const current = workflow.state.nodes[resetId];
|
|
@@ -996,11 +1012,33 @@ function applyWorkflowGate(rootDir, gate, { runId, now = new Date(), transitionO
|
|
|
996
1012
|
changes.push({ nodeId: candidate.id, from: current.status, node: replacement });
|
|
997
1013
|
}
|
|
998
1014
|
}
|
|
1015
|
+
if (decisionGroup) {
|
|
1016
|
+
loopChanges.push(loopChange(workflow, decisionGroup.id, {
|
|
1017
|
+
status: 'BLOCKED',
|
|
1018
|
+
lastOutcome: 'ESCALATE'
|
|
1019
|
+
}, now));
|
|
1020
|
+
}
|
|
999
1021
|
}
|
|
1000
1022
|
if (run.state !== RUN_STATES.ESCALATED) {
|
|
1001
1023
|
changes = changes.concat(refreshNodes(workflow.plan, workflow.state, run));
|
|
1002
1024
|
}
|
|
1003
|
-
workflow = commitChanges(
|
|
1025
|
+
workflow = commitChanges(
|
|
1026
|
+
rootDir,
|
|
1027
|
+
workflow,
|
|
1028
|
+
'GATE_PASSED',
|
|
1029
|
+
changes,
|
|
1030
|
+
{
|
|
1031
|
+
nodeId: node.id,
|
|
1032
|
+
gate,
|
|
1033
|
+
...(decisionGroup ? {
|
|
1034
|
+
groupId: decisionGroup.id,
|
|
1035
|
+
iteration: workflow.state.loopGroups[decisionGroup.id].iteration
|
|
1036
|
+
} : {})
|
|
1037
|
+
},
|
|
1038
|
+
now,
|
|
1039
|
+
false,
|
|
1040
|
+
loopChanges
|
|
1041
|
+
);
|
|
1004
1042
|
return { run, workflow };
|
|
1005
1043
|
});
|
|
1006
1044
|
}
|
package/package.json
CHANGED
package/recipes/default.json
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "default",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 2,
|
|
5
5
|
"description": "The existing Maker, verification, Devil's Advocate, Judge, and delivery workflow.",
|
|
6
6
|
"compatibleModes": ["ASSISTED", "UNATTENDED"],
|
|
7
|
+
"loopGroups": [
|
|
8
|
+
{
|
|
9
|
+
"id": "engineering-loop",
|
|
10
|
+
"displayName": "Build, verify, and review",
|
|
11
|
+
"nodeIds": ["maker", "verification", "review", "judge"],
|
|
12
|
+
"entryNodeId": "maker",
|
|
13
|
+
"decisionNodeId": "judge",
|
|
14
|
+
"repeatTargetId": "maker",
|
|
15
|
+
"exitTargetId": "delivery-approval",
|
|
16
|
+
"maxIterations": 3,
|
|
17
|
+
"repeatOutcome": "ITERATE",
|
|
18
|
+
"exitOutcome": "PASS",
|
|
19
|
+
"repeatLabel": "ITERATE · REWORK",
|
|
20
|
+
"exitLabel": "PASS · CONTINUE"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
7
23
|
"nodes": [
|
|
8
24
|
{
|
|
9
25
|
"id": "goal",
|
|
@@ -43,7 +59,7 @@
|
|
|
43
59
|
{
|
|
44
60
|
"id": "delivery",
|
|
45
61
|
"type": "delivery",
|
|
46
|
-
"dependsOn": ["
|
|
62
|
+
"dependsOn": ["delivery-approval"]
|
|
47
63
|
}
|
|
48
64
|
]
|
|
49
65
|
}
|
package/studio/app.js
CHANGED
|
@@ -1302,6 +1302,17 @@ async function loadRuns() {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
+
function runHistoryMarkup(run) {
|
|
1306
|
+
const history = run.history || [];
|
|
1307
|
+
if (!history.length) return '<p class="muted">Waiting for the first Run event.</p>';
|
|
1308
|
+
return history.map((entry) => `
|
|
1309
|
+
<p>
|
|
1310
|
+
<time>${escapeHtml(new Date(entry.at).toLocaleString())}</time>
|
|
1311
|
+
<span><b>${escapeHtml(entry.to)}</b> · ${escapeHtml(entry.gate || 'run update')}</span>
|
|
1312
|
+
</p>
|
|
1313
|
+
`).join('');
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1305
1316
|
async function loadRunDetail(runId) {
|
|
1306
1317
|
try {
|
|
1307
1318
|
selectedCheckoutRun = runId;
|
|
@@ -1331,22 +1342,34 @@ async function loadRunDetail(runId) {
|
|
|
1331
1342
|
const top = Math.min(...members.map((node) => node.position.y)) - 36;
|
|
1332
1343
|
const right = Math.max(...members.map((node) => node.position.x + NODE_WIDTH)) + 28;
|
|
1333
1344
|
const bottom = Math.max(...members.map((node) => node.position.y + 108)) + 28;
|
|
1334
|
-
return `<div class="checkout-loop status-${escapeHtml((group.runtime?.status || 'pending').toLowerCase())}" style="left:${left}px;top:${top}px;width:${right - left}px;height:${bottom - top}px"><b>${escapeHtml(group.displayName)}</b><span>Iteration ${escapeHtml(group.runtime?.iteration || 1)} / ${escapeHtml(group.maxIterations)}</span></div>`;
|
|
1345
|
+
return `<div class="checkout-loop status-${escapeHtml((group.runtime?.status || 'pending').toLowerCase())}" data-checkout-loop="${escapeHtml(group.id)}" style="left:${left}px;top:${top}px;width:${right - left}px;height:${bottom - top}px"><b>${escapeHtml(group.displayName)}</b><span>Iteration ${escapeHtml(group.runtime?.iteration || 1)} / ${escapeHtml(group.maxIterations)}</span></div>`;
|
|
1335
1346
|
}).join('');
|
|
1347
|
+
const checkoutBody = checkout.workflowBound
|
|
1348
|
+
? `
|
|
1349
|
+
<section class="checkout-canvas" style="--checkout-width:${maxX}px;--checkout-height:${maxY}px">
|
|
1350
|
+
<svg viewBox="0 0 ${maxX} ${maxY}" aria-hidden="true">${paths}</svg>
|
|
1351
|
+
${checkoutGroups}
|
|
1352
|
+
${checkout.nodes.map((node) => `<button class="checkout-node status-${escapeHtml(node.status.toLowerCase())}" data-checkout-node="${escapeHtml(node.id)}" style="left:${node.position.x}px;top:${node.position.y}px">
|
|
1353
|
+
<small>${escapeHtml(node.type)}${node.loopIteration ? ` · LOOP ${escapeHtml(node.loopIteration)}` : ''}</small><strong>${escapeHtml(node.displayName)}</strong><span data-node-status>${escapeHtml(node.status)}</span>
|
|
1354
|
+
</button>`).join('')}
|
|
1355
|
+
</section>
|
|
1356
|
+
<section id="node-io-panel" class="node-io-panel"><div class="empty-state"><h3>Select a node</h3><p>Inspect its real Input, Output, Evidence, and Timeline.</p></div></section>
|
|
1357
|
+
`
|
|
1358
|
+
: `
|
|
1359
|
+
<section class="classic-run">
|
|
1360
|
+
<small>CLASSIC RUN · LIVE TRACKING</small>
|
|
1361
|
+
<h3>This Run started before automatic workflow binding was available.</h3>
|
|
1362
|
+
<p>Goal changes, stage gates, evidence, and Agent questions are still monitored here. New Runs show the full node canvas automatically.</p>
|
|
1363
|
+
<div id="classic-run-timeline" class="timeline">${runHistoryMarkup(run)}</div>
|
|
1364
|
+
</section>
|
|
1365
|
+
`;
|
|
1336
1366
|
byId('run-detail').innerHTML = `
|
|
1337
1367
|
<header class="checkout-header">
|
|
1338
|
-
<div><button id="checkout-back" class="quiet">← Run History</button><small>READ-ONLY CHECKOUT ·
|
|
1339
|
-
<div class="checkout-actions"><button id="copy-agent-handoff">Copy for AI Agent</button
|
|
1368
|
+
<div><button id="checkout-back" class="quiet">← Run History</button><small>READ-ONLY CHECKOUT · <span id="checkout-run-status">${escapeHtml(run.status)}</span></small><h2>${escapeHtml(run.displayName)}</h2><p>${escapeHtml(run.task)}</p></div>
|
|
1369
|
+
<div class="checkout-actions"><button id="copy-agent-handoff">Copy for AI Agent</button>${checkout.workflowBound ? '<button id="duplicate-run-workflow" class="primary">Duplicate as Workflow</button>' : ''}</div>
|
|
1340
1370
|
</header>
|
|
1341
|
-
<div class="checkout-meta"><span>${escapeHtml(run.runId)}</span><span>${run.goalFrozen ? `Goal frozen V${escapeHtml(run.goalVersion)}` : 'Goal draft'}</span><span
|
|
1342
|
-
|
|
1343
|
-
<svg viewBox="0 0 ${maxX} ${maxY}" aria-hidden="true">${paths}</svg>
|
|
1344
|
-
${checkoutGroups}
|
|
1345
|
-
${checkout.nodes.map((node) => `<button class="checkout-node status-${escapeHtml(node.status.toLowerCase())}" data-checkout-node="${escapeHtml(node.id)}" style="left:${node.position.x}px;top:${node.position.y}px">
|
|
1346
|
-
<small>${escapeHtml(node.type)}${node.loopIteration ? ` · LOOP ${escapeHtml(node.loopIteration)}` : ''}</small><strong>${escapeHtml(node.displayName)}</strong><span>${escapeHtml(node.status)}</span>
|
|
1347
|
-
</button>`).join('')}
|
|
1348
|
-
</section>
|
|
1349
|
-
<section id="node-io-panel" class="node-io-panel"><div class="empty-state"><h3>Select a node</h3><p>Inspect its real Input, Output, Evidence, and Timeline.</p></div></section>
|
|
1371
|
+
<div class="checkout-meta"><span>${escapeHtml(run.runId)}</span><span id="checkout-goal-state">${run.goalFrozen ? `Goal frozen V${escapeHtml(run.goalVersion)}` : 'Goal draft'}</span><span>${checkout.workflowBound ? 'Actual node states' : 'Live stage history'}</span></div>
|
|
1372
|
+
${checkoutBody}
|
|
1350
1373
|
<section class="agent-interactions"><header><div><small>LIVE AGENT INTERACTIONS</small><h3>Questions from the Agent</h3></div><span>Updates automatically</span></header><div id="interaction-list"></div></section>
|
|
1351
1374
|
`;
|
|
1352
1375
|
renderInteractions(interactionResult.interactions);
|
|
@@ -1355,7 +1378,7 @@ async function loadRunDetail(runId) {
|
|
|
1355
1378
|
byId('run-detail').innerHTML = '<div class="empty-state"><h2>Select a run</h2><p>Open a read-only checkout to inspect actual node evidence.</p></div>';
|
|
1356
1379
|
};
|
|
1357
1380
|
byId('copy-agent-handoff').onclick = () => copyAgentHandoff(runId);
|
|
1358
|
-
byId('duplicate-run-workflow').onclick = async () => {
|
|
1381
|
+
if (checkout.workflowBound) byId('duplicate-run-workflow').onclick = async () => {
|
|
1359
1382
|
try {
|
|
1360
1383
|
const duplicate = await api(`/api/runs/${encodeURIComponent(runId)}/duplicate`, {
|
|
1361
1384
|
method: 'POST',
|
|
@@ -1456,6 +1479,47 @@ async function refreshCheckoutInteractions() {
|
|
|
1456
1479
|
}
|
|
1457
1480
|
}
|
|
1458
1481
|
|
|
1482
|
+
async function refreshSelectedCheckout() {
|
|
1483
|
+
const runId = selectedCheckoutRun;
|
|
1484
|
+
if (!runId || !byId('checkout-run-status')) return;
|
|
1485
|
+
try {
|
|
1486
|
+
const [detail, checkoutResult] = await Promise.all([
|
|
1487
|
+
api(`/api/runs/${encodeURIComponent(runId)}`),
|
|
1488
|
+
api(`/api/runs/${encodeURIComponent(runId)}/checkout`)
|
|
1489
|
+
]);
|
|
1490
|
+
if (selectedCheckoutRun !== runId) return;
|
|
1491
|
+
const run = detail.run;
|
|
1492
|
+
const checkout = checkoutResult.checkout;
|
|
1493
|
+
byId('checkout-run-status').textContent = run.status;
|
|
1494
|
+
byId('checkout-goal-state').textContent = run.goalFrozen
|
|
1495
|
+
? `Goal frozen V${run.goalVersion}`
|
|
1496
|
+
: 'Goal draft';
|
|
1497
|
+
if (!checkout.workflowBound) {
|
|
1498
|
+
const timeline = byId('classic-run-timeline');
|
|
1499
|
+
if (timeline) timeline.innerHTML = runHistoryMarkup(run);
|
|
1500
|
+
return;
|
|
1501
|
+
}
|
|
1502
|
+
for (const node of checkout.nodes) {
|
|
1503
|
+
const element = document.querySelector(`[data-checkout-node="${CSS.escape(node.id)}"]`);
|
|
1504
|
+
if (!element) continue;
|
|
1505
|
+
for (const status of ['pending', 'ready', 'running', 'passed', 'failed', 'skipped', 'blocked']) {
|
|
1506
|
+
element.classList.remove(`status-${status}`);
|
|
1507
|
+
}
|
|
1508
|
+
element.classList.add(`status-${node.status.toLowerCase()}`);
|
|
1509
|
+
const status = element.querySelector('[data-node-status]');
|
|
1510
|
+
if (status) status.textContent = node.status;
|
|
1511
|
+
}
|
|
1512
|
+
for (const group of checkout.loopGroups || []) {
|
|
1513
|
+
const element = document.querySelector(`[data-checkout-loop="${CSS.escape(group.id)}"]`);
|
|
1514
|
+
if (!element) continue;
|
|
1515
|
+
const counter = element.querySelector('span');
|
|
1516
|
+
if (counter) counter.textContent = `Iteration ${group.runtime?.iteration || 1} / ${group.maxIterations}`;
|
|
1517
|
+
}
|
|
1518
|
+
} catch {
|
|
1519
|
+
// Keep the last valid checkout visible during a transient refresh failure.
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1459
1523
|
async function copyAgentHandoff(runId = activeRunId) {
|
|
1460
1524
|
try {
|
|
1461
1525
|
if (!runId) await ensureStudioRun();
|
|
@@ -1736,6 +1800,7 @@ async function refreshLive() {
|
|
|
1736
1800
|
syncGoalFromLive();
|
|
1737
1801
|
await hydrateGoalFromLive();
|
|
1738
1802
|
renderLive();
|
|
1803
|
+
await refreshSelectedCheckout();
|
|
1739
1804
|
await refreshCheckoutInteractions();
|
|
1740
1805
|
} catch {
|
|
1741
1806
|
// A transient refresh failure must not discard the draft.
|
package/studio/styles.css
CHANGED
|
@@ -44,6 +44,7 @@ dialog{border:1px solid #505057;border-radius:4px;background:var(--panel);color:
|
|
|
44
44
|
.runs-view{position:absolute;inset:0 0 0 56px;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-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 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)}
|
|
45
45
|
.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)}.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)}
|
|
46
46
|
.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}
|
|
47
|
+
.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}
|
|
47
48
|
.wide-dialog{width:min(800px,calc(100vw - 40px))}dialog header{display:flex;align-items:flex-start;justify-content:space-between}dialog header h2{margin:4px 0 18px;font-size:24px;letter-spacing:-.03em}dialog header button{border:0;background:transparent;font-size:20px}dialog label{clear:both;font-size:12px;color:#c7c7cd}dialog input,dialog textarea{width:100%;margin:0 0 18px;padding:12px;border:1px solid #4b4b52;border-radius:3px;background:#19191c;font-size:14px;line-height:1.55}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-grid.thirds{grid-template-columns:repeat(3,1fr)}.criteria-editor{min-height:170px}.advanced-goal{margin:16px 0;padding:16px;border:1px solid var(--line)}.advanced-goal summary{font-weight:650;margin-bottom:12px}.import-preview,.goal-review{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:3px;background:#1e1e22}.validation-message{color:#ff9999;line-height:1.55}.goal-state{position:relative;overflow:hidden;margin-bottom:18px;padding:12px;border-radius:3px}.goal-state.draft{background:#493817;color:#f4c46b}.goal-state.frozen{background:var(--accent-soft);color:#91dc7c}.goal-state.frozen::after{content:"❄";position:absolute;right:12px;animation:freeze-pop .7s ease-out both}@keyframes freeze-pop{from{opacity:0;transform:scale(2.4) rotate(-25deg)}to{opacity:1;transform:scale(1) rotate(0)}}.muted{color:var(--muted)}
|
|
48
49
|
@media(max-width:900px){.run-summary,.secure,#workflow-settings{display:none}.inspector{width:min(360px,calc(100% - 76px))}.library{width:min(300px,calc(100% - 76px))}.canvas-help{display:none}.runs-header{display:block}.run-filters{flex-wrap:wrap}.run-search{width:100%;flex-basis:100%}.runs-layout{grid-template-columns:1fr}.field-grid,.field-grid.thirds,.io-grid{grid-template-columns:1fr}.workspace-tab{padding-inline:8px}.timeline p{grid-template-columns:1fr}.checkout-header{display:block}.checkout-actions{margin-top:14px}.resizable-dialog{min-width:calc(100vw - 24px)}}
|
|
49
50
|
@media(prefers-reduced-motion:reduce){.edge.active,.goal-state.frozen::after{animation:none}.library,.inspector,.execution-panel,.node{transition:none}}
|