Repository navigation
Commit 4bbcf91
* Start agent scan projects-below note (#2125)
Assisted-by: Claude Code:claude-fable-5-2
* Test agent scan naming projects below it
A bare agent-mode scan above Bundler or PyPI projects with their own
install directories must name the ones it left (#2125). These fail
until the scan looks for them.
Assisted-by: Claude Code:claude-fable-5-2
* Name projects an agent scan leaves below it
A bare agent-mode scan patches the installed packages its crawl of
--cwd reads, so it covers one project. It never looked for project
directories below --cwd: from a monorepo root it printed "No packages
found. Run your package manager's install first.", or a success
summary for the root alone, and left api/ and web/ unpatched without
a word (#2125).
After the crawl it now finds the project directories below (the
search a bare hosted scan uses) and keeps the ones where a crawl would
read a PyPI, Cargo, RubyGems, Go or Composer install directory the
crawl from --cwd did not. It names them in a projects_not_scanned
warning with the command that reaches the first, on stderr and in
--json warnings[]. An empty scan with such a warning points at it
instead of telling the user to run an install. npm is not compared:
its crawl walks every node_modules below --cwd.
Assisted-by: Claude Code:claude-fable-5-2
* Name only projects with unread installs of own
Review of the first cut found it too loose and too narrow at once.
A Python project with no environment fell back to the machine's
site-packages and was named on every scan, while an npm project the
walk from --cwd skips (a hidden or build-output directory) never
was.
A directory is now named when it has an install directory of its
own that the crawl from --cwd did not read: a node_modules, a Python
environment or a Composer vendor directory inside the project, or a
gem home (Bundler installs into the user-wide ones by default). The
user-wide Python, Cargo and Go stores are not compared.
Also: resolve the directories a few at a time, say when the tree was
too large to search, list at most 10 directories, and suggest the
command as the run was asked (--sync, an inferred mode).
Assisted-by: Claude Code:claude-fable-5-2
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 89c482d commit 4bbcf91
7 files changed
Lines changed: 629 additions & 26 deletions
File tree
- crates/socket-patch-cli
- src
- commands
- scan
- tests/scan
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
| 2304 | + | |
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 319 | + | |
327 | 320 | | |
328 | 321 | | |
329 | 322 | | |
| |||
343 | 336 | | |
344 | 337 | | |
345 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
346 | 456 | | |
347 | 457 | | |
348 | 458 | | |
| |||
470 | 580 | | |
471 | 581 | | |
472 | 582 | | |
473 | | - | |
| 583 | + | |
474 | 584 | | |
475 | 585 | | |
476 | 586 | | |
| |||
0 commit comments