mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 22:12:59 +00:00
🚀 Major improvements to agent system: ## Wallet Management ✅ - Move wallet deduction to AFTER successful processing (not before) - Add real-time wallet balance updates in frontend - Prevent users from losing money on failed requests - Update both data_analyzer and weather_reporter processors ## Data Analyzer Agent 📊 - Fix N8N integration to handle array response format - Add binary PDF file upload (multipart/form-data) - Implement real-time AJAX results display below form - Add wallet balance updates after successful processing - Support continuous workflow with "Analyze Another File" ## Weather Reporter Agent 🌤️ - Update price from 2.5 AED to 2.0 AED - Fix results display (was using page reload, now AJAX) - Add real-time wallet balance updates - Implement dynamic results rendering below form - Add "Get Another Report" functionality ## Template System 🎨 - Update agent generator templates with correct wallet flow - Add data-wallet-balance attributes for easy targeting - Fix JavaScript querySelector errors - Implement proper error handling and logging ## Documentation 📚 - Update CLAUDE.md with wallet best practices - Add examples of current production agents - Document required JavaScript functions - Update pricing information and modern agent features - Add gitignore entries for nextjs/ and netcop-ai-hub/ ## Frontend JavaScript 💻 - Add updateWalletBalance() function for real-time updates - Implement displayResults() for dynamic content rendering - Add proper error handling with user-friendly messages - Support continuous workflow without page refresh 🎉 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
# Generated by Django 5.2.4 on 2025-07-10 04:31
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('data_analyzer', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
# Add new fields only (don't remove old ones to avoid conflicts)
|
|
migrations.AddField(
|
|
model_name='dataanalysisagentrequest',
|
|
name='data_file',
|
|
field=models.FileField(blank=True, upload_to='uploads/data_analyzer/'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='dataanalysisagentrequest',
|
|
name='analysis_type',
|
|
field=models.CharField(
|
|
choices=[
|
|
('summary', 'Summary Analysis'),
|
|
('detailed', 'Detailed Analysis'),
|
|
('statistical', 'Statistical Analysis'),
|
|
],
|
|
default='summary',
|
|
max_length=50
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name='dataanalysisagentresponse',
|
|
name='analysis_results',
|
|
field=models.JSONField(blank=True, default=dict),
|
|
),
|
|
migrations.AddField(
|
|
model_name='dataanalysisagentresponse',
|
|
name='insights_summary',
|
|
field=models.TextField(blank=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name='dataanalysisagentresponse',
|
|
name='report_text',
|
|
field=models.TextField(blank=True),
|
|
),
|
|
] |