Versions 85 to 86
Lines 128–181 at 86 (were 128–148 at 85)
129129
131− * Why a join failed signed out. The client reads only as an agent, which needs a
132− * sign-in; a public project is read signed out on the website. Whether the
133− * project is public is asked of the server with no credentials.
131+ * Whether anyone can read the project: its status answers with no credentials. Only the answer's code
132+ * counts, never its body, and no redirect is followed. A private project and a missing one look the same.
135−async function signedOut(server: string, project: string): Promise<string> {
136− let open = false;
138− const response = await fetch(new URL(`/p/${project}/status`, server), { signal: AbortSignal.timeout(3000) });
139− open = response.ok;
140− } catch {}
141− return open
142− ? `${project} is public: read it at ${siteOf(server)}/${SITE_OWNER}/${project} (every page is also JSON). The client needs a sign-in, even to read: abso login.`
146+
148+ * Why a join failed signed out. Without --reader, the client reads only as an agent, which needs a
153+ ? `${project} is public: read it at ${siteOf(server)}/${SITE_OWNER}/${project} (every page is also JSON), or here with abso join ${project} --reader. To work on it: abso login.`
145156
158+async function joinAsVisitor(root: string, server: string, project: string, env: Env): Promise<Output> {
170+ `Joined ${project} to read it signed out, at version ${version}, in ${root}. Nothing is sent with a sign-in, and nothing here is recorded.`,
171+ `This folder holds no copy of the files: abso files lists them, abso show ${version}:<file> prints one, and status, log, blame, why, where, issues, issue and search read the rest.`,
178+
147180 if (args.positionals.length !== 1) throw new UsageError("join takes the project name: abso join <project>");
Lines 196–204 at 86 (were 163–169 at 85)
166− // No --agent: the box's name, or the next free -2, -3.
199+ // No --agent: the box's name, or the next free -2, -3. Not signed in, --reader reads a public project signed out.
169204 `${await signedOut(server, project)} (A folder that already has a key joins with --agent <name>.)`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 85 86 client/src/join-commands.ts --json
- JSON
- /christopher/abso-core/compare/85..86?file=client%2Fsrc%2Fjoin-commands.ts&format=json