Skip to content

feat(cli): scan remote git repositories#3

Merged
leodiegues merged 2 commits into
mainfrom
feat/scan-remote
Feb 15, 2026
Merged

feat(cli): scan remote git repositories#3
leodiegues merged 2 commits into
mainfrom
feat/scan-remote

Conversation

@leodiegues
Copy link
Copy Markdown
Owner

This pull request updates the scan command to support scanning both local directories and remote git repositories for agent files, simplifying its interface and improving test coverage. The most significant changes are the refactoring of the command's arguments, the addition of remote git support, and the introduction of unit tests for the scan functionality.

Scan command enhancements:

  • The scan command now accepts a source argument, which can be either a local path or a git URL (e.g., github.com/org/repo@v1.0), instead of separate path and write arguments. This allows users to scan both local and remote sources with a unified interface. [1] [2]
  • The implementation of cmd_scan was updated to detect git URLs, resolve and cache remote repositories locally, and then scan them for agent files.
  • The option to write the discovered manifest to a file was removed from the scan command, simplifying its behavior.

Testing improvements:

  • Added a new test module for the scan functionality, including tests for scanning local directories with files, empty directories, and nonexistent paths, improving reliability and coverage.

Change Scan CLI to accept a single source string (local path or git
URL).
cmd_scan detects git URLs, parses the remote, resolves/clones to the
local cache (printing the remote/ref and cache path) and scans the
cached
path. Otherwise it scans the provided local path string.

Remove the --write flag and the previous manifest saving behavior.
@leodiegues leodiegues self-assigned this Feb 15, 2026
@leodiegues leodiegues merged commit 605f15c into main Feb 15, 2026
5 checks passed
@leodiegues leodiegues deleted the feat/scan-remote branch February 15, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant