@gobi-ai/cli 0.1.1 → 0.1.2
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/commands/astra.js +11 -1
- package/package.json +1 -1
package/dist/commands/astra.js
CHANGED
|
@@ -419,7 +419,17 @@ export function registerAstraCommand(program) {
|
|
|
419
419
|
const lines = [];
|
|
420
420
|
for (const s of items) {
|
|
421
421
|
const title = s.title || "(no title)";
|
|
422
|
-
|
|
422
|
+
const members = s.members || [];
|
|
423
|
+
const memberCount = s.memberCount ?? 0;
|
|
424
|
+
let memberInfo = "";
|
|
425
|
+
if (members.length > 0) {
|
|
426
|
+
const names = members.map((m) => m.vaultName || m.name || "Unknown");
|
|
427
|
+
const overflow = memberCount - members.length - 1; // -1 for "me"
|
|
428
|
+
memberInfo = ` | with: ${names.join(", ")}`;
|
|
429
|
+
if (overflow > 0)
|
|
430
|
+
memberInfo += ` +${overflow} more`;
|
|
431
|
+
}
|
|
432
|
+
lines.push(`- [${s.id}] "${title}" (mode: ${s.mode}, last activity: ${s.lastMessageAt})${memberInfo}`);
|
|
423
433
|
}
|
|
424
434
|
console.log(`Sessions (${items.length} of ${total}):\n` + lines.join("\n"));
|
|
425
435
|
});
|