omnilens 1.1.1 → 1.1.3
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 +37 -33
- package/install.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Your AI's eyes into your codebase.**
|
|
4
4
|
|
|
5
|
-
omnilens analyzes your
|
|
5
|
+
omnilens analyzes your project in milliseconds and gives AI a complete map of your code. AI uses this to understand, modify, and verify your code without breaking things.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -12,64 +12,68 @@ npm install -g omnilens
|
|
|
12
12
|
|
|
13
13
|
## Use
|
|
14
14
|
|
|
15
|
+
### Step 1: Analyze your project
|
|
16
|
+
|
|
15
17
|
```bash
|
|
16
18
|
cd your-project
|
|
17
19
|
omnilens
|
|
18
20
|
```
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
Output:
|
|
22
23
|
```
|
|
23
|
-
omnilens 11ms |
|
|
24
|
-
Health:
|
|
25
|
-
Cross-file deps:
|
|
24
|
+
omnilens 11ms | 45 files | 320 functions | 87 types
|
|
25
|
+
Health: 85/100
|
|
26
|
+
Cross-file deps: 142
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
Tell your AI: "let's start omnilens"
|
|
28
29
|
```
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
### Step 2: Tell your AI to start
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
Open your AI tool and say:
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
| AI tool | What to type |
|
|
36
|
+
|---------|-------------|
|
|
37
|
+
| Claude Code | `let's start omnilens` |
|
|
38
|
+
| Cursor | `let's start omnilens` |
|
|
39
|
+
| Gemini | `let's start omnilens` |
|
|
40
|
+
| ChatGPT | `let's start omnilens` |
|
|
41
|
+
| Windsurf | `let's start omnilens` |
|
|
42
|
+
| Any AI | `let's start omnilens` |
|
|
35
43
|
|
|
36
|
-
|
|
37
|
-
- **Call graph** — who calls what, across files
|
|
38
|
-
- **Complexity scores** — which functions are risky
|
|
39
|
-
- **Cross-file dependencies** — change X, Y breaks
|
|
40
|
-
- **Health score** — overall project quality
|
|
41
|
-
- **Hotspots** — where bugs are likely hiding
|
|
44
|
+
Any variation works: `omnilens`, `start omnilens`, `omnilens 시작`, `review omnilens snapshot` — anything mentioning "omnilens".
|
|
42
45
|
|
|
43
|
-
AI
|
|
46
|
+
AI reads the analysis and responds:
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
> "Project analyzed. 45 files, 320 functions. What would you like to do?"
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
### Step 3: Work with your AI
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
# "What breaks if I change this function?"
|
|
51
|
-
omnilens impact src/auth.ts --fn login
|
|
52
|
+
Just tell it what you need. AI uses omnilens internally to verify its work.
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
```
|
|
55
|
+
You: "Add empty state handling to all tables"
|
|
56
|
+
You: "Fix the login function — it's not handling errors"
|
|
57
|
+
You: "Refactor auth service into smaller functions"
|
|
58
|
+
```
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
omnilens query "FIND functions WHERE complexity > 15"
|
|
60
|
+
AI modifies your code, checks for breaking changes, and fixes them automatically.
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
omnilens fix
|
|
61
|
-
```
|
|
62
|
+
## How it works
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
1. `omnilens` creates `.omnilens/snapshot.json` — a complete map of your project
|
|
65
|
+
2. AI reads the snapshot and understands every file, function, and dependency
|
|
66
|
+
3. When AI modifies code, it runs `omnilens verify` to catch errors
|
|
67
|
+
4. If something breaks, AI fixes it before telling you it's done
|
|
64
68
|
|
|
65
69
|
## Supported languages
|
|
66
70
|
|
|
67
|
-
Rust
|
|
71
|
+
Rust · TypeScript · JavaScript · Python
|
|
68
72
|
|
|
69
73
|
## Performance
|
|
70
74
|
|
|
71
|
-
| Project size |
|
|
72
|
-
|
|
75
|
+
| Project size | Time |
|
|
76
|
+
|-------------|------|
|
|
73
77
|
| 10 files | ~10ms |
|
|
74
78
|
| 100 files | ~100ms |
|
|
75
79
|
| 1000 files | ~1s |
|
package/install.js
CHANGED
|
@@ -6,7 +6,7 @@ const { existsSync, mkdirSync, chmodSync, unlinkSync, renameSync } = require("fs
|
|
|
6
6
|
const { join } = require("path");
|
|
7
7
|
const { execSync } = require("child_process");
|
|
8
8
|
|
|
9
|
-
const VERSION = "v1.1.
|
|
9
|
+
const VERSION = "v1.1.3";
|
|
10
10
|
const REPO = "injaehwang/omnilens";
|
|
11
11
|
|
|
12
12
|
const PLATFORMS = {
|