Skip to content

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

387 B
Raw Blame
import { appendFileSync } from "node:fs";
/** Only fixture state; never provider transcripts or credentials. */
export function observe(scenario: string, variant: string, actual: unknown) {
  if (process.env.LIFECYCLE_BASELINE_OBSERVATIONS) {
    appendFileSync(
      process.env.LIFECYCLE_BASELINE_OBSERVATIONS,
      JSON.stringify({ scenario, variant, actual }) + "\n",
    );
  }
}