feat(pi-workflow): add human-readable run labels

This commit is contained in:
jb
2026-08-25 21:22:08 -04:00
parent a1d0b1415c
commit 54a7921227
17 changed files with 385 additions and 52 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ import type {
WorkflowReportArtifact,
WorkflowRun,
} from "./domain.ts";
import { deriveRunLabel } from "./run-label.ts";
const SNAPSHOT_VERSION = 1;
const MAX_JSON_BYTES = 4 * 1024 * 1024;
@@ -340,8 +341,9 @@ export class WorkflowStore {
async saveReport(run: WorkflowRun) {
const lines = [
`# pi-workflow ${run.runId}`,
`# pi-workflow ${deriveRunLabel(run)}`,
"",
`- Run ID: ${run.runId}`,
`- Status: ${run.status}`,
`- Revision: ${run.revision}`,
`- Mode: ${run.mode}`,