recess-cli 3.60.0 → 3.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,9 +51,10 @@ async function resolveFamilyKid(api, parsed) {
51
51
  throw new CliError("student_not_found", `--student "${reference}" is not one of your kids. Use an id, full name, or unique first name.`, 1, { candidates });
52
52
  }
53
53
  /**
54
- * `set-goal-coins` also serves a kid's tutor: a kid outside the caller's
55
- * family resolves through their tutor roster (`resolveStudentReference`).
56
- * The server decides access; a parent's own miss keeps its family error.
54
+ * `set-goal-coins` also serves a kid's tutor, and `join-event` / `leave-event`
55
+ * serve staff: a kid outside the caller's family resolves through their roster
56
+ * (`resolveStudentReference`; an ID passes through). The server decides
57
+ * access; a parent's own miss keeps its family error.
57
58
  */
58
59
  async function resolveFamilyOrTutoredKid(api, parsed) {
59
60
  try {
@@ -576,7 +577,7 @@ export async function runFamilyCommand({ parsed, api, writeCommand, }) {
576
577
  if (verb === "join-event" || verb === "leave-event") {
577
578
  const eventId = flagUuid(parsed, "event", { required: true });
578
579
  const kid = hasFlag(parsed, "student")
579
- ? await resolveFamilyKid(api, parsed)
580
+ ? await resolveFamilyOrTutoredKid(api, parsed)
580
581
  : undefined;
581
582
  const going = verb === "join-event";
582
583
  const body = { going, ...(kid ? { studentId: kid.id } : {}) };
package/dist/help.js CHANGED
@@ -1493,8 +1493,8 @@ export const COMMAND_SUMMARIES = {
1493
1493
  "family billing-link": "The billing page link (cards, plan, receipts).",
1494
1494
  "family calendar": "School-wide days off ahead this school year.",
1495
1495
  "family events": "Upcoming Recess community events (Hangouts > Events: parent talks and coffees, kids' groups), for you and each kid who can see them: host, time, who it's for, who in the family is going, the event id and page link. --search matches title, description or host; --days 1-35 (14); --mine only ones the family goes to. Classes are kid schedule.",
1496
- "family join-event": "Sign you (no --student) or a kid up for a community event from family events (at once; free, the page's own rules).",
1497
- "family leave-event": "Take you (no --student) or a kid off a community event (at once).",
1496
+ "family join-event": "Sign you (no --student) or a kid up for a community event from family events (at once; free, the page's own rules). Staff: --student takes any kid's id or roster name.",
1497
+ "family leave-event": "Take you (no --student) or a kid off a community event (at once). Staff: --student takes any kid's id or roster name.",
1498
1498
  "family login-link": "Email yourself a fresh sign-in link and code (at once; not a change).",
1499
1499
  "family context": "Who's on the account: family, each kid's tutor and guide, school tier.",
1500
1500
  "family memory": "What Rocky remembers about the family: family, yours, recent journal, --query.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recess-cli",
3
- "version": "3.60.0",
3
+ "version": "3.61.0",
4
4
  "description": "Safe Recess administration and family AI tools from the command line.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {