Ubuntu
0a7e5efcfd
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>
2026-04-14 20:30:08 +00:00
Ubuntu
46c49d0f2f
feat(notify): Phase 2.5 — Notifier Telegram + Resend email
...
- internal/notify: Telegram (POST /sendMessage) et Resend email (POST /emails)
- Credentials lus depuis env vars (telegramBaseURL/resendBaseURL overridables en test)
- No-op gracieux quand token/key absents
- 5 tests unitaires avec httptest.Server
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 20:28:46 +00:00
Ubuntu
c87145ea0b
feat(watcher): Phase 2.1 — SessionWatcher goroutine
...
- internal/watcher: detecte fin de tache via signal file, prompt ❯, idle timeout
- state: ForEachWorking, SetStalled, SetActiveAccount, ActiveAccount
- config: WatcherConfig, DispatcherConfig, JanitorConfig, NotificationsConfig + defaults
- 5 tests unitaires, go test ./... -race OK
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 20:27:51 +00:00
Ubuntu
978b60ccf7
feat: SessionLifecycleManager — auto-detect and repair dead tmux sessions
...
- Add internal/lifecycle/manager.go with Manager struct, Run() ticker loop
(15s interval), EnsureAllSessions() for boot-time session creation, and
reconcile() that recreates idle sessions and recovers working ones via
SetFailed + CreateSession
- Add state.SetFailed() to record crash timestamp on SessionState
- Add internal/lifecycle/manager_test.go with mock tmux client and 3 tests:
TestReconcileCreatesDeadSession, TestReconcileRecoversCrashedSession,
TestEnsureAllSessions — all pass
- Wire lifecycle.Manager into cmd/claude-failover/main.go after state init
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 18:02:25 +00:00
Ubuntu
2d43580c18
chore: add CLAUDE.md and update gitignore
2026-04-14 17:55:29 +00:00
claude-agent
65c25c8955
docs: enrich architecture with Go implementation details
2026-04-14 13:36:20 +00:00
481e276d7d
chore: update module path after repo transfer to olivier/
2026-04-14 13:30:18 +00:00
cf4957010f
feat: initial project structure
2026-04-14 13:29:24 +00:00