mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 11:01:16 +01:00
11 lines
387 B
TypeScript
11 lines
387 B
TypeScript
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",
|
|
);
|
|
}
|
|
}
|