Commit 26cf21f
authored
fix(ai-slop): close leftover directory-expansion defects (0.3.9) (#3331)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Closes #3332
## Summary
Three defects in `detect.sh` directory expansion survived the 0.3.8
path-anchor fix: a tracked non-ASCII filename was dropped, a filesystem
walk still ran silently when git could not answer, and the new tests
asserted only a scan count so the original spelling-rebuild defect could
return unnoticed.
## Fix
- `git -c core.quotePath=false ls-files` so a filename holding an em
dash is actually opened.
- Report on stderr when git is missing or `rev-parse
--is-inside-work-tree` fails; a silent walk remains only when git
reports the directory is genuinely outside a checkout.
- Dir-target tests now assert the emitted `file=` path, subtree
restriction, a non-ASCII filename, and the git-absent report.
- `normalize_dir_target` still keeps a Windows drive-root slash (`C:/`).
`ai-slop` 0.3.9. Duplicate stale PR #3330 is still `DIRTY` and would
regress drive-root slash preservation; ignore it.
## Verification
- `bash plugins/ai-slop/skills/audit/scripts/detect.test.sh`: 149 cases
passed
- `scripts/check-changed-skills.sh origin/main`: 0 failed
- `scripts/check-changelog-parity.sh --check-bump origin/main`: pass
- `python3 scripts/sync-plugin-options-docs.py --check`: up to date
## Related
Follow-up to the merged directory-anchor work. Do not merge
#3330.
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-363de5b1-6044-4e78-99f7-867a293bcfcf?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-363de5b1-6044-4e78-99f7-867a293bcfcf&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
---------
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>1 parent bc2cf55 commit 26cf21f
4 files changed
Lines changed: 75 additions & 7 deletions
File tree
- plugins/ai-slop
- .claude-plugin
- skills/audit/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
3 | 19 | | |
4 | 20 | | |
5 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
274 | | - | |
275 | | - | |
276 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
| |||
293 | 302 | | |
294 | 303 | | |
295 | 304 | | |
296 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
297 | 318 | | |
298 | 319 | | |
299 | 320 | | |
300 | 321 | | |
301 | 322 | | |
302 | | - | |
| 323 | + | |
303 | 324 | | |
304 | 325 | | |
305 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
406 | 410 | | |
407 | | - | |
| 411 | + | |
408 | 412 | | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
420 | 425 | | |
421 | 426 | | |
422 | 427 | | |
| 428 | + | |
423 | 429 | | |
424 | 430 | | |
425 | 431 | | |
| 432 | + | |
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
430 | 437 | | |
431 | 438 | | |
| 439 | + | |
| 440 | + | |
432 | 441 | | |
433 | 442 | | |
434 | 443 | | |
| |||
456 | 465 | | |
457 | 466 | | |
458 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
459 | 490 | | |
460 | 491 | | |
461 | 492 | | |
| |||
0 commit comments