@ai-matrx/meet 0.11.0 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Changelog — `@ai-matrx/meet`
2
2
 
3
- ## 0.11.0
3
+ ## 0.11.1
4
4
 
5
5
  Automatic changed-only republish (docs/metadata drift since the last tag — see
6
- `git diff npm/meet/v0.10.7..npm/meet/v0.11.0 -- apps/shared/meet`).
6
+ `git diff npm/meet/v0.11.0..npm/meet/v0.11.1 -- apps/shared/meet`).
7
7
  No source changes intended and no consumer action required.
8
8
 
9
9
  ## 0.10.7
package/dist/core.cjs CHANGED
@@ -2238,6 +2238,18 @@ function createMeetRepository(options) {
2238
2238
  );
2239
2239
  }
2240
2240
  }
2241
+ async function withRunNoteTaker(meeting) {
2242
+ const response = await db.from(TABLES.sessions).select("note_taker,started_at").eq("meeting_id", meeting.id).order("started_at", { ascending: false }).limit(1);
2243
+ const run = response.error === null ? (response.data ?? [])[0] : void 0;
2244
+ const noteTaker = run?.["note_taker"];
2245
+ if (typeof noteTaker !== "object" || noteTaker === null || Array.isArray(noteTaker)) {
2246
+ return meeting;
2247
+ }
2248
+ return {
2249
+ ...meeting,
2250
+ metadata: { ...meeting.metadata ?? {}, note_taker: noteTaker }
2251
+ };
2252
+ }
2241
2253
  return {
2242
2254
  schema: MEET_SCHEMA,
2243
2255
  tables: TABLES,
@@ -2476,13 +2488,13 @@ function createMeetRepository(options) {
2476
2488
  "meet.meetingBySlug",
2477
2489
  () => db.rpc(RPCS.meetingBySlug, { p_slug: slug })
2478
2490
  );
2479
- return projectMeeting(row);
2491
+ return withRunNoteTaker(projectMeeting(row));
2480
2492
  },
2481
2493
  async meeting(id) {
2482
2494
  const response = await db.from(TABLES.meetings).select(MEETING_COLUMNS).eq("id", id).single();
2483
2495
  if (response.error !== null) throw normalizeMeetError(response.error, "meet.meeting");
2484
2496
  if (response.data === null) throw invalidResponse("meet.meeting", "no such meeting");
2485
- return projectMeeting(response.data);
2497
+ return withRunNoteTaker(projectMeeting(response.data));
2486
2498
  },
2487
2499
  async listMeetings({ organizationId = null, limit = 25, before = null }) {
2488
2500
  let query = db.from(TABLES.meetings).select(MEETING_COLUMNS);