import type { Attribution } from "@refs/backend/contract"; /** Who did something, as a timeline shows it: the actor, and the human an agent acted for. */ export function actorName(by: Attribution): string { return by.onBehalfOf ? `${by.actor.name} for ${by.onBehalfOf.name}` : by.actor.name; }