Spaces:
Running

danylokhodus Claude Opus 5.5 commited on
Commit
6d07d79
·
1 Parent(s): 724fc63

feat: remove AI assistant, Free/Plus plans, user templates API, security fixes

Browse files

- Remove built-in AI (AIController, AIService, Gemini bridge, DeepSeek proxy, Node in Docker)
- Plans: only Free (small creation limits) and Plus (no limits); migrate Pro/Ultra to Plus
- New /api/templates for user templates; old built-in TemplateLibrary removed
- Security: auth + ownership checks on nodes/edges/habits/users/sync, remove anonymous
agent token and public user list, PBKDF2 password hashing with legacy upgrade,
CORS restricted to the web client, change-tier requires auth (Plus upgrade gated
by Payments:AllowFreeUpgrade), Stripe webhook disabled until signature check exists
- Hub only relays to connections that joined the board
- Clear stale SQLite lock files before opening the DB, add /api/health

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

39 files changed +606 -3992
Files changed (39)
Dockerfile-9
FlowAPI.Application/DTOs/AI/AIDtos.csDeleted-44
FlowAPI.Application/DTOs/Graph/GraphDtos.cs-10
FlowAPI.Application/DTOs/Template/TemplateDtos.csAdded+36
FlowAPI.Application/DTOs/User/UserDtos.cs-3
FlowAPI.Application/Interfaces/IAIService.csDeleted-12
FlowAPI.Application/Interfaces/ICustomTemplateRepository.cs+3
FlowAPI.Application/Interfaces/IGeminiBridgeManager.csDeleted-9
FlowAPI.Application/Interfaces/IGraphService.cs-3
FlowAPI.Application/Interfaces/ITemplateService.csAdded+16
FlowAPI.Application/Services/AIService.csDeleted-940
FlowAPI.Application/Services/GeminiBridgeManager.csDeleted-203
FlowAPI.Application/Services/GraphService.cs+13-180
FlowAPI.Application/Services/HabitService.cs+3-6
FlowAPI.Application/Services/Plans.csAdded+30
FlowAPI.Application/Services/TemplateLibrary.csDeleted-353
FlowAPI.Application/Services/TemplateService.csAdded+126
FlowAPI.Application/Services/UserService.cs+43-10
FlowAPI.Infrastructure/Migrations/20261017120000_MergeTiersIntoPlus.csAdded+28
FlowAPI.Infrastructure/Repositories/CustomTemplateRepository.cs+21
FlowAPI/Controllers/AIController.csDeleted-77
FlowAPI/Controllers/AchievementsController.cs-1
FlowAPI/Controllers/AgentCanvasController.cs-32
FlowAPI/Controllers/EdgesController.cs+28-6
FlowAPI/Controllers/GraphsController.cs-51
FlowAPI/Controllers/HabitsController.cs+13-6
FlowAPI/Controllers/HealthController.csAdded+15
FlowAPI/Controllers/PaymentsController.cs+41-31
FlowAPI/Controllers/SyncController.cs+2
FlowAPI/Controllers/TaskNodesController.cs+38-11
FlowAPI/Controllers/TemplatesController.csAdded+78
FlowAPI/Controllers/UsersController.cs+22-9
FlowAPI/FlowAPI.csproj-6
FlowAPI/FreeDeepseekAPI/package.jsonDeleted-6
FlowAPI/FreeDeepseekAPI/server.jsDeleted-1400
FlowAPI/Hubs/BoardHub.cs+14-8
FlowAPI/Program.cs+36-86
FlowAPI/appsettings.json-7
FlowAPI/gemini_bridge.pyDeleted-473