SOGOMS v1.0.3 - Admin UI, Cron, Config reload

Phase 13 : sogoms-cron
- Jobs planifiés avec schedule cron standard
- Types: query_email, http, service
- Actions: list, trigger, status

Phase 16 : Réorganisation config/apps/{app}/
- Tous les fichiers d'une app dans un seul dossier
- Migration prokov vers nouvelle structure

Phase 17 : sogoms-admin
- Interface web d'administration (Go templates + htmx)
- Auth sessions cookies signées HMAC-SHA256
- Rôles super_admin / app_admin avec permissions

Phase 19 : Création d'app via Admin UI
- Formulaire création app avec config DB/auth
- Bouton "Scanner la base" : introspection + schema.yaml
- Rechargement automatique sogoway via SIGHUP

Infrastructure :
- sogoctl : socket de contrôle /run/sogoctl.sock
- sogoway : reload config sur SIGHUP sans restart

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-19 20:30:56 +01:00
parent a4694a10d1
commit 65da4efdad
76 changed files with 5305 additions and 80 deletions

View File

@@ -0,0 +1,36 @@
# Scénario: Supprimer un projet
name: projects_delete
version: "1.0"
description: Supprime un projet (cascade sur sous-projets et tâches)
input:
required:
- id
validation:
id:
type: int
steps:
- id: check_project
service: db
action: query_one
params:
query: "SELECT id FROM projects WHERE id = ? AND user_id = ?"
args: ["{{input.id}}", "{{auth.user_id}}"]
on_error: abort
error_message: "Projet non trouvé"
error_status: 404
- id: delete_project
service: db
action: delete
params:
table: projects
where:
id: "{{input.id}}"
output:
status: 200
body:
success: true
message: "Projet supprimé"