Skip to content

The open-source app everyone uses to manage agents at work

665 B
Raw Blame
import type { WorkspaceBaseRefRecoveryNoticeProps } from "@/components/WorkspaceBaseRefRecoveryNotice";

export const evidence = {
  requestedRef: "main",
  repository: "example/docs-site",
  defaultBranch: "master",
  agentName: "Jordan Lee",
  configuredBy: "Casey Morgan, when creating this task",
  failureKind: "missing_branch",
} satisfies Omit<WorkspaceBaseRefRecoveryNoticeProps, "onRepair">;

export async function simulateRepair(branch: string) {
  await new Promise(resolve => window.setTimeout(resolve, 700));
  if (branch !== "master" && branch !== "release/next") throw new Error(`Branch “${branch}” was not found. Choose an existing branch.`);
}