code-graph-llm
Advanced tools
+1
-1
@@ -7,3 +7,3 @@ /** | ||
| export const CONFIG = Object.freeze({ | ||
| VERSION: '4.14.0', | ||
| VERSION: '4.15.0', | ||
| IGNORE_FILE: '.gitignore', | ||
@@ -10,0 +10,0 @@ MAP_FILE: 'llm-code-graph.md', |
@@ -12,2 +12,3 @@ /** | ||
| static async init(cwd) { | ||
| console.log(`[Code-Graph] Initializing project files in: ${cwd}`); | ||
| const rulesPath = path.join(cwd, CONFIG.RULES_FILE); | ||
@@ -61,2 +62,3 @@ const reflectPath = path.join(cwd, CONFIG.REFLECTIONS_FILE); | ||
| } | ||
| console.log(`[Code-Graph] Initialization complete.`); | ||
| } catch (err) { | ||
@@ -63,0 +65,0 @@ console.error(`[Code-Graph] Initialization failed: ${err.message}`); |
+21
-2
@@ -38,2 +38,7 @@ /** | ||
| if (depth <= 1) { | ||
| const label = path.relative(this.cwd, dir) || '.'; | ||
| console.log(`[Code-Graph] Scanning: ${label}`); | ||
| } | ||
| let entries; | ||
@@ -95,2 +100,5 @@ try { | ||
| this.files.push(fileObj); | ||
| if (this.files.length % 25 === 0) { | ||
| process.stdout.write(`\r[Code-Graph] Processed ${this.files.length} files...`); | ||
| } | ||
| await this.processEdges(relPath, edges, inheritance); | ||
@@ -144,10 +152,21 @@ } | ||
| async generate() { | ||
| console.log(`[Code-Graph v${CONFIG.VERSION}] Mapping ${this.cwd}...`); | ||
| const start = Date.now(); | ||
| console.log(`[Code-Graph v${CONFIG.VERSION}] Starting map generation...`); | ||
| console.log(`[Code-Graph] Root: ${this.cwd}`); | ||
| await this.walk(this.cwd, await this.getIgnores(this.cwd, CONFIG.DEFAULT_IGNORES)); | ||
| if (this.files.length >= 25) process.stdout.write('\n'); | ||
| console.log(`[Code-Graph] Scan complete: ${this.files.length} files, ${this.allEdges.length} edges found.`); | ||
| console.log(`[Code-Graph] Sorting and formatting...`); | ||
| this.files.sort((a, b) => (b.isCore - a.isCore) || ((this.incomingEdges[b.path] || 0) - (this.incomingEdges[a.path] || 0))); | ||
| const output = this.formatOutput(); | ||
| console.log(`[Code-Graph] Writing ${CONFIG.MAP_FILE}...`); | ||
| await fsp.writeFile(path.join(this.cwd, CONFIG.MAP_FILE), output); | ||
| console.log(`[Code-Graph] Updated ${CONFIG.MAP_FILE}`); | ||
| const elapsed = ((Date.now() - start) / 1000).toFixed(1); | ||
| console.log(`[Code-Graph] Done in ${elapsed}s — ${CONFIG.MAP_FILE} updated (${this.files.length} files, ${this.allEdges.length} edges).`); | ||
| } | ||
@@ -154,0 +173,0 @@ |
+1
-2
| { | ||
| "name": "code-graph-llm", | ||
| "version": "4.14.0", | ||
| "version": "4.15.0", | ||
| "description": "Compact, language-agnostic codebase mapper for LLM token efficiency.", | ||
@@ -25,3 +25,2 @@ "main": "index.js", | ||
| "chokidar": "^5.0.0", | ||
| "code-graph-llm": "^4.13.0", | ||
| "ignore": "^7.0.5" | ||
@@ -28,0 +27,0 @@ }, |
+4
-5
@@ -1,2 +0,2 @@ | ||
| # CODE-GRAPH (v4.14.0) | ||
| # CODE-GRAPH (v4.15.0) | ||
@@ -7,7 +7,6 @@ > Inspired by [Andrej Karpathy skills](https://github.com/forrestchang/andrej-karpathy-skills), [juliusbrussee/caveman](https://github.com/juliusbrussee/caveman), and the community's work building better agent workflows. | ||
| ## New in v4.14.0 | ||
| ## New in v4.15.0 | ||
| - **Fix (MCP removal):** Removed the `mcp` CLI command and `lib/mcp.js` stdio server. The feature was broken and prompted unintended MCP installation dialogs. The `.mcp.json` project file is also removed. | ||
| - **Fix (Antigravity path consistency):** `install-skills -g antigravity` now correctly targets `~/.gemini/antigravity/skills/` (the official path per vercel-labs/skills). Previously the default fallback wrote to `~/.antigravity/skills/`. Both skills and agent now use the same path. | ||
| - **Cleanup:** Removed legacy `.agent/subagents` entry from the defensive uninstall folder cleanup list — no current install path writes there. | ||
| - **UX (CLI Progress — `generate`):** `code-graph generate` now prints structured progress: root path, per-directory scan lines for top-level dirs, live file counter every 25 files (inline `\r` overwrite), post-scan summary with file + edge counts, phase markers for sorting/formatting and writing, and a final elapsed-time line. No more silent hang on large repos. | ||
| - **UX (CLI Progress — `init`):** `code-graph init` now logs the target directory on start and confirms completion. | ||
@@ -14,0 +13,0 @@ See [RELEASE_NOTES.md](RELEASE_NOTES.md) for full history. |
+5
-0
| # RELEASE NOTES | ||
| ### v4.15.0 (2026-05-07) | ||
| - **UX (CLI Progress — `generate`):** `ProjectMapper.generate()` now prints a structured progress log across all phases: start with root path, per-directory scanning for depth 0–1 dirs, live inline file counter every 25 files (`\r` overwrite), post-scan summary (file count + edge count), sorting/formatting phase marker, write-phase marker, and a final timing line (`Done in Xs`). Large projects no longer appear to hang silently. | ||
| - **UX (CLI Progress — `init`):** `ProjectInitializer.init()` now logs the target directory at start and prints `Initialization complete.` when done. | ||
| - **Maintenance:** Bumped version to 4.15.0 in `config.js` and `package.json`. | ||
| ### v4.14.0 (2026-05-07) | ||
@@ -4,0 +9,0 @@ - **Fix (MCP removal):** Removed the `mcp` CLI command, `lib/mcp.js` stdio server, and `.mcp.json` project file. The feature was broken and caused unintended MCP installation dialogs in Claude Code and other platforms. References cleaned from `index.js`, `agents.js` uninstall, `TODO.md`, and tests. |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
194305
0.75%2
-33.33%2920
0.55%298
-0.33%- Removed