Versions 104 to 318
Lines 107–128 at 318 (were 107–112 at 104)
108108
110+ * A server's base: its origin and any path, without a trailing slash (https://x.example/issues), or undefined
111+ * for anything else, a query, a fragment or a user name included. Plain string work, as serverOrigin.
118+
122+ return base === undefined ? undefined : serverOrigin(base.replace(/^(https?:\/\/[^/]+).*$/i, "$1"));
124+
Lines 146–155 at 318 (were 130–139 at 104)
133− const io = typeof i === "string" ? serverOrigin(i) : undefined;
136− trusted.push(io);
Lines 162–185 at 318 (were 146–159 at 104)
147163
149− * The Issues Worker beside an avcs server (#54): this machine's servers.json
150− * first, then abso's own. ABSO_ISSUES_SERVER overrides both (issues.ts).
152169export function issuesServerFor(server: string, machine?: MachineServers): string | undefined {
154− return o === undefined ? undefined : (machine?.issues[o] ?? ISSUES_SERVERS[o]);
171+ return o === undefined ? undefined : (machine?.issues[o] ?? ISSUES_SERVERS[o] ?? `${o}/issues`);
156173
175+ * Whether the token may go to an Issues Worker: as to its origin (tokenGoesTo), since it may sit at a path on
176+ * its server, as the open server's do at <server>/issues. A query, a fragment or a user name is refused.
182+
157183/** Whether the token may go to `server`: TOKEN_SERVERS, `trusted` (trustedList), or this machine. Plain string work: the mod has no URL. */
- MCP
- compare on this site's /mcp
- CLI
- abso diff 104 318 client/src/core.ts --json
- JSON
- /christopher/abso-core/compare/104..318?file=client%2Fsrc%2Fcore.ts&format=json