{
  "version": 3,
  "sources": ["../../src/app/ai/agents/evals2/scenarios/style/cardBoxShadows.eval.ts"],
  "sourcesContent": ["import { assert } from \"@framerjs/shared\"\nimport { isBoxShadowList } from \"document/models/Shadow.ts\"\nimport { agentEvalAsset } from \"../../harness/asset.ts\"\nimport { createEvalExportZipFixture } from \"../../harness/fixture.ts\"\nimport { getFrame, stringifyValue } from \"../helpers.ts\"\nimport { styleNodeIds } from \"./ids.ts\"\n\nconst requiredShadowIndexes = [0, 1, 2]\nconst redPattern = /\\bred\\b|#(?:f00|ff0000|dc0000)|rgba?\\(\\s*(?:1[5-9]\\d|2[0-4]\\d|25[0-5])\\s*,\\s*[0-5]\\s*,\\s*[0-5]/iu\n\nevaluation(\n\t\"Card Box Shadows Become Red\",\n\tcreateEvalExportZipFixture(\"replay-box-shadow\", agentEvalAsset(\"cardBoxShadows.fixture.zip\"), {\n\t\truntimeTarget: \"cli\",\n\t}),\n\t{\n\t\tid: \"box-shadow\",\n\t\trequestId: \"YY8i5kl_n\",\n\t\tmaxSteps: 1,\n\t},\n\t({ engine, report, tools }) => {\n\t\ttools.reportReplayChecks(report, {\n\t\t\trequestId: \"YY8i5kl_n\",\n\t\t\tforbidReadProject: true,\n\t\t})\n\t\tconst shadows = getFrame(engine, styleNodeIds.shadowCard).boxShadows\n\n\t\treport.correctness.scored(\"keeps at least three shadows\", () => {\n\t\t\tassert(isBoxShadowList(shadows), \"Expected shadow card to have box shadows.\")\n\t\t\texpect(shadows.length).toBeGreaterThanOrEqual(3)\n\t\t})\n\t\treport.correctness.each(\"makes each required shadow red\", requiredShadowIndexes, index => {\n\t\t\tassert(isBoxShadowList(shadows), \"Expected shadow card to have box shadows.\")\n\t\t\texpect(stringifyValue(shadows[index])).toMatch(redPattern)\n\t\t})\n\t},\n)\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAM,wBAAwB,CAAC,GAAG,GAAG,CAAC;AACtC,IAAM,aAAa;AAEnB;AAAA,EACC;AAAA,EACA,2BAA2B,qBAAqB,eAAe,4BAA4B,GAAG;AAAA,IAC7F,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,UAAM,UAAU,SAAS,QAAQ,aAAa,UAAU,EAAE;AAE1D,WAAO,YAAY,OAAO,gCAAgC,MAAM;AAC/D,aAAO,gBAAgB,OAAO,GAAG,2CAA2C;AAC5E,aAAO,QAAQ,MAAM,EAAE,uBAAuB,CAAC;AAAA,IAChD,CAAC;AACD,WAAO,YAAY,KAAK,kCAAkC,uBAAuB,WAAS;AACzF,aAAO,gBAAgB,OAAO,GAAG,2CAA2C;AAC5E,aAAO,eAAe,QAAQ,KAAK,CAAC,CAAC,EAAE,QAAQ,UAAU;AAAA,IAC1D,CAAC;AAAA,EACF;AACD;",
  "names": []
}
