openmates 0.27.0-alpha.39 → 0.27.0-alpha.40

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.
@@ -84821,6 +84821,9 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
84821
84821
  ended: {
84822
84822
  text: "Call ended. Your audio and visuals were released."
84823
84823
  },
84824
+ time_limit_reached: {
84825
+ text: "The two-minute experiment limit was reached. Your call has ended."
84826
+ },
84824
84827
  start: {
84825
84828
  text: "Start call"
84826
84829
  },
@@ -94484,12 +94487,25 @@ function moveTuiChatSidebarSelection(state, amount, edge) {
94484
94487
  state.sidebarIndex = selectable[next] ?? 0;
94485
94488
  }
94486
94489
  async function refreshTuiChatSidebar(state, client2, render, includeProjects = false) {
94487
- if (!state.signedIn) return;
94490
+ if (!state.signedIn || typeof client2.hasSession === "function" && !client2.hasSession()) return;
94488
94491
  const activityRequest = ++state.chatActivityLoadVersion;
94489
94492
  const projectRequest = includeProjects ? ++state.chatSidebarLoadVersion : state.chatSidebarLoadVersion;
94490
94493
  const team = typeof client2.getActiveTeamId === "function" ? client2.getActiveTeamId() : null;
94491
- const master = typeof client2.getMasterKeyBytes === "function" ? Buffer.from(client2.getMasterKeyBytes()) : null;
94492
- const current2 = () => state.signedIn && (typeof client2.getActiveTeamId !== "function" || client2.getActiveTeamId() === team) && (!master || master.equals(Buffer.from(client2.getMasterKeyBytes())));
94494
+ let master = null;
94495
+ try {
94496
+ master = typeof client2.getMasterKeyBytes === "function" ? Buffer.from(client2.getMasterKeyBytes()) : null;
94497
+ } catch (error) {
94498
+ if (typeof client2.hasSession === "function" && !client2.hasSession()) return;
94499
+ throw error;
94500
+ }
94501
+ const current2 = () => {
94502
+ try {
94503
+ if (!state.signedIn || typeof client2.hasSession === "function" && !client2.hasSession()) return false;
94504
+ return (typeof client2.getActiveTeamId !== "function" || client2.getActiveTeamId() === team) && (!master || master.equals(Buffer.from(client2.getMasterKeyBytes())));
94505
+ } catch {
94506
+ return false;
94507
+ }
94508
+ };
94493
94509
  if (typeof client2.getChatActivity === "function") {
94494
94510
  try {
94495
94511
  const activity = await client2.getChatActivity();
@@ -94507,7 +94523,7 @@ async function refreshTuiChatSidebar(state, client2, render, includeProjects = f
94507
94523
  }
94508
94524
  }
94509
94525
  }
94510
- if (includeProjects && typeof client2.listProjects === "function") {
94526
+ if (includeProjects && current2() && typeof client2.listProjects === "function") {
94511
94527
  const summaries = (await loadTuiProjects(client2)).filter((project) => !project.archived), projects = [];
94512
94528
  for (let start = 0; start < summaries.length; start += 4) projects.push(...await Promise.all(summaries.slice(start, start + 4).map((project) => loadTuiProject(client2, project.id, true))));
94513
94529
  const linkedIds = [...new Set(projects.flatMap((project) => project.items.filter((item) => item.type === "chat").map((item) => item.targetId)))];
@@ -99829,8 +99845,14 @@ async function runTui(client2, terminal = new TuiTerminal(), startupServices) {
99829
99845
  refreshingActivity = true;
99830
99846
  try {
99831
99847
  await refreshTuiChatSidebar(state, client2, render);
99848
+ } catch {
99849
+ if (!closed && client2.hasSession() && !state.status) {
99850
+ state.status = "Running chat status unavailable.";
99851
+ render();
99852
+ }
99832
99853
  } finally {
99833
99854
  refreshingActivity = false;
99855
+ if (!closed && !client2.hasSession()) render();
99834
99856
  }
99835
99857
  };
99836
99858
  const activityPoll = setInterval(() => {
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  shouldRequireTrustedAccountGuard,
22
22
  waitForSafeE2ETotpWindow,
23
23
  waitForWorkflowRun
24
- } from "./chunk-K5RCVM2I.js";
24
+ } from "./chunk-LXWEHHNA.js";
25
25
  import "./chunk-B4UXKGH3.js";
26
26
  import "./chunk-IWKP55ZB.js";
27
27
  import "./chunk-FC27KZIW.js";
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  selectAssistantMessagesForSpeech,
45
45
  serializeToYaml,
46
46
  summarizeAssistantSpeech
47
- } from "./chunk-K5RCVM2I.js";
47
+ } from "./chunk-LXWEHHNA.js";
48
48
  import "./chunk-B4UXKGH3.js";
49
49
  import "./chunk-IWKP55ZB.js";
50
50
  import "./chunk-FC27KZIW.js";
@@ -17,47 +17,47 @@
17
17
  {
18
18
  "name": "libggml-base.so",
19
19
  "bytes": 1110088,
20
- "sha256": "396036633407ea7d9a42d9f954b0747252387a0324999cde60c195c1a6d7c249"
20
+ "sha256": "fc6b380ec83d4a81aa821bed5ca4a29637f8dc434c0eb2243601a77f1a090148"
21
21
  },
22
22
  {
23
23
  "name": "libggml-base.so.0",
24
24
  "bytes": 1110088,
25
- "sha256": "396036633407ea7d9a42d9f954b0747252387a0324999cde60c195c1a6d7c249"
25
+ "sha256": "fc6b380ec83d4a81aa821bed5ca4a29637f8dc434c0eb2243601a77f1a090148"
26
26
  },
27
27
  {
28
28
  "name": "libggml-base.so.0.15.1",
29
29
  "bytes": 1110088,
30
- "sha256": "396036633407ea7d9a42d9f954b0747252387a0324999cde60c195c1a6d7c249"
30
+ "sha256": "fc6b380ec83d4a81aa821bed5ca4a29637f8dc434c0eb2243601a77f1a090148"
31
31
  },
32
32
  {
33
33
  "name": "libggml-cpu.so",
34
34
  "bytes": 869800,
35
- "sha256": "48fa0bf3a6985921060e2ab4096b444d04be0b1ccc0ce30001cb4b536b4c3aef"
35
+ "sha256": "723427761c15594f903097cbbf25acf9b60a490b265541466f400c718d098472"
36
36
  },
37
37
  {
38
38
  "name": "libggml-cpu.so.0",
39
39
  "bytes": 869800,
40
- "sha256": "48fa0bf3a6985921060e2ab4096b444d04be0b1ccc0ce30001cb4b536b4c3aef"
40
+ "sha256": "723427761c15594f903097cbbf25acf9b60a490b265541466f400c718d098472"
41
41
  },
42
42
  {
43
43
  "name": "libggml-cpu.so.0.15.1",
44
44
  "bytes": 869800,
45
- "sha256": "48fa0bf3a6985921060e2ab4096b444d04be0b1ccc0ce30001cb4b536b4c3aef"
45
+ "sha256": "723427761c15594f903097cbbf25acf9b60a490b265541466f400c718d098472"
46
46
  },
47
47
  {
48
48
  "name": "libggml.so",
49
49
  "bytes": 1899104,
50
- "sha256": "7639f2e621c3824626a4fc2433544d93202bad2020cc045cfaf630e8a049ecbc"
50
+ "sha256": "8c29bebaf583bfb2e8ff7f749c191b1f0647789318848d6a902ce55bdbe1798a"
51
51
  },
52
52
  {
53
53
  "name": "libggml.so.0",
54
54
  "bytes": 1899104,
55
- "sha256": "7639f2e621c3824626a4fc2433544d93202bad2020cc045cfaf630e8a049ecbc"
55
+ "sha256": "8c29bebaf583bfb2e8ff7f749c191b1f0647789318848d6a902ce55bdbe1798a"
56
56
  },
57
57
  {
58
58
  "name": "libggml.so.0.15.1",
59
59
  "bytes": 1899104,
60
- "sha256": "7639f2e621c3824626a4fc2433544d93202bad2020cc045cfaf630e8a049ecbc"
60
+ "sha256": "8c29bebaf583bfb2e8ff7f749c191b1f0647789318848d6a902ce55bdbe1798a"
61
61
  },
62
62
  {
63
63
  "name": "openmates-pii-worker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.27.0-alpha.39",
3
+ "version": "0.27.0-alpha.40",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",