@voria/cli 0.0.2

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 (67) hide show
  1. package/README.md +439 -0
  2. package/bin/voria +730 -0
  3. package/docs/ARCHITECTURE.md +419 -0
  4. package/docs/CHANGELOG.md +189 -0
  5. package/docs/CONTRIBUTING.md +447 -0
  6. package/docs/DESIGN_DECISIONS.md +380 -0
  7. package/docs/DEVELOPMENT.md +535 -0
  8. package/docs/EXAMPLES.md +434 -0
  9. package/docs/INSTALL.md +335 -0
  10. package/docs/IPC_PROTOCOL.md +310 -0
  11. package/docs/LLM_INTEGRATION.md +416 -0
  12. package/docs/MODULES.md +470 -0
  13. package/docs/PERFORMANCE.md +346 -0
  14. package/docs/PLUGINS.md +432 -0
  15. package/docs/QUICKSTART.md +184 -0
  16. package/docs/README.md +133 -0
  17. package/docs/ROADMAP.md +346 -0
  18. package/docs/SECURITY.md +334 -0
  19. package/docs/TROUBLESHOOTING.md +565 -0
  20. package/docs/USER_GUIDE.md +700 -0
  21. package/package.json +63 -0
  22. package/python/voria/__init__.py +8 -0
  23. package/python/voria/__pycache__/__init__.cpython-312.pyc +0 -0
  24. package/python/voria/__pycache__/engine.cpython-312.pyc +0 -0
  25. package/python/voria/core/__init__.py +1 -0
  26. package/python/voria/core/__pycache__/__init__.cpython-312.pyc +0 -0
  27. package/python/voria/core/__pycache__/setup.cpython-312.pyc +0 -0
  28. package/python/voria/core/agent/__init__.py +9 -0
  29. package/python/voria/core/agent/__pycache__/__init__.cpython-312.pyc +0 -0
  30. package/python/voria/core/agent/__pycache__/loop.cpython-312.pyc +0 -0
  31. package/python/voria/core/agent/loop.py +343 -0
  32. package/python/voria/core/executor/__init__.py +19 -0
  33. package/python/voria/core/executor/__pycache__/__init__.cpython-312.pyc +0 -0
  34. package/python/voria/core/executor/__pycache__/executor.cpython-312.pyc +0 -0
  35. package/python/voria/core/executor/executor.py +431 -0
  36. package/python/voria/core/github/__init__.py +33 -0
  37. package/python/voria/core/github/__pycache__/__init__.cpython-312.pyc +0 -0
  38. package/python/voria/core/github/__pycache__/client.cpython-312.pyc +0 -0
  39. package/python/voria/core/github/client.py +438 -0
  40. package/python/voria/core/llm/__init__.py +55 -0
  41. package/python/voria/core/llm/__pycache__/__init__.cpython-312.pyc +0 -0
  42. package/python/voria/core/llm/__pycache__/base.cpython-312.pyc +0 -0
  43. package/python/voria/core/llm/__pycache__/claude_provider.cpython-312.pyc +0 -0
  44. package/python/voria/core/llm/__pycache__/gemini_provider.cpython-312.pyc +0 -0
  45. package/python/voria/core/llm/__pycache__/modal_provider.cpython-312.pyc +0 -0
  46. package/python/voria/core/llm/__pycache__/model_discovery.cpython-312.pyc +0 -0
  47. package/python/voria/core/llm/__pycache__/openai_provider.cpython-312.pyc +0 -0
  48. package/python/voria/core/llm/base.py +152 -0
  49. package/python/voria/core/llm/claude_provider.py +188 -0
  50. package/python/voria/core/llm/gemini_provider.py +148 -0
  51. package/python/voria/core/llm/modal_provider.py +228 -0
  52. package/python/voria/core/llm/model_discovery.py +289 -0
  53. package/python/voria/core/llm/openai_provider.py +146 -0
  54. package/python/voria/core/patcher/__init__.py +9 -0
  55. package/python/voria/core/patcher/__pycache__/__init__.cpython-312.pyc +0 -0
  56. package/python/voria/core/patcher/__pycache__/patcher.cpython-312.pyc +0 -0
  57. package/python/voria/core/patcher/patcher.py +375 -0
  58. package/python/voria/core/planner/__init__.py +1 -0
  59. package/python/voria/core/setup.py +201 -0
  60. package/python/voria/core/token_manager/__init__.py +29 -0
  61. package/python/voria/core/token_manager/__pycache__/__init__.cpython-312.pyc +0 -0
  62. package/python/voria/core/token_manager/__pycache__/manager.cpython-312.pyc +0 -0
  63. package/python/voria/core/token_manager/manager.py +241 -0
  64. package/python/voria/engine.py +1185 -0
  65. package/python/voria/plugins/__init__.py +1 -0
  66. package/python/voria/plugins/python/__init__.py +1 -0
  67. package/python/voria/plugins/typescript/__init__.py +1 -0
package/docs/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # voria Documentation
2
+
3
+ Welcome to voria's comprehensive documentation. This folder contains everything you need to understand, use, and contribute to voria.
4
+
5
+ ## Documentation Map
6
+
7
+ ### Getting Started (Start Here!)
8
+ - **[INSTALL.md](INSTALL.md)** - Installation and setup instructions
9
+ - **[QUICKSTART.md](QUICKSTART.md)** - Get voria running in 5 minutes
10
+ - **[USER_GUIDE.md](USER_GUIDE.md)** - Complete usage guide and commands
11
+ - **[EXAMPLES.md](EXAMPLES.md)** - Real-world usage examples
12
+
13
+ ### Understanding voria
14
+ - **[ARCHITECTURE.md](ARCHITECTURE.md)** - System design and component overview
15
+ - **[IPC_PROTOCOL.md](IPC_PROTOCOL.md)** - NDJSON protocol specification
16
+ - **[DESIGN_DECISIONS.md](DESIGN_DECISIONS.md)** - Why we made certain choices
17
+ - **[MODULES.md](MODULES.md)** - Detailed module documentation
18
+
19
+ ### Development & Extension
20
+ - **[DEVELOPMENT.md](DEVELOPMENT.md)** - Development environment setup
21
+ - **[CONTRIBUTING.md](CONTRIBUTING.md)** - Contributor guidelines
22
+ - **[PLUGINS.md](PLUGINS.md)** - Writing custom plugins
23
+ - **[LLM_INTEGRATION.md](LLM_INTEGRATION.md)** - Adding new LLM providers
24
+
25
+ ### Operations & Reference
26
+ - **[PERFORMANCE.md](PERFORMANCE.md)** - Performance tuning and optimization
27
+ - **[SECURITY.md](SECURITY.md)** - Security best practices
28
+ - **[TROUBLESHOOTING.md](TROUBLESHOOTING.md)** - Common issues and solutions
29
+ - **[ROADMAP.md](ROADMAP.md)** - Feature roadmap and future plans
30
+
31
+ ## Quick Navigation
32
+
33
+ **I want to...**
34
+ - Get started → [QUICKSTART.md](QUICKSTART.md)
35
+ - Learn to use voria → [USER_GUIDE.md](USER_GUIDE.md)
36
+ - See examples → [EXAMPLES.md](EXAMPLES.md)
37
+ - Understand how it works → [ARCHITECTURE.md](ARCHITECTURE.md)
38
+ - Contribute code → [CONTRIBUTING.md](CONTRIBUTING.md)
39
+ - Set up development → [DEVELOPMENT.md](DEVELOPMENT.md)
40
+ - Write a plugin → [PLUGINS.md](PLUGINS.md)
41
+ - Add an LLM provider → [LLM_INTEGRATION.md](LLM_INTEGRATION.md)
42
+ - Fix a problem → [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
43
+ - Optimize performance → [PERFORMANCE.md](PERFORMANCE.md)
44
+ - Check security → [SECURITY.md](SECURITY.md)
45
+
46
+ ## Reading Order
47
+
48
+ **For Users:**
49
+ 1. [QUICKSTART.md](QUICKSTART.md)
50
+ 2. [USER_GUIDE.md](USER_GUIDE.md)
51
+ 3. [EXAMPLES.md](EXAMPLES.md)
52
+ 4. [ARCHITECTURE.md](ARCHITECTURE.md) (optional, for understanding)
53
+
54
+ **For Developers:**
55
+ 1. [DEVELOPMENT.md](DEVELOPMENT.md)
56
+ 2. [ARCHITECTURE.md](ARCHITECTURE.md)
57
+ 3. [IPC_PROTOCOL.md](IPC_PROTOCOL.md)
58
+ 4. [MODULES.md](MODULES.md)
59
+ 5. [CONTRIBUTING.md](CONTRIBUTING.md)
60
+
61
+ **For Contributors:**
62
+ 1. [CONTRIBUTING.md](CONTRIBUTING.md)
63
+ 2. [DEVELOPMENT.md](DEVELOPMENT.md)
64
+ 3. [MODULES.md](MODULES.md)
65
+ 4. Specific module docs (e.g., [PLUGINS.md](PLUGINS.md), [LLM_INTEGRATION.md](LLM_INTEGRATION.md))
66
+
67
+ ## voria Overview
68
+
69
+ voria is an AI-powered CLI tool that helps open source contributors fix issues automatically:
70
+
71
+ ```bash
72
+ # Run one command
73
+ voria issue 42
74
+
75
+ # voria will:
76
+ # 1. Fetch issue from GitHub
77
+ # 2. Analyze the codebase
78
+ # 3. Plan a fix (using AI)
79
+ # 4. Generate code patches
80
+ # 5. Apply and test changes
81
+ # 6. Create a pull request
82
+ ```
83
+
84
+ ## Architecture at a Glance
85
+
86
+ ```
87
+ User Interface (Rust CLI)
88
+
89
+ NDJSON Protocol (stdin/stdout)
90
+
91
+ Python Engine (LLM + GitHub + Testing)
92
+
93
+ LLM Providers (OpenAI, Gemini, Claude, Modal)
94
+ ```
95
+
96
+ ## What's Included
97
+
98
+ - **Rust CLI** - High-performance command-line interface
99
+ - **Python Engine** - AI intelligence and orchestration
100
+ - **NDJSON Protocol** - Cross-platform IPC
101
+ - **LLM Support** - 4 AI providers (OpenAI, Gemini, Claude, Modal)
102
+ - **GitHub Integration** - Issue and PR automation
103
+ - **Test Orchestration** - Automatic testing and validation
104
+
105
+ ## Key Features
106
+
107
+ - AI-powered issue analysis
108
+ - Automatic code patch generation
109
+ - Integrated test execution
110
+ - Iterative refinement (up to 5 itrations)
111
+ - Multi-provider LLM support
112
+ - Automatic backup and rollback
113
+ - Token usage tracking
114
+ - Production-ready error handling
115
+
116
+ ## External Resources
117
+
118
+ - [GitHub Repository](https://github.com/Srizdebnath/voria)
119
+ - [Main README](../README.md)
120
+ - [Issue Tracker](https://github.com/Srizdebnath/voria/issues)
121
+ - [Discussions](https://github.com/Srizdebnath/voria/discussions)
122
+
123
+ ## Questions?
124
+
125
+ - Check [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for common issues
126
+ - Read [EXAMPLES.md](EXAMPLES.md) for usage patterns
127
+ - See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution process
128
+ - Open an issue on GitHub
129
+
130
+ ---
131
+
132
+ **Last Updated:** April 10, 2026
133
+ **Documentation Version:** 2.0
@@ -0,0 +1,346 @@
1
+ # Roadmap
2
+
3
+ voria's feature roadmap and product vision.
4
+
5
+ ## Current Status: PRODUCTION READY ✅
6
+
7
+ voria is feature-complete for its first official release (**v0.0.1**). All core orchestration, LLM, and GitHub integration components are stable and distributed via npm.
8
+
9
+ **Phase 1: Core Orchestration** ✅ COMPLETE
10
+ - Node.js CLI entry point with premium blue theme
11
+ - Python Engine for AI logic and agent loop
12
+ - NDJSON-based Inter-Process Communication (IPC)
13
+
14
+ **Phase 2: LLM Integration** ✅ COMPLETE
15
+ - Support for Claude, OpenAI, Gemini, Modal, and Kimi
16
+ - Token tracking and budget management
17
+ - Dynamic model discovery
18
+
19
+ **Phase 3: GitHub Integration** ✅ COMPLETE
20
+ - Issue fetching and listing
21
+ - Automatic PR creation and branch management
22
+ - Intelligent fix generation for GitHub issues
23
+
24
+ **Phase 4: Testing & Iteration** ✅ COMPLETE
25
+ - Multi-framework test execution (pytest, jest, go test)
26
+ - Failure analysis and automatic refinement (up to 5 iterations)
27
+ - Safe patch application with rollback support
28
+
29
+ **Phase 5: First Release (v0.0.1)** ✅ COMPLETE
30
+ - Public publication to npm as `@srizdebnath/voria`
31
+ - Integrated documentation and help system
32
+ - 100% test pass rate for CLI and Engine
33
+
34
+ ---
35
+
36
+ ## What's Next: Phase 9 & Beyond
37
+
38
+ ### Phase 9: Advanced Analysis (v0.2.0) 📋 PLANNED
39
+
40
+ #### Dependency Graph Analysis
41
+ **Status:** Design phase
42
+ **Impact:** Higher-quality patches by understanding code relationships
43
+ **Implementation:**
44
+ ```python
45
+ # voria will analyze call chains
46
+ graph = CodeGraph(repo)
47
+ caller_chain = graph.find_callers("function_name") # Who calls this?
48
+ impact = graph.estimate_impact(file_change) # What breaks?
49
+ ```
50
+
51
+ **Benefits:**
52
+ - Avoid breaking dependent code
53
+ - Better context for LLM
54
+ - Predict side effects
55
+
56
+ #### File Relationship Understanding
57
+ **Status:** Design phase
58
+ **Features:**
59
+ - Import chain analysis
60
+ - Shared data structure mapping
61
+ - Side effect prediction
62
+ - Cross-module behavior analysis
63
+
64
+ #### Risk Scoring
65
+ **Status:** Design phase
66
+ **Example Scores:**
67
+ ```
68
+ Low risk (0-2):
69
+ ✅ Add new method to unused class
70
+ ✅ Update docstring
71
+ ✅ Add new config option
72
+
73
+ Medium risk (3-5):
74
+ 🟡 Modify function signature
75
+ 🟡 Change return type
76
+ 🟡 Remove deprecated code
77
+
78
+ High risk (6-10):
79
+ ⚠️ Modify shared data structure
80
+ ⚠️ Change core orchestration logic
81
+ ⚠️ Update IPC protocol
82
+ ```
83
+
84
+ #### Context-Aware Selection
85
+ **Status:** Design phase
86
+ **Benefit:** Only include affected code in context window
87
+ ```
88
+ # voria will automatically reduce context size
89
+ Full repo: 50,000 lines
90
+ Affected modules: 2,000 lines # 96% reduction
91
+ Context sent to LLM: 2,000 lines # Same quality, less cost
92
+ ```
93
+
94
+ ---
95
+
96
+ ### Phase 10: Enterprise Features (v0.3.0) 📋 PLANNED
97
+
98
+ #### Organization Management
99
+ **Status:** Planning
100
+ **Features:**
101
+ - Multiple teams per organization
102
+ - Role-based access control (RBAC)
103
+ - Resource quotas by team
104
+ - Cost allocation to projects
105
+ - Team dashboards and analytics
106
+
107
+ #### Team Collaboration
108
+ **Status:** Planning
109
+ **Features:**
110
+ - Pull request integration (voria creates PRs)
111
+ - Code review requests
112
+ - Approval workflows
113
+ - Merge policies enforcement
114
+ - Team notifications and alerts
115
+
116
+ #### Compliance & Audit
117
+ **Status:** Planning
118
+ **Features:**
119
+ - Detailed audit logs
120
+ - Who made what change and when
121
+ - Cost reporting and analytics
122
+ - Approval trail for regulated environments
123
+ - HIPAA/SOC2 readiness
124
+ - Compliance certifications
125
+
126
+ ---
127
+
128
+ ## Future Capabilities (Phase 11+)
129
+
130
+ ### Distributed Execution
131
+ 🔮 **Concept:** Run multiple issue fixes in parallel
132
+ **Benefits:** Handle backlogs faster
133
+ **Challenge:** Coordinating across team members
134
+ **Timeline:** Q3 2026
135
+
136
+ ### IDE Integration
137
+ 🔮 **Concept:** voria inside VS Code / JetBrains / IntelliJ
138
+ **Benefits:** Real-time AI assistance while coding
139
+ **Challenge:** UI complexity in IDE constraints
140
+ **Timeline:** Q4 2026
141
+
142
+ ### Multi-Provider Optimization
143
+ 🔮 **Concept:** Use different LLMs for different tasks
144
+ **Example:**
145
+ - Fast model for code analysis
146
+ - Best quality for generation
147
+ - Specialized models for specific languages
148
+ **Timeline:** Q3 2026
149
+
150
+ ### Predictive Testing
151
+ 🔮 **Concept:** Run tests in parallel before applying patches
152
+ **Benefits:** Faster feedback, better quality
153
+ **Challenge:** Managing test infrastructure
154
+ **Timeline:** Q4 2026
155
+
156
+ ### CI/CD Integration
157
+ 🔮 **Concept:** voria as a GitHub Action, GitLab/Jenkins plugin
158
+ **Benefits:** Automated fixes in CI/CD pipelines
159
+ **Timeline:** Q2 2026
160
+
161
+ ---
162
+
163
+ ## Release Timeline
164
+
165
+ | Version | Status | Release Date | Key Features |
166
+ |---------|--------|--------------|--------------|
167
+ | v0.0.1 | ✅ Released | April 2026 | Basic foundation |
168
+ | v0.0.1 | ✅ Released | April 2026 | Full LLM support |
169
+ | v0.0.1 | ✅ Released | Apr 10, 2026 | Production-ready |
170
+ | v0.1.0 | 📋 Planned | Q2 2026 | Advanced analysis |
171
+ | v0.2.0 | 📋 Planned | Q3 2026 | Enterprise features |
172
+ | vv0.0.1 | 📋 Planned | Q4 2026 | Stable API + IDE integration |
173
+
174
+ ---
175
+
176
+ ## Success Metrics
177
+
178
+ **Completed Goals:**
179
+ - ✅ 5 LLM providers integrated
180
+ - ✅ 100% test suite passing
181
+ - ✅ All phases shipped and tested
182
+ - ✅ Published to npm as global tool
183
+ - ✅ Production-ready code with no critical bugs
184
+ - ✅ Multi-framework test support (pytest, jest, go)
185
+ - ✅ GitHub issue fetching and PR creation
186
+ - ✅ Safe patch application with rollback
187
+
188
+ **Upcoming Metrics:**
189
+ - 📊 Advanced code analysis (dependency graphs)
190
+ - 📊 Risk scoring engine
191
+ - 📊 Enterprise feature parity
192
+ - 📊 Community plugins and extensions
193
+
194
+ ---
195
+
196
+ ## How to Contribute
197
+
198
+ We're looking for contributions in several areas:
199
+
200
+ **High Priority:**
201
+ - [ ] Dependency graph analysis implementation
202
+ - [ ] Risk scoring engine
203
+ - [ ] Additional language support
204
+ - [ ] Enhanced IDE integrations
205
+
206
+ **Medium Priority:**
207
+ - [ ] Performance optimizations
208
+ - [ ] Better error messages
209
+ - [ ] Documentation improvements
210
+ - [ ] CI/CD plugin templates
211
+
212
+ **Nice to Have:**
213
+ - [ ] Web dashboard
214
+ - [ ] Advanced analytics
215
+ - [ ] Custom LLM integration templates
216
+ - [ ] Plugin marketplace
217
+
218
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
219
+ - Interactive configuration
220
+ - Plugin system
221
+ - More LLM providers (Modal, Gemini, Claude, Kimi)
222
+
223
+ ### v0.0.1 (April 2026) ✅
224
+ - Enhanced test failure analysis
225
+ - Batch processing
226
+ - Performance improvements
227
+ - Documentation overhaul
228
+
229
+ ---
230
+
231
+ ## Community Contribution Opportunities
232
+
233
+ ### Easy (Good for Newcomers)
234
+ - [ ] Add new test framework support (Jasmine, Jest, Vitest)
235
+ - [ ] Add language support (Go, Ruby, PHP)
236
+ - [ ] Documentation improvements
237
+ - [ ] Bug fixes in open issues
238
+
239
+ ### Medium (Getting Serious)
240
+ - [ ] New LLM provider support (Anthropic, Mistral, Llama)
241
+ - [ ] VCS system support (Gitea, Gitlab)
242
+ - [ ] CI/CD integrations (GH Actions, GitLab CI, Jenkins)
243
+ - [ ] Performance optimizations
244
+
245
+ ### Hard (Expert Level)
246
+ - [ ] Graph analysis implementation
247
+ - [ ] Risk analysis engine
248
+ - [ ] Team collaboration features
249
+ - [ ] Audit logging system
250
+
251
+ **Want to help?** See [CONTRIBUTING.md](CONTRIBUTING.md)
252
+
253
+ ---
254
+
255
+ ## Feature Request Process
256
+
257
+ ### How to Request Features
258
+
259
+ 1. **Check existing requests** - https://github.com/Srizdebnath/voria/discussions
260
+ 2. **Create discussion** with:
261
+ - What problem it solves
262
+ - How you'd use it
263
+ - Why it matters
264
+ 3. **Get feedback** - Community votes/discusses
265
+ 4. **Implement or report** - We prioritize based on demand
266
+
267
+ ### Prioritization
268
+
269
+ We use this framework:
270
+
271
+ | Priority | Impact | Effort | Timeline |
272
+ |----------|--------|--------|----------|
273
+ | 🔴 Critical | High | Low | This week |
274
+ | 🟠 High | High | Medium | This month |
275
+ | 🟡 Medium | Medium | Medium | This quarter |
276
+ | 🟢 Low | Low-Med | Any | Later |
277
+ | ⚪ Nice-to-have | Low | High | When ready |
278
+
279
+ ---
280
+
281
+ ## Success Metrics
282
+
283
+ We track progress by:
284
+
285
+ - **Adoption:** Downloads, GitHub stars, active users
286
+ - **Quality:** Bug reports, test coverage, performance
287
+ - **Community:** Contributors, issues resolved, discussions
288
+ - **Enterprise:** Organizations using voria, team seats
289
+
290
+
291
+ ---
292
+
293
+ ## Feedback Loop
294
+
295
+ ### How We Gather Input
296
+ 1. **GitHub Issues** - Bug reports
297
+ 2. **Discussions** - Feature ideas
298
+ 3. **Usage telemetry** - What features are used
299
+ 4. **Direct feedback** - Email to support@voria.dev
300
+
301
+ ### How Decisions Are Made
302
+ 1. **Community votes** on proposals
303
+ 2. **Roadmap alignment** with product strategy
304
+ 3. **Implementation complexity** assessment
305
+ 4. **Resource availability**
306
+ 5. **Time to value** consideration
307
+
308
+ ---
309
+
310
+ ## Getting Started with Beta Features
311
+
312
+ ### Enable Beta Features
313
+
314
+ ```bash
315
+ # Add to ~/.voria/config.json
316
+ {
317
+ "beta_features": ["graph_analysis", "risk_scoring"],
318
+ "enable_telemetry": true # Help us improve
319
+ }
320
+ ```
321
+
322
+ ### Provide Feedback
323
+
324
+ Found an issue with a beta feature?
325
+ ```bash
326
+ voria --report-beta-issue graph-analysis
327
+ # Opens form to describe issue
328
+ ```
329
+
330
+ ---
331
+
332
+ ## Contact & Support
333
+
334
+ - **GitHub:** [Discussions](https://github.com/Srizdebnath/voria/discussions)
335
+ - **Email:** srizd449@gmail.com
336
+
337
+
338
+ ---
339
+
340
+ **Last Updated:** April 2026
341
+ **Next Review:** End of Q1 2026
342
+
343
+ **See Also:**
344
+ - [ARCHITECTURE.md](ARCHITECTURE.md) - Current system design
345
+ - [DESIGN_DECISIONS.md](DESIGN_DECISIONS.md) - Why things are the way they are
346
+ - [CONTRIBUTING.md](CONTRIBUTING.md) - How to contribute