Versions 33 to 34
new file, 174 lines
6+
10+
11+/** The website for an API server: api.<site> serves <site>; any other server serves its own pages. */
21+
22+/** The flags that change an org, in the order Design wrote them; each names where the website does it. */
31+
33+ "Organizations are changed on the website for now; from the CLI they can only be read, as the person who approved this box's sign-in";
34+
40+
45+ `this box isn't signed in to ${originOf(server)}. abso login signs it in; org reads answer as the person who approves it`,
49+
54+ return new UsageError(`${originOf(server)} didn't take this box's sign-in (${said}). abso login renews it`);
55+ if (a.status === 404 && /aren't on here/.test(said)) return new UsageError(`${originOf(server)}: ${said}`);
59+
60+const when = (iso: unknown) => (typeof iso === "string" ? `${iso.slice(0, 16).replace("T", " ")} UTC` : "?");
61+
73+
86+ (o) => ` ${o.name}${o.displayName && o.displayName !== o.name ? ` (${o.displayName})` : ""}: ${o.role}`,
97+
110+
111+/** abso org <name>, abso org new <name>, and the change flags, which say where the website does each. */
116+ if (second === undefined || more.length > 0) throw new UsageError('abso org new <name> [--name "<shown name>"]');
121+ if (args.flags.has("as") && !args.flags.has("invite")) throw new UsageError("--as goes with --invite");
123+ throw new UsageError(`one change at a time: --${asked.map((c) => c.flag).join(" and --")} were given together`);
126+ `${WEBSITE_ONLY}. --${asked[0]!.flag} is on ${first}'s ${asked[0]!.tab} tab: ${siteOf(server)}/${first}.`,
128+
142+ const lines = [`${org.name}${org.displayName && org.displayName !== org.name ? ` (${org.displayName})` : ""}`];
149+ `You're ${org.role === "owner" ? "an owner" : "a member"}. Members can ${org.membersCan ?? "?"} every project; ${org.whoMakesProjects === "owners" ? "only owners make" : "members make"} projects.`,
152+ lines.push(projects.length === 0 ? "Projects: none yet." : `Projects (${projects.length}): ${projects.join(", ")}`);
158+ ` ${m.name ?? "(no name yet)"}: ${m.role}${raised.length > 0 ? `, raised to ${raised.join(", ")}` : ""}`,
164+ lines.push(` ${i.kind === "link" ? "a link" : "a person, by name"}, as ${i.role}, until ${when(i.expiresAt)}`);
168+
172+ `projects in an organization are made on the website for now: New project at ${siteOf(server)}, with ${org} as its owner.`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 33 34 client/src/orgs.ts --json
- JSON
- /christopher/abso-core/compare/33..34?file=client%2Fsrc%2Forgs.ts&format=json