Adds a harvested .okf/ knowledge bundle (codebase concepts + starter architecture/services/rules scaffolding) and .mcp.json pointing at the shared okf MCP service (http://localhost:8765/archie-core/), which serves multiple projects' bundles from a single process.
963 B
963 B
description, resource, tags, timestamp, title, type
| description | resource | tags | timestamp | title | type | ||
|---|---|---|---|---|---|---|---|
| Source module internal/webui/webui.go (177 lines). | internal/webui/webui.go |
|
2026-07-21T18:36:22Z | webui.go | Module |
Module webui.go
Path: internal/webui/webui.go
Lines: 177
Snippet Preview
// Package webui is archied's observability dashboard: task board,
// per-task timelines, workflow/stage metrics, and a live event tail
// over SSE. Read-only — the daemon is steered through GitHub, not here.
// Bind it to localhost or a tailnet address; it has no auth.
package webui
import (
"context"
_ "embed"
"encoding/json"
"log/slog"
"net/http"
"strconv"
"sync"
"time"
"github.com/samcharles93/archie-core/internal/events"
"github.com/samcharles93/archie-core/internal/store"
)
//go:embed index.html
var indexHTML []byte
type Server struct {
Store *store.Store
Log *slog.Logger
mu sync.Mutex
conns map[chan events.Event]struct{}
}