Versions 155 to 318
Lines 8–54 at 318 (were 8–22 at 155)
99// A value that isn't an http or https URL (a user name, a query or a fragment included) is refused before any
12+// When nothing names a server (abso-core issue 9), every command picks it in one order (chooseServer):
17+// Which servers this box is signed in to plays no part: signed in to staging and prod both, or to staging
18+// alone, a command with nothing named goes to prod, and staging is a deliberate --server, folder or ABSO_SERVER.
1119
15−import { serverBase } from "./core.ts";
1625
1928
31+
33+export const SERVER_ORDER = `--server <url>, else the server of the abso folder you're in, else ABSO_SERVER, else prod (${PROD_SERVER})`;
34+
36+ * The server a command goes to: `flag` (checked by serverFlag), else the joined folder's, else ABSO_SERVER
37+ * (checked here), else prod. An explicit choice is returned as given, never swapped for another.
48+ if (named !== undefined) return checkedServer(named, env.ABSO_SERVER ? "ABSO_SERVER" : "AVCS_SERVER");
51+
Lines 133–139 at 318 (were 101–107 at 155)
103135 ? "--server <url>: the server the key is for; without it, this folder's. It is used as given, never swapped for another."
104− : "--server <url>: the server to use, as given, never swapped for another. Each server gets only its own sign-in.";
136+ : `--server <url>: the server to use, as given, never swapped for another. The order: ${SERVER_ORDER}. This box's sign-in for one server is never sent to another.`;
107139
- MCP
- compare on this site's /mcp
- CLI
- abso diff 155 318 client/src/server-choice.ts --json
- JSON
- /christopher/abso-core/compare/155..318?file=client%2Fsrc%2Fserver-choice.ts&format=json