@bonginkan/maria 3.0.2 → 3.0.4

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 CHANGED
@@ -1,47 +1,139 @@
1
- # 🚀 MARIA v3.0.0
1
+ # 🚀 MARIA v3.0.4
2
2
 
3
- **Minimal API, Maximum Power** - Enterprise-ready AI development platform with 3 core services, beautiful CLI experience, and dynamic configuration.
3
+ **Stable & Reliable** - AI-powered development platform with 50+ working commands, all core features fixed and production-ready.
4
4
 
5
5
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.0%2B-blue)](https://www.typescriptlang.org/)
6
6
  [![Node.js](https://img.shields.io/badge/Node.js-20%2B-green)](https://nodejs.org/)
7
- [![npm](https://img.shields.io/npm/v/@bonginkan/maria?label=npm%20v3.0.0)](https://www.npmjs.com/package/@bonginkan/maria)
8
- [![Bundle Size](https://img.shields.io/badge/Bundle-192KB-brightgreen)](https://github.com/bonginkan/maria)
9
- [![API Surface](https://img.shields.io/badge/Public%20API-3%20Services-blue)](https://github.com/bonginkan/maria)
7
+ [![npm](https://img.shields.io/npm/v/@bonginkan/maria)](https://www.npmjs.com/package/@bonginkan/maria)
8
+ [![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
9
+ [![Commands](https://img.shields.io/badge/Commands-50%2B-brightgreen)](https://github.com/bonginkan/maria)
10
10
 
11
- ## ⚡ 3-Minute Quickstart
11
+ ## ⚡ Quick Install & Start
12
12
 
13
- ### 🎯 What is MARIA v3.0.0?
13
+ ```bash
14
+ # Install globally
15
+ npm install -g @bonginkan/maria
16
+
17
+ # Start MARIA
18
+ maria
19
+
20
+ # Or use the short alias
21
+ mc
22
+ ```
23
+
24
+ ## 🎯 What is MARIA?
14
25
 
15
- MARIA v3.0.0 revolutionizes AI development with **3 powerful services** and a **beautiful CLI experience**:
26
+ MARIA is an enterprise-ready AI development assistant that brings the power of multiple AI providers (OpenAI, Anthropic, Google, Groq, Ollama, etc.) directly to your terminal with 50+ slash commands for every development task.
16
27
 
17
- - 🧠 **IntelligentRouterService** - Smart command routing and analysis
18
- - 🧩 **DualMemoryEngine** - System 1 & System 2 cognitive memory
19
- - 📁 **FileSystemService** - Safe, atomic file operations
28
+ ### Key Features
20
29
 
21
- ### 📦 Installation
30
+ - 🤖 **Multi-Provider AI Support** - Works with 8+ AI providers (cloud & local)
31
+ - 📝 **50+ Working Commands** - From code generation to Git operations
32
+ - 🧠 **Intelligent Memory System** - Remembers context across sessions
33
+ - 🔄 **Git Integration** - Commit, PR, merge with AI assistance
34
+ - 🎨 **Media Generation** - Create images, videos, and audio with AI
35
+ - 📊 **Code Analysis** - Security, performance, and quality checks
36
+ - 🚀 **Zero Config** - Works out of the box
22
37
 
38
+ ## 📖 Available Commands (v3.0.3)
39
+
40
+ ### Core Commands ✅
23
41
  ```bash
24
- # Global installation (recommended)
25
- npm install -g @bonginkan/maria
42
+ /help # Show all commands and usage
43
+ /clear # Clear screen and conversation
44
+ /version # Show MARIA version
45
+ /exit # Exit the application
46
+ ```
26
47
 
27
- # Or with pnpm
28
- pnpm add -g @bonginkan/maria
48
+ ### AI Development 🤖
49
+ ```bash
50
+ /test # Generate comprehensive tests
51
+ /debug # Debug assistance with AI
52
+ /review # Code review with suggestions
53
+ /refactor # Intelligent code refactoring
29
54
  ```
30
55
 
31
- ### 🚀 Quick Start
56
+ ### Git Operations 📦
57
+ ```bash
58
+ /commit # Create semantic commits
59
+ /pr # Generate pull requests
60
+ /merge # Merge assistance
61
+ /diff # Analyze code differences
62
+ /branch # Branch management
63
+ ```
32
64
 
65
+ ### Documentation 📚
33
66
  ```bash
34
- # Launch beautiful interactive mode
35
- maria
67
+ /docs # Generate documentation
68
+ /readme # Create README files
69
+ /api # API documentation
70
+ /changelog # Generate changelogs
71
+ ```
72
+
73
+ ### Code Quality 🛡️
74
+ ```bash
75
+ /analyze # Code analysis
76
+ /perf # Performance profiling
77
+ /security # Security scanning
78
+ /deps # Dependency analysis
79
+ /lint # ESLint analysis
80
+ /typecheck # TypeScript checking
81
+ ```
82
+
83
+ ### Project Management 🏗️
84
+ ```bash
85
+ /scaffold # Project scaffolding
86
+ /deploy # Deployment assistance
87
+ /memory # Manage project memory
88
+ /export # Export project data
89
+ ```
90
+
91
+ ### Media Creation 🎨
92
+ ```bash
93
+ /image # AI image generation
94
+ /video # AI video creation
95
+ /audio # Audio generation
96
+ ```
97
+
98
+ ### Search & Discovery 🔍
99
+ ```bash
100
+ /search # Smart code search
101
+ /find # File finder
102
+ /grep # Pattern search
103
+ /replace # Find and replace
104
+ ```
105
+
106
+ ### Database & API 🗄️
107
+ ```bash
108
+ /db # Database operations
109
+ /migrate # Run migrations
110
+ /seed # Seed data
111
+ /api-test # API testing
112
+ ```
36
113
 
37
- # Run API demonstration
38
- maria --demo
114
+ ### Terminal Tools ⚙️
115
+ ```bash
116
+ /run # Execute commands
117
+ /watch # File watcher
118
+ /docker # Docker management
119
+ /calc # Calculator
120
+ /solve # Equation solver
121
+ /plot # Graph plotter
122
+ ```
39
123
 
40
- # Test intelligent routing
41
- maria route "create a React component with TypeScript"
124
+ ### Learning & Help 📖
125
+ ```bash
126
+ /explain # Explain code/concepts
127
+ /tutorial # Interactive tutorials
128
+ /example # Show examples
129
+ ```
42
130
 
43
- # Show help
44
- maria --help
131
+ ### Collaboration 👥
132
+ ```bash
133
+ /share # Share code/sessions
134
+ /collab # Collaboration tools
135
+ /sync # Sync settings
136
+ /team # Team management
45
137
  ```
46
138
 
47
139
  ## 🎨 Beautiful CLI Experience
@@ -60,17 +152,84 @@ When you run `maria`, you'll see:
60
152
  ║ (c) 2025 Bonginkan Inc. ║
61
153
  ╚══════════════════════════════════════════════════════════╝
62
154
 
63
- MARIA CODE v3.0.0 — Ready
155
+ MARIA CODE v3.0.3 — Ready
64
156
  /help for commands | Providers: 8/8 OK
65
157
 
66
158
  Available AI Providers:
67
159
  ☁️ Cloud AI: OpenAI, Anthropic, Google, Groq, xAI
68
160
  💻 Local AI: Ollama, LM Studio, vLLM
161
+
162
+ 💬 Enhanced Features:
163
+ ✅ Conversation Memory - remembers all your chats
164
+ ⚡ Lightning Speed - 200ms thinking, intelligent responses
165
+ 🎯 Context Awareness - builds on previous conversations
166
+ 🤖 AI-Powered Responses - real intelligent assistance
167
+ ```
168
+
169
+ ## 🚀 Usage Examples
170
+
171
+ ### Generate Tests
172
+ ```bash
173
+ maria
174
+ /test src/utils/calculator.ts
175
+ # AI generates comprehensive test suite
176
+ ```
177
+
178
+ ### Smart Git Commits
179
+ ```bash
180
+ maria
181
+ /commit
182
+ # AI analyzes changes and creates semantic commit message
183
+ ```
184
+
185
+ ### Code Review
186
+ ```bash
187
+ maria
188
+ /review src/components/UserProfile.tsx
189
+ # Get AI-powered code review with suggestions
190
+ ```
191
+
192
+ ### Generate Documentation
193
+ ```bash
194
+ maria
195
+ /docs
196
+ # Generate comprehensive documentation for your project
197
+ ```
198
+
199
+ ### Create Images
200
+ ```bash
201
+ maria
202
+ /image "a futuristic city at sunset"
203
+ # AI generates image based on prompt
204
+ ```
205
+
206
+ ## 🔧 Configuration
207
+
208
+ ### Environment Variables
209
+ ```bash
210
+ # AI Provider API Keys (optional)
211
+ OPENAI_API_KEY=sk-...
212
+ ANTHROPIC_API_KEY=sk-ant-...
213
+ GOOGLE_API_KEY=...
214
+ GROQ_API_KEY=gsk_...
215
+
216
+ # Local LLM Configuration (auto-detected)
217
+ OLLAMA_BASE_URL=http://localhost:11434
218
+ VLLM_BASE_URL=http://localhost:8000
219
+ LMSTUDIO_BASE_URL=http://localhost:1234
220
+ ```
221
+
222
+ ### Select AI Model
223
+ ```bash
224
+ maria
225
+ /model gpt-4o # Use GPT-4
226
+ /model claude-3 # Use Claude 3
227
+ /model gemini-pro # Use Gemini Pro
69
228
  ```
70
229
 
71
230
  ## 💻 Programmatic API
72
231
 
73
- ### Core Services Example
232
+ ### Use MARIA as a Library
74
233
 
75
234
  ```typescript
76
235
  import {
@@ -79,240 +238,82 @@ import {
79
238
  FileSystemService
80
239
  } from '@bonginkan/maria';
81
240
 
82
- // 🧠 Intelligent Routing
241
+ // Intelligent Routing
83
242
  const router = new IntelligentRouterService({
84
243
  confidenceThreshold: 0.85,
85
- enableLearning: true,
86
- enableConfirmation: false
244
+ enableLearning: true
87
245
  });
88
246
 
89
247
  const result = await router.route('optimize my database queries');
90
- console.log('Route:', result.command);
248
+ console.log('Command:', result.command);
91
249
  console.log('Confidence:', result.confidence);
92
250
 
93
- // 🧩 Dual Memory System
251
+ // Dual Memory System
94
252
  const memory = new DualMemoryEngine({
95
- system1: { maxKnowledgeNodes: 1000, accessDecayRate: 0.01 },
96
- system2: { maxReasoningTraces: 100, qualityThreshold: 0.7 },
97
- coordinator: {
98
- syncInterval: 1000,
99
- conflictResolutionStrategy: 'balanced',
100
- learningRate: 0.1
101
- }
102
- });
103
-
104
- await memory.store('project_context', {
105
- language: 'typescript',
106
- framework: 'react',
107
- patterns: ['hooks', 'components']
253
+ system1: { maxKnowledgeNodes: 1000 },
254
+ system2: { maxReasoningTraces: 100 }
108
255
  });
109
256
 
110
- const insights = await memory.query('best practices for React hooks');
257
+ await memory.store({ type: 'knowledge', data: {...} });
258
+ const insights = await memory.query('previous optimization patterns');
111
259
 
112
- // 📁 Safe File Operations
113
- const fs = new FileSystemService({
114
- enableBackup: true,
115
- enableSafeMode: true
260
+ // File System Operations
261
+ const fs = new FileSystemService({
262
+ safeMode: true,
263
+ atomicWrites: true
116
264
  });
117
265
 
118
- await fs.writeFile('/path/to/file.ts', content);
119
- await fs.copy('/src', '/backup');
120
- ```
121
-
122
- ## 🏗️ Architecture
123
-
124
- ### Minimal API Philosophy
125
-
126
- MARIA v3.0.0 follows **Minimal API, Maximum Power**:
127
-
128
- ```
129
- ┌─────────────────────────────────────────┐
130
- │ MARIA v3.0.0 │
131
- ├─────────────────────────────────────────┤
132
- │ 🧠 IntelligentRouterService │
133
- │ ├── Smart command routing │
134
- │ ├── Context-aware analysis │
135
- │ └── Learning capabilities │
136
- ├─────────────────────────────────────────┤
137
- │ 🧩 DualMemoryEngine │
138
- │ ├── System 1: Fast, intuitive │
139
- │ ├── System 2: Deliberate, analytical │
140
- │ └── Cross-session learning │
141
- ├─────────────────────────────────────────┤
142
- │ 📁 FileSystemService │
143
- │ ├── Atomic operations │
144
- │ ├── Backup management │
145
- │ └── Safety validation │
146
- └─────────────────────────────────────────┘
147
- ```
148
-
149
- ### Key Features
150
-
151
- | Feature | Description | Status |
152
- |---------|-------------|--------|
153
- | **Beautiful CLI** | Professional startup with AI provider selection | ✅ |
154
- | **Dynamic Version** | Auto-sourced from package.json | ✅ |
155
- | **3 Core Services** | Essential AI development capabilities | ✅ |
156
- | **Type Safety** | 100% TypeScript with strict mode | ✅ |
157
- | **Zero Config** | Works out of the box | ✅ |
158
- | **8 AI Providers** | OpenAI, Anthropic, Google, Groq, xAI, Ollama, LM Studio, vLLM | ✅ |
159
-
160
- ## 🚀 Performance
161
-
162
- ### Metrics
163
- - **Startup Time**: < 1000ms cold start
164
- - **Memory Usage**: < 256MB heap maximum
165
- - **Bundle Size**: 192KB (optimized)
166
- - **API Response**: < 100ms for core operations
167
-
168
- ### Benchmarks
169
- ```bash
170
- # Run performance benchmarks
171
- pnpm perf:bench
172
- ```
173
-
174
- ## 🛠️ Development
175
-
176
- ### Requirements
177
- - Node.js 20.10.0+
178
- - pnpm v10.10.0 (recommended)
179
- - TypeScript 5.0+
180
-
181
- ### Build Commands
182
- ```bash
183
- # Install dependencies
184
- pnpm install
185
-
186
- # Build the project
187
- pnpm build
188
-
189
- # Run tests
190
- pnpm test
191
-
192
- # Type checking
193
- pnpm type-check
194
-
195
- # Lint code
196
- pnpm lint
197
- ```
198
-
199
- ### Command Registry
200
- MARIA v3.0.0 includes a revolutionary command registry with:
201
- - **68+ Commands**: Full enterprise command suite
202
- - **Type Safety**: Runtime validation with TypeScript support
203
- - **Fuzzy Search**: Smart typo tolerance (`/hlp` → `/help`)
204
- - **Auto-Generation**: Automated type generation
205
- - **7 Categories**: From core commands to AI coding agent
206
-
207
- ```bash
208
- # Generate command types
209
- pnpm gen:cmd-types
210
-
211
- # Test registry integrity
212
- pnpm test:registry
266
+ await fs.writeFile('output.ts', generatedCode);
213
267
  ```
214
268
 
215
- ## 📱 AI Provider Support
216
-
217
- ### Cloud Providers
218
- - **OpenAI** - GPT models with vision and reasoning
219
- - **Anthropic** - Claude models with advanced reasoning
220
- - **Google** - Gemini models with multimodal capabilities
221
- - **Groq** - Ultra-fast inference
222
- - **xAI** - Grok models with real-time data
269
+ ## 📊 v3.0.3 Statistics
223
270
 
224
- ### Local Providers
225
- - **Ollama** - Local LLM runner
226
- - **LM Studio** - Local model management
227
- - **vLLM** - High-performance inference server
271
+ - **Total Commands**: 69 defined
272
+ - **Working Commands**: 50 (displayed in help)
273
+ - **Hidden Commands**: 11 (being fixed)
274
+ - **Categories**: 18
275
+ - **Success Rate**: 77%
276
+ - **Bundle Size**: ~1.4MB
277
+ - **Supported Providers**: 8+
228
278
 
229
- ## 🌍 Multi-Language Support
279
+ ## 🐛 What's Fixed in v3.0.3
230
280
 
231
- MARIA supports development in multiple languages:
232
- - 🇺🇸 **English** - Primary language
233
- - 🇯🇵 **Japanese** - 日本語サポート
234
- - 🇨🇳 **Chinese** - 中文支持
235
- - 🇰🇷 **Korean** - 한국어 지원
236
- - 🇻🇳 **Vietnamese** - Hỗ trợ tiếng Việt
281
+ - All undefined variable errors in core services
282
+ - `/clear` command execution errors
283
+ - `/model` command variable references
284
+ - `/version` command display
285
+ - Help command showing accurate counts
286
+ - Hidden broken commands from help display
287
+ - ✅ Dynamic command counting in `/help`
237
288
 
238
- ## 📚 Documentation
289
+ ## 🔮 Roadmap
239
290
 
240
- ### API Documentation
241
- - **IntelligentRouterService**: [API Reference](docs/api/router.md)
242
- - **DualMemoryEngine**: [API Reference](docs/api/memory.md)
243
- - **FileSystemService**: [API Reference](docs/api/filesystem.md)
244
-
245
- ### Guides
246
- - **Quick Start**: [Getting Started Guide](docs/quickstart.md)
247
- - **CLI Usage**: [Command Line Interface](docs/cli.md)
248
- - **Configuration**: [Configuration Guide](docs/config.md)
291
+ - [ ] Fix remaining 11 commands
292
+ - [ ] Add GPT-4 Vision support
293
+ - [ ] Enhanced memory persistence
294
+ - [ ] Team collaboration features
295
+ - [ ] Plugin system
296
+ - [ ] Web UI dashboard
249
297
 
250
298
  ## 🤝 Contributing
251
299
 
252
- We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
253
-
254
- ### Development Setup
255
- ```bash
256
- # Clone repository
257
- git clone https://github.com/bonginkan/maria.git
258
- cd maria
259
-
260
- # Install dependencies
261
- pnpm install
262
-
263
- # Run development build
264
- pnpm dev
265
-
266
- # Run tests
267
- pnpm test
268
-
269
- # Submit pull request
270
- ```
300
+ We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
271
301
 
272
302
  ## 📄 License
273
303
 
274
- **Dual License Model:**
275
- - **Personal Use**: MIT License - Free for individual developers
276
- - **Enterprise Use**: Commercial License - Contact for enterprise pricing
277
-
278
- See [LICENSE](LICENSE) for full details.
279
-
280
- ## 🔗 Links
304
+ MIT © 2025 Bonginkan Inc.
281
305
 
282
- - **NPM Package**: https://www.npmjs.com/package/@bonginkan/maria
283
- - **GitHub Repository**: https://github.com/bonginkan/maria
284
- - **Documentation**: https://docs.maria-ai.dev
285
- - **Support**: https://github.com/bonginkan/maria/issues
306
+ ## 🙏 Acknowledgments
286
307
 
287
- ## 🎉 What's New in v3.0.0
308
+ Thank you to all users who reported issues and helped make MARIA more stable and reliable.
288
309
 
289
- ### ✨ Revolutionary Changes
290
- - **Minimal API Surface**: Reduced from 50+ to 3 core services
291
- - **Beautiful CLI Experience**: Professional startup screen with provider selection
292
- - **Dynamic Configuration**: Self-updating version from package.json
293
- - **Zero-Config Philosophy**: Works perfectly out of the box
294
- - **Performance Optimized**: 192KB bundle, < 1s startup time
295
-
296
- ### 🚨 Breaking Changes from v2.x
297
- - **API Simplification**: Many internal services no longer exposed
298
- - **New CLI Interface**: Updated startup and provider selection flow
299
- - **Configuration Changes**: Streamlined config format
300
-
301
- ### 🔄 Migration Guide
302
- ```bash
303
- # Update to v3.0.0
304
- npm update @bonginkan/maria
305
-
306
- # Update imports
307
- // Before (v2.x)
308
- import { ComplexService, InternalAPI } from '@bonginkan/maria';
310
+ ---
309
311
 
310
- // After (v3.0.0)
311
- import { IntelligentRouterService, DualMemoryEngine } from '@bonginkan/maria';
312
- ```
312
+ **Need help?** Run `maria` then type `/help`
313
+ **Found a bug?** [Open an issue](https://github.com/bonginkan/maria/issues)
314
+ **Want to contribute?** [Submit a PR](https://github.com/bonginkan/maria/pulls)
313
315
 
314
316
  ---
315
317
 
316
- **Experience the power of minimal design. Experience MARIA v3.0.0.**
317
-
318
- *© 2025 Bonginkan Inc. - AI-Powered Development Platform*
318
+ *MARIA - Your AI-Powered Development Assistant*
319
+ *Making development faster, smarter, and more enjoyable.*
@@ -34749,11 +34749,31 @@ Vim keybindings disabled.`;
34749
34749
  try {
34750
34750
  const fs22 = await import("fs/promises");
34751
34751
  const _path = await import("path");
34752
- const _packagePath = _path.resolve(process.cwd(), "package.json");
34753
- const _packageData = JSON.parse(await fs22.readFile(_packagePath, "utf8"));
34752
+ const possiblePaths = [
34753
+ _path.resolve(__dirname, "../package.json"),
34754
+ // From dist directory
34755
+ _path.resolve(__dirname, "../../package.json"),
34756
+ // From nested dist
34757
+ _path.resolve(process.cwd(), "package.json"),
34758
+ // Current directory
34759
+ "/opt/homebrew/lib/node_modules/@bonginkan/maria/package.json"
34760
+ // Global npm
34761
+ ];
34762
+ let _packageData = null;
34763
+ for (const packagePath of possiblePaths) {
34764
+ try {
34765
+ const data2 = await fs22.readFile(packagePath, "utf8");
34766
+ _packageData = JSON.parse(data2);
34767
+ if (_packageData["version"]) {
34768
+ break;
34769
+ }
34770
+ } catch {
34771
+ }
34772
+ }
34773
+ const version2 = _packageData?.["version"] || "3.0.3";
34754
34774
  return {
34755
34775
  success: true,
34756
- message: `MARIA CODE CLI v${_packageData["version"] || "1.0.0"}
34776
+ message: `MARIA CODE CLI v${version2}
34757
34777
 
34758
34778
  AI-Powered Development Platform
34759
34779
  \xA9 2025 Bonginkan Inc.
@@ -34763,7 +34783,7 @@ TypeScript Monorepo`
34763
34783
  } catch {
34764
34784
  return {
34765
34785
  success: true,
34766
- message: `MARIA CODE CLI v1.0.0
34786
+ message: `MARIA CODE CLI v3.0.3
34767
34787
 
34768
34788
  AI-Powered Development Platform
34769
34789
  \xA9 2025 Bonginkan Inc.
@@ -50440,8 +50460,8 @@ ${modeEmoji} ${modeNames[inputType] || "Interactive Mode"}
50440
50460
  // package.json
50441
50461
  var package_default = {
50442
50462
  name: "@bonginkan/maria",
50443
- version: "3.0.2",
50444
- description: "\u{1F680} MARIA v3.0.2 - Stable & Reliable. 50+ working commands, all core features fixed. Enterprise-ready AI development platform.",
50463
+ version: "3.0.4",
50464
+ description: "\u{1F680} MARIA v3.0.4 - Dynamic version display. 50+ working commands with updated documentation. Enterprise-ready AI development platform.",
50445
50465
  keywords: [
50446
50466
  "ai",
50447
50467
  "cli",
@@ -50693,7 +50713,7 @@ var package_default = {
50693
50713
  figures: "^6.1.0",
50694
50714
  "lint-staged": "^16.1.5",
50695
50715
  prettier: "^3.2.4",
50696
- "react-devtools-core": "^6.1.5",
50716
+ "react-devtools-core": "^4.28.5",
50697
50717
  "ts-node": "^10.9.2",
50698
50718
  tsup: "^8.0.1",
50699
50719
  typescript: "5.3.3",