feat(workspace): add agentv workspace deps subcommand#960
Merged
Conversation
…epo dependencies Adds a lightweight scanner that extracts git repo dependencies from eval YAML workspace configs without full test/grader parsing. CI pipelines can use this to determine which repos to clone before running evals. Closes #959 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
fd2a0ca
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dd1fbdb3.agentv.pages.dev |
| Branch Preview URL: | https://feat-959-workspace-deps.agentv.pages.dev |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Extract shared repo config parsers into repo-config-parser.ts (DRY) - Remove duplicated parseRepoSource/Checkout/Clone from deps-scanner - Update yaml-parser.ts to import from shared module - Make used_by paths relative to cwd for CI portability - Normalize git URLs for dedup (strip trailing .git, lowercase host) - Remove unused _baseDir parameter - Use RepoSource type instead of inline union - Add tests: env var interpolation, malformed YAML, broken workspace file ref, URL normalization dedup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep the default JSON output minimal for CI piping. The --used-by flag includes the list of eval files that reference each repo when needed for debugging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agentv workspace deps <eval-paths...>— a lightweight scanner that extracts git repo dependencies from eval YAML workspace configsloadTestSuite— only parses workspace-related YAML fields for speedExample
$ agentv workspace deps examples/features/workspace-multi-repo/evals/dataset.eval.yaml { "repos": [ { "url": "https://github.com/EntityProcess/agentv.git", "ref": "main", "clone": { "depth": 1 }, "checkout": { "resolve": "local" }, "used_by": ["examples/features/workspace-multi-repo/evals/dataset.eval.yaml"] } ] }CI can pipe this to
jqand clone/fetch only what's needed.Test plan
examples/Closes #959
🤖 Generated with Claude Code