refactor(archied): cut the dashboard over to the archie-ui process
PRD gate 7 (docs/prds/ui-service-boundary.md): the daemon's in-process webui.Run listener is deleted in the same change that wires the UI process, so no fallback or second HTTP authority remains. The daemon's webui.Server stays only as the configuration snapshot's renderer (archie-core-ymut): it keeps the config Holder, provenance, reload status and the override list, and drops the store surfaces, event broadcast, chat/task wiring that only fed the listener. The bus drain becomes persistence-only -- the store is the single fan-out point the UI process reads through its event pump. The dashboard's configuration write path (PATCH /api/config, per-row reset, per-repo field update) is deleted rather than left as dead policy: the writes are descoped for the UI process (archie-core-ymut) and no route reaches them. Editing is config.toml plus reload; the overlay store stays for reload wiring.
This commit is contained in:
1 parent
428a7879f6
commit
d36073528d
9 files changed
+65
-468
No files matched your search
@@ -13,6 +13,7 @@
|
||||
package captureintake
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
@@ -52,9 +53,11 @@ type Receiver struct {
|
||||
// MaxBodyBytes rejects (413) a body larger than this before redaction
|
||||
// or storage sees it.
|
||||
MaxBodyBytes int64
|
||||
// Publish puts the capture's arrival on the activity stream. Nil records
|
||||
// the capture without announcing it.
|
||||
Publish func(events.Event)
|
||||
// Publish puts the capture's arrival on the activity stream, with the
|
||||
// request's context: the announce happens synchronously inside the
|
||||
// handler, before the 202 is written, so the request's lifetime bounds
|
||||
// it. Nil records the capture without announcing it.
|
||||
Publish func(ctx context.Context, e events.Event)
|
||||
Log *slog.Logger
|
||||
}
|
||||
|
||||
@@ -156,7 +159,7 @@ func (rc *Receiver) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// The captures view treats this purely as an invalidation signal and
|
||||
// refetches the list for the actual row data.
|
||||
if rc.Publish != nil {
|
||||
rc.Publish(events.Event{
|
||||
rc.Publish(r.Context(), events.Event{
|
||||
Kind: "capture",
|
||||
Detail: "capture from " + source,
|
||||
Data: map[string]any{"id": id, "source": source},
|
||||
|
||||
@@ -27,7 +27,7 @@ type recordingPublisher struct {
|
||||
published []events.Event
|
||||
}
|
||||
|
||||
func (r *recordingPublisher) Publish(e events.Event) {
|
||||
func (r *recordingPublisher) Publish(_ context.Context, e events.Event) {
|
||||
r.published = append(r.published, e)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user