Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 116 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ members = [
"crates/codegraph-installer",
"crates/codegraph-binary",
"crates/codegraph",
"crates/codegraph-docs",
]

[workspace.package]
version = "2.1.3"
version = "2.1.4"
edition = "2021"
rust-version = "1.80"
license = "MIT"
Expand Down
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,24 @@ The agent binds the workspace with `codegraph_init {"path": ...}` and gets tools

## 📄 Supported Formats

CodeGraph-docs now supports parsing the following configuration file formats:
CodeGraph supports parsing both **source code** (via tree-sitter) and **configuration/document** files:

| Format | Parser | Status |
|--------|--------|--------|
| YAML | YamlParser | ✅ Implemented |
| JSON | JsonParser | ✅ Implemented |
| TOML | TomlParser | ✅ Implemented |
| **HCL** (HashiCorp Configuration Language) | **HclParser** | **✅ New** |
| **Terraform (.tf)** | **HclParser** | **✅ New** |
### Source Code Languages
14 languages: TypeScript · TSX · JavaScript · Python · Go · Rust · Java · C · C++ · C# · Ruby · PHP · Scala · Swift · Lua

HCL and Terraform files can now be indexed and analyzed through the codegraph CLI, enabling semantic understanding of HashiCorp configuration files.
### Configuration/Document Formats

| Format | Extension | Parser | Access |
|--------|-----------|--------|--------|
| YAML | `.yaml`, `.yml` | YamlParser | `codegraph doc ingest` / MCP |
| JSON | `.json` | JsonParser | `codegraph doc ingest` / MCP |
| TOML | `.toml` | TomlParser | `codegraph doc ingest` / MCP |
| **HCL** (HashiCorp) | `.hcl`, `.tf` | HclParser | `codegraph doc ingest` / MCP |

Document files can be ingested into a **document graph** and queried via:
- **CLI**: `codegraph doc ingest <path>`, `codegraph doc search`, `codegraph doc stats`
- **MCP**: `codegraph_doc_ingest`, `codegraph_doc_search`, `codegraph_doc_hydrate`, `codegraph_doc_list`, `codegraph_doc_stats`
- **GraphQL**: `docList`, `docSearch`, `docStats` queries and `docIngest`, `docSearch`, `docStats` mutations

## 🎯 Key Features

Expand Down
2 changes: 2 additions & 0 deletions crates/codegraph-docs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ serde_yaml = "0.9"
toml = "0.8"
toml_edit = { workspace = true }
hcl-rs = "0.19.8"
tokio = { workspace = true, features = ["sync"] }
anyhow = { workspace = true }
Loading
Loading