feat(dispatcher): Phase 2.2 — Task Dispatcher avec fsnotify

- internal/dispatcher: fsnotify sur inbox/, fallback poll 60s, launchAgent
- parseFrontmatter YAML, modelForPriority (critical→opus, reste→sonnet)
- waitForPrompt polling ❯, buildTaskMessage, 1 tache par session
- isSessionFree: check tmux liveness + state idle + cooldown 5min
- 5 tests unitaires (parse, model, dispatch, no-session, missing-tmux)
- go.mod: ajout fsnotify v1.9.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ubuntu 2026-04-14 20:30:08 +00:00
parent 46c49d0f2f
commit 0a7e5efcfd
4 changed files with 537 additions and 0 deletions

5
go.mod
View file

@ -3,3 +3,8 @@ module forge.secuaas.ovh/olivier/claude-failover
go 1.22
require gopkg.in/yaml.v3 v3.0.1
require (
github.com/fsnotify/fsnotify v1.9.0 // indirect
golang.org/x/sys v0.13.0 // indirect
)