dolphin-server-modules 2.9.4 → 2.9.6
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 +45 -83
- package/TUTORIAL_NEPALI.md +65 -31
- package/dist/ai/dolphin-agent/agent.d.ts +25 -0
- package/dist/ai/dolphin-agent/agent.js +362 -0
- package/dist/ai/dolphin-agent/agent.js.map +1 -0
- package/dist/ai/dolphin-agent/config.d.ts +9 -0
- package/dist/ai/dolphin-agent/config.js +52 -0
- package/dist/ai/dolphin-agent/config.js.map +1 -0
- package/dist/ai/dolphin-agent/index.d.ts +5 -0
- package/dist/ai/dolphin-agent/index.js +13 -0
- package/dist/ai/dolphin-agent/index.js.map +1 -0
- package/dist/bin/cli.js +39 -125
- package/dist/bin/cli.js.map +1 -1
- package/dist/services/ai-service.d.ts +6 -0
- package/dist/services/ai-service.js +142 -23
- package/dist/services/ai-service.js.map +1 -1
- package/package.json +1 -1
- package/dist/adapters/mongoose/index.test.d.ts +0 -1
- package/dist/adapters/mongoose/index.test.js +0 -145
- package/dist/adapters/mongoose/index.test.js.map +0 -1
- package/dist/adapters/mongoose/integration.test.d.ts +0 -5
- package/dist/adapters/mongoose/integration.test.js +0 -217
- package/dist/adapters/mongoose/integration.test.js.map +0 -1
- package/dist/auth/auth.test.d.ts +0 -1
- package/dist/auth/auth.test.js +0 -286
- package/dist/auth/auth.test.js.map +0 -1
- package/dist/authController/authController.test.d.ts +0 -1
- package/dist/authController/authController.test.js +0 -359
- package/dist/authController/authController.test.js.map +0 -1
- package/dist/controller/controller.test.d.ts +0 -1
- package/dist/controller/controller.test.js +0 -37
- package/dist/controller/controller.test.js.map +0 -1
- package/dist/curd/crud.test.d.ts +0 -1
- package/dist/curd/crud.test.js +0 -104
- package/dist/curd/crud.test.js.map +0 -1
- package/dist/demo-server.d.ts +0 -1
- package/dist/demo-server.js +0 -191
- package/dist/demo-server.js.map +0 -1
- package/dist/djson/djson.test.d.ts +0 -1
- package/dist/djson/djson.test.js +0 -200
- package/dist/djson/djson.test.js.map +0 -1
- package/dist/dolphin-bench.d.ts +0 -1
- package/dist/dolphin-bench.js +0 -63
- package/dist/dolphin-bench.js.map +0 -1
- package/dist/hard-performance-test.d.ts +0 -1
- package/dist/hard-performance-test.js +0 -97
- package/dist/hard-performance-test.js.map +0 -1
- package/dist/middleware/zod.test.d.ts +0 -1
- package/dist/middleware/zod.test.js +0 -74
- package/dist/middleware/zod.test.js.map +0 -1
- package/dist/performance-test.d.ts +0 -1
- package/dist/performance-test.js +0 -92
- package/dist/performance-test.js.map +0 -1
- package/dist/real-test-mongoose.d.ts +0 -1
- package/dist/real-test-mongoose.js +0 -104
- package/dist/real-test-mongoose.js.map +0 -1
- package/dist/realtime/realtime.test.d.ts +0 -1
- package/dist/realtime/realtime.test.js +0 -623
- package/dist/realtime/realtime.test.js.map +0 -1
- package/dist/router/router.test.d.ts +0 -1
- package/dist/router/router.test.js +0 -45
- package/dist/router/router.test.js.map +0 -1
- package/dist/server/server.test.d.ts +0 -1
- package/dist/server/server.test.js +0 -299
- package/dist/server/server.test.js.map +0 -1
- package/dist/signaling/signaling.test.d.ts +0 -1
- package/dist/signaling/signaling.test.js +0 -112
- package/dist/signaling/signaling.test.js.map +0 -1
- package/dist/swagger/swagger.test.d.ts +0 -1
- package/dist/swagger/swagger.test.js +0 -38
- package/dist/swagger/swagger.test.js.map +0 -1
- package/dist/test-2fa-real.d.ts +0 -1
- package/dist/test-2fa-real.js +0 -105
- package/dist/test-2fa-real.js.map +0 -1
- package/dist/test-dolphin.d.ts +0 -1
- package/dist/test-dolphin.js +0 -98
- package/dist/test-dolphin.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
# 🐬 Dolphin Framework (v2.
|
|
1
|
+
# 🐬 Dolphin Framework (v2.9.5)
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
4
|

|
|
6
5
|

|
|
7
6
|
|
|
8
|
-
**Dolphin** is a 2026-ready, ultra-lightweight, and 100% modular backend ecosystem built on native Node.js. Now featuring **Agentic AI**—Dolphin doesn't just run your code; it
|
|
7
|
+
**Dolphin** is a 2026-ready, ultra-lightweight, and 100% modular backend ecosystem built on native Node.js. Now featuring **Advanced Agentic AI (Cursor-Level)**—Dolphin doesn't just run your code; it understands your entire project, tracks symbols, and performs precision edits using semantic search.
|
|
9
8
|
|
|
10
|
-
> "Native performance. Agentic AI integration.
|
|
9
|
+
> "Native performance. Agentic AI integration. Multi-model support."
|
|
11
10
|
|
|
12
11
|
---
|
|
13
12
|
|
|
@@ -18,97 +17,69 @@ Dolphin Framework को विस्तृत र आधिकारिक ग
|
|
|
18
17
|
|
|
19
18
|
---
|
|
20
19
|
|
|
21
|
-
## 🤖
|
|
20
|
+
## 🤖 Cursor-Level AI Features (New in v2.9.5)
|
|
22
21
|
|
|
23
|
-
Dolphin v2.
|
|
22
|
+
Dolphin v2.9.5 introduces a complete overhaul of the AI Agent, bringing it closer to professional AI editors like Cursor.
|
|
24
23
|
|
|
25
|
-
### 1.
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npx dolphin generate-full "An e-commerce backend with orders, products, and Mongoose auth"
|
|
29
|
-
```
|
|
24
|
+
### 1. Semantic Project Search
|
|
25
|
+
The AI doesn't just look at one file; it indexes your entire project. When you ask a question, it uses semantic token overlap to find the 5 most relevant files automatically.
|
|
30
26
|
|
|
31
|
-
### 2.
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npx dolphin modify app.js "Add a request logger middleware and a new /status route"
|
|
35
|
-
```
|
|
27
|
+
### 2. Symbol & Reference Tracking
|
|
28
|
+
Dolphin indexes every `function`, `class`, and `variable` across your project. The AI knows exactly where a symbol is defined and where it's used.
|
|
36
29
|
|
|
37
|
-
### 3.
|
|
38
|
-
|
|
30
|
+
### 3. Precision Patching (No Full Re-writes)
|
|
31
|
+
Using the new **Patch Tool**, Dolphin performs surgical edits to your code. No more slow, risky full-file overwrites for small changes.
|
|
32
|
+
|
|
33
|
+
### 4. Multi-Model Support (Local & Cloud)
|
|
34
|
+
Use any AI provider you want. Supports **Google Gemini**, **Groq (Llama 3)**, and **Local Ollama (Gemma 3/Llama 3)**.
|
|
39
35
|
```bash
|
|
40
|
-
|
|
36
|
+
# To use Local Ollama, set this in .env:
|
|
37
|
+
USE_OLLAMA=true
|
|
38
|
+
OLLAMA_MODEL=gemma3:latest
|
|
41
39
|
```
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 🌟 Why Dolphin in 2026?
|
|
46
|
-
|
|
47
|
-
- **Agentic AI Core**: Built-in AI commands to architect and modify your system.
|
|
48
|
-
- **Zero-Dependency Core**: Built on native `http` & `events`. No bloat.
|
|
49
|
-
- **Universal Compatibility**: Works with Mongoose, Zod, WebSocket, and Express-compatible middleware.
|
|
50
|
-
- **Reactive State Sync (DolphinStore)**: Automated frontend state synchronization with built-in loading/error tracking.
|
|
51
|
-
- **Server-Served Client Library**: Zero-dependency frontend library directly from your server.
|
|
41
|
+
### 5. Personalized Support (Roman Nepali)
|
|
42
|
+
The agent understands and replies in **Roman Nepali** (e.g., "Sanchai hunuhunchha?"), making it more comfortable for Nepali developers.
|
|
52
43
|
|
|
53
44
|
---
|
|
54
45
|
|
|
55
|
-
##
|
|
56
|
-
```bash
|
|
57
|
-
npm install dolphin-server-modules
|
|
58
|
-
```
|
|
46
|
+
## 🛠️ CLI Usage
|
|
59
47
|
|
|
60
|
-
### 🛠️ CLI Usage (v2.7.0)
|
|
61
48
|
```bash
|
|
62
|
-
# AI
|
|
63
|
-
npx dolphin
|
|
49
|
+
# Start the Autonomous AI Agent (Cursor Mode)
|
|
50
|
+
npx dolphin chat
|
|
64
51
|
|
|
65
|
-
#
|
|
66
|
-
npx dolphin
|
|
52
|
+
# Architect a full production project
|
|
53
|
+
npx dolphin generate-full "e-commerce backend"
|
|
67
54
|
|
|
68
|
-
#
|
|
69
|
-
npx dolphin
|
|
55
|
+
# Scaffold standard components (No AI needed)
|
|
56
|
+
npx dolphin add auth # Add Auth System
|
|
57
|
+
npx dolphin add crud Product # Add CRUD for Product
|
|
58
|
+
npx dolphin add adapter mongoose # Setup DB
|
|
70
59
|
|
|
71
|
-
#
|
|
60
|
+
# Initialize folders
|
|
72
61
|
npx dolphin init-prod
|
|
73
62
|
|
|
74
|
-
#
|
|
75
|
-
npx dolphin serve --port=
|
|
63
|
+
# Start Dev Server
|
|
64
|
+
npx dolphin serve --port=3000
|
|
76
65
|
```
|
|
77
66
|
|
|
78
67
|
---
|
|
79
68
|
|
|
80
|
-
## 🚀 Quick Start (Modern ESM)
|
|
69
|
+
## 🚀 Quick Start (Modern ESM Only)
|
|
70
|
+
|
|
71
|
+
Dolphin strictly uses **ES Modules (import/export)**. The use of `require()` is discouraged as it causes compatibility issues in modern Node.js environments.
|
|
81
72
|
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
73
|
+
```javascript
|
|
84
74
|
import { createDolphinServer } from 'dolphin-server-modules/server';
|
|
85
75
|
|
|
86
76
|
const app = createDolphinServer();
|
|
87
77
|
|
|
88
78
|
app.get('/ping', (ctx) => {
|
|
89
|
-
return { message: 'pong',
|
|
79
|
+
return { message: 'pong', status: 'swimming' };
|
|
90
80
|
});
|
|
91
81
|
|
|
92
|
-
app.listen(3000, () => console.log("🐬 Dolphin swimming on
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## 🧩 Modular Ecosystem
|
|
98
|
-
|
|
99
|
-
| Module | Path | Description |
|
|
100
|
-
| :--- | :--- | :--- |
|
|
101
|
-
| **Server** | `dolphin-server-modules/server` | Native HTTP server with `ctx` API & Auto-JSON. |
|
|
102
|
-
| **Auth** | `dolphin-server-modules/auth` | Argon2/JWT based secure auth with 2FA (TOTP). |
|
|
103
|
-
| **CRUD** | `dolphin-server-modules/curd` | Generic CRUD service with ownership & soft-delete. |
|
|
104
|
-
| **Mongoose Adapter** | `dolphin-server-modules/adapters/mongoose` | Full Mongoose ↔ CRUD bridge with query mapping. |
|
|
105
|
-
| **CLI Agent** | `npx dolphin` | Agentic AI for scaffolding and modification. |
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## 🧪 Testing
|
|
110
|
-
```bash
|
|
111
|
-
npm test # Run all 200+ tests
|
|
82
|
+
app.listen(3000, () => console.log("🐬 Dolphin v2.9.5 swimming on 3000"));
|
|
112
83
|
```
|
|
113
84
|
|
|
114
85
|
---
|
|
@@ -118,28 +89,19 @@ npm test # Run all 200+ tests
|
|
|
118
89
|
| Framework | RPS (Req/sec) | Cold Start | Realtime Throughput |
|
|
119
90
|
| :--- | :--- | :--- | :--- |
|
|
120
91
|
| Express.js | ~15,000 | 180ms | N/A |
|
|
121
|
-
| **Dolphin V2.
|
|
92
|
+
| **Dolphin V2.9** | **45,000+** | **< 10ms** | **35,000+ msgs/sec** |
|
|
122
93
|
|
|
123
94
|
---
|
|
124
95
|
|
|
125
96
|
## 🗺️ Roadmap
|
|
126
|
-
- [x]
|
|
127
|
-
- [x]
|
|
128
|
-
- [x]
|
|
129
|
-
- [x] **
|
|
130
|
-
- [
|
|
131
|
-
- [
|
|
132
|
-
- [ ] **Multi-Model Support**: Integration with Groq (Llama 3), Claude, and local Ollama
|
|
133
|
-
- [ ] **Cloud Deployment**: One-click deploy to Vercel/Cloudflare from CLI
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
## 📄 License
|
|
138
|
-
ISC © 2026 Shankar Phuyal & Dolphin Team.
|
|
139
|
-
phin init` and `init-prod`
|
|
140
|
-
- [ ] **AI-Driven Generation**: Advanced multi-file AI project scaffolding
|
|
97
|
+
- [x] **Agentic AI Scaffolding**: Full project generation via Gemini/Groq
|
|
98
|
+
- [x] **Semantic Search & Symbol Indexing**: Precision context building
|
|
99
|
+
- [x] **Multi-Model Support**: Gemini, Groq, and Local Ollama
|
|
100
|
+
- [x] **Precision Patching**: AST-style surgical code edits
|
|
101
|
+
- [ ] **One-Click Deployment**: Deploy to Vercel/Cloudflare from CLI
|
|
102
|
+
- [ ] **Visual Debugger**: Built-in web dashboard for monitoring
|
|
141
103
|
|
|
142
104
|
---
|
|
143
105
|
|
|
144
106
|
## 📄 License
|
|
145
|
-
ISC © 2026 Shankar Phuyal & Dolphin Team.
|
|
107
|
+
ISC © 2026 Shankar Phuyal & Dolphin Team.
|
package/TUTORIAL_NEPALI.md
CHANGED
|
@@ -1,43 +1,52 @@
|
|
|
1
|
-
# Dolphin Framework: 0 to 100% Full Tutorial (Nepali) 🐬 [v2.
|
|
1
|
+
# Dolphin Framework: 0 to 100% Full Tutorial (Nepali) 🐬 [v2.9.5]
|
|
2
2
|
|
|
3
|
-
Dolphin Framework मा तपाईँलाई स्वागत छ! यो गाइडमा हामी Dolphin प्रयोग गरेर एउटा शक्तिशाली,
|
|
3
|
+
Dolphin Framework मा तपाईँलाई स्वागत छ! यो गाइडमा हामी Dolphin प्रयोग गरेर एउटा शक्तिशाली, आधुनिक र एआई-संचालित (AI-Powered) ब्याकइन्ड कसरी बनाउने भनेर सिक्नेछौँ।
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## १. Dolphin के हो? (Introduction)
|
|
8
8
|
|
|
9
|
-
**Dolphin** एउटा "Zero-Dependency" ब्याकइन्ड फ्रेमवर्क हो। यो
|
|
9
|
+
**Dolphin** एउटा "Zero-Dependency" ब्याकइन्ड फ्रेमवर्क हो। यो २०२६ को आधुनिक आवश्यकताहरूका लागि तयार पारिएको छ। अहिले यसमा **Cursor-Level Agentic AI** थपिएको छ, जसले गर्दा तपाईँको कोडिङ अनुभव पूर्ण रूपमा बदलिनेछ।
|
|
10
10
|
|
|
11
11
|
**मुख्य विशेषताहरू:**
|
|
12
|
+
- **Advanced AI Agent**: प्रोजेक्ट बुझ्ने र आफैं कोड लेख्ने एजेन्ट।
|
|
12
13
|
- **Ultra-Fast**: एक्सप्रेस (Express) भन्दा ५ गुणा सम्म छिटो।
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **Modern CLI**: एकै मिनेटमा प्रोजेक्ट तयार गर्न मिल्ने।
|
|
14
|
+
- **Multi-Model Support**: Gemini, Groq (Llama 3), र Local Ollama सपोर्ट।
|
|
15
|
+
- **ESM Ready**: आधुनिक `import/export` सिन्ट्याक्समा आधारित।
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
## २. सुरुवाती सेटअप (Project Setup)
|
|
19
|
+
## २. सुरुवाती सेटअप र एआई (Project Setup & AI)
|
|
20
20
|
|
|
21
|
-
Dolphin v2.
|
|
21
|
+
Dolphin v2.9.5 मा एआईको प्रयोग गरेर १ मिनेटमै प्रोजेक्ट तयार गर्न सकिन्छ:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# १. नयाँ फोल्डर बनाउनुहोस्
|
|
25
25
|
mkdir my-dolphin-app && cd my-dolphin-app
|
|
26
26
|
|
|
27
|
-
# २.
|
|
28
|
-
|
|
27
|
+
# २. एआई एजेन्ट सुरु गर्नुहोस् (Cursor Mode)
|
|
28
|
+
# यसले तपाईँको कुरा बुझ्छ र कोड लेख्न मद्दत गर्छ
|
|
29
|
+
npx dolphin chat
|
|
29
30
|
|
|
30
|
-
# ३.
|
|
31
|
-
npx dolphin
|
|
31
|
+
# ३. एआई मार्फत पूर्ण प्रोजेक्ट स्ट्रक्चर बनाउनुहोस्
|
|
32
|
+
npx dolphin generate-full "e-commerce backend with orders and mongoose"
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## ३. एआई एजेन्टसँग कुरा गर्ने (Chatting with Agent)
|
|
38
|
+
|
|
39
|
+
Dolphin Agent ले अहिले **Roman Nepali** बुझ्छ। तपाईँले यसरी सोध्न सक्नुहुन्छ:
|
|
40
|
+
|
|
41
|
+
> "Hey Dolphin, `real-test` फोल्डरमा एउटा नयाँ `order.js` मोडल बनाइदेऊ र `app.js` मा त्यसको रुट थपिदेऊ।"
|
|
42
|
+
|
|
43
|
+
एजेन्टले तपाईँको प्रोजेक्टका सबै फाइलहरू हेर्छ र सिधै कोड अपडेट गरिदिन्छ। यसका लागि कुनै पनि `require` प्रयोग नगर्नुहोस्, सधैँ **`import`** प्रयोग गर्नुहोस्।
|
|
35
44
|
|
|
36
45
|
---
|
|
37
46
|
|
|
38
|
-
##
|
|
47
|
+
## ४. पहिलो सर्भर (Modern ESM Server)
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
हामी आधुनिक `import` सिन्ट्याक्स मात्र प्रयोग गर्छौं, किनभने `require` ले पुराना समस्याहरू निम्त्याउन सक्छ।
|
|
41
50
|
|
|
42
51
|
```javascript
|
|
43
52
|
import { createDolphinServer } from 'dolphin-server-modules/server';
|
|
@@ -46,34 +55,59 @@ const app = createDolphinServer();
|
|
|
46
55
|
|
|
47
56
|
// एउटा सामान्य गेट (GET) रूट
|
|
48
57
|
app.get('/', (ctx) => {
|
|
49
|
-
return {
|
|
58
|
+
return {
|
|
59
|
+
message: "Dolphin ko sansar ma swagat chha! 🐬",
|
|
60
|
+
version: "2.9.5",
|
|
61
|
+
mode: "Agentic AI Ready"
|
|
62
|
+
};
|
|
50
63
|
});
|
|
51
64
|
|
|
52
65
|
// सर्भर सुन्न (Listen) सुरु गर्नुहोस्
|
|
53
66
|
app.listen(3000, () => {
|
|
54
|
-
console.log("
|
|
67
|
+
console.log("Server http://localhost:3000 ma chaliraheko chha!");
|
|
55
68
|
});
|
|
56
69
|
```
|
|
57
70
|
|
|
58
71
|
---
|
|
59
72
|
|
|
60
|
-
##
|
|
73
|
+
## ५. एआई बिनाका शक्तिशाली कमाण्डहरू
|
|
61
74
|
|
|
62
|
-
|
|
75
|
+
यदि तपाईँलाई एआई प्रयोग गर्न मन छैन भने, डल्फिनमा पहिले देखि नै बनेका टेम्पलेटहरू प्रयोग गर्न सक्नुहुन्छ:
|
|
63
76
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<script>
|
|
68
|
-
// १. स्टोरबाट कलेक्सन लिने
|
|
69
|
-
const products = dolphin.store.products;
|
|
77
|
+
```bash
|
|
78
|
+
# अथेन्टिकेसन सिस्टम थप्न
|
|
79
|
+
npx dolphin add auth
|
|
70
80
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
# कुनै मोडलको लागि CRUD थप्न
|
|
82
|
+
npx dolphin add crud Product
|
|
83
|
+
|
|
84
|
+
# मङ्गोस (Mongoose) सेटअप गर्न
|
|
85
|
+
npx dolphin add adapter mongoose
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## ६. लोकल एआई (Ollama Support) [NEW]
|
|
91
|
+
|
|
92
|
+
यदि तपाईँ आफ्नो डेटा क्लाउडमा पठाउन चाहनुहुन्न भने, आफ्नो कम्प्युटरमै **Ollama** चलाउन सक्नुहुन्छ। `.env` फाइलमा यो सेट गर्नुहोस्:
|
|
93
|
+
|
|
94
|
+
```env
|
|
95
|
+
USE_OLLAMA=true
|
|
96
|
+
OLLAMA_MODEL=gemma3:latest
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## ७. अन्तिममा (Conclusion)
|
|
102
|
+
|
|
103
|
+
Dolphin Framework अब एउटा सामान्य फ्रेमवर्क मात्र होइन, यो तपाईँको एउटा "एआई साथी" पनि हो। यसले तपाईँको कोडिङ स्पिड १० गुणा बढाउन मद्दत गर्छ।
|
|
104
|
+
|
|
105
|
+
**थप जानकारीको लागि:**
|
|
106
|
+
- [README.md](README.md) हेर्नुहोस्।
|
|
107
|
+
- [Dolphin Master Guide](DOLPHIN_MASTER_GUIDE_NEPALI.md) पढ्नुहोस्।
|
|
108
|
+
|
|
109
|
+
**Happy Coding in Nepali! 🇳🇵🐬**
|
|
110
|
+
sole.log("डेटा आयो:", products.items);
|
|
77
111
|
}
|
|
78
112
|
</script>
|
|
79
113
|
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AIConfig } from './config.js';
|
|
2
|
+
export declare class DolphinAgent {
|
|
3
|
+
private ai;
|
|
4
|
+
private config;
|
|
5
|
+
private currentDir;
|
|
6
|
+
private rl;
|
|
7
|
+
private projectIndex;
|
|
8
|
+
private symbolIndex;
|
|
9
|
+
private keywordIndex;
|
|
10
|
+
constructor(config: AIConfig);
|
|
11
|
+
private calculateHash;
|
|
12
|
+
private walkDir;
|
|
13
|
+
private updateSemanticIndex;
|
|
14
|
+
private semanticSearch;
|
|
15
|
+
buildProjectMemory(): Promise<void>;
|
|
16
|
+
generateEnv(): Promise<void>;
|
|
17
|
+
private askPermission;
|
|
18
|
+
private isCommandSafe;
|
|
19
|
+
private isSensitiveFile;
|
|
20
|
+
private parseAIResponse;
|
|
21
|
+
private normalizeToolCall;
|
|
22
|
+
private buildContextPrompt;
|
|
23
|
+
interactiveChat(): Promise<void>;
|
|
24
|
+
executeTask(prompt: string): Promise<void>;
|
|
25
|
+
}
|