@diegovelasquezweb/a11y-engine 0.11.22 → 0.11.25
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
|
@@ -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
|
|
252
|
+
"Generate deterministic text replacements for provided files.",
|
|
253
|
+
"Use finding.fixDescription and execution.constraints.must as guidance for what to fix and how.",
|
|
254
|
+
"For insertions (new element that does not yet exist in the file), use the nearest existing parent element as the search anchor. The replace value must include that anchor plus the new content.",
|
|
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");
|