{
  "version": 3,
  "sources": ["../../src/app/ai/agents/evals2/scenarios/textStylePresetBreakpoint/addLargeAndUpdateOthers.eval.ts"],
  "sourcesContent": ["import { createPromptAgentFixture } from \"../../harness/fixture.ts\"\nimport { breakpointWidths, getHeadingPresetState, setupHeadingPreset } from \"./helpers.ts\"\n\n// Seed with 3 replicas so adding \"large\" lands on 4 replicas, which is the only count where the\n// \"large\" label exists (see `replicaLabelsForCount`). Initial fontSizes deliberately differ from\n// the prompt targets so the agent has to actually update medium and small.\nconst fixture = createPromptAgentFixture(\"text-style-preset-breakpoint-add-large-and-update-others\", {\n\tprompt: `Add a large breakpoint to the \"Heading 1\" text style. Make it 48px. Update the medium breakpoint to 36px and the small breakpoint to 28px.`,\n\tsetup: engine =>\n\t\tsetupHeadingPreset(engine, [\n\t\t\t{ breakpointWidth: breakpointWidths.medium, fontSize: \"32px\" },\n\t\t\t{ breakpointWidth: breakpointWidths.small, fontSize: \"24px\" },\n\t\t\t{ breakpointWidth: breakpointWidths.extraSmall, fontSize: \"18px\" },\n\t\t]),\n})\n\nevaluation(\n\t\"Add large breakpoint to text style preset and update mobile and tablet breakpoints\",\n\tfixture,\n\t{ id: \"text-style-preset-breakpoint-add-large-and-update-others\", maxSteps: 6, stopWhenPassed: true },\n\t({ engine, report, tools }) => {\n\t\tconst { byLabel } = getHeadingPresetState(engine)\n\n\t\treport.functionality.scored(\"creates a large breakpoint at 48px\", () => {\n\t\t\texpect(byLabel.get(\"large\")?.fontSize).toBe(\"48px\")\n\t\t})\n\n\t\treport.functionality.scored(\"sets medium breakpoint font size to 36px\", () => {\n\t\t\texpect(byLabel.get(\"medium\")?.fontSize).toBe(\"36px\")\n\t\t})\n\n\t\treport.functionality.scored(\"sets small breakpoint font size to 28px\", () => {\n\t\t\texpect(byLabel.get(\"small\")?.fontSize).toBe(\"28px\")\n\t\t})\n\n\t\treport.functionality.scored(\"preserves extraSmall breakpoint\", () => {\n\t\t\texpect(byLabel.get(\"extraSmall\")?.fontSize).toBe(\"18px\")\n\t\t})\n\n\t\treport.correctness.scored(\"no command errors\", () => {\n\t\t\texpect(tools.commandErrors()).toHaveLength(0)\n\t\t})\n\n\t\ttools.reportNoReviewBeforeMutation(report)\n\t\ttools.reportNoReadProject(report)\n\t},\n)\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,UAAU,yBAAyB,4DAA4D;AAAA,EACpG,QAAQ;AAAA,EACR,OAAO,YACN,mBAAmB,QAAQ;AAAA,IAC1B,EAAE,iBAAiB,iBAAiB,QAAQ,UAAU,OAAO;AAAA,IAC7D,EAAE,iBAAiB,iBAAiB,OAAO,UAAU,OAAO;AAAA,IAC5D,EAAE,iBAAiB,iBAAiB,YAAY,UAAU,OAAO;AAAA,EAClE,CAAC;AACH,CAAC;AAED;AAAA,EACC;AAAA,EACA;AAAA,EACA,EAAE,IAAI,4DAA4D,UAAU,GAAG,gBAAgB,KAAK;AAAA,EACpG,CAAC,EAAE,QAAQ,QAAQ,MAAM,MAAM;AAC9B,UAAM,EAAE,QAAQ,IAAI,sBAAsB,MAAM;AAEhD,WAAO,cAAc,OAAO,sCAAsC,MAAM;AACvE,aAAO,QAAQ,IAAI,OAAO,GAAG,QAAQ,EAAE,KAAK,MAAM;AAAA,IACnD,CAAC;AAED,WAAO,cAAc,OAAO,4CAA4C,MAAM;AAC7E,aAAO,QAAQ,IAAI,QAAQ,GAAG,QAAQ,EAAE,KAAK,MAAM;AAAA,IACpD,CAAC;AAED,WAAO,cAAc,OAAO,2CAA2C,MAAM;AAC5E,aAAO,QAAQ,IAAI,OAAO,GAAG,QAAQ,EAAE,KAAK,MAAM;AAAA,IACnD,CAAC;AAED,WAAO,cAAc,OAAO,mCAAmC,MAAM;AACpE,aAAO,QAAQ,IAAI,YAAY,GAAG,QAAQ,EAAE,KAAK,MAAM;AAAA,IACxD,CAAC;AAED,WAAO,YAAY,OAAO,qBAAqB,MAAM;AACpD,aAAO,MAAM,cAAc,CAAC,EAAE,aAAa,CAAC;AAAA,IAC7C,CAAC;AAED,UAAM,6BAA6B,MAAM;AACzC,UAAM,oBAAoB,MAAM;AAAA,EACjC;AACD;",
  "names": []
}
