GET /api/runs/{id} assembles a run's trail from rows already kept: the event
and trigger that started it, each workflow step, and each model and tool call
from the agent's journal. Investigations end by notifying their findings on
the composer, whose messages are read from a cursor with a live stream that
only says when to read. The binary serves its own SPA entry, archie.html,
calling only the new API. The investigate prompt now treats the event as a
claim to check against what it measures.
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Archie</title>
|
|
<script>
|
|
// Set before the first paint so a reload does not flash the wrong
|
|
// palette or layout. Kept in sync with the appearance Pinia store;
|
|
// blocked site data falls back to the OS theme, comfortable spacing and
|
|
// the system motion preference.
|
|
(function () {
|
|
var theme = "dark";
|
|
try {
|
|
theme = matchMedia("(prefers-color-scheme: dark)").matches
|
|
? "dark"
|
|
: "light";
|
|
} catch (e) {
|
|
/* dark stands */
|
|
}
|
|
try {
|
|
var storedTheme = localStorage.getItem("archie.theme");
|
|
if (storedTheme === "light" || storedTheme === "dark") {
|
|
theme = storedTheme;
|
|
}
|
|
if (localStorage.getItem("archie.density") === "compact") {
|
|
document.documentElement.dataset.density = "compact";
|
|
}
|
|
if (localStorage.getItem("archie.motion") === "reduced") {
|
|
document.documentElement.dataset.motion = "reduced";
|
|
}
|
|
} catch (e) {
|
|
/* default stands */
|
|
}
|
|
document.documentElement.dataset.theme = theme;
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/archie/main.ts"></script>
|
|
</body>
|
|
</html>
|