pi-lens 2.2.1 → 2.2.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 (2) hide show
  1. package/README.md +52 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,6 +16,58 @@ pi install git:github.com/apmantza/pi-lens
16
16
 
17
17
  ---
18
18
 
19
+ ## Dependent Tools
20
+
21
+ pi-lens works out of the box for TypeScript/JavaScript. For full language support, install these tools — **all are optional and gracefully skip if not installed**:
22
+
23
+ ### JavaScript / TypeScript
24
+
25
+ | Tool | Install | What it does |
26
+ |------|---------|--------------|
27
+ | `@biomejs/biome` | `npm i -D @biomejs/biome` | Linting + formatting |
28
+ | `knip` | `npm i -D knip` | Dead code / unused exports |
29
+ | `jscpd` | `npm i -D jscpd` | Copy-paste detection |
30
+ | `type-coverage` | `npm i -D type-coverage` | TypeScript `any` coverage % |
31
+
32
+ ### Python
33
+
34
+ | Tool | Install | What it does |
35
+ |------|---------|--------------|
36
+ | `ruff` | `pip install ruff` | Linting + formatting |
37
+ | `pyright` | `pip install pyright` | Type-checking (catches type errors) |
38
+
39
+ ### Go
40
+
41
+ | Tool | Install | What it does |
42
+ |------|---------|--------------|
43
+ | `go` | [golang.org](https://golang.org) | Built-in `go vet` for static analysis |
44
+
45
+ ### Rust
46
+
47
+ | Tool | Install | What it does |
48
+ |------|---------|--------------|
49
+ | `rust` + `clippy` | [rustup.rs](https://rustup.rs) | Linting via `cargo clippy` |
50
+
51
+ ### All Languages
52
+
53
+ | Tool | Install | What it does |
54
+ |------|---------|--------------|
55
+ | `@ast-grep/cli` | `npm i -D @ast-grep/cli` | Structural pattern matching (80+ rules) |
56
+
57
+ **Example setup for a TypeScript + Python project:**
58
+
59
+ ```bash
60
+ # TypeScript tooling
61
+ npm i -D @biomejs/biome knip jscpd type-coverage
62
+
63
+ # Python tooling
64
+ pip install ruff pyright
65
+ ```
66
+
67
+ pi-lens automatically detects which tools are available and enables their runners accordingly.
68
+
69
+ ---
70
+
19
71
  ## What's New (v2.2)
20
72
 
21
73
  ### `/lens-rate` — Code Quality Scoring
@@ -384,21 +436,6 @@ Each rule includes a `message` and `note` that are shown in diagnostics, so the
384
436
 
385
437
  ---
386
438
 
387
- ## External dependencies summary
388
-
389
- | Package | Install | Purpose |
390
- |---|---|---|
391
- | `@biomejs/biome` | `npm i -D @biomejs/biome` | JS/TS/CSS/JSON lint + format + autofix |
392
- | `@ast-grep/cli` | `npm i -D @ast-grep/cli` | 60+ structural pattern rules |
393
- | `knip` | `npm i -D knip` | Unused exports, types, unlisted deps |
394
- | `jscpd` | `npm i -D jscpd` | Copy-paste / duplicate code detection |
395
- | `type-coverage` | `npm i -D type-coverage` | TypeScript `any` coverage percentage |
396
- | `madge` | `npm i -D madge` | Circular dependency detection |
397
- | `ruff` | `pip install ruff` | Python lint + format + autofix |
398
- | `pyright` | `pip install pyright` or `npm i -g pyright` | Python type-checking (optional, graceful skip if not installed) |
399
-
400
- ---
401
-
402
439
  ## TypeScript LSP — tsconfig detection
403
440
 
404
441
  The LSP walks up from the edited file's directory until it finds a `tsconfig.json`. If found, it uses that project's exact `compilerOptions` (paths, strict settings, lib, etc.). If not found, it falls back to sensible defaults:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lens",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "type": "module",
5
5
  "description": "Real-time code quality feedback for pi — TypeScript LSP, Biome, ast-grep, Ruff, complexity metrics, duplicate detection. Includes automated fix loop (/lens-booboo-fix) and interactive architectural refactoring (/lens-booboo-refactor) with browser-based interviews.",
6
6
  "repository": {