Slim heartbeat run list payloads

This commit is contained in:
Dotta
2026-03-10 21:16:33 -05:00
parent 5f76d03913
commit 92aef9bae8
5 changed files with 85 additions and 3 deletions

View File

@@ -1346,6 +1346,17 @@ export function agentRoutes(db: Db) {
res.json(liveRuns);
});
router.get("/heartbeat-runs/:runId", async (req, res) => {
const runId = req.params.runId as string;
const run = await heartbeat.getRun(runId);
if (!run) {
res.status(404).json({ error: "Heartbeat run not found" });
return;
}
assertCompanyAccess(req, run.companyId);
res.json(run);
});
router.post("/heartbeat-runs/:runId/cancel", async (req, res) => {
assertBoard(req);
const runId = req.params.runId as string;