@massa-ai/cursor-plugin 1.42.0 → 1.43.0
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
|
@@ -260,14 +260,20 @@ function main(argv: string[]): number {
|
|
|
260
260
|
|
|
261
261
|
const targets = resolveTargets(root, args.feature);
|
|
262
262
|
const allErrors: string[] = [];
|
|
263
|
+
// D4 / APCR-10.5-6: the scanned population (`targets`) can be much larger
|
|
264
|
+
// than the set that actually failed - printing `targets` here read as total
|
|
265
|
+
// collapse. Track only the features that produced at least one error.
|
|
266
|
+
const failing: string[] = [];
|
|
263
267
|
for (const [fdir, name] of targets) {
|
|
264
|
-
|
|
268
|
+
const errors = checkFeature(fdir, name);
|
|
269
|
+
allErrors.push(...errors);
|
|
270
|
+
if (errors.length) failing.push(name);
|
|
265
271
|
}
|
|
266
272
|
|
|
267
273
|
for (const e of allErrors) console.log(` ERROR ${e}`);
|
|
268
274
|
const n = allErrors.length;
|
|
269
|
-
const
|
|
270
|
-
console.log(`\nvalidate_state: ${n} error(s)
|
|
275
|
+
const bracket = n ? ` across [${failing.join(", ")}]` : "";
|
|
276
|
+
console.log(`\nvalidate_state: ${n} error(s)${bracket}`);
|
|
271
277
|
return n ? 1 : 0;
|
|
272
278
|
}
|
|
273
279
|
|