dolphin-server-modules 2.9.5 → 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.
Files changed (78) hide show
  1. package/README.md +45 -83
  2. package/TUTORIAL_NEPALI.md +65 -31
  3. package/dist/ai/dolphin-agent/agent.d.ts +25 -0
  4. package/dist/ai/dolphin-agent/agent.js +362 -0
  5. package/dist/ai/dolphin-agent/agent.js.map +1 -0
  6. package/dist/ai/dolphin-agent/config.d.ts +9 -0
  7. package/dist/ai/dolphin-agent/config.js +52 -0
  8. package/dist/ai/dolphin-agent/config.js.map +1 -0
  9. package/dist/ai/dolphin-agent/index.d.ts +5 -0
  10. package/dist/ai/dolphin-agent/index.js +13 -0
  11. package/dist/ai/dolphin-agent/index.js.map +1 -0
  12. package/dist/bin/cli.js +27 -125
  13. package/dist/bin/cli.js.map +1 -1
  14. package/dist/services/ai-service.d.ts +6 -0
  15. package/dist/services/ai-service.js +142 -23
  16. package/dist/services/ai-service.js.map +1 -1
  17. package/package.json +1 -1
  18. package/dist/adapters/mongoose/index.test.d.ts +0 -1
  19. package/dist/adapters/mongoose/index.test.js +0 -145
  20. package/dist/adapters/mongoose/index.test.js.map +0 -1
  21. package/dist/adapters/mongoose/integration.test.d.ts +0 -5
  22. package/dist/adapters/mongoose/integration.test.js +0 -217
  23. package/dist/adapters/mongoose/integration.test.js.map +0 -1
  24. package/dist/auth/auth.test.d.ts +0 -1
  25. package/dist/auth/auth.test.js +0 -286
  26. package/dist/auth/auth.test.js.map +0 -1
  27. package/dist/authController/authController.test.d.ts +0 -1
  28. package/dist/authController/authController.test.js +0 -359
  29. package/dist/authController/authController.test.js.map +0 -1
  30. package/dist/controller/controller.test.d.ts +0 -1
  31. package/dist/controller/controller.test.js +0 -37
  32. package/dist/controller/controller.test.js.map +0 -1
  33. package/dist/curd/crud.test.d.ts +0 -1
  34. package/dist/curd/crud.test.js +0 -104
  35. package/dist/curd/crud.test.js.map +0 -1
  36. package/dist/demo-server.d.ts +0 -1
  37. package/dist/demo-server.js +0 -191
  38. package/dist/demo-server.js.map +0 -1
  39. package/dist/djson/djson.test.d.ts +0 -1
  40. package/dist/djson/djson.test.js +0 -200
  41. package/dist/djson/djson.test.js.map +0 -1
  42. package/dist/dolphin-bench.d.ts +0 -1
  43. package/dist/dolphin-bench.js +0 -63
  44. package/dist/dolphin-bench.js.map +0 -1
  45. package/dist/hard-performance-test.d.ts +0 -1
  46. package/dist/hard-performance-test.js +0 -97
  47. package/dist/hard-performance-test.js.map +0 -1
  48. package/dist/middleware/zod.test.d.ts +0 -1
  49. package/dist/middleware/zod.test.js +0 -74
  50. package/dist/middleware/zod.test.js.map +0 -1
  51. package/dist/performance-test.d.ts +0 -1
  52. package/dist/performance-test.js +0 -92
  53. package/dist/performance-test.js.map +0 -1
  54. package/dist/real-test-mongoose.d.ts +0 -1
  55. package/dist/real-test-mongoose.js +0 -104
  56. package/dist/real-test-mongoose.js.map +0 -1
  57. package/dist/realtime/realtime.test.d.ts +0 -1
  58. package/dist/realtime/realtime.test.js +0 -623
  59. package/dist/realtime/realtime.test.js.map +0 -1
  60. package/dist/router/router.test.d.ts +0 -1
  61. package/dist/router/router.test.js +0 -45
  62. package/dist/router/router.test.js.map +0 -1
  63. package/dist/server/server.test.d.ts +0 -1
  64. package/dist/server/server.test.js +0 -299
  65. package/dist/server/server.test.js.map +0 -1
  66. package/dist/signaling/signaling.test.d.ts +0 -1
  67. package/dist/signaling/signaling.test.js +0 -112
  68. package/dist/signaling/signaling.test.js.map +0 -1
  69. package/dist/swagger/swagger.test.d.ts +0 -1
  70. package/dist/swagger/swagger.test.js +0 -38
  71. package/dist/swagger/swagger.test.js.map +0 -1
  72. package/dist/test-2fa-real.d.ts +0 -1
  73. package/dist/test-2fa-real.js +0 -105
  74. package/dist/test-2fa-real.js.map +0 -1
  75. package/dist/test-dolphin.d.ts +0 -1
  76. package/dist/test-dolphin.js +0 -98
  77. package/dist/test-dolphin.js.map +0 -1
  78. package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -1,13 +1,12 @@
1
- # 🐬 Dolphin Framework (v2.7.0)
1
+ # 🐬 Dolphin Framework (v2.9.5)
2
2
 
3
3
  ![NPM Version](https://img.shields.io/npm/v/dolphin-server-modules?color=blue&style=flat-square)
4
- ![Build Status](https://img.shields.io/github/actions/workflow/status/Phuyalshankar/dolphin-server-modules/main.yml?style=flat-square)
5
4
  ![License](https://img.shields.io/npm/l/dolphin-server-modules?style=flat-square)
6
5
  ![Downloads](https://img.shields.io/npm/dm/dolphin-server-modules?style=flat-square&color=green)
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 helps you write, architect, and modify it in real-time.
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. IoT-ready."
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
- ## 🤖 AI-Powered Development (New in v2.7.0)
20
+ ## 🤖 Cursor-Level AI Features (New in v2.9.5)
22
21
 
23
- Dolphin v2.7 introduces a revolutionary CLI that integrates with Google Gemini to provide an agentic development experience.
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. Agentic AI Project Scaffolding
26
- Generate a full production-ready project structure (Models, Routes, Controllers, Adapters) with a single prompt.
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. Live File Modification
32
- Modify existing files using AI without leaving your terminal.
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. Interactive AI Agent Chat
38
- Talk to the Dolphin AI Agent. It can answer questions, write code, and even create files for you directly.
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
- npx dolphin chat
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
- ## 📦 Installation
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: Architect a full project
63
- npx dolphin generate-full "prompt"
49
+ # Start the Autonomous AI Agent (Cursor Mode)
50
+ npx dolphin chat
64
51
 
65
- # AI: Modify an existing file
66
- npx dolphin modify <file> "instruction"
52
+ # Architect a full production project
53
+ npx dolphin generate-full "e-commerce backend"
67
54
 
68
- # AI: Open interactive agent chat
69
- npx dolphin chat
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
- # Standard: Initialize a new project
60
+ # Initialize folders
72
61
  npx dolphin init-prod
73
62
 
74
- # Standard: Start a server instantly
75
- npx dolphin serve --port=8080
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
- ### 1. High-Performance Web Server
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', version: '2.7.0' };
79
+ return { message: 'pong', status: 'swimming' };
90
80
  });
91
81
 
92
- app.listen(3000, () => console.log("🐬 Dolphin swimming on port 3000"));
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.7** | **45,000+** | **< 10ms** | **35,000+ msgs/sec** |
92
+ | **Dolphin V2.9** | **45,000+** | **< 10ms** | **35,000+ msgs/sec** |
122
93
 
123
94
  ---
124
95
 
125
96
  ## 🗺️ Roadmap
126
- - [x] Universal Plugin System (HL7/Modbus/Binary)
127
- - [x] Auto-Doc: Automatic Swagger/OpenAPI generation
128
- - [x] Real Mongoose adapter with query mapping
129
- - [x] **Dolphin CLI**: `npx dolphin init` and `init-prod`
130
- - [x] **Agentic AI Scaffolding**: Full project generation via Gemini
131
- - [x] **Live AI Modification**: `modify` and `chat` commands (v2.8.0)
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.
@@ -1,43 +1,52 @@
1
- # Dolphin Framework: 0 to 100% Full Tutorial (Nepali) 🐬 [v2.2.5]
1
+ # Dolphin Framework: 0 to 100% Full Tutorial (Nepali) 🐬 [v2.9.5]
2
2
 
3
- Dolphin Framework मा तपाईँलाई स्वागत छ! यो गाइडमा हामी Dolphin प्रयोग गरेर एउटा शक्तिशाली, छिटोआधुनिक API कसरी बनाउने भनेर सुरुदेखि अन्त्यसम्म सिक्नेछौँ।
3
+ Dolphin Framework मा तपाईँलाई स्वागत छ! यो गाइडमा हामी Dolphin प्रयोग गरेर एउटा शक्तिशाली, आधुनिकएआई-संचालित (AI-Powered) ब्याकइन्ड कसरी बनाउने भनेर सिक्नेछौँ।
4
4
 
5
5
  ---
6
6
 
7
7
  ## १. Dolphin के हो? (Introduction)
8
8
 
9
- **Dolphin** एउटा "Zero-Dependency" ब्याकइन्ड फ्रेमवर्क हो। यो Node.js को नेटिभ `http` मोड्युलमा बनेको छ, जसले गर्दा यसको स्पिड एकदमै धेरै यो २०२६ को आधुनिक आवश्यकताहरूका लागि तयार छ।
9
+ **Dolphin** एउटा "Zero-Dependency" ब्याकइन्ड फ्रेमवर्क हो। यो २०२६ को आधुनिक आवश्यकताहरूका लागि तयार पारिएको छ। अहिले यसमा **Cursor-Level Agentic AI** थपिएको छ, जसले गर्दा तपाईँको कोडिङ अनुभव पूर्ण रूपमा बदलिनेछ।
10
10
 
11
11
  **मुख्य विशेषताहरू:**
12
+ - **Advanced AI Agent**: प्रोजेक्ट बुझ्ने र आफैं कोड लेख्ने एजेन्ट।
12
13
  - **Ultra-Fast**: एक्सप्रेस (Express) भन्दा ५ गुणा सम्म छिटो।
13
- - **Reactive Sync**: फ्रन्टइन्ड ब्याकइन्डको डेटा अटोमेटिक सिङ्क हुने।
14
- - **Offline Ready**: इन्टरनेट नहुँदा पनि डेटा सेभ गर्न मिल्ने (DolphinPersist)।
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.2.5 मा नयाँ CLI कमाण्डहरू थपिएका छन् जसले प्रोजेक्ट सुरु गर्न एकदमै सजिलो बनाउँछ:
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
- # २. डल्फिन प्रोजेक्ट सुरु गर्नुहोस् (ESM support सहित)
28
- npx dolphin init
27
+ # २. एआई एजेन्ट सुरु गर्नुहोस् (Cursor Mode)
28
+ # यसले तपाईँको कुरा बुझ्छ र कोड लेख्न मद्दत गर्छ
29
+ npx dolphin chat
29
30
 
30
- # ३. यदि तपाईंलाई 'Production' लेबलको फोल्डर स्ट्रक्चर चाहिन्छ भने:
31
- npx dolphin init-prod
31
+ # ३. एआई मार्फत पूर्ण प्रोजेक्ट स्ट्रक्चर बनाउनुहोस्
32
+ npx dolphin generate-full "e-commerce backend with orders and mongoose"
32
33
  ```
33
34
 
34
- यसले अटोमेटिकल्ली `package.json`, `app.js` र आवश्यक कन्फिगरेसन फाइलहरू बनाइदिन्छ।
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
- ## ३. पहिलो सर्भर (Hello World)
47
+ ## ४. पहिलो सर्भर (Modern ESM Server)
39
48
 
40
- अब `app.js` फाइलमा यो कोड राख्नुहोस् (हामी आधुनिक `import` सिन्ट्याक्स प्रयोग गर्छौं):
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 { message: "Dolphin को संसारमा स्वागत छ! 🐬", version: "2.2.5" };
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("सर्भर http://localhost:3000 मा चलिरहेको छ!");
67
+ console.log("Server http://localhost:3000 ma chaliraheko chha!");
55
68
  });
56
69
  ```
57
70
 
58
71
  ---
59
72
 
60
- ## ४. DolphinStore: शक्तिशाली र रिएक्टिभ स्टोर [NEW v2.2.5]
73
+ ## ५. एआई बिनाका शक्तिशाली कमाण्डहरू
61
74
 
62
- Dolphin को नयाँ स्टोरले फ्रन्टइन्डमा डेटा म्यानेजमेन्टलाई एकदमै सजिलो बनाउँछ। यसले डेटा लोड हुँदैछ कि छैन (loading), सफल भयो कि भएन (success) एरर आयो कि (error) भनेर अटोमेटिक जानकारी दिन्छ।
75
+ यदि तपाईँलाई एआई प्रयोग गर्न मन छैन भने, डल्फिनमा पहिले देखि नै बनेका टेम्पलेटहरू प्रयोग गर्न सक्नुहुन्छ:
63
76
 
64
- ### क. स्टोर प्रयोग गर्ने तरिका
65
- ```html
66
- <script src="/dolphin-client.js"></script>
67
- <script>
68
- // १. स्टोरबाट कलेक्सन लिने
69
- const products = dolphin.store.products;
77
+ ```bash
78
+ # अथेन्टिकेसन सिस्टम थप्न
79
+ npx dolphin add auth
70
80
 
71
- // २. लोड स्टेट चेक गर्ने
72
- if (products.loading) console.log("डेटा लोड हुँदैछ...");
73
-
74
- // ३. डेटा आएपछि देखाउने
75
- if (products.success) {
76
- console.log("डेटा आयो:", products.items);
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
+ }