@diegovelasquezweb/a11y-engine 0.11.22 → 0.11.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegovelasquezweb/a11y-engine",
3
- "version": "0.11.22",
3
+ "version": "0.11.24",
4
4
  "description": "WCAG 2.2 accessibility audit engine — scanner, analyzer, and report builders",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -249,10 +249,10 @@ async function callClaudeForPatch({ apiKey, model, aiInput }) {
249
249
  const system = [
250
250
  "You are an accessibility fix engine.",
251
251
  "Return JSON only.",
252
- "Generate text replacements that fix the accessibility issue described in the finding.",
252
+ "Apply the fix described in finding.fixDescription and finding.fixCode.",
253
+ "Follow all instructions in execution.constraints.must. Avoid all in execution.constraints.must_not.",
254
+ "Use search/replace pairs on the provided files. For insertions (no existing element to replace), use the nearest parent element as the search anchor and prepend the new content in replace.",
253
255
  "Do not create files. Do not modify paths outside provided filePath values.",
254
- "CRITICAL: The 'replace' value MUST differ from the 'search' value — never return a no-op change.",
255
- "CRITICAL: For missing attributes (e.g. alt, aria-label), you MUST add them with a descriptive value derived from context (filename, surrounding text, or role). Use empty string alt=\"\" only for purely decorative images.",
256
256
  "Schema:",
257
257
  "{\"changes\":[{\"filePath\":\"...\",\"search\":\"...\",\"replace\":\"...\"}],\"verifyRule\":\"...\",\"verifyRoute\":\"...\",\"notes\":\"...\"}",
258
258
  ].join("\n");