omnilens 1.1.0 → 1.1.2

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.
Files changed (3) hide show
  1. package/README.md +36 -34
  2. package/install.js +1 -1
  3. 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 entire project in milliseconds and gives AI a complete map every file, function, type, call graph, and dependency. AI uses this to understand your code and work on it.
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,66 @@ 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
- That's it. Output:
21
-
22
+ Output:
22
23
  ```
23
- omnilens 11ms | 13 files | 45 functions | 9 types
24
- Health: 100/100
25
- Cross-file deps: 23
24
+ omnilens 11ms | 45 files | 320 functions | 87 types
25
+ Health: 85/100
26
+ Cross-file deps: 142
26
27
 
27
- .omnilens/snapshot.json
28
+ Tell your AI: "let's start omnilens"
28
29
  ```
29
30
 
30
- Now open your AI (Claude, Cursor, GPT, whatever) and start working. AI reads `snapshot.json` and understands your project instantly.
31
+ ### Step 2: Tell your AI to start
31
32
 
32
- ## What AI gets
33
+ Open your AI tool and say:
33
34
 
34
- `snapshot.json` contains:
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
- - **Every file** with functions, types, imports
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
+ AI reads the analysis and responds:
42
45
 
43
- AI doesn't need to open files one by one. It gets the full picture in one read.
46
+ > "Project analyzed. 45 files, 320 functions. What would you like to do?"
44
47
 
45
- ## What AI can do with omnilens
48
+ ### Step 3: Work with your AI
46
49
 
47
- When AI needs deeper analysis, it calls omnilens internally:
48
-
49
- ```bash
50
- # "What breaks if I change this function?"
51
- omnilens impact src/auth.ts --fn login
50
+ Just tell it what you need. AI uses omnilens internally to verify its work.
52
51
 
53
- # "Did my changes break anything?"
54
- omnilens verify --format json --diff HEAD~1
52
+ ```
53
+ You: "Add empty state handling to all tables"
54
+ You: "Fix the login function — it's not handling errors"
55
+ You: "Refactor auth service into smaller functions"
56
+ ```
55
57
 
56
- # "Find all complex functions"
57
- omnilens query "FIND functions WHERE complexity > 15"
58
+ AI modifies your code, checks for breaking changes, and fixes them automatically.
58
59
 
59
- # "Generate tests for untested code"
60
- omnilens fix
61
- ```
60
+ ## How it works
62
61
 
63
- You don't run these. AI does.
62
+ 1. `omnilens` creates `.omnilens/snapshot.json` a complete map of your project
63
+ 2. AI reads the snapshot and understands every file, function, and dependency
64
+ 3. When AI modifies code, it runs `omnilens verify` to catch errors
65
+ 4. If something breaks, AI fixes it before telling you it's done
64
66
 
65
67
  ## Supported languages
66
68
 
67
- Rust, TypeScript, JavaScript, Python
69
+ Rust · TypeScript · JavaScript · Python
68
70
 
69
71
  ## Performance
70
72
 
71
- | Project size | Analysis time |
72
- |-------------|---------------|
73
+ | Project size | Time |
74
+ |-------------|------|
73
75
  | 10 files | ~10ms |
74
76
  | 100 files | ~100ms |
75
77
  | 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.0";
9
+ const VERSION = "v1.1.2";
10
10
  const REPO = "injaehwang/omnilens";
11
11
 
12
12
  const PLATFORMS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnilens",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Your AI's eyes into your codebase. Analyzes entire projects in milliseconds.",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "repository": {