Refine agent cli artifacts#93
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refines agent-facing CLI artifacts by adding command-specific help, improving artifact bundle reporting in doctor, and making generated artifact question IDs unique/stable.
Changes:
- Adds dedicated help text for
search,explain,artifact, andmcp. - Extends
doctorto recognize manifest-backed artifact bundle directories. - Updates suggested question IDs/labels and related tests/docs.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/cli.ts |
Routes --help to command-specific help text when available. |
src/cli/help.ts |
Adds command-specific help constants and lookup helper. |
src/cli/search.ts |
Uses shared search help for missing query usage output. |
src/cli/explain.ts |
Uses shared explain help for missing target usage output. |
src/cli/artifact.ts |
Uses shared artifact help for invalid artifact subcommands. |
src/cli/mcp.ts |
Uses shared MCP help for invalid MCP subcommands. |
src/cli/doctor.ts |
Detects artifact bundle directories and reports expected artifact presence. |
src/agent/artifact.ts |
Ensures suggested question IDs/handles remain unique for aliased exports and SQL objects. |
tests/cli-command-modules.test.ts |
Adds coverage for command help routing and artifact bundle doctor reports. |
tests/artifact-build.test.ts |
Adds coverage for unique suggested question IDs with aliased exports. |
docs/cli.md |
Documents command-specific help and artifact bundle doctor support. |
docs/agent-workflows.md |
Updates agent workflow guidance for doctor and unique question IDs. |
codegraph-skill/codegraph/SKILL.md |
Updates bundled skill guidance for command help and artifact doctor usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.