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 <model>` 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 atb35867730with only the model-price lines in.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user