@aiready/pattern-detect 0.9.22 → 0.10.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 +33 -0
- package/dist/chunk-WACZ5LFH.mjs +1055 -0
- package/dist/chunk-WC7CBAA7.mjs +1058 -0
- package/dist/cli.js +172 -9
- package/dist/cli.mjs +1 -1
- package/dist/index.js +163 -4
- package/dist/index.mjs +1 -1
- package/dist/python-extractor-BGKGX6BK.mjs +131 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,39 @@
|
|
|
4
4
|
|
|
5
5
|
Finds semantically similar but syntactically different code patterns that waste AI context and confuse models.
|
|
6
6
|
|
|
7
|
+
## �️ Architecture
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
🎯 USER
|
|
11
|
+
│
|
|
12
|
+
▼
|
|
13
|
+
🎛️ CLI (orchestrator)
|
|
14
|
+
│
|
|
15
|
+
▼
|
|
16
|
+
🏢 HUB (core)
|
|
17
|
+
│
|
|
18
|
+
┌──────────────────────┼───────────┬───────────┐
|
|
19
|
+
▼ ▼ ▼ ▼
|
|
20
|
+
┌─────────────┐ 📦 CONTEXT 🔧 CONSIST 📚 DOC
|
|
21
|
+
│ 📊 PATTERN │ ⬅ YOU ARE HERE ENCY DRIFT
|
|
22
|
+
│ DETECT │ ANALYZER
|
|
23
|
+
│ ✅ Ready │ ✅ Ready ✅ Ready 🔜 Soon
|
|
24
|
+
└─────────────┘
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## �🌍 Language Support
|
|
28
|
+
|
|
29
|
+
**Currently Supported (64% market coverage):**
|
|
30
|
+
- ✅ **TypeScript** (`.ts`, `.tsx`) - AST-based pattern extraction
|
|
31
|
+
- ✅ **JavaScript** (`.js`, `.jsx`) - AST-based pattern extraction
|
|
32
|
+
- ✅ **Python** (`.py`) - Function/class pattern extraction, similarity scoring
|
|
33
|
+
|
|
34
|
+
**Roadmap:**
|
|
35
|
+
- 🔜 **Java** (Q3 2026) - Method/class patterns, Spring annotations
|
|
36
|
+
- 🔜 **Go** (Q4 2026) - Function patterns, interface implementations
|
|
37
|
+
- 🔜 **Rust** (Q4 2026) - Function/trait patterns, macro detection
|
|
38
|
+
- 🔜 **C#** (Q1 2027) - Method/class patterns, LINQ queries
|
|
39
|
+
|
|
7
40
|
## 🚀 Quick Start
|
|
8
41
|
|
|
9
42
|
**Zero config, works out of the box:**
|