@vohongtho.infotech/code-intel 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -6
- package/dist/cli/main.js +8494 -2225
- package/dist/cli/main.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.js +6271 -1497
- package/dist/index.js.map +1 -1
- package/package.json +31 -3
package/README.md
CHANGED
|
@@ -16,8 +16,9 @@ A static code analysis platform that builds a **Knowledge Graph** from your sour
|
|
|
16
16
|
- **LadybugDB Persistence** — graph and vector index stored as embedded graph database
|
|
17
17
|
- **HTTP API** — REST endpoints for graph, search, inspect, blast radius, flows
|
|
18
18
|
- **MCP Server** — Model Context Protocol integration for LLM tooling
|
|
19
|
-
- **CLI** — analyze, serve, search, inspect, impact commands
|
|
19
|
+
- **CLI** — analyze, serve, search, inspect, impact commands with animated progress bars and spinners
|
|
20
20
|
- **Multi-language** — TypeScript, JavaScript, Python, Java, Go, C, C++, C#, Rust, PHP, Kotlin, Ruby, Swift, Dart
|
|
21
|
+
- **Structured Logging** — winston-based logger with daily-rotating log files, sensitive-data masking, and configurable log levels
|
|
21
22
|
|
|
22
23
|
---
|
|
23
24
|
|
|
@@ -78,7 +79,9 @@ code-intel-platform/
|
|
|
78
79
|
│ │ ├── storage/ # LadybugDB persistence, repo registry
|
|
79
80
|
│ │ ├── http/ # Express REST API + static web UI serving
|
|
80
81
|
│ │ ├── mcp-server/ # MCP stdio transport
|
|
81
|
-
│ │
|
|
82
|
+
│ │ ├── multi-repo/ # Group registry, group sync, cross-repo query
|
|
83
|
+
│ │ ├── shared/ # Logger, language detection utilities
|
|
84
|
+
│ │ └── cli/ # Commander CLI (progress bars, spinners)
|
|
82
85
|
│ └── web/ # React + Sigma.js frontend
|
|
83
86
|
│ └── src/
|
|
84
87
|
│ ├── components/ # GraphView, NodeDetail, SidebarChat, SidebarFiles, Filters
|
|
@@ -86,20 +89,55 @@ code-intel-platform/
|
|
|
86
89
|
│ ├── api/ # ApiClient (search, vector-search, inspect, blast-radius)
|
|
87
90
|
│ ├── graph/ # Colors palette, layout utilities
|
|
88
91
|
│ └── state/ # React context + reducer
|
|
89
|
-
└── .code-intel/ # Generated: graph.db, vector.db, meta.json
|
|
92
|
+
└── .code-intel/ # Generated per-repo: graph.db, vector.db, meta.json
|
|
90
93
|
```
|
|
91
94
|
|
|
92
95
|
### Pipeline Phases
|
|
93
96
|
|
|
94
97
|
| Phase | Description |
|
|
95
98
|
|-------|-------------|
|
|
96
|
-
| `scan` | Walk filesystem, collect source files, ignore `node_modules`, `dist`, etc. |
|
|
99
|
+
| `scan` | Walk filesystem, collect source files (parallel batch I/O), ignore `node_modules`, `dist`, large files, etc. |
|
|
97
100
|
| `structure` | Create file and directory nodes in the graph |
|
|
98
|
-
| `parse` |
|
|
99
|
-
| `resolve` | Resolve imports → edges, build call graph, detect heritage (extends/implements) |
|
|
101
|
+
| `parse` | Read files in parallel batches of 64, extract symbols (functions, classes, etc.), build per-file function index |
|
|
102
|
+
| `resolve` | Resolve imports → edges, build call graph (O(log n) lookup), detect heritage (extends/implements) |
|
|
100
103
|
| `cluster` | Directory-based community detection, add cluster nodes |
|
|
101
104
|
| `flow` | Detect entry points, trace execution flows |
|
|
102
105
|
|
|
106
|
+
Each phase reports live progress to the CLI via animated `█░` progress bars.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 🖥️ CLI Progress Display
|
|
111
|
+
|
|
112
|
+
When running `code-intel analyze`, each pipeline phase shows a real-time progress bar:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
[parse ] ████████████████░░░░░░░░░░░░░░ 53% (80/151)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Post-pipeline steps (DB persist, skill generation, context files) show a braille spinner:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
⠹ Persisting graph to DB…
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 📋 Logging
|
|
127
|
+
|
|
128
|
+
Logs are written to **`~/.code-intel/logs/`** using daily rotation:
|
|
129
|
+
|
|
130
|
+
| Setting | Default | Override |
|
|
131
|
+
|---------|---------|----------|
|
|
132
|
+
| Log directory | `~/.code-intel/logs/` | — |
|
|
133
|
+
| Log file pattern | `YYYY-MM-DD-code-intel.log` | — |
|
|
134
|
+
| Max file size | 20 MB | — |
|
|
135
|
+
| Retention | 14 days | — |
|
|
136
|
+
| Log level | `info` | `LOG_LEVEL=debug\|info\|warn\|error\|silent` |
|
|
137
|
+
| Production mode | Console only | `NODE_ENV=production` |
|
|
138
|
+
|
|
139
|
+
Sensitive data (passwords, tokens, API keys, emails, etc.) is automatically masked before writing.
|
|
140
|
+
|
|
103
141
|
---
|
|
104
142
|
|
|
105
143
|
## 🛠️ CLI Commands
|