{"draft":null,"from":15,"to":16,"files":[{"path":"client/src/issues.ts","added":27,"removed":27,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -1,7 +1,7 @@\n-// Issues (#54): avcs issues, avcs issue, avcs ask, avcs waiting and avcs\n+// Issues (#54): abso issues, abso issue, abso ask, abso waiting and avcs\n // answer. The Issues Worker keeps them (avcs-issues beside avcs, or\n // AVCS_ISSUES_SERVER), and takes the same token. Statuses come from the work: a start note naming\n-// an issue (avcs start --issue N) puts it In progress, an open ask Blocked or\n+// an issue (abso start --issue N) puts it In progress, an open ask Blocked or\n // In review, and publish --done closes it. Other agents' and people's words\n // are quoted as JSON, so none can print as another line (#30).\n \n@@ -26,7 +26,7 @@\n \t\t);\n \tif (config.token !== undefined && !tokenGoesTo(server, trustedServers(env.env))) {\n \t\tthrow new UsageError(\n-\t\t\t`the Issues Worker is ${server}, and avcs sends your token only to its own servers and this machine. If ${server} is yours, name it in ~/.avcs/servers.json or AVCS_TRUSTED_SERVERS.`,\n+\t\t\t`the Issues Worker is ${server}, and abso sends your token only to its own servers and this machine. If ${server} is yours, name it in ~/.avcs/servers.json or AVCS_TRUSTED_SERVERS.`,\n \t\t);\n \t}\n \tapi.issuesServer = server;\n@@ -190,14 +190,14 @@\n \t\t...(p.children.length > 0 ? [\"\", \"Sub-issues:\", ...p.children.map(issueLine)] : []),\n \t\t...((i.watchers ?? []).length > 0 ? [\"\", `Watchers: ${i.watchers.join(\", \")}.`] : []),\n \t\t\"\",\n-\t\t`avcs start \"...\" --issue ${i.id} starts on it; avcs issue ${i.id} --comment \"...\" comments; avcs ask <who> \"...\" --issue ${i.id} asks.`,\n+\t\t`abso start \"...\" --issue ${i.id} starts on it; abso issue ${i.id} --comment \"...\" comments; abso ask <who> \"...\" --issue ${i.id} asks.`,\n \t];\n }\n \n export async function runIssues(args: Parsed, env: Env): Promise<Output> {\n \tif (args.positionals.length > 0)\n \t\tthrow new UsageError(\n-\t\t\t\"issues takes no words: avcs issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>] | avcs issues --labels; avcs issue <N> shows one\",\n+\t\t\t\"issues takes no words: abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>] | abso issues --labels; abso issue <N> shows one\",\n \t\t);\n \tconst { api } = openIssues(env);\n \tif (bool(args, \"drafts\")) {\n@@ -205,11 +205,11 @@\n \t\treturn {\n \t\t\ttext:\n \t\t\t\tdrafts.length === 0\n-\t\t\t\t\t? 'No drafts. avcs issue draft \"<title>\" saves one: only you see it, and nobody hears of it.'\n+\t\t\t\t\t? 'No drafts. abso issue draft \"<title>\" saves one: only you see it, and nobody hears of it.'\n \t\t\t\t\t: [\n \t\t\t\t\t\t\t`${plural(drafts.length, \"draft\")}, newest first (only you see them):`,\n \t\t\t\t\t\t\t...drafts.map(draftLine),\n-\t\t\t\t\t\t\t\"avcs issue draft <D> --open opens one as an issue; --delete deletes it.\",\n+\t\t\t\t\t\t\t\"abso issue draft <D> --open opens one as an issue; --delete deletes it.\",\n \t\t\t\t\t\t].join(\"\\n\"),\n \t\t\tjson: { drafts },\n \t\t};\n@@ -219,11 +219,11 @@\n \t\treturn {\n \t\t\ttext:\n \t\t\t\tlabels.length === 0\n-\t\t\t\t\t? 'No labels yet. avcs issue new \"<title>\" --label friction labels a new issue; avcs issue <N> --label <l> labels one.'\n+\t\t\t\t\t? 'No labels yet. abso issue new \"<title>\" --label friction labels a new issue; abso issue <N> --label <l> labels one.'\n \t\t\t\t\t: [\n \t\t\t\t\t\t\t`${plural(labels.length, \"label\")} in use:`,\n \t\t\t\t\t\t\t...labels.map((l) => `  ${l.label}: ${l.open} open of ${l.total}`),\n-\t\t\t\t\t\t\t\"avcs issues --label <label> lists a label's issues.\",\n+\t\t\t\t\t\t\t\"abso issues --label <label> lists a label's issues.\",\n \t\t\t\t\t\t].join(\"\\n\"),\n \t\t\tjson: { labels },\n \t\t};\n@@ -245,11 +245,11 @@\n \treturn {\n \t\ttext:\n \t\t\tissues.length === 0\n-\t\t\t\t? `No ${scope}issues${filter.agent ? ` for ${filter.agent}` : \"\"}${parent !== undefined ? ` under ${parent}` : \"\"}. avcs issue new \"<title>\" opens one.`\n+\t\t\t\t? `No ${scope}issues${filter.agent ? ` for ${filter.agent}` : \"\"}${parent !== undefined ? ` under ${parent}` : \"\"}. abso issue new \"<title>\" opens one.`\n \t\t\t\t: [\n \t\t\t\t\t\t`${plural(issues.length, `${scope}issue`)}, most recently updated first:`,\n \t\t\t\t\t\t...issues.map(issueLine),\n-\t\t\t\t\t\t\"avcs issue <N> shows one.\",\n+\t\t\t\t\t\t\"abso issue <N> shows one.\",\n \t\t\t\t\t].join(\"\\n\"),\n \t\tjson: { issues },\n \t};\n@@ -306,21 +306,21 @@\n \t\tif (bool(args, \"open\")) {\n \t\t\tconst r = await api.openDraft(id, openFields(args, \"\"));\n \t\t\treturn {\n-\t\t\t\ttext: `Opened draft ${id} as issue ${r.id}. avcs start \"...\" --issue ${r.id} starts on it.`,\n+\t\t\t\ttext: `Opened draft ${id} as issue ${r.id}. abso start \"...\" --issue ${r.id} starts on it.`,\n \t\t\t\tjson: { draft: id, id: r.id },\n \t\t\t};\n \t\t}\n \t\t// Saving replaces the draft's body, so the fields given go over what it holds.\n \t\tconst found = (await api.drafts()).drafts.find((x) => x.id === id);\n-\t\tif (!found) throw new UsageError(`you have no draft ${id}; avcs issues --drafts lists yours`);\n+\t\tif (!found) throw new UsageError(`you have no draft ${id}; abso issues --drafts lists yours`);\n \t\tawait api.saveDraft({ ...found.body, ...openFields(args, \"\"), id });\n \t\treturn { text: `Saved draft ${id}.`, json: { draft: id } };\n \t}\n \tif (bool(args, \"open\") || bool(args, \"delete\"))\n-\t\tthrow new UsageError(\"--open and --delete take a draft's number: avcs issue draft <D> --open\");\n+\t\tthrow new UsageError(\"--open and --delete take a draft's number: abso issue draft <D> --open\");\n \tconst r = await api.saveDraft(openFields(args, words.join(\" \")));\n \treturn {\n-\t\ttext: `Saved draft ${r.id}. Only you see it, and nobody hears of it. avcs issue draft ${r.id} --open opens it as an issue.`,\n+\t\ttext: `Saved draft ${r.id}. Only you see it, and nobody hears of it. abso issue draft ${r.id} --open opens it as an issue.`,\n \t\tjson: { draft: r.id },\n \t};\n }\n@@ -332,19 +332,19 @@\n \tif (first === \"new\") {\n \t\tif (rest.length === 0)\n \t\t\tthrow new UsageError(\n-\t\t\t\t'avcs issue new \"<title>\" [--description \"...\"] [--parent <N>] [--lines <file>:<from>-<to>@<version>] [--agent <agent>] [--blocked-by <N,N>] [--notify <who,who>] [--label <l,l>]',\n+\t\t\t\t'abso issue new \"<title>\" [--description \"...\"] [--parent <N>] [--lines <file>:<from>-<to>@<version>] [--agent <agent>] [--blocked-by <N,N>] [--notify <who,who>] [--label <l,l>]',\n \t\t\t);\n \t\tconst fields = { ...openFields(args, rest.join(\" \")), title: rest.join(\" \") };\n \t\tconst attachments = await uploadAttachments(api, env.cwd, str(args, \"attach\"));\n \t\tconst r = await api.issueOpen({ ...fields, ...(attachments.length > 0 ? { attachments } : {}) });\n \t\treturn {\n-\t\t\ttext: `Opened issue ${r.id}${attachments.length > 0 ? ` with ${plural(attachments.length, \"attachment\")} (${attachments.join(\", \")})` : \"\"}. avcs start \"...\" --issue ${r.id} starts on it.`,\n+\t\t\ttext: `Opened issue ${r.id}${attachments.length > 0 ? ` with ${plural(attachments.length, \"attachment\")} (${attachments.join(\", \")})` : \"\"}. abso start \"...\" --issue ${r.id} starts on it.`,\n \t\t\tjson: { id: r.id, ...(attachments.length > 0 ? { attachments } : {}) },\n \t\t};\n \t}\n \tif (first === undefined || rest.length > 0)\n \t\tthrow new UsageError(\n-\t\t\t'avcs issue <N> [--comment \"...\" | --object \"...\" | --drop | --reopen | --done [--done-by <version>] | an edit], or avcs issue new \"<title>\"',\n+\t\t\t'abso issue <N> [--comment \"...\" | --object \"...\" | --drop | --reopen | --done [--done-by <version>] | an edit], or abso issue new \"<title>\"',\n \t\t);\n \tconst id = issueNumber(first);\n \tconst comment = str(args, \"comment\");\n@@ -394,7 +394,7 @@\n \t\t\t\"--quiet and --notify go with an edit (--title, --description, --parent, --agent, --blocked-by, --label or --unlabel)\",\n \t\t);\n \tif (str(args, \"attach\") !== undefined && comment === undefined && object === undefined)\n-\t\tthrow new UsageError(\"--attach goes with avcs issue new or --comment (or --object)\");\n+\t\tthrow new UsageError(\"--attach goes with abso issue new or --comment (or --object)\");\n \tif (comment !== undefined || object !== undefined) {\n \t\tconst attachments = await uploadAttachments(api, env.cwd, str(args, \"attach\"));\n \t\tconst r = await api.issueComment(id, (comment ?? object)!, object !== undefined, attachments);\n@@ -436,11 +436,11 @@\n \tconst withdraw = str(args, \"withdraw\");\n \tif (withdraw !== undefined) return withdrawAsk(args, env, withdraw);\n \tif (str(args, \"note\") !== undefined)\n-\t\tthrow new UsageError('--note goes with --withdraw: avcs ask --withdraw <ask> --note \"why\"');\n+\t\tthrow new UsageError('--note goes with --withdraw: abso ask --withdraw <ask> --note \"why\"');\n \tconst [of, ...words] = args.positionals;\n \tif (of === undefined || words.length === 0)\n \t\tthrow new UsageError(\n-\t\t\t'avcs ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"]; who is an agent, or person:<id>',\n+\t\t\t'abso ask <who> \"<question>\" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options \"A|B|C\"]; who is an agent, or person:<id>',\n \t\t);\n \tconst { api } = openIssues(env);\n \tif (bool(args, \"review\") && bool(args, \"task\")) throw new UsageError(\"an ask is a review or a task, not both\");\n@@ -464,14 +464,14 @@\n \t\t\t\t}\n \t\t\t: {}),\n \t});\n-\treturn { text: `Asked ${of} (ask ${r.id}). They hear it; avcs waiting shows what's open.`, json: { id: r.id } };\n+\treturn { text: `Asked ${of} (ask ${r.id}). They hear it; abso waiting shows what's open.`, json: { id: r.id } };\n }\n \n-/** avcs ask --withdraw <ask> [--note \"why\"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */\n+/** abso ask --withdraw <ask> [--note \"why\"]: the asker takes an ask back. It closes like an answer, and the one asked hears it. */\n async function withdrawAsk(args: Parsed, env: Env, word: string): Promise<Output> {\n \tconst others = [\"issue\", \"due\", \"blocks\", \"options\"].filter((f) => str(args, f) !== undefined);\n \tif (args.positionals.length > 0 || others.length > 0 || bool(args, \"review\") || bool(args, \"task\"))\n-\t\tthrow new UsageError('avcs ask --withdraw <ask> [--note \"why\"] takes nothing else: it takes back an ask you made');\n+\t\tthrow new UsageError('abso ask --withdraw <ask> [--note \"why\"] takes nothing else: it takes back an ask you made');\n \tconst id = issueNumber(word, \"the ask number\");\n \tconst { api } = openIssues(env);\n \tconst note = str(args, \"note\");\n@@ -481,7 +481,7 @@\n \n export async function runWaiting(args: Parsed, env: Env): Promise<Output> {\n \tif (args.positionals.length > 0)\n-\t\tthrow new UsageError(\"waiting takes no words: avcs waiting [--of <agent or person:id>] [--mine]\");\n+\t\tthrow new UsageError(\"waiting takes no words: abso waiting [--of <agent or person:id>] [--mine]\");\n \tconst { api, config } = openIssues(env);\n \tconst mine = bool(args, \"mine\") || str(args, \"of\") === config.agent;\n \tconst of = mine ? config.agent : str(args, \"of\");\n@@ -493,7 +493,7 @@\n \t\t\t\t: [\n \t\t\t\t\t\t`${plural(asks.length, \"open ask\")}${of ? ` of ${of}` : \"\"}, soonest due first:`,\n \t\t\t\t\t\t...asks.map(askLine),\n-\t\t\t\t\t\t'avcs answer <ask> \"...\" answers one asked of you.',\n+\t\t\t\t\t\t'abso answer <ask> \"...\" answers one asked of you.',\n \t\t\t\t\t].join(\"\\n\"),\n \t\tjson: { asks },\n \t};\n@@ -505,7 +505,7 @@\n \tconst option = str(args, \"option\");\n \tconst done = bool(args, \"done\");\n \tif (words.length === 0 && option === undefined && !done)\n-\t\tthrow new UsageError('avcs answer <ask> \"<words>\" | --option <N> [--note \"...\"] | --done [--note \"...\"]');\n+\t\tthrow new UsageError('abso answer <ask> \"<words>\" | --option <N> [--note \"...\"] | --done [--note \"...\"]');\n \tconst { api } = openIssues(env);\n \tconst note = str(args, \"note\");\n \tconst r = await api.answer(id, {"}],"unmatched":[]}