mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
test+docs(impact): add symbol pipeline tests and Phase G docs
- 4 new unit test files (22 tests) for graph-symbols, graph-symbol-resolution, graph-entrypoints, symbol-graph-cache. All 799 tests pass. - README/AGENTS/CLAUDE/GEMINI: document codebase_impact, codebase_flow, codebase_symbol, codebase_symbols and updated workflow guidance. - DEVELOPER.md: new architectural section for symbol-level call graph, including sharded storage layout and resolution confidence levels. - CHANGELOG: Unreleased section for the impact-analysis feature. - Apply CodeRabbit fixes: dedupe in-flight cache loads, set ImpactResult.truncated when frontier extends beyond depth limit, drop redundant String() around Lang enum. - Switch reverse-shard hash from SHA1 to SHA256 (Snyk hardening; non-cryptographic use).
This commit is contained in:
@@ -24,20 +24,34 @@ before reading any files directly.
|
||||
- **When planning a refactor**, use the graph to identify all affected files before
|
||||
making changes.
|
||||
|
||||
3. **Read files only after narrowing down via search.**
|
||||
3. **Use Impact Analysis BEFORE refactoring, renaming, or deleting code.**
|
||||
The symbol-level call graph (`codebase_impact`, `codebase_flow`, `codebase_symbol`,
|
||||
`codebase_symbols`) goes one step deeper than the file graph: it knows which
|
||||
functions and methods call which.
|
||||
- `codebase_impact` answers "what breaks if I change X?" (blast radius — every file
|
||||
that transitively calls into the target).
|
||||
- `codebase_flow` answers "what does this code do?" by tracing forward from an entry
|
||||
point. Call with no `entrypoint` to discover candidate entry points (auto-detected
|
||||
via orphans, conventional names like `main()`, framework routes, tests).
|
||||
- `codebase_symbol` gives a 360° view of one function: definition, callers, callees.
|
||||
- `codebase_symbols` lists symbols in a file or searches by name.
|
||||
- Always prefer these over reading multiple files when the question is about
|
||||
dependencies between functions, not concepts.
|
||||
|
||||
4. **Read files only after narrowing down via search.**
|
||||
Once search results clearly point to 1–3 files, read only the relevant sections.
|
||||
Never read a file just to find out if it's relevant — search first.
|
||||
|
||||
4. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
5. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
Circular dependencies cause subtle runtime issues; check for them proactively.
|
||||
Also run `codebase_graph_circular` when you notice import-related errors or unexpected
|
||||
initialization order.
|
||||
|
||||
5. **Check `codebase_status` if search returns no results.**
|
||||
6. **Check `codebase_status` if search returns no results.**
|
||||
The project may not be indexed yet. Run `codebase_index` if needed, then wait for
|
||||
`codebase_status` to confirm completion before searching.
|
||||
|
||||
6. **Leverage context artifacts for non-code knowledge.**
|
||||
7. **Leverage context artifacts for non-code knowledge.**
|
||||
Projects can define a `.socraticodecontextartifacts.json` config to expose database
|
||||
schemas, API specs, infrastructure configs, architecture docs, and other project
|
||||
knowledge that lives outside source code. These artifacts are auto-indexed alongside
|
||||
@@ -56,7 +70,13 @@ before reading any files directly.
|
||||
| Find a specific function, constant, or type | `codebase_search` (exact name) or grep if you know already the exact string |
|
||||
| Find exact error messages, log strings, or regex patterns | grep / ripgrep |
|
||||
| See what a file imports or what depends on it | `codebase_graph_query` |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_graph_query` (look at dependents) |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_impact` (symbol-level) or `codebase_graph_query` (file-level) |
|
||||
| **What breaks if I change function X?** | `codebase_impact target=X` |
|
||||
| **What does this entry point actually do?** | `codebase_flow entrypoint=X` |
|
||||
| **List entry points in this codebase** | `codebase_flow` (no args) |
|
||||
| **Who calls this function and what does it call?** | `codebase_symbol name=X` |
|
||||
| **What functions/classes exist in this file?** | `codebase_symbols file=path` |
|
||||
| **Search for symbols by name across the project** | `codebase_symbols query=X` |
|
||||
| Spot architectural problems | `codebase_graph_circular`, `codebase_graph_stats` |
|
||||
| Visualise module structure | `codebase_graph_visualize` |
|
||||
| Verify index is up to date | `codebase_status` |
|
||||
|
||||
@@ -3,6 +3,20 @@
|
||||
All notable changes to SocratiCode are documented here.
|
||||
This project uses [Conventional Commits](https://www.conventionalcommits.org/) and [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Features
|
||||
|
||||
* **Impact Analysis & symbol-level call graph.** Four new MCP tools that go one level deeper than the file-import graph by tracking which functions call which:
|
||||
* `codebase_impact` — return the **blast radius** for a file or symbol (every file that transitively calls into it). Use BEFORE refactoring, renaming, or deleting code.
|
||||
* `codebase_flow` — trace forward execution flow from an entry point. With no args, returns auto-detected entry points (orphan files, conventional names like `main()`, framework routes like `app.get(...)`, tests).
|
||||
* `codebase_symbol` — 360° view of one symbol: definition, callers, callees with confidence levels.
|
||||
* `codebase_symbols` — list symbols in a file or search by name across the project.
|
||||
* **Sharded Qdrant storage** for the symbol graph: 27 name shards keyed by first lowercased character, 256 reverse-call file shards keyed by SHA1 first byte. Designed to scale to 100k+ files / 1M+ symbols with bounded memory via an LRU per-file payload cache.
|
||||
* **18-language symbol & call extraction**: TypeScript / JavaScript / TSX, Python, Go, Rust, Java, Kotlin, Scala, C#, C, C++, Ruby, PHP, Swift, Bash + a regex fallback for Dart/Lua/Svelte/Vue.
|
||||
* **Symbol graph builds automatically** alongside the file-import graph during `codebase_index` and `codebase_graph_build`. `codebase_graph_status` now reports symbol graph stats (files / symbols / edges / unresolved%).
|
||||
* **Symbol graph removed** automatically when `codebase_graph_remove` is called.
|
||||
|
||||
|
||||
## [1.6.1](https://github.com/giancarloerra/socraticode/compare/v1.6.0...v1.6.1) (2026-04-17)
|
||||
|
||||
|
||||
@@ -24,20 +24,34 @@ before reading any files directly.
|
||||
- **When planning a refactor**, use the graph to identify all affected files before
|
||||
making changes.
|
||||
|
||||
3. **Read files only after narrowing down via search.**
|
||||
3. **Use Impact Analysis BEFORE refactoring, renaming, or deleting code.**
|
||||
The symbol-level call graph (`codebase_impact`, `codebase_flow`, `codebase_symbol`,
|
||||
`codebase_symbols`) goes one step deeper than the file graph: it knows which
|
||||
functions and methods call which.
|
||||
- `codebase_impact` answers "what breaks if I change X?" (blast radius — every file
|
||||
that transitively calls into the target).
|
||||
- `codebase_flow` answers "what does this code do?" by tracing forward from an entry
|
||||
point. Call with no `entrypoint` to discover candidate entry points (auto-detected
|
||||
via orphans, conventional names like `main()`, framework routes, tests).
|
||||
- `codebase_symbol` gives a 360° view of one function: definition, callers, callees.
|
||||
- `codebase_symbols` lists symbols in a file or searches by name.
|
||||
- Always prefer these over reading multiple files when the question is about
|
||||
dependencies between functions, not concepts.
|
||||
|
||||
4. **Read files only after narrowing down via search.**
|
||||
Once search results clearly point to 1–3 files, read only the relevant sections.
|
||||
Never read a file just to find out if it's relevant — search first.
|
||||
|
||||
4. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
5. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
Circular dependencies cause subtle runtime issues; check for them proactively.
|
||||
Also run `codebase_graph_circular` when you notice import-related errors or unexpected
|
||||
initialization order.
|
||||
|
||||
5. **Check `codebase_status` if search returns no results.**
|
||||
6. **Check `codebase_status` if search returns no results.**
|
||||
The project may not be indexed yet. Run `codebase_index` if needed, then wait for
|
||||
`codebase_status` to confirm completion before searching.
|
||||
|
||||
6. **Leverage context artifacts for non-code knowledge.**
|
||||
7. **Leverage context artifacts for non-code knowledge.**
|
||||
Projects can define a `.socraticodecontextartifacts.json` config to expose database
|
||||
schemas, API specs, infrastructure configs, architecture docs, and other project
|
||||
knowledge that lives outside source code. These artifacts are auto-indexed alongside
|
||||
@@ -56,7 +70,13 @@ before reading any files directly.
|
||||
| Find a specific function, constant, or type | `codebase_search` (exact name) or grep if you know already the exact string |
|
||||
| Find exact error messages, log strings, or regex patterns | grep / ripgrep |
|
||||
| See what a file imports or what depends on it | `codebase_graph_query` |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_graph_query` (look at dependents) |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_impact` (symbol-level) or `codebase_graph_query` (file-level) |
|
||||
| **What breaks if I change function X?** | `codebase_impact target=X` |
|
||||
| **What does this entry point actually do?** | `codebase_flow entrypoint=X` |
|
||||
| **List entry points in this codebase** | `codebase_flow` (no args) |
|
||||
| **Who calls this function and what does it call?** | `codebase_symbol name=X` |
|
||||
| **What functions/classes exist in this file?** | `codebase_symbols file=path` |
|
||||
| **Search for symbols by name across the project** | `codebase_symbols query=X` |
|
||||
| Spot architectural problems | `codebase_graph_circular`, `codebase_graph_stats` |
|
||||
| Visualise module structure | `codebase_graph_visualize` |
|
||||
| Verify index is up to date | `codebase_status` |
|
||||
|
||||
+63
-1
@@ -197,13 +197,19 @@ src/
|
||||
│ ├── graph-aliases.ts # Path alias resolution from tsconfig/jsconfig compilerOptions.paths
|
||||
│ ├── graph-imports.ts # Import/require/use extraction for 18+ languages via AST
|
||||
│ ├── graph-resolution.ts # Module specifier → file path resolution (incl. aliases, SCSS partials)
|
||||
│ ├── graph-symbols.ts # Per-language symbol & call-site extraction (Impact Analysis)
|
||||
│ ├── graph-symbol-resolution.ts # Three-tier cross-file call-site resolution
|
||||
│ ├── graph-entrypoints.ts # Entry-point detection (orphans + main() + framework patterns + tests)
|
||||
│ ├── graph-impact.ts # Impact / flow / context / list analysis primitives
|
||||
│ ├── symbol-graph-store.ts # Sharded Qdrant storage layer for the symbol graph
|
||||
│ ├── symbol-graph-cache.ts # Per-project LRU cache with lazy shard loading
|
||||
│ ├── startup.ts # Startup lifecycle: auto-resume, graceful shutdown coordination
|
||||
│ └── context-artifacts.ts # Context artifact loading, chunking, indexing, search
|
||||
│
|
||||
├── tools/
|
||||
│ ├── index-tools.ts # Handlers: codebase_index, codebase_update, codebase_remove, codebase_stop, codebase_watch
|
||||
│ ├── query-tools.ts # Handlers: codebase_search, codebase_status
|
||||
│ ├── graph-tools.ts # Handlers: codebase_graph_build/query/stats/circular/visualize
|
||||
│ ├── graph-tools.ts # Handlers: codebase_graph_*, codebase_impact, codebase_flow, codebase_symbol(s)
|
||||
│ ├── context-tools.ts # Handlers: codebase_context, codebase_context_search/index/remove
|
||||
│ └── manage-tools.ts # Handlers: codebase_health, codebase_list_projects, codebase_about
|
||||
|
||||
@@ -799,6 +805,62 @@ Watcher settings:
|
||||
| `ensureDynamicLanguages` | `() → void` | Register dynamic ast-grep language grammars |
|
||||
| `getAstGrepLang` | `(ext) → Lang \| string \| null` | Map file extension to ast-grep language |
|
||||
|
||||
### Symbol-level call graph (Impact Analysis)
|
||||
|
||||
A second graph layer sits on top of the file-import graph. It tracks individual functions
|
||||
and methods and the calls between them, enabling true blast-radius queries
|
||||
(`codebase_impact`), forward execution traces (`codebase_flow`), and per-symbol context
|
||||
(`codebase_symbol`).
|
||||
|
||||
#### Pipeline
|
||||
|
||||
```
|
||||
buildCodeGraph (one pass per file)
|
||||
├── extractImports → file-import graph
|
||||
└── extractSymbolsAndCalls → SymbolNode[] + raw call sites per file
|
||||
│
|
||||
▼
|
||||
resolveCallSites (3-tier strategy)
|
||||
1. local symbol match
|
||||
2. walk caller's dependencies[]
|
||||
3. one extra hop (barrel re-exports)
|
||||
│
|
||||
▼
|
||||
persistSymbolGraph (sharded)
|
||||
├── 1 file payload per source file
|
||||
├── 27 name shards (first lowercased char)
|
||||
├── 256 reverse-call file shards (SHA1 first byte)
|
||||
└── 1 meta point
|
||||
│
|
||||
▼
|
||||
SymbolGraphCache (per project, lazy)
|
||||
— used by getImpactRadius / getCallFlow /
|
||||
getSymbolContext / listSymbols
|
||||
```
|
||||
|
||||
#### Sharded storage layout (per project)
|
||||
|
||||
| Collection | Points | Purpose |
|
||||
|------------|--------|---------|
|
||||
| `{projectId}_symgraph_meta` | 1 | `SymbolGraphMeta` (counts, builtAt, schemaVersion, unresolved%) |
|
||||
| `{projectId}_symgraph_file` | 1 per source file | `SymbolGraphFilePayload` — symbols + outgoing calls + contentHash |
|
||||
| `{projectId}_symgraph_index` | 27 + 256 ≈ 283 | Sharded indices: name shards (`a`..`z` + `_`) and reverse-call shards (0..255) |
|
||||
|
||||
All points use the dummy-vector-`[0]` pattern (Qdrant requires a vector even when not used for similarity search). Points use UUID-formatted SHA-256 IDs via `uuidFromString`. The `on_disk_payload: true` flag keeps memory usage bounded.
|
||||
|
||||
#### Languages with first-class symbol extraction
|
||||
|
||||
TypeScript / JavaScript / TSX, Python, Go, Rust, Java, Kotlin, Scala, C#, C, C++, Ruby, PHP, Swift, Bash. Dart, Lua, Svelte, Vue and unknown languages fall through to a regex fallback that still produces a `<module>` symbol plus best-effort function/class detection.
|
||||
|
||||
#### Confidence levels for resolved call edges
|
||||
|
||||
- `local` — callee is defined in the same file
|
||||
- `unique` — exactly one cross-file candidate matched
|
||||
- `multiple-candidates` — name matched in more than one dependency; all candidates kept
|
||||
- `unresolved` — no symbol found anywhere reachable; left as a name-only edge
|
||||
|
||||
`SymbolGraphMeta.unresolvedEdgePct` exposes how much of the call graph is fuzzy — useful as a quality signal.
|
||||
|
||||
### graph-analysis.ts
|
||||
|
||||
| Function | Signature | Description |
|
||||
|
||||
@@ -19,19 +19,39 @@ before reading any files directly.
|
||||
2. **Follow the graph before following imports.**
|
||||
Use `codebase_graph_query` to see what a file imports and what depends on it before
|
||||
diving into its contents. This prevents unnecessary reading of transitive dependencies.
|
||||
- **Before modifying or deleting a file**, check its dependents with `codebase_graph_query`
|
||||
to understand the blast radius.
|
||||
- **When planning a refactor**, use the graph to identify all affected files before
|
||||
making changes.
|
||||
|
||||
3. **Read files only after narrowing down via search.**
|
||||
3. **Use Impact Analysis BEFORE refactoring, renaming, or deleting code.**
|
||||
The symbol-level call graph (`codebase_impact`, `codebase_flow`, `codebase_symbol`,
|
||||
`codebase_symbols`) goes one step deeper than the file graph: it knows which
|
||||
functions and methods call which.
|
||||
- `codebase_impact` answers "what breaks if I change X?" (blast radius — every file
|
||||
that transitively calls into the target).
|
||||
- `codebase_flow` answers "what does this code do?" by tracing forward from an entry
|
||||
point. Call with no `entrypoint` to discover candidate entry points (auto-detected
|
||||
via orphans, conventional names like `main()`, framework routes, tests).
|
||||
- `codebase_symbol` gives a 360° view of one function: definition, callers, callees.
|
||||
- `codebase_symbols` lists symbols in a file or searches by name.
|
||||
- Always prefer these over reading multiple files when the question is about
|
||||
dependencies between functions, not concepts.
|
||||
|
||||
4. **Read files only after narrowing down via search.**
|
||||
Once search results clearly point to 1–3 files, read only the relevant sections.
|
||||
Never read a file just to find out if it's relevant — search first.
|
||||
|
||||
4. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
5. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
Circular dependencies cause subtle runtime issues; check for them proactively.
|
||||
Also run `codebase_graph_circular` when you notice import-related errors or unexpected
|
||||
initialization order.
|
||||
|
||||
5. **Check `codebase_status` if search returns no results.**
|
||||
6. **Check `codebase_status` if search returns no results.**
|
||||
The project may not be indexed yet. Run `codebase_index` if needed, then wait for
|
||||
`codebase_status` to confirm completion before searching.
|
||||
|
||||
6. **Leverage context artifacts for non-code knowledge.**
|
||||
7. **Leverage context artifacts for non-code knowledge.**
|
||||
Projects can define a `.socraticodecontextartifacts.json` config to expose database
|
||||
schemas, API specs, infrastructure configs, architecture docs, and other project
|
||||
knowledge that lives outside source code. These artifacts are auto-indexed alongside
|
||||
@@ -50,10 +70,19 @@ before reading any files directly.
|
||||
| Find a specific function, constant, or type | `codebase_search` (exact name) or grep if you know already the exact string |
|
||||
| Find exact error messages, log strings, or regex patterns | grep / ripgrep |
|
||||
| See what a file imports or what depends on it | `codebase_graph_query` |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_impact` (symbol-level) or `codebase_graph_query` (file-level) |
|
||||
| **What breaks if I change function X?** | `codebase_impact target=X` |
|
||||
| **What does this entry point actually do?** | `codebase_flow entrypoint=X` |
|
||||
| **List entry points in this codebase** | `codebase_flow` (no args) |
|
||||
| **Who calls this function and what does it call?** | `codebase_symbol name=X` |
|
||||
| **What functions/classes exist in this file?** | `codebase_symbols file=path` |
|
||||
| **Search for symbols by name across the project** | `codebase_symbols query=X` |
|
||||
| Spot architectural problems | `codebase_graph_circular`, `codebase_graph_stats` |
|
||||
| Visualize module structure | `codebase_graph_visualize` |
|
||||
| Visualise module structure | `codebase_graph_visualize` |
|
||||
| Verify index is up to date | `codebase_status` |
|
||||
| Discover what project knowledge (schemas, specs, configs) is available | `codebase_context` |
|
||||
| Find database tables, API endpoints, infra configs | `codebase_context_search` |
|
||||
|
||||
> **Why semantic search first?** A single `codebase_search` call returns ranked, deduplicated snippets from across the entire codebase in milliseconds. This gives you a broad map at negligible token cost — far cheaper than opening files speculatively. Once you know which files matter, targeted reading is both faster and more accurate. That said, grep remains the right tool when you have an exact string or pattern — use whichever fits the query.
|
||||
|
||||
> **Keep the connection alive during indexing.** Indexing runs in the background — the MCP server continues working even when not actively responding to tool calls. However, some MCP hosts (VS Code, Claude Desktop, etc.) will disconnect an idle MCP connection after a period of inactivity, which cuts off the background process. Instruct your AI to call `codebase_status` roughly every 60 seconds after starting `codebase_index` until it completes. This keeps the host connection active and provides real-time progress.
|
||||
|
||||
@@ -308,6 +308,31 @@ User: "Show me the dependency graph"
|
||||
User: "Are there any circular dependencies?"
|
||||
→ codebase_graph_circular {}
|
||||
Found 2 cycles: src/a.ts → src/b.ts → src/a.ts
|
||||
|
||||
User: "What breaks if I rename validateUser?"
|
||||
→ codebase_impact { target: "validateUser" }
|
||||
Blast radius for symbol: validateUser
|
||||
Hop 1 (3 files): src/auth/login.ts, src/api/users.ts, tests/auth.test.ts
|
||||
Hop 2 (5 files): ...
|
||||
|
||||
User: "What does the server entry point actually do?"
|
||||
→ codebase_flow {}
|
||||
Detected 4 entry point(s):
|
||||
main (cmd/server.go:10) — well-known-name:main
|
||||
healthz (src/api/routes.ts:42) — framework:get
|
||||
...
|
||||
→ codebase_flow { entrypoint: "main" }
|
||||
└── main (cmd/server.go:10)
|
||||
├── loadConfig (cmd/server.go:15)
|
||||
└── startServer (src/server.ts:8)
|
||||
└── ...
|
||||
|
||||
User: "Who calls bcryptCompare and what does it call?"
|
||||
→ codebase_symbol { name: "bcryptCompare" }
|
||||
Symbol: bcryptCompare (function)
|
||||
Defined: src/auth/hash.ts:42–58
|
||||
Callers (3): ← src/auth/login.ts:12, ← src/auth/reset.ts:30 ...
|
||||
Callees (1): → compare [unique, 1 candidate]
|
||||
```
|
||||
|
||||
## Agent Instructions
|
||||
@@ -356,20 +381,34 @@ before reading any files directly.
|
||||
- **When planning a refactor**, use the graph to identify all affected files before
|
||||
making changes.
|
||||
|
||||
3. **Read files only after narrowing down via search.**
|
||||
3. **Use Impact Analysis BEFORE refactoring, renaming, or deleting code.**
|
||||
The symbol-level call graph (`codebase_impact`, `codebase_flow`, `codebase_symbol`,
|
||||
`codebase_symbols`) goes one step deeper than the file graph: it knows which
|
||||
functions and methods call which.
|
||||
- `codebase_impact` answers "what breaks if I change X?" (blast radius — every file
|
||||
that transitively calls into the target).
|
||||
- `codebase_flow` answers "what does this code do?" by tracing forward from an entry
|
||||
point. Call with no `entrypoint` to discover candidate entry points (auto-detected
|
||||
via orphans, conventional names like `main()`, framework routes, tests).
|
||||
- `codebase_symbol` gives a 360° view of one function: definition, callers, callees.
|
||||
- `codebase_symbols` lists symbols in a file or searches by name.
|
||||
- Always prefer these over reading multiple files when the question is about
|
||||
dependencies between functions, not concepts.
|
||||
|
||||
4. **Read files only after narrowing down via search.**
|
||||
Once search results clearly point to 1–3 files, read only the relevant sections.
|
||||
Never read a file just to find out if it's relevant — search first.
|
||||
|
||||
4. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
5. **Use `codebase_graph_circular` when debugging unexpected behavior.**
|
||||
Circular dependencies cause subtle runtime issues; check for them proactively.
|
||||
Also run `codebase_graph_circular` when you notice import-related errors or unexpected
|
||||
initialization order.
|
||||
|
||||
5. **Check `codebase_status` if search returns no results.**
|
||||
6. **Check `codebase_status` if search returns no results.**
|
||||
The project may not be indexed yet. Run `codebase_index` if needed, then wait for
|
||||
`codebase_status` to confirm completion before searching.
|
||||
|
||||
6. **Leverage context artifacts for non-code knowledge.**
|
||||
7. **Leverage context artifacts for non-code knowledge.**
|
||||
Projects can define a `.socraticodecontextartifacts.json` config to expose database
|
||||
schemas, API specs, infrastructure configs, architecture docs, and other project
|
||||
knowledge that lives outside source code. These artifacts are auto-indexed alongside
|
||||
@@ -388,7 +427,13 @@ before reading any files directly.
|
||||
| Find a specific function, constant, or type | `codebase_search` (exact name) or grep if you know already the exact string |
|
||||
| Find exact error messages, log strings, or regex patterns | grep / ripgrep |
|
||||
| See what a file imports or what depends on it | `codebase_graph_query` |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_graph_query` (look at dependents) |
|
||||
| Check blast radius before modifying or deleting a file | `codebase_impact` (symbol-level) or `codebase_graph_query` (file-level) |
|
||||
| **What breaks if I change function X?** | `codebase_impact target=X` |
|
||||
| **What does this entry point actually do?** | `codebase_flow entrypoint=X` |
|
||||
| **List entry points in this codebase** | `codebase_flow` (no args) |
|
||||
| **Who calls this function and what does it call?** | `codebase_symbol name=X` |
|
||||
| **What functions/classes exist in this file?** | `codebase_symbols file=path` |
|
||||
| **Search for symbols by name across the project** | `codebase_symbols query=X` |
|
||||
| Spot architectural problems | `codebase_graph_circular`, `codebase_graph_stats` |
|
||||
| Visualise module structure | `codebase_graph_visualize` |
|
||||
| Verify index is up to date | `codebase_status` |
|
||||
@@ -769,6 +814,18 @@ Once connected, 21 tools are available to your AI assistant:
|
||||
| `codebase_graph_status` | Check graph build progress or persisted graph metadata |
|
||||
| `codebase_graph_remove` | Remove a project's persisted code graph (waits for in-flight graph build to finish first) |
|
||||
|
||||
#### Impact Analysis (symbol-level call graph)
|
||||
|
||||
A second graph layer goes one step deeper than file imports — it tracks which functions
|
||||
and methods call which. Use these tools BEFORE refactoring, renaming, or deleting code.
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `codebase_impact` | Blast radius — what files break if you change file/function X (BFS through reverse-call edges) |
|
||||
| `codebase_flow` | Trace forward execution flow from an entry point. Call with no args to discover entry points (orphans, `main()`, framework routes, tests) |
|
||||
| `codebase_symbol` | 360° view of one symbol — its definition, callers, and callees |
|
||||
| `codebase_symbols` | List symbols in a file or search by name across the project |
|
||||
|
||||
#### Management
|
||||
|
||||
| Tool | Description |
|
||||
|
||||
@@ -55,6 +55,7 @@ export async function getImpactRadius(
|
||||
let frontier = new Set(seedFiles);
|
||||
for (const f of seedFiles) visited.add(f);
|
||||
|
||||
let truncated = false;
|
||||
for (let hop = 1; hop <= safeDepth; hop++) {
|
||||
const next = new Set<string>();
|
||||
for (const calleeFile of frontier) {
|
||||
@@ -69,13 +70,27 @@ export async function getImpactRadius(
|
||||
if (next.size === 0) break;
|
||||
filesByDepth.set(hop, Array.from(next).sort());
|
||||
frontier = next;
|
||||
// After reaching the depth limit, check if more callers exist beyond it.
|
||||
if (hop === safeDepth) {
|
||||
for (const calleeFile of frontier) {
|
||||
const callers = reverseIndex.get(calleeFile);
|
||||
if (!callers) continue;
|
||||
for (const callerFile of callers) {
|
||||
if (!visited.has(callerFile)) {
|
||||
truncated = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (truncated) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let totalFiles = 0;
|
||||
for (const arr of filesByDepth.values()) totalFiles += arr.length;
|
||||
return {
|
||||
target, targetKind, depth: safeDepth, filesByDepth, totalFiles,
|
||||
truncated: false,
|
||||
truncated,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -74,9 +74,9 @@ export function extractSymbolsAndCalls(
|
||||
|
||||
try {
|
||||
if (
|
||||
langKey === String(Lang.JavaScript) ||
|
||||
langKey === String(Lang.TypeScript) ||
|
||||
langKey === String(Lang.Tsx)
|
||||
langKey === Lang.JavaScript ||
|
||||
langKey === Lang.TypeScript ||
|
||||
langKey === Lang.Tsx
|
||||
) {
|
||||
return extractFromTsLike(source, lang as Lang, relativePath, language, moduleSymbol);
|
||||
}
|
||||
|
||||
@@ -252,6 +252,7 @@ export function symbolIdToFile(id: string): string | null {
|
||||
// ── Cache registry per project ───────────────────────────────────────────
|
||||
|
||||
const cacheRegistry = new Map<string, SymbolGraphCache>();
|
||||
const cacheLoadPromises = new Map<string, Promise<SymbolGraphCache | null>>();
|
||||
|
||||
/** Get or build the cache for a project (loads meta from Qdrant lazily). */
|
||||
export async function getSymbolGraphCache(
|
||||
@@ -259,11 +260,24 @@ export async function getSymbolGraphCache(
|
||||
): Promise<SymbolGraphCache | null> {
|
||||
const cached = cacheRegistry.get(projectId);
|
||||
if (cached) return cached;
|
||||
const meta = await loadSymbolGraphMeta(projectId);
|
||||
if (!meta) return null;
|
||||
const cache = new SymbolGraphCache(projectId, meta);
|
||||
cacheRegistry.set(projectId, cache);
|
||||
return cache;
|
||||
|
||||
const inFlight = cacheLoadPromises.get(projectId);
|
||||
if (inFlight) return inFlight;
|
||||
|
||||
const promise = (async () => {
|
||||
const meta = await loadSymbolGraphMeta(projectId);
|
||||
if (!meta) return null;
|
||||
const cache = new SymbolGraphCache(projectId, meta);
|
||||
cacheRegistry.set(projectId, cache);
|
||||
return cache;
|
||||
})();
|
||||
|
||||
cacheLoadPromises.set(projectId, promise);
|
||||
try {
|
||||
return await promise;
|
||||
} finally {
|
||||
cacheLoadPromises.delete(projectId);
|
||||
}
|
||||
}
|
||||
|
||||
/** Replace (or insert) the cache for a project — used after a fresh rebuild. */
|
||||
|
||||
@@ -49,7 +49,8 @@ export function allNameShardKeys(): string[] {
|
||||
|
||||
/** Map a file path to its reverse-call shard bucket (0..SYMBOL_REVERSE_SHARDS-1). */
|
||||
export function reverseShardKey(filePath: string): number {
|
||||
const digest = createHash("sha1").update(filePath).digest();
|
||||
// SHA-256 used purely as a distribution function for sharding — not security-sensitive.
|
||||
const digest = createHash("sha256").update(filePath).digest();
|
||||
return digest[0] % SYMBOL_REVERSE_SHARDS;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
// Copyright (C) 2026 Giancarlo Erra - Altaire Limited
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { detectEntryPoints } from "../../src/services/graph-entrypoints.js";
|
||||
import type { CodeGraph, SymbolGraphFilePayload } from "../../src/types.js";
|
||||
|
||||
function mkPayload(file: string, syms: { name: string; line?: number }[]): SymbolGraphFilePayload {
|
||||
return {
|
||||
file,
|
||||
language: "typescript",
|
||||
contentHash: "abc",
|
||||
symbols: [
|
||||
{
|
||||
id: `${file}::<module>#1`,
|
||||
name: "<module>",
|
||||
qualifiedName: "<module>",
|
||||
kind: "module",
|
||||
file,
|
||||
line: 1,
|
||||
endLine: 100,
|
||||
language: "typescript",
|
||||
},
|
||||
...syms.map((s) => ({
|
||||
id: `${file}::${s.name}#${s.line ?? 1}`,
|
||||
name: s.name,
|
||||
qualifiedName: s.name,
|
||||
kind: "function" as const,
|
||||
file,
|
||||
line: s.line ?? 1,
|
||||
endLine: (s.line ?? 1) + 5,
|
||||
language: "typescript",
|
||||
})),
|
||||
],
|
||||
outgoingCalls: [],
|
||||
};
|
||||
}
|
||||
|
||||
describe("graph-entrypoints", () => {
|
||||
it("detects orphan files (no dependents) with outgoing calls", () => {
|
||||
const graph: CodeGraph = {
|
||||
nodes: [
|
||||
{
|
||||
relativePath: "src/main.ts",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: ["src/lib.ts"],
|
||||
dependents: [], // orphan
|
||||
},
|
||||
{
|
||||
relativePath: "src/lib.ts",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: [],
|
||||
dependents: ["src/main.ts"],
|
||||
},
|
||||
],
|
||||
edges: [],
|
||||
};
|
||||
const payloads: SymbolGraphFilePayload[] = [
|
||||
{
|
||||
...mkPayload("src/main.ts", [{ name: "run", line: 5 }]),
|
||||
outgoingCalls: [
|
||||
{
|
||||
callerId: "src/main.ts::run#5",
|
||||
calleeName: "lib",
|
||||
calleeCandidates: ["src/lib.ts::lib#1"],
|
||||
confidence: "unique",
|
||||
callSite: { file: "src/main.ts", line: 6 },
|
||||
},
|
||||
],
|
||||
},
|
||||
mkPayload("src/lib.ts", [{ name: "lib", line: 1 }]),
|
||||
];
|
||||
const entries = detectEntryPoints(graph, payloads);
|
||||
expect(entries.some((e) => e.reason === "orphan")).toBe(true);
|
||||
});
|
||||
|
||||
it("detects conventional entry-point names like main()", () => {
|
||||
const graph: CodeGraph = {
|
||||
nodes: [
|
||||
{
|
||||
relativePath: "cmd/server.go",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: ["pkg/util.go"],
|
||||
dependents: ["pkg/util.go"], // not an orphan
|
||||
},
|
||||
],
|
||||
edges: [],
|
||||
};
|
||||
const payloads: SymbolGraphFilePayload[] = [
|
||||
mkPayload("cmd/server.go", [{ name: "main", line: 10 }]),
|
||||
];
|
||||
const entries = detectEntryPoints(graph, payloads);
|
||||
expect(entries.some((e) => e.name === "main")).toBe(true);
|
||||
});
|
||||
|
||||
it("returns empty array when nothing matches", () => {
|
||||
const graph: CodeGraph = { nodes: [], edges: [] };
|
||||
const entries = detectEntryPoints(graph, []);
|
||||
expect(entries).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,128 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
// Copyright (C) 2026 Giancarlo Erra - Altaire Limited
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
computeUnresolvedPct,
|
||||
resolveCallSites,
|
||||
} from "../../src/services/graph-symbol-resolution.js";
|
||||
import type { CodeGraph, SymbolEdge, SymbolNode } from "../../src/types.js";
|
||||
|
||||
function mkGraph(): CodeGraph {
|
||||
return {
|
||||
nodes: [
|
||||
{
|
||||
relativePath: "src/a.ts",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: ["src/b.ts"],
|
||||
dependents: [],
|
||||
},
|
||||
{
|
||||
relativePath: "src/b.ts",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: ["src/c.ts"],
|
||||
dependents: ["src/a.ts"],
|
||||
},
|
||||
{
|
||||
relativePath: "src/c.ts",
|
||||
imports: [],
|
||||
exports: [],
|
||||
dependencies: [],
|
||||
dependents: ["src/b.ts"],
|
||||
},
|
||||
],
|
||||
edges: [],
|
||||
};
|
||||
}
|
||||
|
||||
describe("graph-symbol-resolution", () => {
|
||||
it("resolves a local call to unique confidence", () => {
|
||||
const graph = mkGraph();
|
||||
const symbolsByFile = new Map<string, SymbolNode[]>([
|
||||
[
|
||||
"src/a.ts",
|
||||
[
|
||||
{ id: "src/a.ts::foo#1", name: "foo", qualifiedName: "foo", kind: "function", file: "src/a.ts", line: 1, endLine: 3, language: "typescript" },
|
||||
{ id: "src/a.ts::caller#5", name: "caller", qualifiedName: "caller", kind: "function", file: "src/a.ts", line: 5, endLine: 8, language: "typescript" },
|
||||
],
|
||||
],
|
||||
]);
|
||||
const edges: SymbolEdge[] = [
|
||||
{
|
||||
callerId: "src/a.ts::caller#5",
|
||||
calleeName: "foo",
|
||||
calleeCandidates: [],
|
||||
confidence: "unresolved",
|
||||
callSite: { file: "src/a.ts", line: 6 },
|
||||
},
|
||||
];
|
||||
const outgoing = new Map<string, SymbolEdge[]>([["src/a.ts", edges]]);
|
||||
resolveCallSites(graph, symbolsByFile, outgoing);
|
||||
expect(edges[0].confidence).toBe("local");
|
||||
expect(edges[0].calleeCandidates).toContain("src/a.ts::foo#1");
|
||||
});
|
||||
|
||||
it("resolves an imported call by walking dependencies", () => {
|
||||
const graph = mkGraph();
|
||||
const symbolsByFile = new Map<string, SymbolNode[]>([
|
||||
[
|
||||
"src/a.ts",
|
||||
[{ id: "src/a.ts::caller#1", name: "caller", qualifiedName: "caller", kind: "function", file: "src/a.ts", line: 1, endLine: 3, language: "typescript" }],
|
||||
],
|
||||
[
|
||||
"src/b.ts",
|
||||
[{ id: "src/b.ts::helper#1", name: "helper", qualifiedName: "helper", kind: "function", file: "src/b.ts", line: 1, endLine: 5, language: "typescript" }],
|
||||
],
|
||||
]);
|
||||
const edges: SymbolEdge[] = [
|
||||
{
|
||||
callerId: "src/a.ts::caller#1",
|
||||
calleeName: "helper",
|
||||
calleeCandidates: [],
|
||||
confidence: "unresolved",
|
||||
callSite: { file: "src/a.ts", line: 2 },
|
||||
},
|
||||
];
|
||||
const outgoing = new Map<string, SymbolEdge[]>([["src/a.ts", edges]]);
|
||||
resolveCallSites(graph, symbolsByFile, outgoing);
|
||||
expect(["unique", "multiple-candidates"]).toContain(edges[0].confidence);
|
||||
expect(edges[0].calleeCandidates).toContain("src/b.ts::helper#1");
|
||||
});
|
||||
|
||||
it("leaves a call unresolved when no symbol matches anywhere", () => {
|
||||
const graph = mkGraph();
|
||||
const symbolsByFile = new Map<string, SymbolNode[]>();
|
||||
const edges: SymbolEdge[] = [
|
||||
{
|
||||
callerId: "src/a.ts::<module>#1",
|
||||
calleeName: "doesNotExist",
|
||||
calleeCandidates: [],
|
||||
confidence: "unresolved",
|
||||
callSite: { file: "src/a.ts", line: 1 },
|
||||
},
|
||||
];
|
||||
const outgoing = new Map<string, SymbolEdge[]>([["src/a.ts", edges]]);
|
||||
resolveCallSites(graph, symbolsByFile, outgoing);
|
||||
expect(edges[0].confidence).toBe("unresolved");
|
||||
expect(edges[0].calleeCandidates).toEqual([]);
|
||||
});
|
||||
|
||||
it("computeUnresolvedPct returns 0 when no edges", () => {
|
||||
expect(computeUnresolvedPct(new Map())).toBe(0);
|
||||
});
|
||||
|
||||
it("computeUnresolvedPct reports correct percentage", () => {
|
||||
const map = new Map<string, SymbolEdge[]>([
|
||||
[
|
||||
"src/a.ts",
|
||||
[
|
||||
{ callerId: "x", calleeName: "y", calleeCandidates: ["x"], confidence: "unique", callSite: { file: "x", line: 1 } },
|
||||
{ callerId: "x", calleeName: "z", calleeCandidates: [], confidence: "unresolved", callSite: { file: "x", line: 2 } },
|
||||
],
|
||||
],
|
||||
]);
|
||||
expect(computeUnresolvedPct(map)).toBe(50);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,118 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
// Copyright (C) 2026 Giancarlo Erra - Altaire Limited
|
||||
|
||||
import { Lang } from "@ast-grep/napi";
|
||||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
import { ensureDynamicLanguages } from "../../src/services/code-graph.js";
|
||||
import {
|
||||
extractSymbolsAndCalls,
|
||||
rawCallsToUnresolvedEdges,
|
||||
} from "../../src/services/graph-symbols.js";
|
||||
|
||||
beforeAll(() => {
|
||||
ensureDynamicLanguages();
|
||||
});
|
||||
|
||||
describe("graph-symbols", () => {
|
||||
describe("TypeScript/JavaScript", () => {
|
||||
it("extracts function declarations and synthesizes a <module> symbol", () => {
|
||||
const src = `
|
||||
function foo() { return 1; }
|
||||
function bar() { return foo(); }
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, Lang.TypeScript, ".ts", "src/a.ts");
|
||||
const names = out.symbols.map((s) => s.name).sort();
|
||||
expect(names).toContain("<module>");
|
||||
expect(names).toContain("foo");
|
||||
expect(names).toContain("bar");
|
||||
});
|
||||
|
||||
it("attributes calls inside a function to that function as caller", () => {
|
||||
const src = `
|
||||
function foo() {}
|
||||
function bar() { foo(); }
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, Lang.TypeScript, ".ts", "src/b.ts");
|
||||
const fooCall = out.rawCalls.find((c) => c.calleeName === "foo");
|
||||
expect(fooCall).toBeDefined();
|
||||
expect(fooCall?.callerId).toContain("::bar#");
|
||||
});
|
||||
|
||||
it("extracts class methods with qualified names", () => {
|
||||
const src = `
|
||||
class Foo {
|
||||
bar() { return 1; }
|
||||
baz() { return this.bar(); }
|
||||
}
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, Lang.TypeScript, ".ts", "src/c.ts");
|
||||
const qnames = out.symbols.map((s) => s.qualifiedName);
|
||||
expect(qnames).toContain("Foo.bar");
|
||||
expect(qnames).toContain("Foo.baz");
|
||||
const kinds = out.symbols.filter((s) => s.qualifiedName === "Foo.bar").map((s) => s.kind);
|
||||
expect(kinds).toContain("method");
|
||||
});
|
||||
|
||||
it("extracts arrow function constants", () => {
|
||||
const src = `
|
||||
export const validate = (x: number) => x > 0;
|
||||
const helper = function () { return 42; };
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, Lang.TypeScript, ".ts", "src/d.ts");
|
||||
const names = out.symbols.map((s) => s.name);
|
||||
expect(names).toContain("validate");
|
||||
expect(names).toContain("helper");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Python", () => {
|
||||
it("extracts def and class symbols", () => {
|
||||
const src = `
|
||||
def foo():
|
||||
return 1
|
||||
|
||||
class Bar:
|
||||
def baz(self):
|
||||
return foo()
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, "python" as unknown as Lang, ".py", "app.py");
|
||||
const names = out.symbols.map((s) => s.name);
|
||||
expect(names).toContain("foo");
|
||||
expect(names).toContain("Bar");
|
||||
expect(names).toContain("baz");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Go", () => {
|
||||
it("extracts func declarations", () => {
|
||||
const src = `
|
||||
package main
|
||||
|
||||
func Foo() int { return 1 }
|
||||
|
||||
func Bar() int { return Foo() }
|
||||
`;
|
||||
const out = extractSymbolsAndCalls(src, "go" as unknown as Lang, ".go", "main.go");
|
||||
const names = out.symbols.map((s) => s.name);
|
||||
expect(names).toContain("Foo");
|
||||
expect(names).toContain("Bar");
|
||||
});
|
||||
});
|
||||
|
||||
describe("rawCallsToUnresolvedEdges", () => {
|
||||
it("converts raw calls to unresolved SymbolEdge objects", () => {
|
||||
const raw = [
|
||||
{
|
||||
callerId: "src/a.ts::foo#1",
|
||||
calleeName: "bar",
|
||||
callSite: { file: "src/a.ts", line: 5 },
|
||||
},
|
||||
];
|
||||
const edges = rawCallsToUnresolvedEdges(raw);
|
||||
expect(edges).toHaveLength(1);
|
||||
expect(edges[0].confidence).toBe("unresolved");
|
||||
expect(edges[0].calleeCandidates).toEqual([]);
|
||||
expect(edges[0].calleeName).toBe("bar");
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,64 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
// Copyright (C) 2026 Giancarlo Erra - Altaire Limited
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { LRUCache, symbolIdToFile } from "../../src/services/symbol-graph-cache.js";
|
||||
|
||||
describe("LRUCache", () => {
|
||||
it("stores and retrieves values up to capacity", () => {
|
||||
const lru = new LRUCache<string, number>(3);
|
||||
lru.set("a", 1);
|
||||
lru.set("b", 2);
|
||||
lru.set("c", 3);
|
||||
expect(lru.get("a")).toBe(1);
|
||||
expect(lru.size).toBe(3);
|
||||
});
|
||||
|
||||
it("evicts the oldest entry when over capacity", () => {
|
||||
const lru = new LRUCache<string, number>(2);
|
||||
lru.set("a", 1);
|
||||
lru.set("b", 2);
|
||||
lru.set("c", 3); // evicts "a"
|
||||
expect(lru.has("a")).toBe(false);
|
||||
expect(lru.has("b")).toBe(true);
|
||||
expect(lru.has("c")).toBe(true);
|
||||
});
|
||||
|
||||
it("get() promotes a key to most-recently-used", () => {
|
||||
const lru = new LRUCache<string, number>(2);
|
||||
lru.set("a", 1);
|
||||
lru.set("b", 2);
|
||||
lru.get("a"); // a is now MRU
|
||||
lru.set("c", 3); // evicts b
|
||||
expect(lru.has("a")).toBe(true);
|
||||
expect(lru.has("b")).toBe(false);
|
||||
expect(lru.has("c")).toBe(true);
|
||||
});
|
||||
|
||||
it("delete removes an entry", () => {
|
||||
const lru = new LRUCache<string, number>(2);
|
||||
lru.set("a", 1);
|
||||
expect(lru.delete("a")).toBe(true);
|
||||
expect(lru.has("a")).toBe(false);
|
||||
expect(lru.delete("missing")).toBe(false);
|
||||
});
|
||||
|
||||
it("clear empties the cache", () => {
|
||||
const lru = new LRUCache<string, number>(2);
|
||||
lru.set("a", 1);
|
||||
lru.set("b", 2);
|
||||
lru.clear();
|
||||
expect(lru.size).toBe(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe("symbolIdToFile", () => {
|
||||
it("extracts file portion from a symbol id", () => {
|
||||
expect(symbolIdToFile("src/a.ts::foo#10")).toBe("src/a.ts");
|
||||
expect(symbolIdToFile("path/with/slashes/file.py::Foo.bar#42")).toBe("path/with/slashes/file.py");
|
||||
});
|
||||
|
||||
it("returns null when separator missing", () => {
|
||||
expect(symbolIdToFile("malformed")).toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user