@ai-matrx/meet 0.11.45 → 0.11.46

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.
@@ -293,10 +293,10 @@ var MEET_ROUTES = {
293
293
  recordingStop: "/api/v1/meet/recording/stop",
294
294
  noteTakerStart: "/api/v1/meet/agent/start",
295
295
  noteTakerStop: "/api/v1/meet/agent/stop",
296
- /** In-meeting Q&A. Streams NDJSON; body is `{meeting_id, question}` only. */
297
- intelligenceAsk: "/api/v1/meet/intelligence/ask",
298
296
  /** Anyone in the meeting (guests with the room pass included) asks for captions for themselves. */
299
297
  noteTakerCaptions: "/api/v1/meet/agent/captions",
298
+ /** In-meeting Q&A. Streams NDJSON; body is `{meeting_id, question}` only. */
299
+ intelligenceAsk: "/api/v1/meet/intelligence/ask",
300
300
  /** A host ends the meeting for everyone. Served by MRI-A6. */
301
301
  meetingEnd: "/api/v1/meet/end",
302
302
  /**
@@ -858,6 +858,7 @@ var STATES = [
858
858
  "ended"
859
859
  ];
860
860
  function readState(value) {
861
+ if (value === "dispatching") return "joining";
861
862
  return typeof value === "string" && STATES.includes(value) ? value : null;
862
863
  }
863
864
  function isNoteTaker(participant) {
@@ -1702,7 +1703,10 @@ function useEndMeeting() {
1702
1703
  function useConsentNotice() {
1703
1704
  const snapshot = useMeetSnapshot();
1704
1705
  const agent = noteTakerParticipant(snapshot?.participants ?? []);
1705
- if (agent === null) return null;
1706
+ if (agent === null) {
1707
+ const state = noteTakerStatus({ meeting: snapshot?.meeting ?? null, participants: [] }).state;
1708
+ return state === "joining" ? "AI notes started. The note-taker is joining this meeting." : null;
1709
+ }
1706
1710
  return `AI notes are on. ${agent.displayName} is in this meeting, transcribing what is said and writing notes everyone here can read.`;
1707
1711
  }
1708
1712
  function useMediaSupervisor() {
@@ -4425,6 +4429,17 @@ function ChatPanel({
4425
4429
  const snapshot = useMeetSnapshot();
4426
4430
  const room = useRoom();
4427
4431
  const live = useLivePolicy();
4432
+ const host = useMeetHost();
4433
+ const [rulesChecked, setRulesChecked] = (0, import_react10.useState)(false);
4434
+ (0, import_react10.useEffect)(() => {
4435
+ let alive = true;
4436
+ const done = () => alive && setRulesChecked(true);
4437
+ if (host === null) done();
4438
+ else void host.meetings.readLivePolicy().then(done, done);
4439
+ return () => {
4440
+ alive = false;
4441
+ };
4442
+ }, [host]);
4428
4443
  const [draft, setDraft] = (0, import_react10.useState)("");
4429
4444
  const [recipient, setRecipient] = (0, import_react10.useState)(to);
4430
4445
  const listRef = (0, import_react10.useRef)(null);
@@ -4449,7 +4464,7 @@ function ChatPanel({
4449
4464
  snapshot?.chatLoaded !== true && messages.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { className: "mx-meet__panel-note", children: "Reading earlier messages\u2026" }) : messages.length === 0 && snapshot?.chatHistoryError == null ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { className: "mx-meet__panel-note", children: "No messages yet. Messages to everyone stay with the meeting, so people who join later see them." }) : null,
4450
4465
  messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ChatLine, { message, local, people }, message.id))
4451
4466
  ] }),
4452
- !live.canChat ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mx-meet__panel-note", role: "status", "data-meet-notice": "chat-restricted", children: live.chatMode === "off" ? "Chat is turned off for this meeting." : "Chat is limited to the host and co-hosts in this meeting." }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
4467
+ !rulesChecked ? null : !live.canChat ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mx-meet__panel-note", role: "status", "data-meet-notice": "chat-restricted", children: live.chatMode === "off" ? "Chat is turned off for this meeting." : "Chat is limited to the host and co-hosts in this meeting." }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
4453
4468
  "form",
4454
4469
  {
4455
4470
  className: "mx-meet__composer mx-meet__composer--chat",