Versions 25 to 318
new file, 186 lines
7+
11+
12+/** The website for an API server: api.<site> serves <site>; any other server serves its own pages. */
22+
23+/** The flags that change an org, in the order Design wrote them; each names where the website does it. */
32+
34+ "Organizations are changed on the website; from the CLI they can be read, and made with abso org new, as the person who approved this box's sign-in";
35+
41+
46+ `this box isn't signed in to ${originOf(server)}. abso login signs it in; org reads answer as the person who approves it`,
50+
55+ return new UsageError(`${originOf(server)} didn't take this box's sign-in (${said}). abso login renews it`);
56+ if (a.status === 404 && /aren't on here/.test(said)) return new UsageError(`${originOf(server)}: ${said}`);
60+
61+const when = (iso: unknown) => (typeof iso === "string" ? `${iso.slice(0, 16).replace("T", " ")} UTC` : "?");
62+
74+
87+ (o) => ` ${o.name}${o.displayName && o.displayName !== o.name ? ` (${o.displayName})` : ""}: ${o.role}`,
98+
111+
112+/** abso org <name>, abso org new <name>, and the change flags, which say where the website does each. */
117+ if (second === undefined || more.length > 0) throw new UsageError('abso org new <name> [--name "<shown name>"]');
122+ `this box isn't signed in to ${originOf(server)}. abso login signs it in; approve all your projects to make organizations from here`,
127+ text: `Made the organization ${name}; you own it. Its page: ${siteOf(server)}/${name}. abso init --org ${name} --project <name> makes a project in it.`,
133+ if (args.flags.has("as") && !args.flags.has("invite")) throw new UsageError("--as goes with --invite");
135+ throw new UsageError(`one change at a time: --${asked.map((c) => c.flag).join(" and --")} were given together`);
138+ `${WEBSITE_ONLY}. --${asked[0]!.flag} is on ${first}'s ${asked[0]!.tab} tab: ${siteOf(server)}/${first}.`,
140+
154+ const lines = [`${org.name}${org.displayName && org.displayName !== org.name ? ` (${org.displayName})` : ""}`];
161+ `You're ${org.role === "owner" ? "an owner" : "a member"}. Members can ${org.membersCan ?? "?"} every project; ${org.whoMakesProjects === "owners" ? "only owners make" : "members make"} projects.`,
164+ lines.push(projects.length === 0 ? "Projects: none yet." : `Projects (${projects.length}): ${projects.join(", ")}`);
170+ ` ${m.name ?? "(no name yet)"}: ${m.role}${raised.length > 0 ? `, raised to ${raised.join(", ")}` : ""}`,
176+ lines.push(` ${i.kind === "link" ? "a link" : "a person, by name"}, as ${i.role}, until ${when(i.expiresAt)}`);
180+
181+/** abso init --org with no box signed in to the server: an org's project is made as the person who approved one (abso 663). */
184+ `this box isn't signed in to ${originOf(server)}, and a project in ${org} is made as a signed-in person. abso login, approving all your projects, then abso init --org ${org} again; or New project at ${siteOf(server)}.`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 25 318 client/src/orgs.ts --json
- JSON
- /christopher/abso-core/compare/25..318?file=client%2Fsrc%2Forgs.ts&format=json