Fix automation system and AI learning integration
Fixed automation v2 start button (relative API URLs) Fixed batch analysis API endpoint in simple-automation Fixed AI learning storage with correct userId Implemented comprehensive learning data storage Fixed parallel analysis system working correctly - Changed frontend API calls from localhost:9001 to relative URLs - Updated simple-automation to use localhost:3000 for batch analysis - Fixed learning integration with 'default-user' instead of 'system' - AI learning now stores analysis results with confidence/recommendations - Batch analysis working: 35s completion, 85% confidence, learning stored - True parallel screenshot system operational (6 screenshots when multi-timeframe) - Automation start/stop functionality fully working
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { emergencyAutomation } from '../../../../lib/emergency-automation'
|
||||
import { NextResponse } from 'next/server';
|
||||
import { simpleAutomation } from '@/lib/simple-automation';
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
const status = emergencyAutomation.getStatus()
|
||||
|
||||
return Response.json({
|
||||
success: true,
|
||||
status
|
||||
})
|
||||
const status = simpleAutomation.getStatus();
|
||||
return NextResponse.json(status);
|
||||
} catch (error) {
|
||||
return Response.json({
|
||||
success: false,
|
||||
error: error.message
|
||||
}, { status: 500 })
|
||||
console.error('Status error:', error);
|
||||
return NextResponse.json({
|
||||
error: 'Failed to get status',
|
||||
message: error.message
|
||||
}, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user