exponential-cli 1.34.0 → 1.35.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.
package/dist/index.js CHANGED
@@ -1077,13 +1077,18 @@ ${chalk2[getTicketStatusColor(ticket.status)](`[${ticket.status}]`)} ${chalk2.gr
1077
1077
  if (decisions && decisions.length > 0) {
1078
1078
  const open = decisions.filter((d) => d.status === "OPEN");
1079
1079
  const decided = decisions.filter((d) => d.status !== "OPEN");
1080
+ const printDecision = (d, prefix) => {
1081
+ const title = d.title?.trim();
1082
+ console.log(` - ${prefix}${d.label} ${title || d.statement}`);
1083
+ if (title) console.log(chalk2.gray(` ${d.statement}`));
1084
+ };
1080
1085
  if (open.length > 0) {
1081
1086
  console.log(` ${chalk2.cyan("Open questions:")}`);
1082
- for (const d of open) console.log(` - ${d.label} ${d.statement}`);
1087
+ for (const d of open) printDecision(d, "");
1083
1088
  }
1084
1089
  if (decided.length > 0) {
1085
1090
  console.log(` ${chalk2.cyan("Decisions:")}`);
1086
- for (const d of decided) console.log(` - ${chalk2.gray(`[${d.status}]`)} ${d.label} ${d.statement}`);
1091
+ for (const d of decided) printDecision(d, `${chalk2.gray(`[${d.status}]`)} `);
1087
1092
  }
1088
1093
  }
1089
1094
  if (detail.actions && detail.actions.length > 0) {
@@ -1187,6 +1192,7 @@ function transformTicket(ticket) {
1187
1192
  decisions: ticketDecisions(ticket)?.map((d) => ({
1188
1193
  id: d.id,
1189
1194
  label: d.label,
1195
+ title: d.title ?? null,
1190
1196
  statement: d.statement,
1191
1197
  status: d.status,
1192
1198
  decidedAt: d.decidedAt ? new Date(d.decidedAt).toISOString() : null,