{"path":"client/test/attach.test.ts","version":50,"newest":318,"draft":null,"agent":null,"exists":true,"lines":[{"n":1,"text":"// --attach (abso issue 171): images go up to the Issues Worker before the","author":"pinch","version":5},{"n":2,"text":"// write that carries them, and the issue's page lists them. The Issues server","author":"pinch","version":5},{"n":3,"text":"// here is a stand-in that keeps what it was sent.","author":"pinch","version":5},{"n":4,"text":"","author":"pinch","version":5},{"n":5,"text":"import assert from \"node:assert/strict\";","author":"pinch","version":5},{"n":6,"text":"import { mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from \"node:fs\";","author":"pinch","version":29},{"n":7,"text":"import { createServer, type Server } from \"node:http\";","author":"pinch","version":5},{"n":8,"text":"import type { AddressInfo } from \"node:net\";","author":"pinch","version":5},{"n":9,"text":"import { tmpdir } from \"node:os\";","author":"pinch","version":5},{"n":10,"text":"import { join } from \"node:path\";","author":"pinch","version":5},{"n":11,"text":"import { after, before, describe, it } from \"node:test\";","author":"pinch","version":5},{"n":12,"text":"import { issuePage } from \"../src/issues.ts\";","author":"pinch","version":5},{"n":13,"text":"import type { IssuePage } from \"../src/issues-wire.ts\";","author":"pinch","version":5},{"n":14,"text":"import { main } from \"../src/main.ts\";","author":"pinch","version":5},{"n":15,"text":"import { type Fake, startFake } from \"./fake-server.ts\";","author":"pinch","version":5},{"n":16,"text":"","author":"pinch","version":5},{"n":17,"text":"const TOKEN = \"test-token-not-secret\";","author":"pinch","version":5},{"n":18,"text":"let fake: Fake;","author":"pinch","version":5},{"n":19,"text":"let issues: Server;","author":"pinch","version":5},{"n":20,"text":"let issuesUrl: string;","author":"pinch","version":5},{"n":21,"text":"const seen: { method: string; url: string; headers: Record<string, string | string[] | undefined>; body: Buffer }[] =","author":"pinch","version":5},{"n":22,"text":"\t[];","author":"pinch","version":5},{"n":23,"text":"const dirs: string[] = [];","author":"pinch","version":5},{"n":24,"text":"","author":"pinch","version":5},{"n":25,"text":"before(async () => {","author":"pinch","version":5},{"n":26,"text":"\tfake = await startFake(0, TOKEN);","author":"pinch","version":5},{"n":27,"text":"\tissues = createServer((req, res) => {","author":"pinch","version":5},{"n":28,"text":"\t\tconst parts: Buffer[] = [];","author":"pinch","version":5},{"n":29,"text":"\t\treq.on(\"data\", (c: Buffer) => parts.push(c));","author":"pinch","version":5},{"n":30,"text":"\t\treq.on(\"end\", () => {","author":"pinch","version":5},{"n":31,"text":"\t\t\tconst body = Buffer.concat(parts);","author":"pinch","version":5},{"n":32,"text":"\t\t\tseen.push({ method: req.method!, url: req.url!, headers: req.headers, body });","author":"pinch","version":5},{"n":33,"text":"\t\t\tconst json = (o: unknown) => res.writeHead(200, { \"content-type\": \"application/json\" }).end(JSON.stringify(o));","author":"pinch","version":5},{"n":34,"text":"\t\t\t// A server from before attachments: it reads every POST body as JSON.","author":"pinch","version":15},{"n":35,"text":"\t\t\tif (req.url!.includes(\"/p/old\") && req.url!.endsWith(\"/attachments\"))","author":"pinch","version":15},{"n":36,"text":"\t\t\t\treturn res.writeHead(400, { \"content-type\": \"application/json\" }).end('{\"error\":\"the body is JSON\"}');","author":"pinch","version":15},{"n":37,"text":"\t\t\tif (req.url!.endsWith(\"/attachments\"))","author":"pinch","version":5},{"n":38,"text":"\t\t\t\treturn json({","author":"pinch","version":5},{"n":39,"text":"\t\t\t\t\tid: `a${String(seen.length).padStart(12, \"0\")}`,","author":"pinch","version":5},{"n":40,"text":"\t\t\t\t\tname: \"x\",","author":"pinch","version":5},{"n":41,"text":"\t\t\t\t\ttype: \"image/png\",","author":"pinch","version":5},{"n":42,"text":"\t\t\t\t\tsize: body.length,","author":"pinch","version":5},{"n":43,"text":"\t\t\t\t});","author":"pinch","version":5},{"n":44,"text":"\t\t\tif (req.url!.endsWith(\"/issue\")) return json({ id: 7 });","author":"pinch","version":5},{"n":45,"text":"\t\t\tif (/\\/issue\\/\\d+\\/comment$/.test(req.url!)) return json({ id: 3 });","author":"pinch","version":5},{"n":46,"text":"\t\t\t// An older Issues server keeps no files on asks: it answers without them (project \"keepless\").","author":"pinch","version":35},{"n":47,"text":"\t\t\tconst older = req.url!.includes(\"/p/keepless/\");","author":"pinch","version":35},{"n":48,"text":"\t\t\tif (req.url!.endsWith(\"/ask\")) {","author":"pinch","version":35},{"n":49,"text":"\t\t\t\tconst sent = (JSON.parse(body.toString()) as { attachments?: string[] }).attachments;","author":"pinch","version":35},{"n":50,"text":"\t\t\t\treturn json({ id: 9, ...(sent && !older ? { attachments: sent } : {}) });","author":"pinch","version":35},{"n":51,"text":"\t\t\t}","author":"pinch","version":35},{"n":52,"text":"\t\t\tif (/\\/answer\\/\\d+$/.test(req.url!)) {","author":"pinch","version":35},{"n":53,"text":"\t\t\t\tconst sent = (JSON.parse(body.toString()) as { attachments?: string[] }).attachments ?? [];","author":"pinch","version":35},{"n":54,"text":"\t\t\t\tconst files = older ? [] : sent.map((id) => ({ id, name: \"x\", type: \"image/png\", size: 1 }));","author":"pinch","version":35},{"n":55,"text":"\t\t\t\treturn json({ ask: { by: \"bob\", answer: { by: \"ann\", words: \"w\", at: 0, attachments: files } } });","author":"pinch","version":35},{"n":56,"text":"\t\t\t}","author":"pinch","version":35},{"n":57,"text":"\t\t\t// Issue 9's ask carries a file on its question and one on its answer.","author":"pinch","version":35},{"n":58,"text":"\t\t\tif (req.method === \"GET\" && /\\/issue\\/9$/.test(req.url!))","author":"pinch","version":35},{"n":59,"text":"\t\t\t\treturn json({","author":"pinch","version":35},{"n":60,"text":"\t\t\t\t\tissue: { id: 9 },","author":"pinch","version":35},{"n":61,"text":"\t\t\t\t\tcomments: [],","author":"pinch","version":35},{"n":62,"text":"\t\t\t\t\tedits: [],","author":"pinch","version":35},{"n":63,"text":"\t\t\t\t\tasks: [","author":"pinch","version":35},{"n":64,"text":"\t\t\t\t\t\t{","author":"pinch","version":35},{"n":65,"text":"\t\t\t\t\t\t\tattachments: [{ id: \"a00000000000d\", name: \"question.png\", type: \"image/png\", size: 13 }],","author":"pinch","version":35},{"n":66,"text":"\t\t\t\t\t\t\tanswer: { attachments: [{ id: \"a00000000000e\", name: \"answer.png\", type: \"image/png\", size: 13 }] },","author":"pinch","version":35},{"n":67,"text":"\t\t\t\t\t\t},","author":"pinch","version":35},{"n":68,"text":"\t\t\t\t\t],","author":"pinch","version":35},{"n":69,"text":"\t\t\t\t\tclaims: [],","author":"pinch","version":35},{"n":70,"text":"\t\t\t\t\tchildren: [],","author":"pinch","version":35},{"n":71,"text":"\t\t\t\t});","author":"pinch","version":35},{"n":72,"text":"\t\t\t// Issue 8 carries an svg-drawn image on itself and again on a comment, plus one more on the comment.","author":"pinch","version":29},{"n":73,"text":"\t\t\tconst logo = { id: \"a00000000000b\", name: \"../shot one.png\", type: \"image/png\", size: 13 };","author":"pinch","version":29},{"n":74,"text":"\t\t\tif (req.method === \"GET\" && /\\/issue\\/8$/.test(req.url!))","author":"pinch","version":29},{"n":75,"text":"\t\t\t\treturn json({","author":"pinch","version":29},{"n":76,"text":"\t\t\t\t\tissue: { id: 8, attachments: [{ ...logo, source: { name: \"logo.svg\", size: 20 } }] },","author":"pinch","version":29},{"n":77,"text":"\t\t\t\t\tcomments: [{ attachments: [logo, { id: \"a00000000000c\", name: \"after.png\", type: \"image/png\", size: 13 }] }],","author":"pinch","version":29},{"n":78,"text":"\t\t\t\t\tedits: [],","author":"pinch","version":29},{"n":79,"text":"\t\t\t\t\tasks: [],","author":"pinch","version":29},{"n":80,"text":"\t\t\t\t\tclaims: [],","author":"pinch","version":29},{"n":81,"text":"\t\t\t\t\tchildren: [],","author":"pinch","version":29},{"n":82,"text":"\t\t\t\t});","author":"pinch","version":29},{"n":83,"text":"\t\t\tconst served = /\\/attachments\\/(a[0-9a-f]{12})(\\/source)?$/.exec(req.url!);","author":"pinch","version":29},{"n":84,"text":"\t\t\tif (req.method === \"GET\" && served)","author":"pinch","version":29},{"n":85,"text":"\t\t\t\treturn res.writeHead(200, { \"content-type\": \"image/png\" }).end(`${served[1]}${served[2] ?? \"\"}`);","author":"pinch","version":29},{"n":86,"text":"\t\t\tres.writeHead(404).end(\"{}\");","author":"pinch","version":5},{"n":87,"text":"\t\t});","author":"pinch","version":5},{"n":88,"text":"\t});","author":"pinch","version":5},{"n":89,"text":"\tawait new Promise<void>((ok) => issues.listen(0, \"127.0.0.1\", ok));","author":"pinch","version":5},{"n":90,"text":"\tissuesUrl = `http://127.0.0.1:${(issues.address() as AddressInfo).port}`;","author":"pinch","version":5},{"n":91,"text":"});","author":"pinch","version":5},{"n":92,"text":"after(async () => {","author":"pinch","version":5},{"n":93,"text":"\tawait fake.close();","author":"pinch","version":5},{"n":94,"text":"\tawait new Promise((ok) => issues.close(ok));","author":"pinch","version":5},{"n":95,"text":"\tfor (const d of dirs) rmSync(d, { recursive: true, force: true, maxRetries: 5 });","author":"pinch","version":5},{"n":96,"text":"});","author":"pinch","version":5},{"n":97,"text":"","author":"pinch","version":5},{"n":98,"text":"const ENV = (): Record<string, string> => ({","author":"pinch","version":5},{"n":99,"text":"\tAVCS_TOKEN: TOKEN,","author":"pinch","version":5},{"n":100,"text":"\tAVCS_HOOK_FORCE: \"1\",","author":"pinch","version":5},{"n":101,"text":"\tAVCS_ISSUES_SERVER: issuesUrl,","author":"pinch","version":5},{"n":102,"text":"\tAVCS_SERVERS_FILE: \"no-servers.json\",","author":"pinch","version":5},{"n":103,"text":"});","author":"pinch","version":5},{"n":104,"text":"","author":"pinch","version":5},{"n":105,"text":"async function avcs(cwd: string, argv: string[]): Promise<{ exit: number; out: string; json?: unknown }> {","author":"pinch","version":5},{"n":106,"text":"\tconst r = await main([...argv, \"--json\"], { cwd, env: ENV(), write: () => {} });","author":"pinch","version":5},{"n":107,"text":"\tlet json: unknown;","author":"pinch","version":5},{"n":108,"text":"\ttry {","author":"pinch","version":5},{"n":109,"text":"\t\tjson = JSON.parse(r.stdout);","author":"pinch","version":5},{"n":110,"text":"\t} catch {}","author":"pinch","version":5},{"n":111,"text":"\treturn { exit: r.exit, out: r.stdout + r.stderr, json };","author":"pinch","version":5},{"n":112,"text":"}","author":"pinch","version":5},{"n":113,"text":"","author":"pinch","version":5},{"n":114,"text":"let n = 0;","author":"pinch","version":5},{"n":115,"text":"async function folder(): Promise<string> {","author":"pinch","version":5},{"n":116,"text":"\tconst dir = mkdtempSync(join(tmpdir(), \"abso-attach-\"));","author":"pinch","version":5},{"n":117,"text":"\tdirs.push(dir);","author":"pinch","version":5},{"n":118,"text":"\tconst r = await avcs(dir, [\"init\", \"--server\", fake.url, \"--project\", `attach${++n}`, \"--agent\", \"ann\"]);","author":"pinch","version":5},{"n":119,"text":"\tassert.equal(r.exit, 0, r.out);","author":"pinch","version":5},{"n":120,"text":"\twriteFileSync(join(dir, \"shot.png\"), Buffer.from([0x89, 0x50, 0x4e, 0x47, 1, 2, 3]));","author":"pinch","version":5},{"n":121,"text":"\twriteFileSync(join(dir, \"after.png\"), Buffer.from([0x89, 0x50, 0x4e, 0x47, 4, 5]));","author":"pinch","version":5},{"n":122,"text":"\treturn dir;","author":"pinch","version":5},{"n":123,"text":"}","author":"pinch","version":5},{"n":124,"text":"","author":"pinch","version":5},{"n":125,"text":"describe(\"--attach (abso issue 171)\", () => {","author":"pinch","version":5},{"n":126,"text":"\tit(\"uploads each file, then opens the issue carrying their ids\", async () => {","author":"pinch","version":5},{"n":127,"text":"\t\tconst dir = await folder();","author":"pinch","version":5},{"n":128,"text":"\t\tconst from = seen.length;","author":"pinch","version":5},{"n":129,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"new\", \"The page after the fix\", \"--attach\", \"shot.png,after.png\"]);","author":"pinch","version":5},{"n":130,"text":"\t\tassert.equal(r.exit, 0, r.out);","author":"pinch","version":5},{"n":131,"text":"\t\tconst calls = seen.slice(from);","author":"pinch","version":5},{"n":132,"text":"\t\tassert.deepEqual(","author":"pinch","version":5},{"n":133,"text":"\t\t\tcalls.map((c) => `${c.method} ${c.url.replace(/^\\/p\\/[^/]+/, \"\")}`),","author":"pinch","version":5},{"n":134,"text":"\t\t\t[\"POST /a/ann/attachments\", \"POST /a/ann/attachments\", \"POST /a/ann/issue\"],","author":"pinch","version":5},{"n":135,"text":"\t\t);","author":"pinch","version":5},{"n":136,"text":"\t\tassert.equal(calls[0]!.headers[\"x-avcs-name\"], \"shot.png\");","author":"pinch","version":5},{"n":137,"text":"\t\tassert.equal(calls[0]!.headers[\"content-type\"], \"application/octet-stream\");","author":"pinch","version":5},{"n":138,"text":"\t\tassert.deepEqual([...calls[0]!.body], [0x89, 0x50, 0x4e, 0x47, 1, 2, 3]);","author":"pinch","version":5},{"n":139,"text":"\t\tconst opened = JSON.parse(calls[2]!.body.toString()) as { title: string; attachments: string[] };","author":"pinch","version":5},{"n":140,"text":"\t\tassert.equal(opened.title, \"The page after the fix\");","author":"pinch","version":5},{"n":141,"text":"\t\tassert.equal(opened.attachments.length, 2);","author":"pinch","version":5},{"n":142,"text":"\t\tassert.deepEqual((r.json as { attachments: string[] }).attachments, opened.attachments);","author":"pinch","version":5},{"n":143,"text":"\t});","author":"pinch","version":5},{"n":144,"text":"","author":"pinch","version":5},{"n":145,"text":"\tit(\"goes on a comment too, and nowhere else\", async () => {","author":"pinch","version":5},{"n":146,"text":"\t\tconst dir = await folder();","author":"pinch","version":5},{"n":147,"text":"\t\tconst from = seen.length;","author":"pinch","version":5},{"n":148,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"7\", \"--comment\", \"after\", \"--attach\", \"shot.png\"]);","author":"pinch","version":5},{"n":149,"text":"\t\tassert.equal(r.exit, 0, r.out);","author":"pinch","version":5},{"n":150,"text":"\t\tconst comment = JSON.parse(seen.at(-1)!.body.toString()) as { text: string; attachments: string[] };","author":"pinch","version":5},{"n":151,"text":"\t\tassert.equal(comment.text, \"after\");","author":"pinch","version":5},{"n":152,"text":"\t\tassert.equal(comment.attachments.length, 1);","author":"pinch","version":5},{"n":153,"text":"\t\tassert.equal(seen.length - from, 2);","author":"pinch","version":5},{"n":154,"text":"\t\tconst alone = await avcs(dir, [\"issue\", \"7\", \"--attach\", \"shot.png\"]);","author":"pinch","version":5},{"n":155,"text":"\t\tassert.equal(alone.exit, 1);","author":"pinch","version":5},{"n":156,"text":"\t\tassert.match(alone.out, /--attach goes with abso issue new or --comment/);","author":"review","version":16},{"n":157,"text":"\t});","author":"pinch","version":5},{"n":158,"text":"","author":"pinch","version":15},{"n":159,"text":"\tit(\"says plainly when the server doesn't take attachments yet, and writes nothing\", async () => {","author":"pinch","version":15},{"n":160,"text":"\t\tconst dir = mkdtempSync(join(tmpdir(), \"abso-attach-\"));","author":"pinch","version":15},{"n":161,"text":"\t\tdirs.push(dir);","author":"pinch","version":15},{"n":162,"text":"\t\tconst init = await avcs(dir, [\"init\", \"--server\", fake.url, \"--project\", \"old\", \"--agent\", \"ann\"]);","author":"pinch","version":15},{"n":163,"text":"\t\tassert.equal(init.exit, 0, init.out);","author":"pinch","version":15},{"n":164,"text":"\t\twriteFileSync(join(dir, \"shot.png\"), Buffer.from([0x89, 0x50, 0x4e, 0x47, 1]));","author":"pinch","version":15},{"n":165,"text":"\t\tconst from = seen.length;","author":"pinch","version":15},{"n":166,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"new\", \"T\", \"--attach\", \"shot.png\"]);","author":"pinch","version":15},{"n":167,"text":"\t\tassert.equal(r.exit, 1);","author":"pinch","version":15},{"n":168,"text":"\t\tassert.match(r.out, /doesn't take attachments yet, so shot.png wasn't sent and nothing was written/);","author":"pinch","version":15},{"n":169,"text":"\t\tassert.deepEqual(","author":"pinch","version":15},{"n":170,"text":"\t\t\tseen.slice(from).map((c) => c.url.replace(/^\\/p\\/[^/]+/, \"\")),","author":"pinch","version":15},{"n":171,"text":"\t\t\t[\"/a/ann/attachments\"],","author":"pinch","version":15},{"n":172,"text":"\t\t\t\"no issue was opened\",","author":"pinch","version":15},{"n":173,"text":"\t\t);","author":"pinch","version":15},{"n":174,"text":"\t});","author":"pinch","version":15},{"n":175,"text":"","author":"pinch","version":5},{"n":176,"text":"\tit(\"sends nothing when a file is missing\", async () => {","author":"pinch","version":5},{"n":177,"text":"\t\tconst dir = await folder();","author":"pinch","version":5},{"n":178,"text":"\t\tconst from = seen.length;","author":"pinch","version":5},{"n":179,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"new\", \"T\", \"--attach\", \"shot.png,nope.png\"]);","author":"pinch","version":5},{"n":180,"text":"\t\tassert.equal(r.exit, 1);","author":"pinch","version":5},{"n":181,"text":"\t\tassert.match(r.out, /--attach nope.png: no such file/);","author":"pinch","version":5},{"n":182,"text":"\t\tassert.equal(seen.length, from);","author":"pinch","version":5},{"n":183,"text":"\t});","author":"pinch","version":29},{"n":184,"text":"","author":"pinch","version":29},{"n":185,"text":"\tit(\"--save-attachments saves each attachment once, an svg's own file too, outside the folder\", async () => {","author":"pinch","version":29},{"n":186,"text":"\t\tconst dir = await folder();","author":"pinch","version":29},{"n":187,"text":"\t\tconst out = mkdtempSync(join(tmpdir(), \"abso-saved-\"));","author":"pinch","version":29},{"n":188,"text":"\t\tdirs.push(out);","author":"pinch","version":29},{"n":189,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"8\", \"--save-attachments\", join(out, \"images\")]);","author":"pinch","version":29},{"n":190,"text":"\t\tassert.equal(r.exit, 0, r.out);","author":"pinch","version":29},{"n":191,"text":"\t\tconst names = readdirSync(join(out, \"images\")).sort();","author":"pinch","version":29},{"n":192,"text":"\t\tassert.deepEqual(names, [\"a00000000000b-logo.svg\", \"a00000000000b-shot_one.png\", \"a00000000000c-after.png\"]);","author":"pinch","version":29},{"n":193,"text":"\t\tassert.equal(readFileSync(join(out, \"images\", \"a00000000000b-logo.svg\"), \"utf8\"), \"a00000000000b/source\");","author":"pinch","version":29},{"n":194,"text":"\t\tassert.equal(readFileSync(join(out, \"images\", \"a00000000000c-after.png\"), \"utf8\"), \"a00000000000c\");","author":"pinch","version":29},{"n":195,"text":"\t\tassert.equal((r.json as { files: unknown[] }).files.length, 3);","author":"pinch","version":29},{"n":196,"text":"\t\t// Into the folder only where abso leaves files out, or they'd be recorded as edits.","author":"pinch","version":29},{"n":197,"text":"\t\tconst inside = await avcs(dir, [\"issue\", \"8\", \"--save-attachments\", \"images\"]);","author":"pinch","version":29},{"n":198,"text":"\t\tassert.equal(inside.exit, 1);","author":"pinch","version":29},{"n":199,"text":"\t\tassert.match(inside.out, /inside this abso folder/);","author":"pinch","version":29},{"n":200,"text":"\t\tassert.equal((await avcs(dir, [\"issue\", \"8\", \"--save-attachments\", \".\"])).exit, 1);","author":"pinch","version":29},{"n":201,"text":"\t\twriteFileSync(join(dir, \".absoignore\"), \"saved/\\n\");","author":"pinch","version":29},{"n":202,"text":"\t\tassert.equal((await avcs(dir, [\"issue\", \"8\", \"--save-attachments\", \"saved\"])).exit, 0);","author":"pinch","version":29},{"n":203,"text":"\t\tconst mixed = await avcs(dir, [\"issue\", \"8\", \"--save-attachments\", out, \"--comment\", \"x\"]);","author":"pinch","version":29},{"n":204,"text":"\t\tassert.equal(mixed.exit, 1);","author":"pinch","version":29},{"n":205,"text":"\t\tassert.match(mixed.out, /--save-attachments goes alone/);","author":"pinch","version":29},{"n":206,"text":"\t});","author":"pinch","version":35},{"n":207,"text":"","author":"pinch","version":35},{"n":208,"text":"\tit(\"goes on an ask and on an answer, and not on a withdrawal\", async () => {","author":"pinch","version":35},{"n":209,"text":"\t\tconst dir = await folder();","author":"pinch","version":35},{"n":210,"text":"\t\tlet from = seen.length;","author":"pinch","version":35},{"n":211,"text":"\t\tconst asked = await avcs(dir, [","author":"pinch","version":35},{"n":212,"text":"\t\t\t\"ask\",","author":"pinch","version":35},{"n":213,"text":"\t\t\t\"bob\",","author":"pinch","version":35},{"n":214,"text":"\t\t\t\"Which looks right?\",","author":"pinch","version":35},{"n":215,"text":"\t\t\t\"--issue\",","author":"pinch","version":35},{"n":216,"text":"\t\t\t\"7\",","author":"pinch","version":35},{"n":217,"text":"\t\t\t\"--attach\",","author":"pinch","version":35},{"n":218,"text":"\t\t\t\"shot.png,after.png\",","author":"pinch","version":35},{"n":219,"text":"\t\t]);","author":"pinch","version":35},{"n":220,"text":"\t\tassert.equal(asked.exit, 0, asked.out);","author":"pinch","version":35},{"n":221,"text":"\t\tassert.deepEqual(","author":"pinch","version":35},{"n":222,"text":"\t\t\tseen.slice(from).map((c) => `${c.method} ${c.url.replace(/^\\/p\\/[^/]+/, \"\")}`),","author":"pinch","version":35},{"n":223,"text":"\t\t\t[\"POST /a/ann/attachments\", \"POST /a/ann/attachments\", \"POST /a/ann/ask\"],","author":"pinch","version":35},{"n":224,"text":"\t\t);","author":"pinch","version":35},{"n":225,"text":"\t\tconst ask = JSON.parse(seen.at(-1)!.body.toString()) as { question: string; attachments: string[] };","author":"pinch","version":35},{"n":226,"text":"\t\tassert.equal(ask.question, \"Which looks right?\");","author":"pinch","version":35},{"n":227,"text":"\t\tassert.equal(ask.attachments.length, 2);","author":"pinch","version":35},{"n":228,"text":"\t\tassert.deepEqual((asked.json as { attachments: string[] }).attachments, ask.attachments);","author":"pinch","version":35},{"n":229,"text":"\t\tfrom = seen.length;","author":"pinch","version":35},{"n":230,"text":"\t\tconst answered = await avcs(dir, [\"answer\", \"9\", \"This one\", \"--attach\", \"after.png\"]);","author":"pinch","version":35},{"n":231,"text":"\t\tassert.equal(answered.exit, 0, answered.out);","author":"pinch","version":35},{"n":232,"text":"\t\tconst answer = JSON.parse(seen.at(-1)!.body.toString()) as { words: string; attachments: string[] };","author":"pinch","version":35},{"n":233,"text":"\t\tassert.equal(answer.words, \"This one\");","author":"pinch","version":35},{"n":234,"text":"\t\tassert.equal(answer.attachments.length, 1);","author":"pinch","version":35},{"n":235,"text":"\t\tassert.equal(seen.length - from, 2);","author":"pinch","version":35},{"n":236,"text":"\t\tfrom = seen.length;","author":"pinch","version":35},{"n":237,"text":"\t\tconst withdrawn = await avcs(dir, [\"ask\", \"--withdraw\", \"9\", \"--attach\", \"shot.png\"]);","author":"pinch","version":35},{"n":238,"text":"\t\tassert.equal(withdrawn.exit, 1);","author":"pinch","version":35},{"n":239,"text":"\t\tassert.equal(seen.length, from, \"nothing was sent\");","author":"pinch","version":35},{"n":240,"text":"\t});","author":"pinch","version":35},{"n":241,"text":"","author":"pinch","version":35},{"n":242,"text":"\tit(\"says so when an older Issues server keeps an ask's words but not its files\", async () => {","author":"pinch","version":35},{"n":243,"text":"\t\tconst dir = mkdtempSync(join(tmpdir(), \"abso-attach-\"));","author":"pinch","version":35},{"n":244,"text":"\t\tdirs.push(dir);","author":"pinch","version":35},{"n":245,"text":"\t\tconst init = await avcs(dir, [\"init\", \"--server\", fake.url, \"--project\", \"keepless\", \"--agent\", \"ann\"]);","author":"pinch","version":35},{"n":246,"text":"\t\tassert.equal(init.exit, 0, init.out);","author":"pinch","version":35},{"n":247,"text":"\t\twriteFileSync(join(dir, \"shot.png\"), Buffer.from([0x89, 0x50, 0x4e, 0x47, 1]));","author":"pinch","version":35},{"n":248,"text":"\t\tconst asked = await avcs(dir, [\"ask\", \"bob\", \"Which?\", \"--attach\", \"shot.png\"]);","author":"pinch","version":35},{"n":249,"text":"\t\tassert.equal(asked.exit, 0, asked.out);","author":"pinch","version":35},{"n":250,"text":"\t\tassert.match(asked.out, /didn't keep the file on ask 9: it is older than this client/);","author":"pinch","version":35},{"n":251,"text":"\t\tconst answered = await avcs(dir, [\"answer\", \"9\", \"This\", \"--attach\", \"shot.png\"]);","author":"pinch","version":35},{"n":252,"text":"\t\tassert.match(answered.out, /didn't keep the file on your answer to ask 9/);","author":"pinch","version":35},{"n":253,"text":"\t\t// A server that keeps them says nothing of the kind.","author":"pinch","version":35},{"n":254,"text":"\t\tconst kept = await avcs(await folder(), [\"ask\", \"bob\", \"Which?\", \"--attach\", \"shot.png\"]);","author":"pinch","version":35},{"n":255,"text":"\t\tassert.doesNotMatch(kept.out, /didn't keep/);","author":"pinch","version":35},{"n":256,"text":"\t});","author":"pinch","version":35},{"n":257,"text":"","author":"pinch","version":35},{"n":258,"text":"\tit(\"--save-attachments takes the files on an issue's asks and answers too\", async () => {","author":"pinch","version":35},{"n":259,"text":"\t\tconst dir = await folder();","author":"pinch","version":35},{"n":260,"text":"\t\tconst out = mkdtempSync(join(tmpdir(), \"abso-saved-\"));","author":"pinch","version":35},{"n":261,"text":"\t\tdirs.push(out);","author":"pinch","version":35},{"n":262,"text":"\t\tconst r = await avcs(dir, [\"issue\", \"9\", \"--save-attachments\", out]);","author":"pinch","version":35},{"n":263,"text":"\t\tassert.equal(r.exit, 0, r.out);","author":"pinch","version":35},{"n":264,"text":"\t\tassert.deepEqual(readdirSync(out).sort(), [\"a00000000000d-question.png\", \"a00000000000e-answer.png\"]);","author":"pinch","version":35},{"n":265,"text":"\t});","author":"pinch","version":5},{"n":266,"text":"","author":"pinch","version":5},{"n":267,"text":"\tit(\"an issue's page lists its attachments and each comment's, with links\", () => {","author":"pinch","version":5},{"n":268,"text":"\t\tconst page = {","author":"pinch","version":5},{"n":269,"text":"\t\t\tissue: {","author":"pinch","version":5},{"n":270,"text":"\t\t\t\tid: 7,","author":"pinch","version":5},{"n":271,"text":"\t\t\t\ttitle: \"T\",","author":"pinch","version":5},{"n":272,"text":"\t\t\t\tstatus: \"open\",","author":"pinch","version":5},{"n":273,"text":"\t\t\t\topened: { by: \"ann\", at: 0 },","author":"pinch","version":5},{"n":274,"text":"\t\t\t\tagent: null,","author":"pinch","version":5},{"n":275,"text":"\t\t\t\tagents: [],","author":"pinch","version":5},{"n":276,"text":"\t\t\t\tblockedBy: [],","author":"pinch","version":5},{"n":277,"text":"\t\t\t\tlabels: [],","author":"pinch","version":5},{"n":278,"text":"\t\t\t\tversions: [],","author":"pinch","version":5},{"n":279,"text":"\t\t\t\twaitingOn: [],","author":"pinch","version":5},{"n":280,"text":"\t\t\t\tparent: null,","author":"pinch","version":5},{"n":281,"text":"\t\t\t\tchildren: 0,","author":"pinch","version":5},{"n":282,"text":"\t\t\t\tupdated: 0,","author":"pinch","version":5},{"n":283,"text":"\t\t\t\tclosed: null,","author":"pinch","version":5},{"n":284,"text":"\t\t\t\tdescription: \"\",","author":"pinch","version":5},{"n":285,"text":"\t\t\t\tlines: null,","author":"pinch","version":5},{"n":286,"text":"\t\t\t\twatchers: [],","author":"pinch","version":5},{"n":287,"text":"\t\t\t\tattachments: [{ id: \"a0123456789ab\", name: \"shot.png\", type: \"image/png\", size: 2048 }],","author":"pinch","version":5},{"n":288,"text":"\t\t\t},","author":"pinch","version":5},{"n":289,"text":"\t\t\tcomments: [","author":"pinch","version":5},{"n":290,"text":"\t\t\t\t{","author":"pinch","version":5},{"n":291,"text":"\t\t\t\t\tid: 1,","author":"pinch","version":5},{"n":292,"text":"\t\t\t\t\tby: \"bob\",","author":"pinch","version":5},{"n":293,"text":"\t\t\t\t\tkind: \"comment\",","author":"pinch","version":5},{"n":294,"text":"\t\t\t\t\ttext: \"same here\",","author":"pinch","version":5},{"n":295,"text":"\t\t\t\t\tat: 0,","author":"pinch","version":5},{"n":296,"text":"\t\t\t\t\tattachments: [","author":"pinch","version":24},{"n":297,"text":"\t\t\t\t\t\t{ id: \"a00000000000f\", name: \"mine.png\", type: \"image/png\", size: 3 * 1024 * 1024 },","author":"pinch","version":24},{"n":298,"text":"\t\t\t\t\t\t{","author":"pinch","version":24},{"n":299,"text":"\t\t\t\t\t\t\tid: \"a0000000000aa\",","author":"pinch","version":24},{"n":300,"text":"\t\t\t\t\t\t\tname: \"logo.png\",","author":"pinch","version":24},{"n":301,"text":"\t\t\t\t\t\t\ttype: \"image/png\",","author":"pinch","version":24},{"n":302,"text":"\t\t\t\t\t\t\tsize: 4096,","author":"pinch","version":24},{"n":303,"text":"\t\t\t\t\t\t\tsource: { name: \"logo.svg\", size: 512 },","author":"pinch","version":24},{"n":304,"text":"\t\t\t\t\t\t},","author":"pinch","version":24},{"n":305,"text":"\t\t\t\t\t],","author":"pinch","version":24},{"n":306,"text":"\t\t\t\t},","author":"pinch","version":5},{"n":307,"text":"\t\t\t],","author":"pinch","version":5},{"n":308,"text":"\t\t\tedits: [],","author":"pinch","version":5},{"n":309,"text":"\t\t\tasks: [],","author":"pinch","version":5},{"n":310,"text":"\t\t\tclaims: [],","author":"pinch","version":5},{"n":311,"text":"\t\t\tchildren: [],","author":"pinch","version":5},{"n":312,"text":"\t\t} as unknown as IssuePage;","author":"pinch","version":5},{"n":313,"text":"\t\tconst text = issuePage(page, {","author":"pinch","version":5},{"n":314,"text":"\t\t\tattachmentUrl: (id: string) => `https://issues.example/p/x/attachments/${id}`,","author":"pinch","version":5},{"n":315,"text":"\t\t}).join(\"\\n\");","author":"pinch","version":5},{"n":316,"text":"\t\tassert.match(","author":"pinch","version":5},{"n":317,"text":"\t\t\ttext,","author":"pinch","version":5},{"n":318,"text":"\t\t\t/attached a0123456789ab: \"shot.png\", 2 KB, https:\\/\\/issues.example\\/p\\/x\\/attachments\\/a0123456789ab/,","author":"pinch","version":5},{"n":319,"text":"\t\t);","author":"pinch","version":5},{"n":320,"text":"\t\tassert.match(text, /\\n {4}attached a00000000000f: \"mine.png\", 3.0 MB/);","author":"pinch","version":5},{"n":321,"text":"\t\t// The way in comes before the first link, since an agent's fetch of a link is refused.","author":"pinch","version":47},{"n":322,"text":"\t\tassert.match(","author":"pinch","version":47},{"n":323,"text":"\t\t\ttext,","author":"pinch","version":47},{"n":324,"text":"\t\t\t/^Issue [^\\n]*\\n[^\\n]*\\n3 files are attached below\\. To read them: abso issue \\d+ --save-attachments <folder> saves every one there, then open the files\\. The links are for people signed in on the website\\.\\n/,","author":"pinch","version":47},{"n":325,"text":"\t\t);","author":"pinch","version":47},{"n":326,"text":"\t\tassert.doesNotMatch(","author":"pinch","version":47},{"n":327,"text":"\t\t\tissuePage({ ...page, issue: { ...page.issue, attachments: [] }, comments: [] } as unknown as IssuePage).join(","author":"pinch","version":47},{"n":328,"text":"\t\t\t\t\"\\n\",","author":"pinch","version":47},{"n":329,"text":"\t\t\t),","author":"pinch","version":47},{"n":330,"text":"\t\t\t/--save-attachments/,","author":"pinch","version":47},{"n":331,"text":"\t\t);","author":"pinch","version":47},{"n":332,"text":"\t\t// An SVG is listed as its PNG, with its own file as a download beside it.","author":"pinch","version":24},{"n":333,"text":"\t\tassert.match(","author":"pinch","version":24},{"n":334,"text":"\t\t\ttext,","author":"pinch","version":24},{"n":335,"text":"\t\t\t/\\n {4}attached a0000000000aa: \"logo.png\", 4 KB, \\S+\\/a0000000000aa\\n {6}drawn from \"logo.svg\", 512 B, https:\\/\\/issues.example\\/p\\/x\\/attachments\\/a0000000000aa\\/source/,","author":"pinch","version":24},{"n":336,"text":"\t\t);","author":"pinch","version":24},{"n":337,"text":"\t\t// An ask lists its question's files under it, and its answer's under the answer.","author":"pinch","version":35},{"n":338,"text":"\t\tconst file = (id: string, name: string) => ({ id, name, type: \"image/png\", size: 1024 });","author":"pinch","version":35},{"n":339,"text":"\t\tconst asked = {","author":"pinch","version":35},{"n":340,"text":"\t\t\t...page,","author":"pinch","version":35},{"n":341,"text":"\t\t\tasks: [","author":"pinch","version":35},{"n":342,"text":"\t\t\t\t{","author":"pinch","version":35},{"n":343,"text":"\t\t\t\t\tid: 4,","author":"pinch","version":35},{"n":344,"text":"\t\t\t\t\tissue: 7,","author":"pinch","version":35},{"n":345,"text":"\t\t\t\t\tby: \"ann\",","author":"pinch","version":35},{"n":346,"text":"\t\t\t\t\tof: \"bob\",","author":"pinch","version":35},{"n":347,"text":"\t\t\t\t\tkind: \"question\",","author":"pinch","version":35},{"n":348,"text":"\t\t\t\t\tquestion: \"Which?\",","author":"pinch","version":35},{"n":349,"text":"\t\t\t\t\tattachments: [file(\"a00000000000d\", \"a.png\")],","author":"pinch","version":35},{"n":350,"text":"\t\t\t\t\treview: false,","author":"pinch","version":35},{"n":351,"text":"\t\t\t\t\tdue: null,","author":"pinch","version":35},{"n":352,"text":"\t\t\t\t\trecommendation: null,","author":"pinch","version":35},{"n":353,"text":"\t\t\t\t\toptions: [],","author":"pinch","version":35},{"n":354,"text":"\t\t\t\t\tblocks: [],","author":"pinch","version":35},{"n":355,"text":"\t\t\t\t\tat: 0,","author":"pinch","version":35},{"n":356,"text":"\t\t\t\t\tanswer: { by: \"bob\", words: \"This\", at: 0, attachments: [file(\"a00000000000e\", \"b.png\")] },","author":"pinch","version":35},{"n":357,"text":"\t\t\t\t\tseen: null,","author":"pinch","version":35},{"n":358,"text":"\t\t\t\t},","author":"pinch","version":35},{"n":359,"text":"\t\t\t],","author":"pinch","version":35},{"n":360,"text":"\t\t} as unknown as IssuePage;","author":"pinch","version":35},{"n":361,"text":"\t\tconst asks = issuePage(asked, { attachmentUrl: (id: string) => `https://i.example/${id}` }).join(\"\\n\");","author":"pinch","version":35},{"n":362,"text":"\t\tassert.match(asks, /\\n5 files are attached below\\./, \"an ask's question and answer files count too\");","author":"pinch","version":47},{"n":363,"text":"\t\tassert.match(","author":"pinch","version":35},{"n":364,"text":"\t\t\tasks,","author":"pinch","version":35},{"n":365,"text":"\t\t\t/ask 4: .*\"Which\\?\"\\n {4}attached a00000000000d: \"a.png\", 1 KB, https:\\/\\/i.example\\/a00000000000d\\n {4}answer: \"This\"\\n {6}attached a00000000000e: \"b.png\", 1 KB/,","author":"pinch","version":35},{"n":366,"text":"\t\t);","author":"pinch","version":35},{"n":367,"text":"\t});","author":"pinch","version":5},{"n":368,"text":"});","author":"pinch","version":5}],"authors":[{"agent":"pinch","lines":367},{"agent":"review","lines":1}],"older":{"reading":50,"newest":318,"changedSince":2},"followed":null,"life":{"versions":7,"last":{"version":47,"agent":"pinch","time":1791579053258,"timeIso":"2026-10-09T20:50:53.258Z","message":"abso issue: say how to read attached files before their links\n\nAn issue page lists each attachment with a link, but the link opens only for people signed in on the website; an agent that fetched it was refused and didn't know where else to look. When the issue, its comments, or its asks and answers carry files, the page now says so under the title, with the way in: \"3 files are attached below. To read them: abso issue 7 --save-attachments <folder> saves every one there, then open the files. The links are for people signed in on the website.\"\n\nThe abso skill gets the same as a line under \"Issues and asks\", in SKILL.md and in the copy the client carries. Tests in attach.test.ts cover the count across the issue, comments, questions and answers, and a page with no files saying nothing."},"made":{"version":5,"agent":"pinch","time":1791510167765,"timeIso":"2026-10-09T01:42:47.765Z","message":"abso issue new and abso issue N --comment take --attach <file,file> (abso issue 171). Each file goes up to the Issues Worker first (POST /p/:project/a/:agent/attachments, the bytes as the body and the name URI-encoded in X-Avcs-Name), and the write carries the ids the uploads answered. Nothing is sent if a file is missing or over 10 MB. --attach anywhere else is refused. The issue's page lists each attachment under the issue or comment carrying it: id, name, size and its link. The wire types gain Attachment and attachments?. MCP's issue tool takes attach too, since its parameters come from the flags. The server side is abso 621 (off until Cloud binds the bucket). Tests: client/test/attach.test.ts, against a stand-in Issues server. Checked: biome ci, npm run check (698 pass)."},"removed":null,"next":null},"since":null,"paths":[".avcsignore",".gitignore","LICENSE","README.md","avcs.json","biome.json","client/.claude-plugin/plugin.json","client/README.md","client/abso.ts","client/avcs.ts","client/hooks/hooks.json","client/hooks/register.test.ts","client/hooks/register.ts","client/hooks/stamp.ts","client/install-mod.ts","client/install-view.ts","client/launch.mjs","client/scripts/import-git.ts","client/skills/abso/SKILL.md","client/src/announce.ts","client/src/api-answers.ts","client/src/api-error.ts","client/src/api.ts","client/src/args.ts","client/src/at.ts","client/src/blobs.ts","client/src/body-files.ts","client/src/box-commands.ts","client/src/box-run.ts","client/src/box.ts","client/src/changes.ts","client/src/check-ignore.ts","client/src/ci-answers.ts","client/src/ci.ts","client/src/clean-files.ts","client/src/client-version.ts","client/src/collision-text.ts","client/src/command-env.ts","client/src/commands.ts","client/src/config.ts","client/src/core.ts","client/src/diff.ts","client/src/drafts.ts","client/src/env-names.ts","client/src/export.ts","client/src/fetch.ts","client/src/folder.ts","client/src/history-answers.ts","client/src/history.ts","client/src/hook.ts","client/src/install.ts","client/src/issues-wire.ts","client/src/issues.ts","client/src/join-commands.ts","client/src/key-admin.ts","client/src/lock.ts","client/src/main.ts","client/src/mcp.ts","client/src/modes.ts","client/src/orgs.ts","client/src/pipeline-commands.ts","client/src/project-file.ts","client/src/publish-commands.ts","client/src/queue.ts","client/src/review.ts","client/src/safety.ts","client/src/serve-commands.ts","client/src/settle.ts","client/src/skill.ts","client/src/state-dir.ts","client/src/status-commands.ts","client/src/tar.ts","client/src/times.ts","client/src/versions.ts","client/src/visibility-commands.ts","client/test-mods.ts","client/test/attach.test.ts","client/test/body-files.test.ts","client/test/box.test.ts","client/test/client.test.ts","client/test/diff.test.ts","client/test/env-names.test.ts","client/test/error-sentence.test.ts","client/test/fake-server.ts","client/test/ignore.test.ts","client/test/imported-history.test.ts","client/test/install.test.ts","client/test/issues.test.ts","client/test/key-admin.test.ts","client/test/key.test.ts","client/test/launch.test.ts","client/test/new-folder-dir.test.ts","client/test/orgs.test.ts","client/test/pipeline-commands.test.ts","client/test/queue-waiting.test.ts","client/test/setup.ts","client/test/skill.test.ts","client/test/times.test.ts","client/view/.claude-plugin/plugin.json","client/view/hooks/hooks.json","client/view/hooks/register.test.ts","client/view/hooks/register.tsx","client/view/hooks/stamp.ts","client/view/types/index.d.ts","package-lock.json","package.json","src/engine/build.ts","src/engine/conflicts.ts","src/engine/graph.ts","src/engine/index.ts","src/engine/keys.ts","src/engine/labels.ts","src/engine/sets.ts","src/engine/test/build.test.ts","src/engine/test/concurrent.test.ts","src/engine/test/conflicts.test.ts","src/engine/test/gen.ts","src/engine/test/graph.test.ts","src/engine/test/helpers.ts","src/engine/test/moves.test.ts","src/engine/test/properties.test.ts","src/engine/test/scenarios.test.ts","src/engine/test/sets.test.ts","src/engine/test/text.test.ts","src/engine/test/view.test.ts","src/engine/text.ts","src/engine/types.ts","src/engine/view.ts","src/gitview/errors.ts","src/gitview/index.ts","src/gitview/ingest.ts","src/gitview/plain.ts","src/gitview/test/helpers.ts","src/gitview/test/ingest.test.ts","src/gitview/test/random.test.ts","src/gitview/test/view.test.ts","src/gitview/trailers.ts","src/gitview/tree.ts","src/gitview/view.ts","src/pipeline/pipeline.ts","src/pipeline/plan.ts","src/pipeline/test/pipeline.test.ts","src/pipeline/test/plan.test.ts","tsconfig.json","worker/project/add-draft.ts","worker/project/amend.ts","worker/project/announce.ts","worker/project/apply-entry.ts","worker/project/blame.ts","worker/project/change-records.ts","worker/project/changes-since.ts","worker/project/check-clash.ts","worker/project/collisions.ts","worker/project/definition-rule.ts","worker/project/definitions.ts","worker/project/draft-collisions.ts","worker/project/draft-diff.ts","worker/project/draft-state.ts","worker/project/drop.ts","worker/project/edit.ts","worker/project/express-moves.ts","worker/project/feed.ts","worker/project/globs.ts","worker/project/history.ts","worker/project/http.ts","worker/project/ingest.ts","worker/project/init.ts","worker/project/label.ts","worker/project/land.ts","worker/project/markers.ts","worker/project/memory-store.ts","worker/project/merge-identical.ts","worker/project/move.ts","worker/project/names.ts","worker/project/news.ts","worker/project/notes.ts","worker/project/overlaps.ts","worker/project/path-rules.ts","worker/project/pathindex.ts","worker/project/pathkey.ts","worker/project/pluck.ts","worker/project/project-api.ts","worker/project/project-error.ts","worker/project/project-helpers.ts","worker/project/project-status.ts","worker/project/project-types.ts","worker/project/project.ts","worker/project/publish-of.ts","worker/project/publish.ts","worker/project/queue-driver.ts","worker/project/queue.ts","worker/project/record-file.ts","worker/project/record.ts","worker/project/refuse.ts","worker/project/restore.ts","worker/project/spaces.ts","worker/project/spelling.ts","worker/project/start.ts","worker/project/switch-to.ts","worker/project/sync.ts","worker/project/test/announce-person.test.ts","worker/project/test/appends.test.ts","worker/project/test/attributes.test.ts","worker/project/test/bench.ts","worker/project/test/blobs.test.ts","worker/project/test/changed-definition.test.ts","worker/project/test/changes.test.ts","worker/project/test/definitions.test.ts","worker/project/test/drop.test.ts","worker/project/test/files-reads.test.ts","worker/project/test/history.test.ts","worker/project/test/ingest.test.ts","worker/project/test/issues.test.ts","worker/project/test/labels.test.ts","worker/project/test/markers.test.ts","worker/project/test/merge.test.ts","worker/project/test/moves.test.ts","worker/project/test/named-drafts.test.ts","worker/project/test/news-times.test.ts","worker/project/test/notes.test.ts","worker/project/test/order.test.ts","worker/project/test/paths.test.ts","worker/project/test/pluck.test.ts","worker/project/test/project-file.test.ts","worker/project/test/project.test.ts","worker/project/test/queue-driver.test.ts","worker/project/test/queue.test.ts","worker/project/test/queued-moves.test.ts","worker/project/test/review-fixes.test.ts","worker/project/test/reviewers.test.ts","worker/project/test/same-line.test.ts","worker/project/test/spelling-clash.test.ts","worker/project/test/spelling.test.ts","worker/project/test/starting.test.ts","worker/project/test/tells.test.ts","worker/project/test/whole.test.ts","worker/project/tree.ts","worker/project/version-log.ts","worker/project/version-meta.ts","worker/project/view-changes.ts","worker/project/views.ts","worker/project/where.ts","worker/project/whole-files.ts"],"working":{"version":318,"agents":[]},"agentChanges":[],"overlaps":null}