Adapted from tau's eventbus/metrics designs (per Sam), slimmed for a small daemon: - internal/events: single-type bus with mutex fan-out and bounded per-subscriber buffers that DROP on overflow (counted) — a stalled dashboard can never backpressure the task engine (tau's blocking delivery deliberately not copied) - store: events table + queries powering the dashboards: task timelines, per-workflow outcomes/spend, stage durations and error counts (from stage_finish events), token spend by day - emit points: task_queued, stage_start/finish(duration, error), agent_finish(status, tokens, steps, model), parked, outcome, pr_merged/pr_rejected - internal/webui: read-only dashboard (embedded single page, no build step) — status cards, task board with click-through timelines, live SSE event tail with catch-up via ?since=<event id>, workflow/stage metrics tables. [web] listen config, default 127.0.0.1:8484, no auth by design (bind localhost/tailnet); "off" disables - sink pipeline: bus -> SQLite insert (stamps row id) -> SSE broadcast Verified live: dashboard serves real workflow stats from the existing task history; bus overflow and event-log round-trips unit-tested.
28 lines
851 B
AMPL
28 lines
851 B
AMPL
module github.com/samcharles93/archie-core
|
|
|
|
go 1.26.2
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/google/go-github/v78 v78.0.0
|
|
modernc.org/sqlite v1.54.0
|
|
)
|
|
|
|
require (
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/google/go-querystring v1.1.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
golang.org/x/sys v0.46.0 // indirect
|
|
modernc.org/libc v1.74.1 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
)
|
|
|
|
require github.com/samcharles93/ai-sdk v0.1.17
|
|
|
|
replace github.com/samcharles93/ai-sdk => /work/projects/ai-sdk
|