openmates 0.27.0-alpha.41 → 0.27.0-alpha.43

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.
@@ -29548,12 +29548,13 @@ var OpenMatesChats = class {
29548
29548
  chatId,
29549
29549
  1
29550
29550
  );
29551
+ const teamSenderName = teamId ? session.user.username?.trim() || options.senderName?.trim() || "Team member" : null;
29551
29552
  const inferenceHistory = [...history, {
29552
29553
  role: "user",
29553
29554
  content: finalMessage,
29554
- ...options.senderName ? { name: options.senderName } : {}
29555
+ ...teamId ? { sender_name: teamSenderName } : options.senderName ? { name: options.senderName } : {}
29555
29556
  }];
29556
- const teamAiInvocation = teamId && finalMessage.toLocaleLowerCase().includes("@openmates") ? { history: inferenceHistory } : void 0;
29557
+ const teamAiInvocation = teamId && shouldWaitForTeamAi(finalMessage, teamId) ? { history: inferenceHistory } : void 0;
29557
29558
  const inferenceRequest = {
29558
29559
  messages: teamId ? teamAiInvocation?.history ?? [] : inferenceHistory,
29559
29560
  model: options.model,
@@ -29562,9 +29563,9 @@ var OpenMatesChats = class {
29562
29563
  };
29563
29564
  const result = await this.client.request("/v1/sdk/chats", {
29564
29565
  message: teamId ? void 0 : finalMessage,
29565
- history,
29566
+ history: teamId ? [] : history,
29566
29567
  save_to_account: true,
29567
- title: options.title,
29568
+ title: teamId ? void 0 : options.title,
29568
29569
  memory_ids: options.memoryIds ?? [],
29569
29570
  model: options.model,
29570
29571
  focus_mode: inferenceRequest.focus_mode,
@@ -29580,7 +29581,7 @@ var OpenMatesChats = class {
29580
29581
  client_message_id: messageId,
29581
29582
  chat_id: chatId,
29582
29583
  encrypted_content: await encryptWithAesGcmCombined(finalMessage, chatKey),
29583
- encrypted_sender_name: await encryptWithAesGcmCombined(options.senderName ?? "User", chatKey),
29584
+ encrypted_sender_name: await encryptWithAesGcmCombined(teamSenderName ?? options.senderName ?? "User", chatKey),
29584
29585
  role: "user",
29585
29586
  created_at: createdAt,
29586
29587
  updated_at: createdAt
@@ -81303,6 +81304,30 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
81303
81304
  description: {
81304
81305
  text: "Choose which types of newsletter emails you'd like to get. You can change these anytime."
81305
81306
  },
81307
+ openmates_events: {
81308
+ title: {
81309
+ text: "OpenMates events"
81310
+ },
81311
+ description: {
81312
+ text: "Invitations and updates about free OpenMates events."
81313
+ }
81314
+ },
81315
+ software_updates: {
81316
+ title: {
81317
+ text: "Software updates"
81318
+ },
81319
+ description: {
81320
+ text: "New features, product news, and important changes."
81321
+ }
81322
+ },
81323
+ apple_beta_updates: {
81324
+ title: {
81325
+ text: "Apple app beta updates (including TestFlight)"
81326
+ },
81327
+ description: {
81328
+ text: "Invitations and news about beta testing OpenMates on Apple devices."
81329
+ }
81330
+ },
81306
81331
  updates_and_announcements: {
81307
81332
  title: {
81308
81333
  text: "Updates & Announcements"
@@ -81337,6 +81362,69 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
81337
81362
  text: "We couldn't save your preferences. Please try again."
81338
81363
  }
81339
81364
  },
81365
+ newsletter_public_title: {
81366
+ text: "Sign up for our newsletter"
81367
+ },
81368
+ newsletter_public_intro: {
81369
+ text: "Choose the OpenMates updates you would like to receive. We will email a confirmation link before your choices take effect."
81370
+ },
81371
+ newsletter_public_choices: {
81372
+ text: "What would you like to receive?"
81373
+ },
81374
+ newsletter_public_events: {
81375
+ text: "OpenMates events"
81376
+ },
81377
+ newsletter_public_software: {
81378
+ text: "Software updates"
81379
+ },
81380
+ newsletter_public_apple_beta: {
81381
+ text: "Apple app beta updates (including TestFlight)"
81382
+ },
81383
+ newsletter_public_email: {
81384
+ text: "Email address"
81385
+ },
81386
+ newsletter_public_email_placeholder: {
81387
+ text: "you@example.com"
81388
+ },
81389
+ newsletter_public_subscribe: {
81390
+ text: "Subscribe"
81391
+ },
81392
+ newsletter_public_sending: {
81393
+ text: "Sending\u2026"
81394
+ },
81395
+ newsletter_public_neutral: {
81396
+ text: "If this address is eligible, please check your email to confirm your subscription."
81397
+ },
81398
+ newsletter_public_request_error: {
81399
+ text: "Could not request newsletter signup. Please try again."
81400
+ },
81401
+ newsletter_public_privacy_note: {
81402
+ text: "You can unsubscribe at any time."
81403
+ },
81404
+ newsletter_public_privacy_link: {
81405
+ text: "Privacy policy"
81406
+ },
81407
+ newsletter_public_confirmation_title: {
81408
+ text: "Newsletter confirmation"
81409
+ },
81410
+ newsletter_public_confirmation_intro: {
81411
+ text: "Confirm your subscription to activate your selected updates."
81412
+ },
81413
+ newsletter_public_confirm_button: {
81414
+ text: "Confirm subscription"
81415
+ },
81416
+ newsletter_public_confirming: {
81417
+ text: "Confirming your subscription\u2026"
81418
+ },
81419
+ newsletter_public_confirmed: {
81420
+ text: "Your newsletter subscription is confirmed. Thank you!"
81421
+ },
81422
+ newsletter_public_signal: {
81423
+ text: "Join the OpenMates Signal group"
81424
+ },
81425
+ newsletter_public_invalid: {
81426
+ text: "This confirmation link is invalid or expired. Please subscribe again."
81427
+ },
81340
81428
  support: {
81341
81429
  description: {
81342
81430
  text: "Get help and contact the OpenMates team"
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  shouldRequireTrustedAccountGuard,
22
22
  waitForSafeE2ETotpWindow,
23
23
  waitForWorkflowRun
24
- } from "./chunk-HK77T33L.js";
24
+ } from "./chunk-DQ6FE4VU.js";
25
25
  import "./chunk-B4UXKGH3.js";
26
26
  import "./chunk-IWKP55ZB.js";
27
27
  import "./chunk-FC27KZIW.js";
package/dist/index.d.ts CHANGED
@@ -5588,6 +5588,7 @@ type ProjectRecordPlain = {
5588
5588
  interface SdkSessionResponse {
5589
5589
  user?: {
5590
5590
  id?: string;
5591
+ username?: string | null;
5591
5592
  };
5592
5593
  key_wrapper?: {
5593
5594
  encrypted_key?: string;
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  selectAssistantMessagesForSpeech,
45
45
  serializeToYaml,
46
46
  summarizeAssistantSpeech
47
- } from "./chunk-HK77T33L.js";
47
+ } from "./chunk-DQ6FE4VU.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": "c7cb417ace467c3ecd0a7faee913d7c100995033f0ce8c518da598fccc22a52a"
20
+ "sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
21
21
  },
22
22
  {
23
23
  "name": "libggml-base.so.0",
24
24
  "bytes": 1110088,
25
- "sha256": "c7cb417ace467c3ecd0a7faee913d7c100995033f0ce8c518da598fccc22a52a"
25
+ "sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
26
26
  },
27
27
  {
28
28
  "name": "libggml-base.so.0.15.1",
29
29
  "bytes": 1110088,
30
- "sha256": "c7cb417ace467c3ecd0a7faee913d7c100995033f0ce8c518da598fccc22a52a"
30
+ "sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
31
31
  },
32
32
  {
33
33
  "name": "libggml-cpu.so",
34
34
  "bytes": 869800,
35
- "sha256": "530c18219d64a9e7d1c30ef75e235b0d6d80878a3dba2df4d35249785b00e4cc"
35
+ "sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
36
36
  },
37
37
  {
38
38
  "name": "libggml-cpu.so.0",
39
39
  "bytes": 869800,
40
- "sha256": "530c18219d64a9e7d1c30ef75e235b0d6d80878a3dba2df4d35249785b00e4cc"
40
+ "sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
41
41
  },
42
42
  {
43
43
  "name": "libggml-cpu.so.0.15.1",
44
44
  "bytes": 869800,
45
- "sha256": "530c18219d64a9e7d1c30ef75e235b0d6d80878a3dba2df4d35249785b00e4cc"
45
+ "sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
46
46
  },
47
47
  {
48
48
  "name": "libggml.so",
49
49
  "bytes": 1899104,
50
- "sha256": "a0b79291feab4fb5d717138ef6f08f8f30c482d9f26aa9f2f52e4d7ef2f2cea7"
50
+ "sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
51
51
  },
52
52
  {
53
53
  "name": "libggml.so.0",
54
54
  "bytes": 1899104,
55
- "sha256": "a0b79291feab4fb5d717138ef6f08f8f30c482d9f26aa9f2f52e4d7ef2f2cea7"
55
+ "sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
56
56
  },
57
57
  {
58
58
  "name": "libggml.so.0.15.1",
59
59
  "bytes": 1899104,
60
- "sha256": "a0b79291feab4fb5d717138ef6f08f8f30c482d9f26aa9f2f52e4d7ef2f2cea7"
60
+ "sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
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.41",
3
+ "version": "0.27.0-alpha.43",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",