Remove Agent and AI APIs#165
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
jayhack
added a commit
that referenced
this pull request
Jun 24, 2026
## Summary - Add high-level graph CLI commands: `inspect`, `using`, `usages`, and `rename`. - Add target resolution for `FILE:SYMBOL`, `FILE::SYMBOL`, and dotted file shorthand. - Add CLI reference docs and uvx examples for graph queries and focused renames. ## Impact - Agents and automation can inspect file structure, trace inbound/outbound call graphs, and perform resolved renames without writing one-off codemods. - `rename` defaults to dry-run behavior and requires `--write` to modify files. - The PR branch is rebased on current `develop`, which already contains the Agent/API removal from #165. ## Validation - `uv run ruff check src/graph_sitter/cli/cli.py src/graph_sitter/cli/commands/graph/common.py src/graph_sitter/cli/commands/inspect/main.py src/graph_sitter/cli/commands/using/main.py src/graph_sitter/cli/commands/usages/main.py src/graph_sitter/cli/commands/rename/main.py tests/unit/cli/commands/graph/test_graph_commands.py` - `uv run pytest tests/unit/cli/commands/parse/test_parse.py tests/unit/cli/commands/run/test_run.py tests/unit/cli/commands/graph/test_graph_commands.py` - `PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run build`
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
Codebase.ai,set_ai_key,max_ai_requests, OpenAI secrets/dependency, and related errors/tests)docs/api-reference/openapi3.jsonand clean live docs/CLI copy so codemod scaffolding is deterministic onlyTesting
uv run ruff format $(git diff --name-only --diff-filter=ACM | rg '\.py$' | tr '\n' ' ')uv run ruff check $(git diff --name-only --diff-filter=ACM | rg '\.py$' | tr '\n' ' ')uv run pytest tests/unit/sdk/python/codebase/test_control_flow.py tests/unit/runner/sandbox/test_executor.py tests/integration/codegen/sdk/code_generation/test_api_doc_generation.pyuv run pytest tests/unit/cli/commands/parse/test_parse.py tests/unit/cli/commands/diagnose/test_diagnose.py tests/unit/cli/commands/run/test_run.py tests/unit/gscli/test_cli.pyjq empty docs/api-reference/openapi3.jsonuv run python -c "import graph_sitter; from graph_sitter import Codebase; import graph_sitter.extensions; import graph_sitter.cli.cli; print('imports ok')"PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site ciPATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run buildNot run
uv run pytest tests/integration/codemod/test_verified_codemods.py --collect-only -qis blocked by missing fixture data:tests/integration/verified_codemods/codemod_data/Y2Y4MGNkOG.json.