Conversation
Introduces the Context-Engine CLI with commands for semantic code search, indexing, configuration management, shell completions, and more. Adds installation and usage documentation, project metadata, dependencies, and command handlers for answer, search, index, prune, config, lifecycle, and completion. Includes support files for shell completions, demos, output formatting, and utility functions.
Changed the GitHub repository link in the CLI help message to point to the correct project URL.
🤖 Augment PR SummarySummary: Adds an initial Python-based Changes:
Technical Notes: The CLI uses Rich when available for formatted output, and centralizes MCP calls through 🤖 Was this summary useful? React with 👍 or 👎 |
Deleted the INSTALLATION.md file containing installation and CLI usage instructions. This may indicate a migration of documentation or a change in how installation guidance is provided.
Replaces direct HTTP JSON-RPC requests and manual response parsing in answer.py, index.py, and search.py with the MCPClient utility, which now handles the MCP session handshake and response parsing automatically. Removes redundant parse_mcp_response functions and updates error handling to use MCPError. Improves maintainability and reliability of MCP tool interactions.
Refines logic for setting the 'collection' parameter to only use environment variable if explicitly set, otherwise defers to server auto-detection. Enhances error handling to support both string and dict error formats, and updates source label formatting in output.
Introduces new commands: 'bridge' for IDE config generation and bridge status, 'collections' for Qdrant collection management, and 'doctor' for comprehensive health checks. Updates the README with detailed command documentation and quickstart instructions. Refactors command registration in __init__.py, removes deprecated demo and test scripts, and improves answer.py response parsing.
Replaces Typer-based argument parsing with standard Python arguments in CLI commands, improving compatibility and simplifying error handling. Adds environment and .env file support for service URLs, enhances collection resolution for search/prune commands, and updates bash completions to match new flags. Introduces a 'quiet' option to docker compose runner and improves config file handling for default collection. Minor improvements to health checks and IDE config generation.
Enhanced collection resolution in answer.py to check explicit flag, environment variable, and config file in order. Updated collections.py to persist default collection selection in .ctxrc using ConfigManager, ensuring future CLI invocations use the selected collection.
Collaborator
Author
|
augment review |
Replaces sys.exit calls with return statements to allow the prune function to return exit codes instead of terminating the process. This improves testability and integration with other code by handling errors and cancellations more gracefully.
Refactors the index command to robustly resolve and validate paths, supporting subdirectory indexing and enforcing workspace boundaries via HOST_INDEX_PATH. Updates quickstart to prompt for and handle multiple paths, symlinking as needed, and accumulates indexing statistics across multiple repositories. Adds CLI tests for config and path resolution behaviors, and updates main CLI usage to use 'ctx' instead of 'ctx-cli'.
Refactors and extends the quickstart indexing logic to support multi-repo mode, explicit path handling, and importing/copying repositories outside the mounted workspace. Adds the --import-repos flag, improves collection detection, and introduces comprehensive tests for multi-repo, explicit path, and import scenarios.
Refactored CLI commands to gracefully handle absence of the 'rich' library, providing fallback plain output where appropriate. Updated subprocess execution in doctor.py to avoid shell=True for security. Fixed a formatting bug in collections.py. Improved quickstart.py to only create separate collections for actual git repositories. Ensured proper socket closure in docker.py health checks.
Tests now create .git directories to ensure paths are treated as separate repositories. DummyClient mocks have been updated to simulate successful indexing by returning non-zero counts and changed file stats. Environment variables are set more explicitly to match test scenarios.
Adds logic to ensure that each collection is only recreated once during the indexing process. Subsequent targets for the same collection will use an update action instead of recreate, avoiding redundant recreation operations.
Introduces new CLI commands for symbol graph navigation, memory store/search, and structural code pattern search. Updates README and command registration to document and enable these features.
Introduces the `sync` command for uploading and syncing workspaces to a remote Context-Engine server, including watch mode and git history options. Adds centralized UI helpers using Rich for consistent output, updates CLI error handling, and improves logical repo reuse feature flag behavior. Documentation and command registration are updated to reflect new functionality.
Introduces a .indexignore file to exclude cosqa*.json files and the dev-workspace directory from indexing. This helps prevent unnecessary files and directories from being indexed in the main Context-Engine repository.
Logical repo reuse is now disabled by default and explicitly enabled for CLI indexing and sync operations via ensure_logical_repo_reuse_for_cli(). The status command now reports graph backend status for Qdrant and Neo4j, including edge and node counts. ConfigManager now supports MCP_* environment variable overrides for endpoint URLs. Minor improvements to error handling and documentation.
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.
Introduces the Context-Engine CLI with commands for semantic code search, indexing, configuration management, shell completions, and more. Adds installation and usage documentation, project metadata, dependencies, and command handlers for answer, search, index, prune, config, lifecycle, and completion. Includes support files for shell completions, demos, output formatting, and utility functions.