Lines 1–9 at 40 (were 1–9 at 39)
1−// avcs-view: what abso knows about this chat's folder, at a glance (#12).
1+// abso-view: what abso knows about this chat's folder, at a glance (#12). 33// A status line entry, kept current: the space the folder is in, how many 44// files the draft changes, how far shared has moved on, who else has 55// unpublished changes in the same files, and news not yet looked at. 6−// `/avcs-view` opens a pane with the whole picture.
6+// `/abso-view` opens a pane with the whole picture. 88// Outside an abso folder it costs one folder lookup at session start and 99// nothing after. Inside one, it asks the server for /status and /where at Lines 15–32 at 40 (were 15–32 at 39)
1515import type { AvcsView } from "../types"; 1616import { STAMP } from "./stamp.ts"; 18−const PANE = "avcs-view";
19−const COMMAND = "avcs-view";
18+const PANE = "abso-view"; 19+const COMMAND = "abso-view"; 2020const TICK_MS = 3_000; 2121const REFRESH_MS = 30_000; 2222const AFTER_EDIT_MS = 2_000; 2323const NEWS_SHOWN = 12; 2424const EDIT_TOOLS = ["Edit", "MultiEdit", "Write", "NotebookEdit", "Bash"]; 2525/** Sent with each call, so the server can tell which mod, from which commit, made it (#29). */ 26−const CLIENT = `avcs-view/${STAMP ?? "checkout"}`;
26+const CLIENT = `abso-view/${STAMP ?? "checkout"}`; 28−const view = atom({ plugin: "avcs-view", key: "view" } as const, null);
29−const seenNewsAt = atom({ plugin: "avcs-view", key: "seenNewsAt" } as const, "");
28+const view = atom({ plugin: "abso-view", key: "view" } as const, null); 29+const seenNewsAt = atom({ plugin: "abso-view", key: "seenNewsAt" } as const, ""); 3131// The engine interface, passed along (the validator refuses keeping it). Lines 204–210 at 40 (were 204–210 at 39)
204204 parts.push(`${v.space === "shared" ? "shared" : "the draft"} is ${v.version - v.base} ahead (abso sync)`); 205205 if (v.overlap.length > 0) parts.push(`${v.overlap.map((o) => o.agent).join(", ")} also on your files`); 206206 const fresh = unread(v, seen); 207− if (fresh > 0) parts.push(`${plural(fresh, "news item")} (/avcs-view)`);
207+ if (fresh > 0) parts.push(`${plural(fresh, "news item")} (/abso-view)`); 208208 return parts.join(" · "); Lines 244–250 at 40 (were 244–250 at 39)
244244 await update($, seenNewsAt, () => newest); 245245 $.ui.status(statusLine(v, newest)); 247− return { text: "Opened the avcs view." };
247+ return { text: "Opened the abso view." }; 250250 on("ui.render", { component: "Pane", requestId: PANE }, async ($, e) => {