recoder-code 2.4.3 → 2.4.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/package.json +1 -1
- package/.devcontainer/Dockerfile +0 -94
- package/.devcontainer/README.md +0 -280
- package/.devcontainer/devcontainer.json +0 -103
- package/.devcontainer/init-firewall.sh +0 -151
- package/.devcontainer/recoder-devcontainer.json +0 -73
- package/.devcontainer/recoder-dockerfile +0 -74
- package/.devcontainer/recoder-init.sh +0 -213
- package/.devcontainer/test-integration.sh +0 -130
- package/CHANGELOG.md +0 -233
- package/CODE_OF_CONDUCT.md +0 -187
- package/CONTRIBUTING.md +0 -50
- package/LICENSE.md +0 -21
- package/SANDBOX_QUICK_REFERENCE.md +0 -168
- package/SANDBOX_SETUP_GUIDE.md +0 -331
- package/validate.js +0 -81
package/CHANGELOG.md
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to the Enhanced AI CLI project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [2.0.0] - 2025-09-19
|
|
9
|
-
|
|
10
|
-
### 🚀 **Major Release - Enhanced AI CLI Transformation**
|
|
11
|
-
|
|
12
|
-
This is a complete transformation from a basic AI CLI to an enterprise-grade development assistant with advanced features.
|
|
13
|
-
|
|
14
|
-
### ✨ **Added**
|
|
15
|
-
|
|
16
|
-
#### **Intelligent Model Selection System**
|
|
17
|
-
- **32+ AI models** with automatic selection based on task type
|
|
18
|
-
- **Claude Sonnet 4** as primary model with intelligent fallbacks
|
|
19
|
-
- **Free model prioritization** (Kimi Dev 72B, DeepSeek V3.1, Qwen models)
|
|
20
|
-
- **Cost optimization** with preference for high-quality free models
|
|
21
|
-
- **Context-aware switching** based on complexity and requirements
|
|
22
|
-
- **Performance tracking** and model effectiveness metrics
|
|
23
|
-
|
|
24
|
-
#### **Advanced Rules Engine**
|
|
25
|
-
- **Auto-discovery** of project rules from configuration files
|
|
26
|
-
- **10 rule categories** including security, performance, architecture
|
|
27
|
-
- **Real-time validation** with intelligent suggestions
|
|
28
|
-
- **Project-specific customization** and rule inheritance
|
|
29
|
-
- **Automated compliance checking** and violation reporting
|
|
30
|
-
- **Integration with popular tools** (ESLint, Prettier, TypeScript)
|
|
31
|
-
|
|
32
|
-
#### **Smart Task Automation**
|
|
33
|
-
- **File watchers** for automatic code reviews and security scans
|
|
34
|
-
- **Git hooks integration** with quality gates and automated testing
|
|
35
|
-
- **Workflow orchestration** with parallel execution and conditions
|
|
36
|
-
- **Custom automation templates** and scheduling
|
|
37
|
-
- **Event-driven architecture** for cross-system communication
|
|
38
|
-
- **Performance monitoring** and optimization triggers
|
|
39
|
-
|
|
40
|
-
#### **Native Development Tools Integration**
|
|
41
|
-
- **Docker**: Build, run, and monitor containers with optimization
|
|
42
|
-
- **Git**: Smart commits, hooks, and automated quality gates
|
|
43
|
-
- **NPM**: Security auditing and dependency management
|
|
44
|
-
- **IDEs**: VS Code/Cursor workspace configuration
|
|
45
|
-
- **Databases**: PostgreSQL, MySQL, MongoDB, Redis monitoring
|
|
46
|
-
- **Performance**: Lighthouse audits and bundle size tracking
|
|
47
|
-
|
|
48
|
-
#### **Enterprise Security & Compliance**
|
|
49
|
-
- **Multi-factor authentication** and role-based access control
|
|
50
|
-
- **API key encryption** and rotation capabilities
|
|
51
|
-
- **Comprehensive audit logging** for compliance requirements
|
|
52
|
-
- **SOC 2, GDPR, HIPAA** compliance monitoring
|
|
53
|
-
- **Advanced security scanning** and vulnerability assessment
|
|
54
|
-
- **Policy enforcement** and governance features
|
|
55
|
-
|
|
56
|
-
#### **Enhanced Setup & Configuration**
|
|
57
|
-
- **Interactive setup wizard** with comprehensive configuration
|
|
58
|
-
- **Model selection guidance** with performance recommendations
|
|
59
|
-
- **Automation feature configuration** and testing
|
|
60
|
-
- **Development tools detection** and integration setup
|
|
61
|
-
- **Enterprise deployment** support and documentation
|
|
62
|
-
|
|
63
|
-
#### **Comprehensive Documentation & Examples**
|
|
64
|
-
- **Usage examples** for all major features
|
|
65
|
-
- **Advanced configuration** guides and best practices
|
|
66
|
-
- **Enterprise deployment** documentation
|
|
67
|
-
- **Interactive demo scenarios** with feature showcase
|
|
68
|
-
- **API documentation** and integration guides
|
|
69
|
-
- **Performance optimization** recommendations
|
|
70
|
-
|
|
71
|
-
#### **Performance & Optimization**
|
|
72
|
-
- **Intelligent caching** for frequently accessed data
|
|
73
|
-
- **Bundle size optimization** and dependency cleanup
|
|
74
|
-
- **Memory management** and performance monitoring
|
|
75
|
-
- **Scalability testing** and load balancing support
|
|
76
|
-
- **Performance benchmarking** tools and metrics
|
|
77
|
-
- **Cost tracking** and optimization suggestions
|
|
78
|
-
|
|
79
|
-
### 🔧 **Enhanced**
|
|
80
|
-
|
|
81
|
-
#### **Core CLI Functionality**
|
|
82
|
-
- **Interactive mode** with advanced slash commands
|
|
83
|
-
- **Streaming responses** for better user experience
|
|
84
|
-
- **Context management** and session persistence
|
|
85
|
-
- **Error handling** and recovery mechanisms
|
|
86
|
-
- **Logging and debugging** capabilities
|
|
87
|
-
- **Plugin system** for extensibility
|
|
88
|
-
|
|
89
|
-
#### **Configuration System**
|
|
90
|
-
- **Environment-specific** configurations
|
|
91
|
-
- **Dynamic model switching** based on context
|
|
92
|
-
- **Feature flag management** for gradual rollouts
|
|
93
|
-
- **Performance tuning** options and presets
|
|
94
|
-
- **Security configuration** and policy enforcement
|
|
95
|
-
- **Monitoring and alerting** setup
|
|
96
|
-
|
|
97
|
-
### 🔒 **Security**
|
|
98
|
-
- **Vulnerability scanning** for dependencies and code
|
|
99
|
-
- **Secret detection** and secure storage mechanisms
|
|
100
|
-
- **Input validation** and sanitization
|
|
101
|
-
- **Secure communication** with HTTPS enforcement
|
|
102
|
-
- **Permission management** and access controls
|
|
103
|
-
- **Audit trails** and compliance reporting
|
|
104
|
-
|
|
105
|
-
### 📊 **Metrics & Analytics**
|
|
106
|
-
- **Usage tracking** and performance metrics
|
|
107
|
-
- **Model effectiveness** and cost analysis
|
|
108
|
-
- **Feature adoption** and user behavior insights
|
|
109
|
-
- **Error tracking** and performance monitoring
|
|
110
|
-
- **Scalability metrics** and capacity planning
|
|
111
|
-
- **Security incident** tracking and reporting
|
|
112
|
-
|
|
113
|
-
### 🐛 **Fixed**
|
|
114
|
-
- **Memory leaks** in long-running processes
|
|
115
|
-
- **Performance bottlenecks** in file processing
|
|
116
|
-
- **Configuration loading** issues
|
|
117
|
-
- **Error handling** edge cases
|
|
118
|
-
- **Dependencies conflicts** and version issues
|
|
119
|
-
- **Cross-platform compatibility** problems
|
|
120
|
-
|
|
121
|
-
### 🗑️ **Removed**
|
|
122
|
-
- **Legacy API integrations** and deprecated features
|
|
123
|
-
- **Unused dependencies** and redundant code
|
|
124
|
-
- **Outdated configuration** options
|
|
125
|
-
- **Insecure practices** and vulnerable patterns
|
|
126
|
-
|
|
127
|
-
### 📈 **Performance**
|
|
128
|
-
- **50% faster startup time** through optimized loading
|
|
129
|
-
- **60% memory usage reduction** with better management
|
|
130
|
-
- **40% smaller bundle size** through dependency optimization
|
|
131
|
-
- **90% improvement** in concurrent operation handling
|
|
132
|
-
- **Real-time performance monitoring** and optimization
|
|
133
|
-
|
|
134
|
-
### 🔄 **Migration Guide**
|
|
135
|
-
- **Automatic migration** from 1.x configuration
|
|
136
|
-
- **Compatibility layer** for existing scripts
|
|
137
|
-
- **Step-by-step upgrade** instructions
|
|
138
|
-
- **Feature mapping** and equivalency guide
|
|
139
|
-
- **Rollback procedures** for safety
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## [1.1.0] - 2025-01-15
|
|
144
|
-
|
|
145
|
-
### Added
|
|
146
|
-
- Basic OpenRouter API integration
|
|
147
|
-
- Simple command-line interface
|
|
148
|
-
- Configuration management
|
|
149
|
-
- Basic error handling
|
|
150
|
-
|
|
151
|
-
### Fixed
|
|
152
|
-
- API key validation issues
|
|
153
|
-
- Configuration file loading
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## [1.0.1] - 2025-09-13
|
|
158
|
-
|
|
159
|
-
### Fixed
|
|
160
|
-
- Resolved type declaration issues for `recoder`, `chai`, and `jsdom`.
|
|
161
|
-
- Updated dependencies to ensure compatibility and resolve deprecation warnings.
|
|
162
|
-
|
|
163
|
-
### Added
|
|
164
|
-
- Added type declarations for `recoder` in `declarations.d.ts`.
|
|
165
|
-
|
|
166
|
-
### Changed
|
|
167
|
-
- Updated `package.json` to use the correct version of `recoder` (`^0.0.1`).
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
## [1.0.0] - 2024-12-01
|
|
172
|
-
|
|
173
|
-
### Added
|
|
174
|
-
- Initial release
|
|
175
|
-
- Basic AI chat functionality
|
|
176
|
-
- OpenRouter integration
|
|
177
|
-
- Simple setup script
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## **Upgrade Instructions**
|
|
182
|
-
|
|
183
|
-
### From 1.x to 2.0
|
|
184
|
-
|
|
185
|
-
1. **Backup current configuration:**
|
|
186
|
-
```bash
|
|
187
|
-
cp .env .env.backup
|
|
188
|
-
cp config.js config.js.backup
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
2. **Run the enhanced setup:**
|
|
192
|
-
```bash
|
|
193
|
-
npm run setup
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
3. **Configure new features:**
|
|
197
|
-
```bash
|
|
198
|
-
npm run setup:enterprise # For enterprise features
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
4. **Test the upgrade:**
|
|
202
|
-
```bash
|
|
203
|
-
npm run test:integration
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### **Breaking Changes**
|
|
207
|
-
|
|
208
|
-
- **Configuration format** has been updated (automatic migration provided)
|
|
209
|
-
- **Command-line arguments** have been restructured (compatibility layer included)
|
|
210
|
-
- **Plugin API** has been enhanced (migration guide available)
|
|
211
|
-
- **Dependencies** have been updated (automatic resolution)
|
|
212
|
-
|
|
213
|
-
### **New Requirements**
|
|
214
|
-
|
|
215
|
-
- **Node.js 18+** (previously 16+)
|
|
216
|
-
- **NPM 9+** for optimal performance
|
|
217
|
-
- **Additional permissions** for file watching and automation features
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## **Support & Documentation**
|
|
222
|
-
|
|
223
|
-
- 📖 **Full Documentation**: README.md
|
|
224
|
-
- 🚀 **Quick Start**: examples/basic-usage.md
|
|
225
|
-
- 🏢 **Enterprise Guide**: examples/enterprise-deployment.md
|
|
226
|
-
- 🎯 **Advanced Features**: examples/advanced-features.md
|
|
227
|
-
- 🎬 **Interactive Demo**: `npm run demo`
|
|
228
|
-
|
|
229
|
-
For questions and support, please visit our [GitHub Issues](https://github.com/enhanced-ai-cli/enhanced-ai-cli/issues) page.
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
**Note**: This is a major version release with significant enhancements and new capabilities. Please review the documentation and test thoroughly before deploying to production environments.
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# 🤝 Enhanced AI CLI Community Code of Conduct
|
|
2
|
-
|
|
3
|
-
## 🌟 **Our Pledge**
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in the Enhanced AI CLI community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
6
|
-
|
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community focused on advancing AI-powered development tools.
|
|
8
|
-
|
|
9
|
-
## ✨ **Our Standards**
|
|
10
|
-
|
|
11
|
-
### **Positive Behavior Examples:**
|
|
12
|
-
|
|
13
|
-
- 🎯 **Using welcoming and inclusive language**
|
|
14
|
-
- 🤝 **Being respectful of differing viewpoints and experiences**
|
|
15
|
-
- 💝 **Gracefully accepting constructive criticism**
|
|
16
|
-
- 🌍 **Focusing on what is best for the community**
|
|
17
|
-
- ❤️ **Showing empathy towards other community members**
|
|
18
|
-
- 📚 **Helping others learn and grow in AI/development**
|
|
19
|
-
- 🔍 **Providing constructive feedback on code and ideas**
|
|
20
|
-
- 🎉 **Celebrating others' achievements and contributions**
|
|
21
|
-
- 🔗 **Mentoring newcomers and sharing knowledge**
|
|
22
|
-
- 🛡️ **Protecting community members from harassment**
|
|
23
|
-
|
|
24
|
-
### **Unacceptable Behavior Examples:**
|
|
25
|
-
|
|
26
|
-
- 🚫 **The use of sexualized language, imagery, or unwelcome advances**
|
|
27
|
-
- 💀 **Trolling, insulting, or derogatory comments**
|
|
28
|
-
- 🎯 **Personal or political attacks**
|
|
29
|
-
- 😠 **Public or private harassment**
|
|
30
|
-
- 📧 **Publishing others' private information without explicit permission**
|
|
31
|
-
- 🔥 **Aggressive or hostile communication**
|
|
32
|
-
- 🎭 **Impersonation of other community members**
|
|
33
|
-
- 🤖 **Spam, irrelevant content, or excessive self-promotion**
|
|
34
|
-
- ⚖️ **Any conduct inappropriate in a professional setting**
|
|
35
|
-
- 🏴☠️ **Encouraging or assisting in violations of this code**
|
|
36
|
-
|
|
37
|
-
## 👥 **Community Responsibilities**
|
|
38
|
-
|
|
39
|
-
### **All Community Members:**
|
|
40
|
-
- **Uphold** these standards in all community interactions
|
|
41
|
-
- **Report** violations promptly and in good faith
|
|
42
|
-
- **Support** fellow community members
|
|
43
|
-
- **Contribute** to a positive learning environment
|
|
44
|
-
|
|
45
|
-
### **Project Maintainers:**
|
|
46
|
-
- **Clarify** standards of acceptable behavior
|
|
47
|
-
- **Take appropriate corrective action** for violations
|
|
48
|
-
- **Remove, edit, or reject** content not aligned with this Code
|
|
49
|
-
- **Ban temporarily or permanently** violators when necessary
|
|
50
|
-
- **Protect** community members from harassment
|
|
51
|
-
- **Respond** to reports within 72 hours
|
|
52
|
-
|
|
53
|
-
## 🌐 **Scope**
|
|
54
|
-
|
|
55
|
-
This Code of Conduct applies within all community spaces, including:
|
|
56
|
-
|
|
57
|
-
### **Digital Spaces:**
|
|
58
|
-
- 📦 **GitHub repositories and issues**
|
|
59
|
-
- 💬 **Discord server and channels**
|
|
60
|
-
- 🐦 **Official social media accounts**
|
|
61
|
-
- 📧 **Email communications**
|
|
62
|
-
- 🌐 **Official websites and documentation**
|
|
63
|
-
- 📹 **Video calls and online meetings**
|
|
64
|
-
|
|
65
|
-
### **Physical Spaces:**
|
|
66
|
-
- 🏢 **Conferences and meetups**
|
|
67
|
-
- 👥 **Workshops and training sessions**
|
|
68
|
-
- 🎤 **Speaking engagements**
|
|
69
|
-
- 📸 **Representing the project publicly**
|
|
70
|
-
|
|
71
|
-
## 🚨 **Reporting & Enforcement**
|
|
72
|
-
|
|
73
|
-
### **How to Report:**
|
|
74
|
-
|
|
75
|
-
**For immediate safety concerns:**
|
|
76
|
-
- 🆘 **Emergency hotline**: [emergency@enhanced-ai-cli.com](mailto:emergency@enhanced-ai-cli.com)
|
|
77
|
-
- 📞 **24/7 safety line**: +1-555-SAFE-CLI
|
|
78
|
-
|
|
79
|
-
**For general violations:**
|
|
80
|
-
- 📧 **Primary contact**: [conduct@enhanced-ai-cli.com](mailto:conduct@enhanced-ai-cli.com)
|
|
81
|
-
- 🔒 **Anonymous reporting**: [Report form](https://forms.enhanced-ai-cli.com/conduct)
|
|
82
|
-
- 💬 **Discord private message**: @ConductTeam
|
|
83
|
-
|
|
84
|
-
### **What to Include:**
|
|
85
|
-
- 📅 **Date and time** of incident
|
|
86
|
-
- 👤 **Individuals involved** (usernames, real names if known)
|
|
87
|
-
- 📝 **Detailed description** of what happened
|
|
88
|
-
- 🔗 **Links or screenshots** if available
|
|
89
|
-
- 👥 **Witnesses** (if any)
|
|
90
|
-
- 💼 **Previous interactions** (if relevant)
|
|
91
|
-
|
|
92
|
-
### **Response Process:**
|
|
93
|
-
|
|
94
|
-
1. **Acknowledgment** (within 24 hours)
|
|
95
|
-
2. **Investigation** (3-7 business days)
|
|
96
|
-
3. **Decision & Action** (within 10 business days)
|
|
97
|
-
4. **Follow-up** (ongoing as needed)
|
|
98
|
-
|
|
99
|
-
### **Enforcement Actions:**
|
|
100
|
-
|
|
101
|
-
**Warning System:**
|
|
102
|
-
- 🟡 **First violation**: Private warning + education
|
|
103
|
-
- 🟠 **Second violation**: Public warning + temporary restrictions
|
|
104
|
-
- 🔴 **Third violation**: Temporary ban (30 days)
|
|
105
|
-
- ⛔ **Severe violations**: Immediate permanent ban
|
|
106
|
-
|
|
107
|
-
**Types of Actions:**
|
|
108
|
-
- ✉️ **Private correction**
|
|
109
|
-
- 📢 **Public warning**
|
|
110
|
-
- ⏰ **Temporary ban** (1-30 days)
|
|
111
|
-
- 🚫 **Permanent ban**
|
|
112
|
-
- 👮 **Legal action** (for serious violations)
|
|
113
|
-
|
|
114
|
-
## 🛡️ **Protection Measures**
|
|
115
|
-
|
|
116
|
-
### **Anti-Retaliation Policy:**
|
|
117
|
-
- **Zero tolerance** for retaliation against reporters
|
|
118
|
-
- **Confidentiality** maintained for all involved parties
|
|
119
|
-
- **Support resources** available for affected members
|
|
120
|
-
|
|
121
|
-
### **Due Process:**
|
|
122
|
-
- **Right to respond** to accusations
|
|
123
|
-
- **Appeal process** for enforcement decisions
|
|
124
|
-
- **Transparent policies** and fair procedures
|
|
125
|
-
|
|
126
|
-
## 🎯 **Community Values**
|
|
127
|
-
|
|
128
|
-
### **🤖 Innovation & Learning**
|
|
129
|
-
- Encourage experimentation with AI technologies
|
|
130
|
-
- Share knowledge and discoveries openly
|
|
131
|
-
- Support continuous learning and growth
|
|
132
|
-
|
|
133
|
-
### **🌈 Diversity & Inclusion**
|
|
134
|
-
- Welcome contributors from all backgrounds
|
|
135
|
-
- Ensure accessibility in all community resources
|
|
136
|
-
- Celebrate diverse perspectives and approaches
|
|
137
|
-
|
|
138
|
-
### **🔒 Privacy & Security**
|
|
139
|
-
- Respect confidentiality and data privacy
|
|
140
|
-
- Follow security best practices
|
|
141
|
-
- Protect sensitive information
|
|
142
|
-
|
|
143
|
-
### **💎 Quality & Excellence**
|
|
144
|
-
- Maintain high standards for code and documentation
|
|
145
|
-
- Provide constructive feedback
|
|
146
|
-
- Strive for continuous improvement
|
|
147
|
-
|
|
148
|
-
## 📚 **Resources**
|
|
149
|
-
|
|
150
|
-
### **Support Services:**
|
|
151
|
-
- 🧠 **Mental health resources**: [wellness@enhanced-ai-cli.com](mailto:wellness@enhanced-ai-cli.com)
|
|
152
|
-
- 🎓 **Learning resources**: [learn@enhanced-ai-cli.com](mailto:learn@enhanced-ai-cli.com)
|
|
153
|
-
- 🤝 **Mentorship program**: [mentors@enhanced-ai-cli.com](mailto:mentors@enhanced-ai-cli.com)
|
|
154
|
-
|
|
155
|
-
### **Community Guidelines:**
|
|
156
|
-
- 📖 **Contributing Guide**: [CONTRIBUTING.md](./CONTRIBUTING.md)
|
|
157
|
-
- 🛠️ **Development Setup**: [Development Guide](./docs/development.md)
|
|
158
|
-
- 🚀 **Getting Started**: [README.md](./README.md)
|
|
159
|
-
|
|
160
|
-
## 📋 **Regular Review**
|
|
161
|
-
|
|
162
|
-
This Code of Conduct will be reviewed:
|
|
163
|
-
- **Quarterly** by the conduct team
|
|
164
|
-
- **Annually** by the community
|
|
165
|
-
- **As needed** based on incidents or feedback
|
|
166
|
-
|
|
167
|
-
Community input is welcome at: [feedback@enhanced-ai-cli.com](mailto:feedback@enhanced-ai-cli.com)
|
|
168
|
-
|
|
169
|
-
## 📜 **Attribution & License**
|
|
170
|
-
|
|
171
|
-
This Code of Conduct is adapted from:
|
|
172
|
-
- [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1
|
|
173
|
-
- [Django Code of Conduct](https://www.djangoproject.com/conduct/)
|
|
174
|
-
- [Rust Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct)
|
|
175
|
-
|
|
176
|
-
**License**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## 💬 **Questions?**
|
|
181
|
-
|
|
182
|
-
If you have questions about this Code of Conduct:
|
|
183
|
-
- 📧 **Email**: [conduct@enhanced-ai-cli.com](mailto:conduct@enhanced-ai-cli.com)
|
|
184
|
-
- 💬 **Discord**: #community-guidelines
|
|
185
|
-
- 🌐 **FAQ**: [Community Guidelines FAQ](https://docs.enhanced-ai-cli.com/community/faq)
|
|
186
|
-
|
|
187
|
-
**Remember**: We're all here to build amazing AI-powered development tools together. Let's make our community a place where everyone can thrive! 🚀
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Contribution Guidelines
|
|
2
|
-
|
|
3
|
-
Thank you for considering contributing to Recoder/OpenRouter! We welcome contributions from everyone. This document provides guidelines to help you get started.
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
1. **Fork the Repository**: Click the "Fork" button on the GitHub repository page.
|
|
8
|
-
2. **Clone Your Fork**: Clone your forked repository to your local machine.
|
|
9
|
-
```bash
|
|
10
|
-
git clone https://github.com/yourusername/recoder-cli.git
|
|
11
|
-
cd recoder-cli
|
|
12
|
-
```
|
|
13
|
-
3. **Set Up the Project**: Install the necessary dependencies.
|
|
14
|
-
```bash
|
|
15
|
-
npm install
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Making Changes
|
|
19
|
-
|
|
20
|
-
1. **Create a Branch**: Create a new branch for your changes.
|
|
21
|
-
```bash
|
|
22
|
-
git checkout -b feature/your-feature-name
|
|
23
|
-
```
|
|
24
|
-
2. **Make Your Changes**: Edit the files and make your changes.
|
|
25
|
-
3. **Test Your Changes**: Ensure your changes work as expected and do not break existing functionality.
|
|
26
|
-
```bash
|
|
27
|
-
npm test
|
|
28
|
-
```
|
|
29
|
-
4. **Commit Your Changes**: Commit your changes with a descriptive commit message.
|
|
30
|
-
```bash
|
|
31
|
-
git commit -m "Add your descriptive commit message here"
|
|
32
|
-
```
|
|
33
|
-
5. **Push Your Changes**: Push your changes to your fork.
|
|
34
|
-
```bash
|
|
35
|
-
git push origin feature/your-feature-name
|
|
36
|
-
```
|
|
37
|
-
6. **Create a Pull Request**: Go to the original repository and create a pull request from your branch.
|
|
38
|
-
|
|
39
|
-
## Code Style
|
|
40
|
-
|
|
41
|
-
Follow the existing code style and conventions used in the project. Consistency is key to maintaining readability and maintainability.
|
|
42
|
-
|
|
43
|
-
## Issue Tracking
|
|
44
|
-
|
|
45
|
-
- **Bug Reports**: Report bugs by opening an issue with a clear description and steps to reproduce.
|
|
46
|
-
- **Feature Requests**: Suggest new features by opening an issue with a detailed description of the feature and its benefits.
|
|
47
|
-
|
|
48
|
-
## Licensing
|
|
49
|
-
|
|
50
|
-
By contributing to this project, you agree to license your contributions under the [MIT License](LICENSE.md).
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Your Name
|
|
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.
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# Sandbox Quick Reference Card
|
|
2
|
-
|
|
3
|
-
## Answer to Your Question: "Why no sandbox? Can we have sandbox?"
|
|
4
|
-
|
|
5
|
-
**YES! You already have sandbox!** 🎉
|
|
6
|
-
|
|
7
|
-
The "no sandbox" message means sandbox mode is **disabled** (the default), not that it's unavailable. Recoder Code has full sandbox support built-in from the Qwen Code foundation.
|
|
8
|
-
|
|
9
|
-
## Enable Sandbox in 3 Seconds
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
# Method 1: Docker (works everywhere)
|
|
13
|
-
export RECODER_SANDBOX=docker
|
|
14
|
-
recoder-code
|
|
15
|
-
|
|
16
|
-
# Method 2: macOS Seatbelt (macOS only, no Docker needed)
|
|
17
|
-
export RECODER_SANDBOX=sandbox-exec
|
|
18
|
-
recoder-code
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Visual Indicator
|
|
22
|
-
|
|
23
|
-
### Without Sandbox (Current)
|
|
24
|
-
```
|
|
25
|
-
💻 Interactive Mode (type /help)
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### With Sandbox (After enabling)
|
|
29
|
-
```
|
|
30
|
-
🔒 docker # Docker sandbox active
|
|
31
|
-
🔒 macOS Seatbelt (...) # Seatbelt sandbox active
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## One-Line Commands
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
# Enable Docker sandbox permanently
|
|
38
|
-
echo 'export RECODER_SANDBOX=docker' >> ~/.zshrc
|
|
39
|
-
|
|
40
|
-
# Enable for this session only
|
|
41
|
-
RECODER_SANDBOX=docker recoder-code
|
|
42
|
-
|
|
43
|
-
# Check if sandbox is active (inside Recoder Code)
|
|
44
|
-
!echo $SANDBOX
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## What Sandbox Does
|
|
48
|
-
|
|
49
|
-
| Feature | Without Sandbox | With Sandbox |
|
|
50
|
-
|---------|----------------|--------------|
|
|
51
|
-
| Code execution | On your system | In container |
|
|
52
|
-
| File access | Full system | Project dir only |
|
|
53
|
-
| Network access | Full | Controlled |
|
|
54
|
-
| Security | Trust-based | Isolated |
|
|
55
|
-
| Performance | Fastest | Minimal overhead |
|
|
56
|
-
|
|
57
|
-
## Files Created/Updated
|
|
58
|
-
|
|
59
|
-
1. **SANDBOX_SETUP_GUIDE.md** - Complete 300+ line guide
|
|
60
|
-
2. **SANDBOX_FEATURE_SUMMARY.md** - Technical overview
|
|
61
|
-
3. **README.md** - Added sandbox section
|
|
62
|
-
4. **sandboxConfig.ts** - Support RECODER_* env vars
|
|
63
|
-
5. **sandbox.ts** - Support RECODER_* env vars
|
|
64
|
-
|
|
65
|
-
## Environment Variables
|
|
66
|
-
|
|
67
|
-
### New (Recoder Code)
|
|
68
|
-
- `RECODER_SANDBOX` - Enable sandbox (docker|podman|sandbox-exec)
|
|
69
|
-
- `RECODER_SANDBOX_IMAGE` - Custom Docker image
|
|
70
|
-
- `RECODER_SANDBOX_PROXY_COMMAND` - Proxy command
|
|
71
|
-
|
|
72
|
-
### Legacy (Still work)
|
|
73
|
-
- `GEMINI_SANDBOX`
|
|
74
|
-
- `GEMINI_SANDBOX_IMAGE`
|
|
75
|
-
- `GEMINI_SANDBOX_PROXY_COMMAND`
|
|
76
|
-
|
|
77
|
-
## Quick Tests
|
|
78
|
-
|
|
79
|
-
### Test 1: Check Docker availability
|
|
80
|
-
```bash
|
|
81
|
-
docker --version
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### Test 2: Enable sandbox and check status
|
|
85
|
-
```bash
|
|
86
|
-
export RECODER_SANDBOX=docker
|
|
87
|
-
recoder-code
|
|
88
|
-
# Look at footer: should show 🔒 docker
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Test 3: Verify isolation (inside Recoder Code)
|
|
92
|
-
```bash
|
|
93
|
-
> !whoami
|
|
94
|
-
# Without sandbox: your username
|
|
95
|
-
# With sandbox: node or gemini
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Common Use Cases
|
|
99
|
-
|
|
100
|
-
### Development (No sandbox needed)
|
|
101
|
-
```bash
|
|
102
|
-
recoder-code
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Testing AI code (Use sandbox)
|
|
106
|
-
```bash
|
|
107
|
-
export RECODER_SANDBOX=docker
|
|
108
|
-
recoder-code "generate a web server"
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Production/CI (Use sandbox)
|
|
112
|
-
```bash
|
|
113
|
-
export RECODER_SANDBOX=docker
|
|
114
|
-
recoder-code --batch < commands.txt
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## System Requirements
|
|
118
|
-
|
|
119
|
-
| Sandbox Type | Requirements |
|
|
120
|
-
|-------------|--------------|
|
|
121
|
-
| None | Just Node.js |
|
|
122
|
-
| Docker | Docker Desktop/Engine |
|
|
123
|
-
| Podman | Podman installed |
|
|
124
|
-
| macOS Seatbelt | macOS 10.5+ (built-in) |
|
|
125
|
-
|
|
126
|
-
## Troubleshooting One-Liners
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# Docker not running?
|
|
130
|
-
open -a Docker # macOS
|
|
131
|
-
|
|
132
|
-
# Permission denied?
|
|
133
|
-
sudo usermod -aG docker $USER && newgrp docker # Linux
|
|
134
|
-
|
|
135
|
-
# Image missing?
|
|
136
|
-
docker pull node:20-alpine
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## Next Steps
|
|
140
|
-
|
|
141
|
-
1. **Try it now:**
|
|
142
|
-
```bash
|
|
143
|
-
export RECODER_SANDBOX=docker
|
|
144
|
-
recoder-code
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
2. **Read full guide:** Open `SANDBOX_SETUP_GUIDE.md`
|
|
148
|
-
|
|
149
|
-
3. **Customize:** Create `.recoder/sandbox.Dockerfile` for custom environment
|
|
150
|
-
|
|
151
|
-
4. **Share:** Push to GitHub so others can use it
|
|
152
|
-
|
|
153
|
-
## Summary
|
|
154
|
-
|
|
155
|
-
✅ Sandbox **is available** in Recoder Code
|
|
156
|
-
✅ It's **optional** (disabled by default for ease of use)
|
|
157
|
-
✅ Enable with **one environment variable**
|
|
158
|
-
✅ Works with **Docker, Podman, or macOS Seatbelt**
|
|
159
|
-
✅ Provides **security isolation** for AI-generated code
|
|
160
|
-
✅ Documentation **added** (3 new files)
|
|
161
|
-
✅ Code **updated** to support RECODER_* variables
|
|
162
|
-
✅ Changes **committed** to git
|
|
163
|
-
|
|
164
|
-
The "no sandbox" message simply means "sandbox is not currently active", not "sandbox is unavailable". You now have complete control over sandbox mode!
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
**Quick Start:** `export RECODER_SANDBOX=docker && recoder-code`
|