{"draft":null,"from":16,"to":17,"files":[{"path":"client/src/join-commands.ts","added":7,"removed":6,"diff":"--- a/client/src/join-commands.ts\n+++ b/client/src/join-commands.ts\n@@ -10,12 +10,13 @@\n import { CLIENT_DIR } from \"./client-version.ts\";\n import { type Env, type Output, plural } from \"./command-env.ts\";\n import { leftOutText, syncFolder, uploadBlobs } from \"./commands.ts\";\n-import { AVCS_DIR, findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from \"./config.ts\";\n+import { findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from \"./config.ts\";\n import { clearKnown, loadIgnore, readFolder, writeKnown } from \"./folder.ts\";\n import { modInstalled } from \"./install.ts\";\n import { type FullMode, foldModes, writeKnownModes } from \"./modes.ts\";\n import { PROJECT_FILE, readProjectFile, startingProjectFileText, writeStartingProjectFile } from \"./project-file.ts\";\n import { refusedText } from \"./safety.ts\";\n+import { stateDir } from \"./state-dir.ts\";\n \n function serverFrom(args: Parsed, env: Env): string {\n \tconst server = str(args, \"server\") ?? env.env.AVCS_SERVER;\n@@ -39,7 +40,7 @@\n \tif (args.positionals.length > 1) throw new UsageError(\"init takes one folder\");\n \tconst root = resolve(env.cwd, args.positionals[0] ?? \".\");\n \tif (!existsSync(root) || !statSync(root).isDirectory()) throw new UsageError(`${root} is not a folder`);\n-\tif (findRoot(root) === root) throw new UsageError(`${root} already has .avcs/config.json`);\n+\tif (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);\n \tconst project = str(args, \"project\");\n \tif (!project) throw new UsageError(\"give the project a name with --project <name>\");\n \tconst config = makeSettings(args, env, project);\n@@ -75,7 +76,7 @@\n \t\t\t\t: []),\n \t\t\t...startingProjectFileText(wroteProject),\n \t\t\t...(answer.skipped && answer.skipped.length > 0 ? [`The server skipped: ${answer.skipped.join(\", \")}.`] : []),\n-\t\t\t`This folder is agent ${config.agent}. Settings are in .avcs/config.json.`,\n+\t\t\t`This folder is agent ${config.agent}. Settings are in .abso/config.json.`,\n \t\t\t...refusedText(synced.refused),\n \t\t\t...(synced.kept.length > 0 ? [`Kept your copy of ${synced.kept.join(\", \")}.`] : []),\n \t\t\thookHint(env.env),\n@@ -99,12 +100,12 @@\n \tconst project = args.positionals[0]!;\n \tconst root = resolve(env.cwd, str(args, \"dir\") ?? \".\");\n \tmkdirSync(root, { recursive: true });\n-\tif (findRoot(root) === root) throw new UsageError(`${root} already has .avcs/config.json`);\n+\tif (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);\n \tconst reader = bool(args, \"reader\");\n \tconst config = { ...makeSettings(args, env, project), ...(reader ? { reader: true } : {}) };\n \tconst box = readBox(config.server);\n \tconst minted =\n-\t\tbox && !existsSync(join(root, AVCS_DIR, \"key\")) ? await mintKey(box, project, config.agent) : undefined;\n+\t\tbox && !existsSync(join(stateDir(root), \"key\")) ? await mintKey(box, project, config.agent) : undefined;\n \twriteConfig(root, config);\n \tclearKnown(root);\n \tif (minted) installKey(root, JSON.stringify(minted));\n@@ -118,7 +119,7 @@\n \t\tsynced = await syncFolder(root, api, true);\n \t} catch (error) {\n \t\tif (!(error instanceof ApiError && error.status === 401 && !box && !settings.token)) throw error;\n-\t\trmSync(join(root, AVCS_DIR), { recursive: true, force: true });\n+\t\trmSync(stateDir(root), { recursive: true, force: true });\n \t\tthrow new UsageError(`This box isn't signed in to ${config.server}. abso login signs it in.`);\n \t}\n \treturn {"}],"unmatched":[]}