recess-cli 2.6.0 → 2.6.1

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.
@@ -152,6 +152,31 @@ export async function runOnboardingCommand({ parsed, api, writeCommand, }) {
152
152
  },
153
153
  }));
154
154
  }
155
+ if (verb === "rearm-kid-first-run") {
156
+ const kidUserId = positional(parsed, 2, "kid ID");
157
+ const preview = unwrap(await api.client.GET("/admin/onboarding/kids/{kidUserId}/first-run/rearm", { params: { path: { kidUserId } } }));
158
+ const body = {
159
+ expectedCompletedAt: preview.kidFirstRunCompletedAt,
160
+ };
161
+ return writeCommand(parsed, {
162
+ action: preview.alreadyEligible
163
+ ? "leave the kid's native first-run onboarding rearmed (it is already eligible)"
164
+ : "rearm the kid's Rocky-guided native first-run onboarding",
165
+ target: {
166
+ kidUserId: preview.kid.id,
167
+ familyId: preview.kid.familyId,
168
+ name: personName(preview.kid.firstName, preview.kid.lastName, preview.kid.id),
169
+ email: preview.kid.email,
170
+ },
171
+ request: body,
172
+ details: {
173
+ currentKidFirstRunCompletedAt: preview.kidFirstRunCompletedAt,
174
+ changes: ["User.kidFirstRunCompletedAt → null"],
175
+ retained: "Profile, todos, goals, XP, family/enrollment state, and Village progress are unchanged. A partial prior first run resumes from its existing durable progress.",
176
+ prerequisite: "The kid-onboarding feature flag must evaluate true for this kid separately.",
177
+ },
178
+ }, async () => unwrap(await api.client.POST("/admin/onboarding/kids/{kidUserId}/first-run/rearm", { params: { path: { kidUserId } }, body })));
179
+ }
155
180
  if (verb === "timeline") {
156
181
  const familyId = positional(parsed, 2, "family ID");
157
182
  return unwrap(await api.client.GET("/admin/onboarding/families/{familyId}/timeline", {
package/dist/help.js CHANGED
@@ -148,6 +148,7 @@ Usage:
148
148
  recess [--json] onboarding queue [--school <institution-slug>]
149
149
  recess [--json] onboarding kids [--time-period-days N] [--cohort <id>]
150
150
  [--limit N] [--stage-filter all|scheduled|oriented|course|converted|lost]
151
+ recess [--json] onboarding rearm-kid-first-run <kid-id> [--confirm]
151
152
  recess [--json] onboarding timeline <family-id>
152
153
  recess [--json] onboarding readiness <family-id>
153
154
  recess [--json] onboarding family <family-id>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recess-cli",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Safe Recess administration and family AI tools from the command line.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {