@staff0rd/assist 0.643.3 → 0.643.4

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.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.643.3",
9
+ version: "0.643.4",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -9302,6 +9302,9 @@ function printPhase(phase, index3, isCurrent, sessions) {
9302
9302
  printPhaseTasks(phase);
9303
9303
  printPhaseSessions(sessions);
9304
9304
  }
9305
+ function reviewPhaseIndex(plan2) {
9306
+ return plan2.at(-1)?.name === REVIEW_PHASE_NAME ? plan2.length - 1 : plan2.length;
9307
+ }
9305
9308
  function printReviewSessions(item, planLength) {
9306
9309
  const sessions = (item.phaseSessions ?? []).filter(
9307
9310
  (s) => s.phaseIdx >= planLength
@@ -9313,13 +9316,17 @@ function printReviewSessions(item, planLength) {
9313
9316
  }
9314
9317
  function printPlan(item) {
9315
9318
  if (!item.plan || item.plan.length === 0) return;
9319
+ const plan2 = item.plan;
9320
+ const reviewIdx = reviewPhaseIndex(plan2);
9316
9321
  console.log(chalk55.bold("Plan"));
9317
- for (const [i, phase] of item.plan.entries()) {
9322
+ for (const [i, phase] of plan2.entries()) {
9318
9323
  const isCurrent = item.currentPhase === i + 1;
9319
- const sessions = (item.phaseSessions ?? []).filter((s) => s.phaseIdx === i);
9324
+ const sessions = (item.phaseSessions ?? []).filter(
9325
+ (s) => i === reviewIdx ? s.phaseIdx >= i : s.phaseIdx === i
9326
+ );
9320
9327
  printPhase(phase, i, isCurrent, sessions);
9321
9328
  }
9322
- printReviewSessions(item, item.plan.length);
9329
+ if (reviewIdx === plan2.length) printReviewSessions(item, plan2.length);
9323
9330
  console.log();
9324
9331
  }
9325
9332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.643.3",
3
+ "version": "0.643.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {