devintelligence 0.0.0-stage → 1.0.1
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/.env.example +14 -0
- package/LICENSE +22 -0
- package/README.md +146 -3
- package/bin/devintelligence.js +2486 -0
- package/bin/devintelligence.ts +416 -0
- package/dist/App.d.ts +3 -0
- package/dist/ai.js +366 -0
- package/dist/ai.js.map +7 -0
- package/dist/components/DeepAnalysisViews.d.ts +13 -0
- package/dist/components/MobileAndPlatformViews.d.ts +22 -0
- package/dist/components/OverviewAndExplorerViews.d.ts +20 -0
- package/dist/components/RepairAndGateViews.d.ts +25 -0
- package/dist/engine/aiEngine.d.ts +62 -0
- package/dist/engine/analyzerEngine.d.ts +19 -0
- package/dist/engine/repairEngine.d.ts +42 -0
- package/dist/engine.js +1541 -0
- package/dist/engine.js.map +7 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2344 -0
- package/dist/index.js.map +7 -0
- package/dist/main.d.ts +1 -0
- package/dist/repair.js +2052 -0
- package/dist/repair.js.map +7 -0
- package/dist/src/App.d.ts +3 -0
- package/dist/src/components/DeepAnalysisViews.d.ts +13 -0
- package/dist/src/components/MobileAndPlatformViews.d.ts +22 -0
- package/dist/src/components/OverviewAndExplorerViews.d.ts +20 -0
- package/dist/src/components/RepairAndGateViews.d.ts +25 -0
- package/dist/src/engine/aiEngine.d.ts +62 -0
- package/dist/src/engine/analyzerEngine.d.ts +19 -0
- package/dist/src/engine/repairEngine.d.ts +42 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/types/devintelligence.d.ts +250 -0
- package/dist/types/devintelligence.d.ts +250 -0
- package/fixtures/django-analytics-service/requirements.txt +4 -0
- package/fixtures/django-analytics-service/settings.py +16 -0
- package/fixtures/express-api-gateway/package.json +14 -0
- package/fixtures/express-api-gateway/src/server.ts +16 -0
- package/fixtures/nextjs-saas-portal/package.json +21 -0
- package/fixtures/nextjs-saas-portal/src/app/dashboard/page.tsx +26 -0
- package/fixtures/rn-bare-fitness/android/build.gradle +19 -0
- package/fixtures/rn-bare-fitness/ios/Info.plist +14 -0
- package/fixtures/rn-bare-fitness/package.json +23 -0
- package/fixtures/rn-bare-fitness/src/WorkoutTracker.tsx +31 -0
- package/fixtures/rn-expo-commerce/android/app/build.gradle +20 -0
- package/fixtures/rn-expo-commerce/android/app/src/main/AndroidManifest.xml +21 -0
- package/fixtures/rn-expo-commerce/android/gradle.properties +6 -0
- package/fixtures/rn-expo-commerce/app.json +17 -0
- package/fixtures/rn-expo-commerce/babel.config.js +10 -0
- package/fixtures/rn-expo-commerce/ios/Podfile +13 -0
- package/fixtures/rn-expo-commerce/metro.config.js +7 -0
- package/fixtures/rn-expo-commerce/package.json +31 -0
- package/fixtures/rn-expo-commerce/src/components/LegacyPromoBanner.tsx +11 -0
- package/fixtures/rn-expo-commerce/src/screens/ProductFeedScreen.tsx +48 -0
- package/fixtures/rn-expo-commerce/src/services/api.ts +15 -0
- package/package.json +89 -6
package/.env.example
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# DEVINTELLIGENCE — Personal Software Engineering Intelligence System
|
|
2
|
+
# Understand. Diagnose. Repair. Optimize.
|
|
3
|
+
|
|
4
|
+
# Groq AI API Key (Optional for AI Error Diagnostics & Intelligent Fixes)
|
|
5
|
+
# Note: DEVINTELLIGENCE works 100% offline with zero external API keys required!
|
|
6
|
+
GROQ_API_KEY="your_groq_api_key_here"
|
|
7
|
+
GROQ_MODEL="qwen/qwen3.8-27b"
|
|
8
|
+
|
|
9
|
+
# Optional Gemini API Key
|
|
10
|
+
GEMINI_API_KEY="MY_GEMINI_API_KEY"
|
|
11
|
+
|
|
12
|
+
# Local Workstation Configuration
|
|
13
|
+
PORT=3000
|
|
14
|
+
HOST="0.0.0.0"
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DevIntelligence & NetControl Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,146 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# DEVINTELLIGENCE
|
|
2
|
+
|
|
3
|
+
> **Personal Software Engineering Intelligence System**
|
|
4
|
+
> *Understand. Diagnose. Repair. Optimize.*
|
|
5
|
+
|
|
6
|
+
DEVINTELLIGENCE is an advanced, locally operating developer intelligence platform and installable library built for daily multi-ecosystem engineering workflows.
|
|
7
|
+
|
|
8
|
+
It deeply understands your project structure, inspects native mobile configurations (React Native, Expo, Bare RN, Android, iOS), analyzes full-stack web and backend architectures (Next.js, Vite, Node.js, Express, Python, Django), detects architectural, security, and performance bottlenecks, and safely executes verified auto-repairs on disk with automatic rollback snapshots.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## ⚡ Core Philosophy
|
|
13
|
+
|
|
14
|
+
- **Zero Cloud Dependence**: Operates 100% locally on your machine.
|
|
15
|
+
- **Engineered Correctness**: Deep AST and configuration analysis instead of surface-level linting.
|
|
16
|
+
- **Resilient AI Shield**: Integrated with ultra-fast Groq AI (Qwen 27B / Llama 3) for sub-second crash diagnosis. If API limits are reached (HTTP 429) or offline, it **never crashes** — seamlessly degrading to built-in heuristic rule engines with zero downtime.
|
|
17
|
+
- **Safe Auto-Remediation**: Categorizes all fixes into `SAFE` (zero regression risk with timestamped backups), `REVIEW REQUIRED`, and `RISKY`.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📦 Installation & Library Usage
|
|
22
|
+
|
|
23
|
+
Install anywhere in your projects:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Global CLI Installation
|
|
27
|
+
npm install -g devintelligence
|
|
28
|
+
|
|
29
|
+
# Or install as a development dependency / library in any project
|
|
30
|
+
npm install devintelligence --save-dev
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Programmatic Library API
|
|
34
|
+
|
|
35
|
+
Import DEVINTELLIGENCE directly into your Node.js, TypeScript, or custom developer automation scripts:
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import {
|
|
39
|
+
inspectHostEnvironment,
|
|
40
|
+
analyzeProjectDirectory,
|
|
41
|
+
diagnoseRawErrorLogWithAi,
|
|
42
|
+
applyAllSafeRepairsOnDisk,
|
|
43
|
+
getProjectReportById,
|
|
44
|
+
} from 'devintelligence';
|
|
45
|
+
|
|
46
|
+
// 1. Audit developer environment runtimes
|
|
47
|
+
const envReport = inspectHostEnvironment();
|
|
48
|
+
console.log(envReport);
|
|
49
|
+
|
|
50
|
+
// 2. Perform deep AST & architecture scan on any repository
|
|
51
|
+
const report = analyzeProjectDirectory('/path/to/my-react-native-app');
|
|
52
|
+
console.log(`Overall Health: ${report.scores.overall}/100`);
|
|
53
|
+
|
|
54
|
+
// 3. AI-Powered crash trace diagnosis with guaranteed rule fallback
|
|
55
|
+
const diagnosis = await diagnoseRawErrorLogWithAi(metroErrorStack);
|
|
56
|
+
console.log(diagnosis.summary, diagnosis.rootCause, diagnosis.safeRepairSteps);
|
|
57
|
+
|
|
58
|
+
// 4. Automatically apply all safe auto-repairs with rollback protection
|
|
59
|
+
const repairResult = applyAllSafeRepairsOnDisk('my-project-id');
|
|
60
|
+
console.log(`Applied ${repairResult.appliedRepairs.length} safe patches.`);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 🚀 CLI Commands
|
|
66
|
+
|
|
67
|
+
Run directly without installing via `npx`:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Initialize DEVINTELLIGENCE in current directory
|
|
71
|
+
npx devintelligence init
|
|
72
|
+
|
|
73
|
+
# Audit host environment (Node, Expo, Android SDK, Gradle, CocoaPods, Xcode)
|
|
74
|
+
npx devintelligence doctor
|
|
75
|
+
|
|
76
|
+
# Deep AST scan on current project or registered fixture
|
|
77
|
+
npx devintelligence scan [--project=<id>] [--ci]
|
|
78
|
+
|
|
79
|
+
# Diagnose any build or runtime crash trace with AI + Rule Fallback
|
|
80
|
+
npx devintelligence diagnose "<error_trace>"
|
|
81
|
+
|
|
82
|
+
# Apply all validated SAFE auto-repairs on disk with backup
|
|
83
|
+
npx devintelligence fix [--project=<id>]
|
|
84
|
+
|
|
85
|
+
# Generate AI executive engineering advice & prioritized action plan
|
|
86
|
+
npx devintelligence advice [--project=<id>]
|
|
87
|
+
|
|
88
|
+
# Ask the interactive AI technical assistant directly
|
|
89
|
+
npx devintelligence ai "How do I optimize FlatList windowing in React Native?"
|
|
90
|
+
|
|
91
|
+
# Run self-testing verification suite across 5 multi-ecosystem fixtures
|
|
92
|
+
npx devintelligence test
|
|
93
|
+
|
|
94
|
+
# Launch desktop engineering workstation on http://localhost:3000
|
|
95
|
+
npx devintelligence dashboard
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 📱 React Native & Native Intelligence
|
|
101
|
+
|
|
102
|
+
Dedicated, deeply implemented intelligence for Expo Managed, Expo Prebuild (CNG), and Bare React Native CLI:
|
|
103
|
+
|
|
104
|
+
1. **Initial Project Doctor**: Inspects Node, npm, yarn, pnpm, Bun, Expo SDK, Android SDK, platform-tools, build-tools, JDK, Gradle, AGP, Kotlin, Xcode (macOS), iOS deployment targets, CocoaPods, Metro, Babel, and TypeScript.
|
|
105
|
+
2. **Error Intelligence**: Traces root causes for Metro bundler crashes, Reanimated Babel plugin ordering, Android Gradle merger failures, missing permissions, Hermes runtime exceptions, CocoaPods linkage issues, and Red Screen traces.
|
|
106
|
+
3. **Component Intelligence**: Detects unnecessary re-renders, missing list keys, FlatList performance anti-patterns, hook memory leaks (e.g. uncleaned `AppState` listeners), and accessibility gaps.
|
|
107
|
+
4. **Android Intelligence**: Full inspection of `AndroidManifest.xml`, `build.gradle`, `settings.gradle`, `gradle.properties`, target SDK, and cleartext HTTP policies.
|
|
108
|
+
5. **iOS Intelligence**: Deep audit of `Podfile`, deployment targets, privacy usage keys in `Info.plist`, and native framework linking.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 🖥️ 18-Module Developer Workstation
|
|
113
|
+
|
|
114
|
+
To launch the desktop-first developer interface locally:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npm run dev
|
|
118
|
+
# or
|
|
119
|
+
npx devintelligence dashboard
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Open `http://localhost:3000` to access all 18 dedicated modules:
|
|
123
|
+
- **Core**: Command Center, Project Explorer, Project Health.
|
|
124
|
+
- **Mobile & Native**: React Native Doctor, Android Diagnostics, iOS Diagnostics, Error Diagnostics.
|
|
125
|
+
- **Deep Analysis**: Code Intelligence, Design Intelligence, Performance Lab, Security Audit, Dependency Intelligence.
|
|
126
|
+
- **Repair & Delivery**: Auto Repair Center, Visual Testing, Quality Gate, Project History, Environment Manager, Settings & MCP.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 🛠️ Model Context Protocol (MCP) Tools
|
|
131
|
+
|
|
132
|
+
DEVINTELLIGENCE exposes local MCP tools compatible with Claude Desktop, Cursor, Antigravity, and Gemini:
|
|
133
|
+
|
|
134
|
+
- `inspect_project`
|
|
135
|
+
- `diagnose_error`
|
|
136
|
+
- `analyze_react_native`
|
|
137
|
+
- `inspect_android_environment`
|
|
138
|
+
- `find_unused_files`
|
|
139
|
+
- `apply_safe_fix`
|
|
140
|
+
- `verify_repair`
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 📄 License
|
|
145
|
+
|
|
146
|
+
MIT © 2026 DEVINTELLIGENCE Engineering Team
|