@ai-matrx/meet 0.7.84 → 0.7.85

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.cjs CHANGED
@@ -54,6 +54,7 @@ __export(src_exports, {
54
54
  MEET_ANSWER_CONTEXT_EVENT: () => MEET_ANSWER_CONTEXT_EVENT,
55
55
  MEET_ANSWER_EVENTS: () => MEET_ANSWER_EVENTS,
56
56
  MEET_EVENTS: () => MEET_EVENTS,
57
+ MEET_REACTIONS: () => MEET_REACTIONS,
57
58
  MEET_ROUTES: () => MEET_ROUTES,
58
59
  MEET_SCHEMA: () => MEET_SCHEMA,
59
60
  MODERATION_ACTIONS: () => MODERATION_ACTIONS,
@@ -76,6 +77,7 @@ __export(src_exports, {
76
77
  TRANSCRIPTION_TOPIC: () => TRANSCRIPTION_TOPIC,
77
78
  absenceSentence: () => absenceSentence,
78
79
  activeWrapUpSummary: () => activeWrapUpSummary,
80
+ activityAttention: () => activityAttention,
79
81
  announceMeeting: () => announceMeeting,
80
82
  applyCollabPacket: () => applyCollabPacket,
81
83
  applyRoomEvent: () => applyRoomEvent,
@@ -92,6 +94,7 @@ __export(src_exports, {
92
94
  attendanceTotals: () => attendanceTotals,
93
95
  attendeeKey: () => attendeeKey,
94
96
  autoAssign: () => autoAssign,
97
+ availableActivities: () => availableActivities,
95
98
  breakoutRemainingMs: () => breakoutRemainingMs,
96
99
  callInviteAction: () => callInviteAction,
97
100
  callInviteText: () => callInviteText,
@@ -163,6 +166,8 @@ __export(src_exports, {
163
166
  mergeCaption: () => mergeCaption,
164
167
  mergeRecord: () => mergeRecord,
165
168
  microphoneNoticeCode: () => microphoneNoticeCode,
169
+ moveToRoom: () => moveToRoom,
170
+ nextTranslationBatch: () => nextTranslationBatch,
166
171
  normalizeDeviceError: () => normalizeDeviceError,
167
172
  normalizeMeetError: () => normalizeMeetError,
168
173
  normalizeSpoken: () => normalizeSpoken,
@@ -179,6 +184,7 @@ __export(src_exports, {
179
184
  parseRoomToken: () => parseRoomToken,
180
185
  participantAttributes: () => participantAttributes,
181
186
  participantSummary: () => participantSummary,
187
+ performCollab: () => performCollab,
182
188
  playableRecordingFileId: () => playableRecordingFileId,
183
189
  projectInvitee: () => projectInvitee,
184
190
  projectLibraryRecording: () => projectLibraryRecording,
@@ -201,15 +207,19 @@ __export(src_exports, {
201
207
  rootAttributes: () => rootAttributes,
202
208
  searchTranscript: () => searchTranscript,
203
209
  sendFollowUp: () => sendFollowUp,
210
+ setCaptionLanguage: () => setCaptionLanguage,
204
211
  setGuestRecordAccess: () => setGuestRecordAccess,
205
212
  settingsPatch: () => settingsPatch,
206
213
  snapshotParticipant: () => snapshotParticipant,
207
214
  snippetRuns: () => snippetRuns,
208
215
  staticObservation: () => staticObservation,
209
216
  summarizeMeetingRecordRestrictions: () => summarizeMeetingRecordRestrictions,
217
+ takeMoveRequest: () => takeMoveRequest,
218
+ takePanelRequest: () => takePanelRequest,
210
219
  transcriptDocument: () => transcriptDocument,
211
220
  unavailableFrom: () => unavailableFrom,
212
221
  uniqueAttendees: () => uniqueAttendees,
222
+ untranslatedLines: () => untranslatedLines,
213
223
  userTopic: () => userTopic,
214
224
  wasRefused: () => wasRefused,
215
225
  withItem: () => withItem,
@@ -6524,6 +6534,75 @@ function createMeetingRecordCache(options = {}) {
6524
6534
  };
6525
6535
  }
6526
6536
 
6537
+ // src/core/reactions.ts
6538
+ var MEET_REACTIONS = ["\u{1F496}", "\u{1F44D}", "\u{1F389}", "\u{1F44F}", "\u{1F602}", "\u{1F62E}", "\u{1F622}", "\u{1F914}", "\u{1F44E}"];
6539
+
6540
+ // src/core/collab-state.ts
6541
+ function availableActivities(collab, isHost) {
6542
+ const settings = collab?.settings ?? null;
6543
+ if (settings === null) return [];
6544
+ const out = [];
6545
+ if (settings.whiteboardEnabled) out.push("whiteboard");
6546
+ if (settings.pollsEnabled && (isHost || (collab?.polls.length ?? 0) > 0)) out.push("polls");
6547
+ if (settings.qaEnabled) out.push("qa");
6548
+ if (settings.breakoutsEnabled && (isHost || collab?.breakout?.state === "open")) out.push("breakouts");
6549
+ return out;
6550
+ }
6551
+ function activityAttention(collab, isHost) {
6552
+ if (collab === null) return false;
6553
+ if (collab.polls.some((poll) => poll.state === "live" && poll.myVote.length === 0 && !isHost)) return true;
6554
+ if (isHost && collab.questions.some((q) => q.state === "open")) return true;
6555
+ return false;
6556
+ }
6557
+ async function performCollab(runtime, request) {
6558
+ if (runtime === null) return { ok: false, message: "This meeting is not connected." };
6559
+ try {
6560
+ const result = await runtime.inRoom.collab(request);
6561
+ return { ok: true, message: result.message, itemId: result.itemId };
6562
+ } catch (error) {
6563
+ return { ok: false, message: error.message ?? "That did not work." };
6564
+ }
6565
+ }
6566
+ async function moveToRoom(runtime, roomId) {
6567
+ if (runtime === null) return { ok: false, message: "This meeting is not connected." };
6568
+ try {
6569
+ await runtime.engine.moveToBreakout(roomId);
6570
+ return { ok: true, message: roomId === null ? "Back in the main room." : "Joined the breakout room." };
6571
+ } catch (error) {
6572
+ return { ok: false, message: error.message ?? "That room could not be joined." };
6573
+ }
6574
+ }
6575
+ function untranslatedLines(lines, translations) {
6576
+ return lines.filter((line) => line.final && translations[line.id] === void 0).map(({ id, text: text3 }) => ({ id, text: text3 }));
6577
+ }
6578
+ function nextTranslationBatch(pending, language, asked) {
6579
+ const batch = pending.filter((line) => !asked.has(`${language}:${line.id}`)).slice(-20);
6580
+ for (const line of batch) asked.add(`${language}:${line.id}`);
6581
+ return batch;
6582
+ }
6583
+ function setCaptionLanguage(store, next) {
6584
+ store.patch({
6585
+ collab: {
6586
+ ...store.snapshot().collab,
6587
+ captionLanguage: next,
6588
+ captionTranslations: {},
6589
+ captionTranslationError: null
6590
+ }
6591
+ });
6592
+ }
6593
+ function takePanelRequest(store) {
6594
+ const request = store.snapshot().collab.panelRequest;
6595
+ if (request === null) return null;
6596
+ store.patch({ collab: { ...store.snapshot().collab, panelRequest: null } });
6597
+ return request.panel;
6598
+ }
6599
+ function takeMoveRequest(store) {
6600
+ const request = store.snapshot().collab.moveRequest;
6601
+ if (request === null) return null;
6602
+ store.patch({ collab: { ...store.snapshot().collab, moveRequest: null } });
6603
+ return { roomId: request.roomId };
6604
+ }
6605
+
6527
6606
  // src/core/observation.ts
6528
6607
  function observedDevice(track) {
6529
6608
  if (track.enabled) return "on";