cli tests: context-cap-mode and the memory review routes are named

TestEveryRouteHasACommandOrIsNamed was red on main again: f5e1b1091
added POST /api/settings/context-cap-mode, which `magpie model
context-cap all|own` does, and POST /api/memory/promote, skill and
decline came with no command or notYet line (stage 3, the library).

Run on mote at a3900e46f plus this: go test -run
TestEveryRouteHasACommandOrIsNamed ./internal/cli/ ok; without it the
test names the four routes. The rest of internal/cli is red on main for
TestModelUsageAlignsEveryDescription and its sibling (#6104), not this.
This commit is contained in:
yetone
2026-11-11 15:43:38 +08:00
parent a3900e46f1
commit 150646bd0d
+4
View File
@@ -231,6 +231,7 @@ var cliForRoute = map[string]string{
"POST /api/settings/agent-compact": "magpie model compact",
"POST /api/settings/agent-suffix": "magpie model suffix",
"POST /api/settings/context-cap": "magpie model context-cap",
"POST /api/settings/context-cap-mode": "magpie model context-cap",
"POST /api/update/install": "magpie update",
"GET /api/model-price": "magpie model price",
"POST /api/model-price": "magpie model price",
@@ -410,6 +411,9 @@ var notYet = map[string]string{
"POST /api/memory/distill": L, // memory_distill.go
"POST /api/memory/distill/run": L, // memory_distill.go
"POST /api/memory/distill/stop": L, // memory_distill.go
"POST /api/memory/promote": L, // memory.go
"POST /api/memory/skill": L, // memory.go
"POST /api/memory/decline": L, // memory.go
"POST /api/memory/dream": L, // memory_distill.go
"POST /api/memory/dream/run": L, // memory_distill.go
"POST /api/memory/dream/undo": L, // memory_distill.go