@bli-cockpit/cli 0.2.183 → 0.2.184

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.
@@ -164,8 +164,9 @@ function eventLine(event, zone) {
164
164
  const when = event.all_day ? allDayLabel(event.starts_at, event.ends_at) : `${clock(event.starts_at, zone)}–${clock(event.ends_at, zone)}`;
165
165
  const marks = `${event.recurring ? "↻" : " "}${event.status === "tentative" ? "?" : " "}`;
166
166
  const where = event.location ? ` @ ${event.location.slice(0, 40)}` : "";
167
+ const meeting = meetingLinkText(event);
167
168
  const who = event.attendee_count > 0 ? ` (${event.attendee_count})` : "";
168
- return `${marks} ${when.padEnd(13)} ${event.title.slice(0, 52).padEnd(52)}${where}${who}`;
169
+ return `${marks} ${when.padEnd(13)} ${event.title.slice(0, 52).padEnd(52)}${where}${who}${meeting}`;
169
170
  }
170
171
  /**
171
172
  * BLI-3825: an all-day event spanning several days is ONE row from the door
@@ -229,7 +230,7 @@ async function find(command, door) {
229
230
  const when = match.next_occurrence
230
231
  ? `${dayLabel(match.next_occurrence, zone)} ${clock(match.next_occurrence, zone)}`
231
232
  : `last on ${dayLabel(match.starts_at, zone)}`;
232
- writeLine(door.io.stdout, `${match.recurring ? "↻" : " "} ${when.padEnd(20)} ${match.title.slice(0, 50).padEnd(50)} ${match.calendar_name}`);
233
+ writeLine(door.io.stdout, `${match.recurring ? "↻" : " "} ${when.padEnd(20)} ${match.title.slice(0, 50).padEnd(50)} ${match.calendar_name}${meetingLinkText(match)}`);
233
234
  }
234
235
  writeLine(door.io.stdout, "");
235
236
  writeLine(door.io.stdout, `${matches.length} match(es). Times are ${zone}.`);
@@ -307,4 +308,10 @@ async function create(command, door) {
307
308
  writeLine(door.io.stdout, `Invitations went to ${command.attendees.join(", ")} from Google.`);
308
309
  }
309
310
  return 0;
311
+ }
312
+ function meetingLinkText(event) {
313
+ const label = { meet: "Meet link", zoom: "Zoom link", teams: "Teams link" }[event.meeting_kind ?? ""] ?? "Meeting link";
314
+ const meeting = event.meeting_url ? ` ${label}: ${event.meeting_url}` : "";
315
+ console.error("[cal render] meeting link", JSON.stringify({ reason: event.meeting_url ? "meeting_link_shown" : "no_meeting_link" }));
316
+ return meeting;
310
317
  }
@@ -126,11 +126,11 @@ export async function showNote(command, door) {
126
126
  writeLine(door.io.stdout, note.title);
127
127
  writeLine(door.io.stdout, `${note.meetingDate} · ${note.shelf} · ${note.fileName} · ${note.lineCount} lines`);
128
128
  if (note.participants.length > 0) {
129
- writeLine(door.io.stdout, `In the room: ${note.participants.join(", ")}`);
129
+ writeLine(door.io.stdout, `Invited: ${note.participants.join(", ")}`);
130
130
  }
131
131
  writeLine(door.io.stdout, note.visibility);
132
132
  writeLine(door.io.stdout, "");
133
- writeLine(door.io.stdout, note.content);
133
+ writeLine(door.io.stdout, note.content.replace(/^In the room:/gm, "Invited:"));
134
134
  return 0;
135
135
  }
136
136
  export async function showShelf(command, door) {
@@ -21,7 +21,7 @@ export async function runCockpitCli(argv, io) {
21
21
  }
22
22
 
23
23
  if (command === "--version" || command === "-V" || command === "version") {
24
- writeLine(io?.stdout ?? process.stdout, "0.2.183");
24
+ writeLine(io?.stdout ?? process.stdout, "0.2.184");
25
25
  return 0;
26
26
  }
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/cli",
3
- "version": "0.2.183",
3
+ "version": "0.2.184",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@bli-cockpit/memory-mcp": "0.1.55",
31
- "@bli-cockpit/mcp": "0.1.97",
31
+ "@bli-cockpit/mcp": "0.1.98",
32
32
  "@bli-cockpit/telemetry-core": "0.1.66"
33
33
  },
34
34
  "repository": {