From 901e641f27de0784a6e9250cbc1785eb08c3529a Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 10 Nov 2026 18:57:05 +0800 Subject: [PATCH] cli: name /api/model-price and /api/remote's routes 40ca0c88d (a model's price set from the Usage page, soilzhu80 on X) added GET and POST /api/model-price with no entry in cliForRoute or notYet, so TestEveryRouteHasACommandOrIsNamed was red on main. `magpie model price ` already reads and sets a model's price from any provider (the */model key the route stores at, anyModelPrice in model_cli.go), so both routes are named for it. b35867730 (a server's magpie in a window of the app, xuanwo on X) added GET and POST /api/remote and POST /api/remote/forget the same way. They keep the address and key of a magpie the app opens in its own window, so they are the window's own (W) in notYet. Run: internal/cli's TestEveryRoute and parity tests on mote at this change, ok. Red before it: "GET /api/model-price has no command" and the POST one (the run at 9d82986ea), and the three /api/remote lines at b35867730 with only the model-price lines in. --- internal/cli/settings_parity_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/cli/settings_parity_test.go b/internal/cli/settings_parity_test.go index 9eda623ae..d5fdbda1b 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -226,6 +226,8 @@ var cliForRoute = map[string]string{ "POST /api/settings/agent-compact": "magpie model compact", "POST /api/settings/agent-suffix": "magpie model suffix", "POST /api/update/install": "magpie update", + "GET /api/model-price": "magpie model price", + "POST /api/model-price": "magpie model price", } var notYet = map[string]string{ @@ -239,6 +241,9 @@ var notYet = map[string]string{ "GET /api/notices": W, // api.go "GET /api/omarchy": W, // api.go "GET /api/quit": W, // api.go: the window's Quit question + "GET /api/remote": W, // remote.go: another magpie opened in a window of the app + "POST /api/remote": W, // remote.go + "POST /api/remote/forget": W, // remote.go "GET /api/state": W, // api.go "POST /api/agents/{action}/{id}": A, // api.go "POST /api/agents/arrange": W, // api.go