refactor: archie:* → agent:* labels, remove stale archie label

This commit is contained in:
sam committed 2026-07-24 12:09:38 +10:00
1 parent b8ac644acd
commit 242762b2fb
3 files changed
+15 -15

No files matched your search

+5 -6
View File
@@ -5,7 +5,6 @@ work_dir = "/var/lib/archie/work"
db_path = "/var/lib/archie/archie.db"
poll_interval = "60s"
label = "archie"
bot_user = "archie"
diff_cap_lines = 0
@@ -19,11 +18,11 @@ trigger = "assignee"
ack_reaction = "eyes"
[dispatch.labels]
queued = "archie:queued"
working = "archie:working"
waiting = "archie:waiting"
pr = "archie:pr"
parked = "archie:parked"
queued = "agent:queued"
working = "agent:working"
waiting = "agent:waiting"
pr = "agent:pr"
parked = "agent:parked"
[agent]
mode = "nats"
+1
View File
@@ -49,6 +49,7 @@ services:
dockerfile: Dockerfile
image: git.catlow.cloud/sam/archie-agent:latest
command: ["true"]
entrypoint: [""]
restart: "no"
volumes:
+9 -9
View File
@@ -203,15 +203,15 @@ type Dispatch struct {
Labels map[string]string `toml:"labels" json:"labels"`
}
// dispatchLabelDefaults is the fallback label set, reproducing the
// legacy archie:* constants that were previously in internal/forge.
// dispatchLabelDefaults is the fallback label set used when the user
// hasn't configured explicit [dispatch.labels] entries.
var dispatchLabelDefaults = map[string]string{
"queued": "archie:queued",
"working": "archie:working",
"waiting": "archie:waiting",
"pr": "archie:pr",
"parked": "archie:parked",
"dead": "archie:dead",
"queued": "agent:queued",
"working": "agent:working",
"waiting": "agent:waiting",
"pr": "agent:pr",
"parked": "agent:parked",
"dead": "agent:dead",
}
// StateLabel returns the configured label for a state name. Falls back
@@ -401,7 +401,7 @@ func Load(path string) (Config, error) {
cfg.PollInterval = Duration(60 * time.Second)
}
if cfg.Label == "" {
cfg.Label = "archie"
cfg.Label = ""
}
if cfg.DiffCapLines == 0 {
cfg.DiffCapLines = 400