{
  "version": 3,
  "sources": ["../../src/app/ai/agents/evals2/scenarios/style/accentColor.eval.ts"],
  "sourcesContent": ["import { agentEvalAsset } from \"../../harness/asset.ts\"\nimport { createEvalExportZipFixture } from \"../../harness/fixture.ts\"\nimport { getFrame, getRichText, stringifyValue } from \"../helpers.ts\"\nimport { styleNodeIds } from \"./ids.ts\"\n\nconst yellowPattern = /#ffd600|rgb\\(\\s*255\\s*,\\s*214\\s*,\\s*0\\s*\\)|yellow/iu\n\nevaluation(\n\t\"Accent Swatch And Text Become Yellow\",\n\tcreateEvalExportZipFixture(\"replay-change-color\", agentEvalAsset(\"accentColor.fixture.zip\"), {\n\t\truntimeTarget: \"cli\",\n\t}),\n\t{\n\t\tid: \"change-color\",\n\t\trequestId: \"TE01fT35d\",\n\t\tmaxSteps: 1,\n\t},\n\t({ engine, report, tools }) => {\n\t\ttools.reportReplayChecks(report, {\n\t\t\trequestId: \"TE01fT35d\",\n\t\t\tforbidReadProject: true,\n\t\t})\n\t\treport.correctness.scored(\"updates the accent swatch to yellow\", () => {\n\t\t\texpect(stringifyValue(getFrame(engine, styleNodeIds.accentSwatch).fillColor)).toMatch(yellowPattern)\n\t\t})\n\t\treport.correctness.scored(\"updates the accent text to yellow\", () => {\n\t\t\texpect(getRichText(engine, styleNodeIds.accentText).html).toMatch(yellowPattern)\n\t\t})\n\t},\n)\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAM,gBAAgB;AAEtB;AAAA,EACC;AAAA,EACA,2BAA2B,uBAAuB,eAAe,yBAAyB,GAAG;AAAA,IAC5F,eAAe;AAAA,EAChB,CAAC;AAAA,EACD;AAAA,IACC,IAAI;AAAA,IACJ,WAAW;AAAA,IACX,UAAU;AAAA,EACX;AAAA,EACA,CAAC,EAAE,QAAQ,QAAQ,MAAM,MAAM;AAC9B,UAAM,mBAAmB,QAAQ;AAAA,MAChC,WAAW;AAAA,MACX,mBAAmB;AAAA,IACpB,CAAC;AACD,WAAO,YAAY,OAAO,uCAAuC,MAAM;AACtE,aAAO,eAAe,SAAS,QAAQ,aAAa,YAAY,EAAE,SAAS,CAAC,EAAE,QAAQ,aAAa;AAAA,IACpG,CAAC;AACD,WAAO,YAAY,OAAO,qCAAqC,MAAM;AACpE,aAAO,YAAY,QAAQ,aAAa,UAAU,EAAE,IAAI,EAAE,QAAQ,aAAa;AAAA,IAChF,CAAC;AAAA,EACF;AACD;",
  "names": []
}
