{"draft":null,"from":2,"to":318,"files":[{"path":"client/src/versions.ts","added":20,"removed":8,"diff":"--- a/client/src/versions.ts\n+++ b/client/src/versions.ts\n@@ -3,7 +3,18 @@\n \n import type { VersionRef } from \"./api.ts\";\n import { bool, type Parsed, str, UsageError } from \"./args.ts\";\n-import { applyAnswer, collisionText, type Env, EXIT, type Output, open, plural, recordFolder } from \"./commands.ts\";\n+import {\n+\tapplyAnswer,\n+\tcollisionText,\n+\ttype Env,\n+\tEXIT,\n+\ttype Output,\n+\topen,\n+\tplural,\n+\tpullAnswer,\n+\tpullWritten,\n+\trecordFolder,\n+} from \"./commands.ts\";\n import { writeConfig } from \"./config.ts\";\n import { refusedText } from \"./safety.ts\";\n \n@@ -38,7 +49,7 @@\n \t\t\ttext: [\n \t\t\t\t`Dropped from shared, as version ${answer.version}:`,\n \t\t\t\t...answer.dropped.map(ref),\n-\t\t\t\t\"Other agents hear it as news; their next sync takes it out of their folders. History keeps it: abso log shows the drop.\",\n+\t\t\t\t\"Other agents hear it as news; their next pull takes it out of their folders. History keeps it: abso log shows the drop.\",\n \t\t\t].join(\"\\n\"),\n \t\t\tjson: { ...answer },\n \t\t};\n@@ -46,14 +57,14 @@\n \tconst lines = [\"Not dropped.\"];\n \tif (answer.dependents && answer.dependents.length > 0) {\n \t\tlines.push(\n-\t\t\t`Later published versions build on ${versions.length === 1 ? \"it\" : \"them\"}:`,\n+\t\t\t`Later pushed versions build on ${versions.length === 1 ? \"it\" : \"them\"}:`,\n \t\t\t...answer.dependents.map(ref),\n \t\t\t\"Pass --with-dependents to drop those too.\",\n \t\t);\n \t}\n \tif (answer.blocked && answer.blocked.length > 0) {\n \t\tlines.push(\n-\t\t\t\"Unpublished work builds on it, and a drop never touches unpublished work:\",\n+\t\t\t\"Unpushed work builds on it, and a drop never touches unpushed work:\",\n \t\t\t...answer.blocked.map(\n \t\t\t\t(b) => `  ${b.agent !== undefined ? `agent ${b.agent}` : `draft ${b.draft}`}: ${b.files.join(\", \")}`,\n \t\t\t),\n@@ -99,7 +110,7 @@\n \tconst a = await api.amend(message);\n \tconst where = a.draft === null ? \"shared\" : `draft ${a.draft}`;\n \treturn {\n-\t\ttext: `Version ${a.version} of ${where} now says: ${a.message}\\n(It said: ${a.was}.) Only the message changed; to change what it did, publish again or abso drop it.`,\n+\t\ttext: `Version ${a.version} of ${where} now says: ${a.message}\\n(It said: ${a.was}.) Only the message changed; to change what it did, push again or abso drop it.`,\n \t\tjson: { ...a },\n \t};\n }\n@@ -144,11 +155,12 @@\n \t// Sync now (recording first, as sync does), so the folder is where it now says it is.\n \tconst { api } = open(env);\n \tawait recordFolder(root, api);\n-\tconst s = await applyAnswer(root, api, await api.sync());\n+\tconst s = await applyAnswer(root, api, await pullAnswer(root, api));\n+\tpullWritten(root);\n \tconst changes = s.written.length + s.deleted.length;\n \tconst head = follow\n-\t\t? `This folder now follows label ${follow}: every sync takes it to the newest version with that label. It is on version ${s.version}.`\n-\t\t: `This folder follows no label now: syncs take it to shared's newest version, ${s.version}.`;\n+\t\t? `This folder now follows label ${follow}: every pull takes it to the newest version with that label. It is on version ${s.version}.`\n+\t\t: `This folder follows no label now: pulls take it to shared's newest version, ${s.version}.`;\n \treturn {\n \t\ttext: [\n \t\t\thead,"}],"unmatched":[]}