fix(runtime): classify run usage status

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 15:41:19 -04:00
1 parent d971ca7929
commit eefb515aa2
17 files changed
+308 -26

No files matched your search

+9
View File
@@ -145,6 +145,15 @@ export type RunStatus =
| "timed_out"
| "interrupted";
export const RUN_USAGE_STATUSES = [
"ok",
"pre_first_message",
"error_stop",
"aborted_before_usage",
] as const;
export type RunUsageStatus = (typeof RUN_USAGE_STATUSES)[number];
export type DepartmentId =
| "executive"
| "engineering"
+2
View File
@@ -14,6 +14,7 @@ import type {
ApprovalState,
ApprovalType,
RunStatus,
RunUsageStatus,
SkillSourceType,
TrustLevel,
} from "./enums";
@@ -201,6 +202,7 @@ export interface RunRecord {
model: string | null;
costUsd: number | null;
unattributedCost: boolean;
usageStatus: RunUsageStatus;
startedAt: string | null;
finishedAt: string | null;
logPath: string | null;