Versions 20 to 21
Lines 9–16 at 21 (were 9–15 at 20)
1111
12−import { resolve } from "node:path";
1516
Lines 93–100 at 21 (were 92–98 at 20)
95− description: "The abso folder to run in (default: the folder this server started in).",
97+ "The abso folder to run in: the folder this server started in (the default), or one inside it.",
9799 json: { type: "boolean", description: "Answer with the command's JSON (as --json) instead of its text." },
Lines 105–154 at 21 (were 103–108 at 20)
105107
116+
122+
134+ const named = typeof input.folder === "string" && input.folder !== "" ? input.folder : undefined;
138+ refused: `folder ${JSON.stringify(named)} is outside ${start}, the folder this server started in; tools run there or below`,
147+ refused: `--attach ${p} is outside ${start}, the folder this server started in; a tool attaches files from there or below`,
151+
106152/** The command line a tool call stands for: flags as --name=value, then the words after --. */
107153export function argvFor(command: string, input: Readonly<Record<string, unknown>>): string[] {
Lines 204–212 at 21 (were 158–164 at 20)
159205 if (command === undefined) return fail(id, -32602, `no tool ${JSON.stringify(name)}; tools/list names them`);
161− const folder = typeof args.folder === "string" && args.folder !== "" ? resolve(cwd, args.folder) : cwd;
208+ if ("refused" in where) return reply(id, { content: [{ type: "text", text: where.refused }], isError: true });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 20 21 client/src/mcp.ts --json
- JSON
- /christopher/abso-core/compare/20..21?file=client%2Fsrc%2Fmcp.ts&format=json