Add interactive CLI installer for Claude Code integration

- New `codegraph install` command and auto-run when invoked with no args
- Beautiful ASCII banner using figlet
- Interactive prompts for global (~/.claude) or local (./.claude) installation
- Writes MCP server config to claude.json
- Writes auto-allow permissions to settings.json
- For local installs: auto-initializes project, indexes, and installs git hooks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Colby McHenry
2026-01-19 14:31:29 -06:00
co-authored by Claude Opus 4.5
parent 0a1b78854a
commit 9baf59e5f0
7 changed files with 584 additions and 5 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@colbymchenry/codegraph",
"version": "0.1.9",
"version": "0.2.0",
"description": "A local-first code intelligence system that builds a semantic knowledge graph from any codebase",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -31,6 +31,7 @@
"license": "MIT",
"dependencies": {
"@xenova/transformers": "^2.17.0",
"figlet": "^1.8.0",
"better-sqlite3": "^11.0.0",
"commander": "^14.0.2",
"sqlite-vss": "^0.1.2",
@@ -51,6 +52,7 @@
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.0",
"@types/figlet": "^1.5.8",
"@types/node": "^20.19.30",
"typescript": "^5.0.0",
"vitest": "^2.0.0"