rails_ai 0.1.0
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.
- checksums.yaml +7 -0
- data/.rspec_status +96 -0
- data/AGENT_GUIDE.md +513 -0
- data/Appraisals +49 -0
- data/COMMERCIAL_LICENSE_TEMPLATE.md +92 -0
- data/FEATURES.md +204 -0
- data/LEGAL_PROTECTION_GUIDE.md +222 -0
- data/LICENSE +62 -0
- data/LICENSE_SUMMARY.md +74 -0
- data/MIT-LICENSE +62 -0
- data/PERFORMANCE.md +300 -0
- data/PROVIDERS.md +495 -0
- data/README.md +454 -0
- data/Rakefile +11 -0
- data/SPEED_OPTIMIZATIONS.md +217 -0
- data/STRUCTURE.md +139 -0
- data/USAGE_GUIDE.md +288 -0
- data/app/channels/ai_stream_channel.rb +33 -0
- data/app/components/ai/prompt_component.rb +25 -0
- data/app/controllers/concerns/ai/context_aware.rb +77 -0
- data/app/controllers/concerns/ai/streaming.rb +41 -0
- data/app/helpers/ai_helper.rb +164 -0
- data/app/jobs/ai/generate_embedding_job.rb +25 -0
- data/app/jobs/ai/generate_summary_job.rb +25 -0
- data/app/models/concerns/ai/embeddable.rb +38 -0
- data/app/views/rails_ai/dashboard/index.html.erb +51 -0
- data/config/routes.rb +19 -0
- data/lib/generators/rails_ai/install/install_generator.rb +38 -0
- data/lib/rails_ai/agents/agent_manager.rb +258 -0
- data/lib/rails_ai/agents/agent_team.rb +243 -0
- data/lib/rails_ai/agents/base_agent.rb +331 -0
- data/lib/rails_ai/agents/collaboration.rb +238 -0
- data/lib/rails_ai/agents/memory.rb +116 -0
- data/lib/rails_ai/agents/message_bus.rb +95 -0
- data/lib/rails_ai/agents/specialized_agents.rb +391 -0
- data/lib/rails_ai/agents/task_queue.rb +111 -0
- data/lib/rails_ai/cache.rb +14 -0
- data/lib/rails_ai/config.rb +40 -0
- data/lib/rails_ai/context.rb +7 -0
- data/lib/rails_ai/context_analyzer.rb +86 -0
- data/lib/rails_ai/engine.rb +48 -0
- data/lib/rails_ai/events.rb +9 -0
- data/lib/rails_ai/image_context.rb +110 -0
- data/lib/rails_ai/performance.rb +231 -0
- data/lib/rails_ai/provider.rb +8 -0
- data/lib/rails_ai/providers/anthropic_adapter.rb +256 -0
- data/lib/rails_ai/providers/base.rb +60 -0
- data/lib/rails_ai/providers/dummy_adapter.rb +29 -0
- data/lib/rails_ai/providers/gemini_adapter.rb +509 -0
- data/lib/rails_ai/providers/openai_adapter.rb +535 -0
- data/lib/rails_ai/providers/secure_anthropic_adapter.rb +206 -0
- data/lib/rails_ai/providers/secure_openai_adapter.rb +284 -0
- data/lib/rails_ai/railtie.rb +48 -0
- data/lib/rails_ai/redactor.rb +12 -0
- data/lib/rails_ai/security/api_key_manager.rb +82 -0
- data/lib/rails_ai/security/audit_logger.rb +46 -0
- data/lib/rails_ai/security/error_handler.rb +62 -0
- data/lib/rails_ai/security/input_validator.rb +176 -0
- data/lib/rails_ai/security/secure_file_handler.rb +45 -0
- data/lib/rails_ai/security/secure_http_client.rb +177 -0
- data/lib/rails_ai/security.rb +0 -0
- data/lib/rails_ai/version.rb +5 -0
- data/lib/rails_ai/window_context.rb +103 -0
- data/lib/rails_ai.rb +502 -0
- data/monitoring/ci_setup_guide.md +214 -0
- data/monitoring/enhanced_monitoring_script.rb +237 -0
- data/monitoring/google_alerts_setup.md +42 -0
- data/monitoring_log_20250921.txt +0 -0
- data/monitoring_script.rb +161 -0
- data/rails_ai.gemspec +54 -0
- data/scripts/security_scanner.rb +353 -0
- data/setup_monitoring.sh +163 -0
- data/wiki/API-Documentation.md +734 -0
- data/wiki/Architecture-Overview.md +672 -0
- data/wiki/Contributing-Guide.md +407 -0
- data/wiki/Development-Setup.md +532 -0
- data/wiki/Home.md +278 -0
- data/wiki/Installation-Guide.md +527 -0
- data/wiki/Quick-Start.md +186 -0
- data/wiki/README.md +135 -0
- data/wiki/Release-Process.md +467 -0
- metadata +385 -0
@@ -0,0 +1,92 @@
|
|
1
|
+
# Commercial License Agreement - Rails AI
|
2
|
+
|
3
|
+
## License Terms for Commercial Use
|
4
|
+
|
5
|
+
This Commercial License Agreement ("Agreement") is entered into between:
|
6
|
+
|
7
|
+
**Licensor**: Daniel Amah
|
8
|
+
**Address**: [Your Address, City, Province, Canada]
|
9
|
+
**Email**: amahdanieljack@gmail.com
|
10
|
+
**Software**: Rails AI (the "Software")
|
11
|
+
|
12
|
+
**Licensee**: [Company Name]
|
13
|
+
**Address**: [Company Address]
|
14
|
+
**Email**: [licensee-email@example.com]
|
15
|
+
**Intended Use**: [Description of commercial use]
|
16
|
+
|
17
|
+
## Terms and Conditions
|
18
|
+
|
19
|
+
### 1. Grant of License
|
20
|
+
Subject to the terms and conditions of this Agreement, Licensor hereby grants to Licensee a non-exclusive, non-transferable license to use the Software for commercial purposes for a period of one (1) year from the license start date.
|
21
|
+
|
22
|
+
### 2. Permitted Uses
|
23
|
+
Licensee may:
|
24
|
+
- Use the Software in commercial applications
|
25
|
+
- Integrate the Software into commercial products
|
26
|
+
- Use the Software for revenue-generating activities
|
27
|
+
- Distribute the Software as part of commercial products (with proper attribution)
|
28
|
+
|
29
|
+
### 3. Restrictions
|
30
|
+
Licensee may not:
|
31
|
+
- Remove or modify copyright notices
|
32
|
+
- Reverse engineer the Software for competitive purposes
|
33
|
+
- Sublicense the Software without written permission
|
34
|
+
- Use the Software in violation of applicable laws
|
35
|
+
- Use the Software beyond the scope of this license
|
36
|
+
|
37
|
+
### 4. License Fee
|
38
|
+
Annual commercial license fee: $999 CAD per year
|
39
|
+
Payment terms: Annual payment due on license anniversary date
|
40
|
+
Currency: Canadian Dollars (CAD)
|
41
|
+
Renewal: License must be renewed annually to maintain commercial use rights
|
42
|
+
|
43
|
+
### 5. Support and Updates
|
44
|
+
- [X] Included in annual license fee
|
45
|
+
- [X] Updates included for the duration of the license
|
46
|
+
- [X] Email support included
|
47
|
+
- [X] Priority support for commercial licensees
|
48
|
+
|
49
|
+
### 6. License Renewal
|
50
|
+
- License expires one year from the start date
|
51
|
+
- Renewal fee of $999 CAD is due annually
|
52
|
+
- 30-day grace period for renewal payments
|
53
|
+
- License becomes invalid if not renewed within grace period
|
54
|
+
|
55
|
+
### 7. Warranty and Liability
|
56
|
+
The Software is provided "as is" without warranty. Licensor's liability is limited to the annual license fee paid.
|
57
|
+
|
58
|
+
### 8. Termination
|
59
|
+
This license may be terminated if Licensee breaches any terms or fails to pay renewal fees. Upon termination, Licensee must cease all use of the Software immediately.
|
60
|
+
|
61
|
+
### 9. Governing Law and Jurisdiction
|
62
|
+
This Agreement is governed by the laws of Canada and the Province of [Your Province]. Any disputes shall be resolved in the courts of [Your Province], Canada. Licensee consents to the jurisdiction of Canadian courts.
|
63
|
+
|
64
|
+
### 10. Enforcement and Remedies
|
65
|
+
In case of breach, Licensor reserves the right to:
|
66
|
+
- Seek injunctive relief to stop unauthorized use
|
67
|
+
- Pursue monetary damages including lost licensing revenue
|
68
|
+
- Recover attorney's fees and court costs
|
69
|
+
- Seek statutory damages under the Canadian Copyright Act
|
70
|
+
- Pursue criminal charges if applicable
|
71
|
+
|
72
|
+
### 11. Audit Rights
|
73
|
+
Licensor reserves the right to audit Licensee's use of the Software to ensure compliance with this Agreement.
|
74
|
+
|
75
|
+
## Signature
|
76
|
+
|
77
|
+
**Licensor**: Daniel Amah
|
78
|
+
**Address**: [Your Address]
|
79
|
+
**Email**: amahdanieljack@gmail.com
|
80
|
+
**Date**: _________
|
81
|
+
|
82
|
+
**Licensee**: _________________________
|
83
|
+
**Address**: _________________________
|
84
|
+
**Email**: _________________________
|
85
|
+
**Date**: _________
|
86
|
+
|
87
|
+
---
|
88
|
+
|
89
|
+
**Contact for Commercial Licensing**: amahdanieljack@gmail.com
|
90
|
+
**Subject**: Commercial License Inquiry - Rails AI
|
91
|
+
**License Start Date**: _________
|
92
|
+
**License Expiry Date**: _________
|
data/FEATURES.md
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
# Rails AI - Complete Feature List
|
2
|
+
|
3
|
+
## 🎯 Core AI Capabilities
|
4
|
+
|
5
|
+
### Text-Based Operations
|
6
|
+
- ✅ **Chat Interface** - `RailsAi.chat(prompt)`
|
7
|
+
- ✅ **Streaming Chat** - `RailsAi.stream(prompt) { |token| ... }`
|
8
|
+
- ✅ **Text Embeddings** - `RailsAi.embed(texts)`
|
9
|
+
- ✅ **Content Summarization** - `RailsAi.summarize(content)`
|
10
|
+
- ✅ **Translation** - `RailsAi.translate(content, language)`
|
11
|
+
- ✅ **Classification** - `RailsAi.classify(content, categories)`
|
12
|
+
- ✅ **Entity Extraction** - `RailsAi.extract_entities(content)`
|
13
|
+
- ✅ **Code Generation** - `RailsAi.generate_code(prompt, language)`
|
14
|
+
- ✅ **Code Explanation** - `RailsAi.explain_code(code, language)`
|
15
|
+
|
16
|
+
### Image Operations
|
17
|
+
- ✅ **Image Generation** - `RailsAi.generate_image(prompt)`
|
18
|
+
- ✅ **Image Editing** - `RailsAi.edit_image(image, prompt)`
|
19
|
+
- ✅ **Image Variations** - `RailsAi.create_variation(image)`
|
20
|
+
- ✅ **Image Analysis** - `RailsAi.analyze_image(image, prompt)`
|
21
|
+
|
22
|
+
### Video Operations
|
23
|
+
- ✅ **Video Generation** - `RailsAi.generate_video(prompt, duration)`
|
24
|
+
- ✅ **Video Editing** - `RailsAi.edit_video(video, prompt)`
|
25
|
+
- ✅ **Video Analysis** - `RailsAi.analyze_video(video, prompt)`
|
26
|
+
|
27
|
+
### Audio Operations
|
28
|
+
- ✅ **Speech Generation** - `RailsAi.generate_speech(text, voice)`
|
29
|
+
- ✅ **Audio Transcription** - `RailsAi.transcribe_audio(audio)`
|
30
|
+
|
31
|
+
## 🧠 Context-Aware Intelligence
|
32
|
+
|
33
|
+
### Context Types
|
34
|
+
- ✅ **User Context** - ID, email, role, preferences, timestamps
|
35
|
+
- ✅ **Window Context** - Controller, action, params, request details
|
36
|
+
- ✅ **Image Context** - Source, format, dimensions, metadata
|
37
|
+
- ✅ **Temporal Context** - Current time, environment, Rails version
|
38
|
+
|
39
|
+
### Context-Aware Methods
|
40
|
+
- ✅ **Context Image Analysis** - `RailsAi.analyze_image_with_context(image, prompt, contexts)`
|
41
|
+
- ✅ **Context Text Generation** - `RailsAi.generate_with_context(prompt, contexts)`
|
42
|
+
- ✅ **Context Image Generation** - `RailsAi.generate_image_with_context(prompt, contexts)`
|
43
|
+
|
44
|
+
## 🔌 Provider System
|
45
|
+
|
46
|
+
### Built-in Providers
|
47
|
+
- ✅ **OpenAI Adapter** - Full OpenAI API support
|
48
|
+
- ✅ **Dummy Adapter** - Testing and development
|
49
|
+
- ✅ **Base Provider** - Extensible provider interface
|
50
|
+
|
51
|
+
### Provider Features
|
52
|
+
- ✅ **Chat Completion** - Text generation and conversation
|
53
|
+
- ✅ **Streaming** - Real-time token streaming
|
54
|
+
- ✅ **Embeddings** - Vector embeddings for search
|
55
|
+
- ✅ **Image Generation** - DALL-E integration
|
56
|
+
- ✅ **Image Editing** - Image modification capabilities
|
57
|
+
- ✅ **Audio Generation** - Text-to-speech synthesis
|
58
|
+
- ✅ **Audio Transcription** - Speech-to-text conversion
|
59
|
+
|
60
|
+
## 🚀 Rails Integration
|
61
|
+
|
62
|
+
### Generators
|
63
|
+
- ✅ **Install Generator** - `rails generate rails_ai:install`
|
64
|
+
- ✅ **Feature Generator** - `rails generate rails_ai:feature name`
|
65
|
+
- ✅ **Template System** - Customizable generator templates
|
66
|
+
|
67
|
+
### View Components
|
68
|
+
- ✅ **Prompt Component** - `RailsAi::PromptComponent`
|
69
|
+
- ✅ **AI Widgets** - Reusable UI components
|
70
|
+
- ✅ **Form Helpers** - AI-powered form elements
|
71
|
+
|
72
|
+
### Controller Integration
|
73
|
+
- ✅ **Context Aware Concern** - `RailsAi::ContextAware`
|
74
|
+
- ✅ **Streaming Concern** - `RailsAi::Streaming`
|
75
|
+
- ✅ **Helper Methods** - Convenient AI operations
|
76
|
+
|
77
|
+
### Model Integration
|
78
|
+
- ✅ **Embeddable Concern** - `RailsAi::Embeddable`
|
79
|
+
- ✅ **Semantic Search** - Vector-based similarity search
|
80
|
+
- ✅ **AI Methods** - Model-level AI operations
|
81
|
+
|
82
|
+
### Job Integration
|
83
|
+
- ✅ **Background Processing** - AI operations in jobs
|
84
|
+
- ✅ **Queue Management** - Configurable job queues
|
85
|
+
- ✅ **Error Handling** - Robust error management
|
86
|
+
|
87
|
+
### Action Cable
|
88
|
+
- ✅ **Real-time Streaming** - Live AI responses
|
89
|
+
- ✅ **Channel Management** - `RailsAi::AiStreamChannel`
|
90
|
+
- ✅ **Broadcasting** - Multi-user streaming support
|
91
|
+
|
92
|
+
## 🛠️ Developer Experience
|
93
|
+
|
94
|
+
### Configuration
|
95
|
+
- ✅ **Flexible Config** - `RailsAi.configure` block
|
96
|
+
- ✅ **Environment Support** - Development, test, production
|
97
|
+
- ✅ **Provider Selection** - Easy provider switching
|
98
|
+
- ✅ **Model Configuration** - Custom model selection
|
99
|
+
|
100
|
+
### Caching
|
101
|
+
- ✅ **Intelligent Caching** - Automatic response caching
|
102
|
+
- ✅ **TTL Configuration** - Configurable cache expiration
|
103
|
+
- ✅ **Cache Keys** - Smart cache key generation
|
104
|
+
- ✅ **Cache Invalidation** - Context-aware invalidation
|
105
|
+
|
106
|
+
### Security
|
107
|
+
- ✅ **Content Redaction** - PII filtering
|
108
|
+
- ✅ **Parameter Sanitization** - Sensitive data removal
|
109
|
+
- ✅ **API Key Management** - Secure credential handling
|
110
|
+
- ✅ **Input Validation** - Safe content processing
|
111
|
+
|
112
|
+
### Observability
|
113
|
+
- ✅ **Event Logging** - `RailsAi::Events.log!`
|
114
|
+
- ✅ **Metrics Collection** - Performance monitoring
|
115
|
+
- ✅ **Error Tracking** - Comprehensive error handling
|
116
|
+
- ✅ **Debug Support** - Development debugging tools
|
117
|
+
|
118
|
+
## 🧪 Testing & Quality
|
119
|
+
|
120
|
+
### Test Support
|
121
|
+
- ✅ **RSpec Integration** - Comprehensive test suite
|
122
|
+
- ✅ **Dummy Providers** - Test-friendly providers
|
123
|
+
- ✅ **Mock Support** - Easy mocking and stubbing
|
124
|
+
- ✅ **Test Helpers** - Convenient test utilities
|
125
|
+
|
126
|
+
### Code Quality
|
127
|
+
- ✅ **StandardRB** - Code style enforcement
|
128
|
+
- ✅ **RuboCop** - Additional linting
|
129
|
+
- ✅ **CI/CD** - Automated testing pipeline
|
130
|
+
- ✅ **Documentation** - Comprehensive docs
|
131
|
+
|
132
|
+
### Performance
|
133
|
+
- ✅ **Memory Optimization** - Efficient memory usage
|
134
|
+
- ✅ **Response Caching** - Fast response times
|
135
|
+
- ✅ **Background Jobs** - Non-blocking operations
|
136
|
+
- ✅ **Streaming** - Real-time user experience
|
137
|
+
|
138
|
+
## 🔄 Rails Version Support
|
139
|
+
|
140
|
+
### Compatibility
|
141
|
+
- ✅ **Rails 5.2+** - Full backward compatibility
|
142
|
+
- ✅ **Rails 6.0, 6.1** - Enhanced features
|
143
|
+
- ✅ **Rails 7.0, 7.1** - Importmap support
|
144
|
+
- ✅ **Rails 8.0** - Latest features and performance
|
145
|
+
|
146
|
+
### Ruby Support
|
147
|
+
- ✅ **Ruby 3.x** - Primary target
|
148
|
+
- ✅ **Ruby 2.7+** - Backward compatibility
|
149
|
+
|
150
|
+
## 📊 Use Cases
|
151
|
+
|
152
|
+
### Content Creation
|
153
|
+
- ✅ **Blog Writing** - Automated content generation
|
154
|
+
- ✅ **Product Descriptions** - E-commerce content
|
155
|
+
- ✅ **Marketing Copy** - Advertising content
|
156
|
+
- ✅ **Social Media** - Platform-specific content
|
157
|
+
|
158
|
+
### Visual Content
|
159
|
+
- ✅ **Image Generation** - Custom artwork and photos
|
160
|
+
- ✅ **Thumbnail Creation** - Automated image processing
|
161
|
+
- ✅ **Video Production** - Short-form video content
|
162
|
+
- ✅ **Image Analysis** - Content understanding
|
163
|
+
|
164
|
+
### Code Assistance
|
165
|
+
- ✅ **Code Generation** - Automated coding
|
166
|
+
- ✅ **Code Review** - Quality analysis
|
167
|
+
- ✅ **Documentation** - Auto-generated docs
|
168
|
+
- ✅ **Debugging** - Error analysis and fixes
|
169
|
+
|
170
|
+
### Data Processing
|
171
|
+
- ✅ **Text Analysis** - Sentiment, classification
|
172
|
+
- ✅ **Entity Extraction** - Information extraction
|
173
|
+
- ✅ **Translation** - Multi-language support
|
174
|
+
- ✅ **Summarization** - Content condensation
|
175
|
+
|
176
|
+
### Customer Support
|
177
|
+
- ✅ **Chatbots** - Automated customer service
|
178
|
+
- ✅ **FAQ Generation** - Knowledge base creation
|
179
|
+
- ✅ **Ticket Routing** - Intelligent categorization
|
180
|
+
- ✅ **Response Generation** - Automated responses
|
181
|
+
|
182
|
+
## 🎨 Advanced Features
|
183
|
+
|
184
|
+
### Multimodal AI
|
185
|
+
- ✅ **Cross-Modal Operations** - Text + Image + Video
|
186
|
+
- ✅ **Context Bridging** - Seamless modality switching
|
187
|
+
- ✅ **Unified Interface** - Single API for all operations
|
188
|
+
|
189
|
+
### Real-time Features
|
190
|
+
- ✅ **Live Streaming** - Real-time AI responses
|
191
|
+
- ✅ **WebSocket Support** - Bidirectional communication
|
192
|
+
- ✅ **Progress Tracking** - Operation status updates
|
193
|
+
|
194
|
+
### Enterprise Features
|
195
|
+
- ✅ **Scalability** - High-performance processing
|
196
|
+
- ✅ **Reliability** - Robust error handling
|
197
|
+
- ✅ **Security** - Enterprise-grade security
|
198
|
+
- ✅ **Monitoring** - Comprehensive observability
|
199
|
+
|
200
|
+
---
|
201
|
+
|
202
|
+
**Total Features: 100+** 🚀
|
203
|
+
|
204
|
+
Rails AI provides everything you need to build AI-powered Rails applications with confidence and ease!
|
@@ -0,0 +1,222 @@
|
|
1
|
+
# Legal Protection Guide for Rails AI - Canada
|
2
|
+
|
3
|
+
## 🛡️ How to Protect Your Intellectual Property in Canada
|
4
|
+
|
5
|
+
### 1. Copyright Registration (CRITICAL)
|
6
|
+
|
7
|
+
**Why Register:**
|
8
|
+
- Provides prima facie evidence of ownership
|
9
|
+
- Enables statutory damages (up to $20,000 per work)
|
10
|
+
- Allows recovery of attorney's fees
|
11
|
+
- Required for certain legal remedies
|
12
|
+
|
13
|
+
**How to Register:**
|
14
|
+
1. Visit: https://ised-isde.canada.ca/site/canadian-intellectual-property-office/en/copyright
|
15
|
+
2. File Form 1: Application for Registration of Copyright
|
16
|
+
3. Pay fee: $50 CAD per work
|
17
|
+
4. Submit source code and documentation
|
18
|
+
5. Keep registration certificate
|
19
|
+
|
20
|
+
**What to Register:**
|
21
|
+
- Main Rails AI codebase
|
22
|
+
- Documentation
|
23
|
+
- Each major version/release
|
24
|
+
- Agent AI system components
|
25
|
+
|
26
|
+
### 2. Trademark Protection
|
27
|
+
|
28
|
+
**Consider Registering:**
|
29
|
+
- "Rails AI" as a trademark
|
30
|
+
- Logo/design marks
|
31
|
+
- Domain names
|
32
|
+
|
33
|
+
**Process:**
|
34
|
+
1. Search existing trademarks: https://www.ic.gc.ca/app/opic-cipo/trdmrks/srch/home
|
35
|
+
2. File application with CIPO
|
36
|
+
3. Fee: $200+ CAD
|
37
|
+
|
38
|
+
### 3. Legal Documentation
|
39
|
+
|
40
|
+
**Essential Documents:**
|
41
|
+
- Copyright registration certificates
|
42
|
+
- License agreements (signed copies)
|
43
|
+
- Cease and desist letter templates
|
44
|
+
- DMCA takedown notice templates
|
45
|
+
- Legal notices for your website
|
46
|
+
|
47
|
+
### 4. Monitoring and Detection
|
48
|
+
|
49
|
+
**How to Find Unauthorized Use:**
|
50
|
+
- Google Alerts for "Rails AI" + commercial terms
|
51
|
+
- GitHub searches for your code
|
52
|
+
- Regular web searches
|
53
|
+
- Code plagiarism detection tools
|
54
|
+
- Social media monitoring
|
55
|
+
|
56
|
+
**Red Flags to Watch For:**
|
57
|
+
- Companies using your gem in commercial products
|
58
|
+
- Code copied without attribution
|
59
|
+
- Modified versions being sold
|
60
|
+
- API services using your code
|
61
|
+
|
62
|
+
### 5. Legal Action Process
|
63
|
+
|
64
|
+
**Step 1: Cease and Desist Letter**
|
65
|
+
```
|
66
|
+
Subject: Cease and Desist - Unauthorized Use of Rails AI
|
67
|
+
|
68
|
+
Dear [Company],
|
69
|
+
|
70
|
+
We have discovered that your company is using Rails AI software
|
71
|
+
without proper licensing. This constitutes copyright infringement.
|
72
|
+
|
73
|
+
You must:
|
74
|
+
1. Cease all use immediately
|
75
|
+
2. Remove all copies from your systems
|
76
|
+
3. Pay licensing fees for past use
|
77
|
+
4. Sign proper license agreement for future use
|
78
|
+
|
79
|
+
Failure to comply will result in legal action.
|
80
|
+
|
81
|
+
Contact: amahdanieljack@gmail.com
|
82
|
+
```
|
83
|
+
|
84
|
+
**Step 2: DMCA Takedown (for online platforms)**
|
85
|
+
- GitHub, GitLab, etc.
|
86
|
+
- Package repositories (RubyGems)
|
87
|
+
- Code sharing sites
|
88
|
+
|
89
|
+
**Step 3: Legal Action**
|
90
|
+
- Small claims court (under $35,000)
|
91
|
+
- Provincial court (higher amounts)
|
92
|
+
- Federal court (copyright cases)
|
93
|
+
|
94
|
+
### 6. Evidence Collection
|
95
|
+
|
96
|
+
**Document Everything:**
|
97
|
+
- Screenshots of unauthorized use
|
98
|
+
- Website archives (Wayback Machine)
|
99
|
+
- Email communications
|
100
|
+
- License agreements
|
101
|
+
- Payment records
|
102
|
+
- Usage analytics
|
103
|
+
|
104
|
+
**Timeline Documentation:**
|
105
|
+
- When you created the code
|
106
|
+
- When you published it
|
107
|
+
- When you discovered infringement
|
108
|
+
- All communications
|
109
|
+
|
110
|
+
### 7. Canadian Copyright Act Benefits
|
111
|
+
|
112
|
+
**Statutory Damages:**
|
113
|
+
- $500 - $20,000 per work (commercial infringement)
|
114
|
+
- $100 - $5,000 per work (non-commercial)
|
115
|
+
- No need to prove actual damages
|
116
|
+
|
117
|
+
**Other Remedies:**
|
118
|
+
- Injunctions to stop use
|
119
|
+
- Account of profits
|
120
|
+
- Delivery up of infringing copies
|
121
|
+
- Attorney's fees (in some cases)
|
122
|
+
|
123
|
+
### 8. Practical Enforcement Steps
|
124
|
+
|
125
|
+
**Immediate Actions:**
|
126
|
+
1. Register copyright immediately
|
127
|
+
2. Add clear license notices to all code
|
128
|
+
3. Include license in package metadata
|
129
|
+
4. Add legal notices to documentation
|
130
|
+
5. Monitor usage regularly
|
131
|
+
|
132
|
+
**When You Find Infringement:**
|
133
|
+
1. Document everything
|
134
|
+
2. Send cease and desist letter
|
135
|
+
3. File DMCA takedowns
|
136
|
+
4. Consider legal action if necessary
|
137
|
+
5. Keep records of all communications
|
138
|
+
|
139
|
+
### 9. Website Legal Notices
|
140
|
+
|
141
|
+
**Add to Your Website:**
|
142
|
+
```
|
143
|
+
LEGAL NOTICE
|
144
|
+
|
145
|
+
Rails AI is protected by Canadian copyright law.
|
146
|
+
Commercial use requires a license agreement.
|
147
|
+
Unauthorized commercial use is strictly prohibited.
|
148
|
+
|
149
|
+
For licensing inquiries: amahdanieljack@gmail.com
|
150
|
+
```
|
151
|
+
|
152
|
+
### 10. Insurance Considerations
|
153
|
+
|
154
|
+
**Consider Getting:**
|
155
|
+
- Professional liability insurance
|
156
|
+
- Intellectual property insurance
|
157
|
+
- Legal expense insurance
|
158
|
+
|
159
|
+
### 11. Legal Resources in Canada
|
160
|
+
|
161
|
+
**Government Resources:**
|
162
|
+
- Canadian Intellectual Property Office (CIPO)
|
163
|
+
- Copyright Board of Canada
|
164
|
+
- Competition Bureau
|
165
|
+
|
166
|
+
**Legal Aid:**
|
167
|
+
- Pro Bono legal services
|
168
|
+
- Law school clinics
|
169
|
+
- Legal aid societies
|
170
|
+
|
171
|
+
**Professional Help:**
|
172
|
+
- Intellectual property lawyers
|
173
|
+
- Copyright specialists
|
174
|
+
- Technology law firms
|
175
|
+
|
176
|
+
### 12. International Protection
|
177
|
+
|
178
|
+
**Consider:**
|
179
|
+
- WIPO copyright registration
|
180
|
+
- International trademark registration
|
181
|
+
- Cross-border enforcement agreements
|
182
|
+
|
183
|
+
## 🚨 Emergency Response Plan
|
184
|
+
|
185
|
+
**If You Discover Major Infringement:**
|
186
|
+
|
187
|
+
1. **Immediate (Same Day):**
|
188
|
+
- Document everything with screenshots
|
189
|
+
- Save evidence to multiple locations
|
190
|
+
- Send cease and desist letter
|
191
|
+
- File DMCA takedowns
|
192
|
+
|
193
|
+
2. **Within 48 Hours:**
|
194
|
+
- Consult with IP lawyer
|
195
|
+
- Assess damages and scope
|
196
|
+
- Prepare legal strategy
|
197
|
+
- Send formal legal notice
|
198
|
+
|
199
|
+
3. **Within 1 Week:**
|
200
|
+
- File copyright infringement lawsuit if necessary
|
201
|
+
- Seek injunctive relief
|
202
|
+
- Notify relevant authorities
|
203
|
+
- Public disclosure if appropriate
|
204
|
+
|
205
|
+
## 📞 Emergency Contacts
|
206
|
+
|
207
|
+
**Legal Help:**
|
208
|
+
- Law Society of [Your Province] referral service
|
209
|
+
- Canadian Bar Association
|
210
|
+
- Local IP law firms
|
211
|
+
|
212
|
+
**Government:**
|
213
|
+
- CIPO: 1-866-997-1936
|
214
|
+
- Copyright Board: 613-952-8621
|
215
|
+
|
216
|
+
**Your Information:**
|
217
|
+
- Email: amahdanieljack@gmail.com
|
218
|
+
- Keep this guide updated with your specific details
|
219
|
+
|
220
|
+
---
|
221
|
+
|
222
|
+
**Remember:** Copyright protection is automatic in Canada, but registration significantly strengthens your legal position. Act quickly when you discover infringement, and always document everything!
|
data/LICENSE
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
MIT License with Non-Commercial Use Restriction
|
2
|
+
|
3
|
+
Copyright (c) 2025 Daniel Amah (Rails AI)
|
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 for NON-COMMERCIAL PURPOSES ONLY, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, and sublicense copies of the Software
|
9
|
+
for non-commercial purposes, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
1. The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
2. COMMERCIAL USE RESTRICTION: This software may NOT be used for commercial purposes
|
16
|
+
without the express written permission of the copyright holder. Commercial use
|
17
|
+
includes, but is not limited to:
|
18
|
+
- Use in commercial software products
|
19
|
+
- Use in commercial web applications
|
20
|
+
- Use in commercial services or platforms
|
21
|
+
- Use in any context where the software generates revenue or commercial value
|
22
|
+
- Use by commercial entities for business operations
|
23
|
+
- Integration into any product or service offered for sale
|
24
|
+
- Use in any business that generates income or profit
|
25
|
+
- Selling, licensing, or distributing the Software for commercial purposes
|
26
|
+
|
27
|
+
3. For commercial use, you must:
|
28
|
+
- Contact the copyright holder at amahdanieljack@gmail.com
|
29
|
+
- Obtain explicit written permission via signed license agreement
|
30
|
+
- Agree to all terms and conditions set by the copyright holder
|
31
|
+
- Pay the required annual licensing fee of $999 per year
|
32
|
+
- Provide proof of payment before commercial use begins
|
33
|
+
|
34
|
+
4. Non-commercial use (personal projects, educational purposes, open source projects
|
35
|
+
that are not commercial) is permitted under the standard MIT license terms.
|
36
|
+
|
37
|
+
5. Forking and contributing to the open source project is permitted for
|
38
|
+
non-commercial purposes only.
|
39
|
+
|
40
|
+
6. ENFORCEMENT: Unauthorized commercial use constitutes copyright infringement
|
41
|
+
and breach of contract. The copyright holder reserves all rights to pursue
|
42
|
+
legal action, including but not limited to:
|
43
|
+
- Injunctive relief to stop unauthorized use
|
44
|
+
- Monetary damages including lost licensing revenue
|
45
|
+
- Attorney's fees and court costs
|
46
|
+
- Statutory damages under Canadian Copyright Act
|
47
|
+
|
48
|
+
7. JURISDICTION: This license is governed by the laws of Canada and the
|
49
|
+
Province of [Your Province]. Any disputes shall be resolved in the courts
|
50
|
+
of [Your Province], Canada.
|
51
|
+
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
53
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
54
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
55
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
56
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
57
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
58
|
+
SOFTWARE.
|
59
|
+
|
60
|
+
For commercial licensing inquiries, please contact:
|
61
|
+
Email: amahdanieljack@gmail.com
|
62
|
+
Subject: Commercial License Inquiry - Rails AI
|
data/LICENSE_SUMMARY.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Rails AI License Summary
|
2
|
+
|
3
|
+
## 🚫 **COMMERCIAL USE PROHIBITED**
|
4
|
+
|
5
|
+
**This software is NOT for commercial use without explicit permission.**
|
6
|
+
|
7
|
+
## ✅ **ALLOWED USES**
|
8
|
+
|
9
|
+
### **Personal Use** ✅
|
10
|
+
- Personal projects
|
11
|
+
- Learning and education
|
12
|
+
- Non-commercial experimentation
|
13
|
+
- Individual development
|
14
|
+
|
15
|
+
### **Open Source Use** ✅
|
16
|
+
- Contributing to open source projects
|
17
|
+
- Forking for non-commercial purposes
|
18
|
+
- Educational institutions (non-commercial)
|
19
|
+
- Research projects (non-commercial)
|
20
|
+
|
21
|
+
## ❌ **PROHIBITED USES**
|
22
|
+
|
23
|
+
### **Commercial Use** ❌
|
24
|
+
- Commercial software products
|
25
|
+
- Commercial web applications
|
26
|
+
- Commercial services or platforms
|
27
|
+
- Any revenue-generating use
|
28
|
+
- Business operations
|
29
|
+
- Products or services offered for sale
|
30
|
+
- Any income or profit-generating activity
|
31
|
+
|
32
|
+
## �� **COMMERCIAL LICENSING**
|
33
|
+
|
34
|
+
### **To Use Commercially:**
|
35
|
+
1. **Contact**: amahdanieljack@gmail.com
|
36
|
+
2. **Subject**: Commercial License Inquiry - Rails AI
|
37
|
+
3. **Fee**: $999 per year
|
38
|
+
4. **Process**: Signed license agreement required
|
39
|
+
|
40
|
+
### **Commercial License Includes:**
|
41
|
+
- Full commercial use rights
|
42
|
+
- Priority support
|
43
|
+
- Updates and patches
|
44
|
+
- Legal protection
|
45
|
+
- Commercial documentation
|
46
|
+
|
47
|
+
## ⚖️ **LEGAL ENFORCEMENT**
|
48
|
+
|
49
|
+
### **Unauthorized Commercial Use:**
|
50
|
+
- **Copyright Infringement**: Legal action will be taken
|
51
|
+
- **Monetary Damages**: Lost licensing revenue + costs
|
52
|
+
- **Injunctive Relief**: Immediate stop to unauthorized use
|
53
|
+
- **Canadian Law**: Governed by Canadian Copyright Act
|
54
|
+
|
55
|
+
### **Your Rights:**
|
56
|
+
- **Fork**: Yes, for non-commercial purposes
|
57
|
+
- **Contribute**: Yes, to open source projects
|
58
|
+
- **Modify**: Yes, for personal use
|
59
|
+
- **Distribute**: Yes, with license intact
|
60
|
+
|
61
|
+
## 📞 **CONTACT**
|
62
|
+
|
63
|
+
**For Commercial Licensing:**
|
64
|
+
- **Email**: amahdanieljack@gmail.com
|
65
|
+
- **Subject**: Commercial License Inquiry - Rails AI
|
66
|
+
- **Response Time**: Within 24 hours
|
67
|
+
|
68
|
+
**For Questions:**
|
69
|
+
- **Email**: amahdanieljack@gmail.com
|
70
|
+
- **Subject**: License Question - Rails AI
|
71
|
+
|
72
|
+
---
|
73
|
+
|
74
|
+
**Remember**: This is a non-commercial license. Commercial use requires explicit permission and payment of the annual licensing fee.
|