openmates 0.27.0-alpha.42 → 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.
- package/dist/{chunk-LQJXYWMD.js → chunk-DQ6FE4VU.js} +6 -5
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-base.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml-cpu.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so.0 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/libggml.so.0.15.1 +0 -0
- package/fixtures/privacy-runtime/linux-arm64/manifest.json +9 -9
- package/package.json +1 -1
|
@@ -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
|
|
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
|
package/dist/cli.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
shouldRequireTrustedAccountGuard,
|
|
22
22
|
waitForSafeE2ETotpWindow,
|
|
23
23
|
waitForWorkflowRun
|
|
24
|
-
} from "./chunk-
|
|
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
package/dist/index.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -17,47 +17,47 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "libggml-base.so",
|
|
19
19
|
"bytes": 1110088,
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "libggml-base.so.0",
|
|
24
24
|
"bytes": 1110088,
|
|
25
|
-
"sha256": "
|
|
25
|
+
"sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "libggml-base.so.0.15.1",
|
|
29
29
|
"bytes": 1110088,
|
|
30
|
-
"sha256": "
|
|
30
|
+
"sha256": "e3cdb3b7d65691a96f1faca0244d4d8335141cf27a475114d8ecdf79982e999e"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "libggml-cpu.so",
|
|
34
34
|
"bytes": 869800,
|
|
35
|
-
"sha256": "
|
|
35
|
+
"sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "libggml-cpu.so.0",
|
|
39
39
|
"bytes": 869800,
|
|
40
|
-
"sha256": "
|
|
40
|
+
"sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "libggml-cpu.so.0.15.1",
|
|
44
44
|
"bytes": 869800,
|
|
45
|
-
"sha256": "
|
|
45
|
+
"sha256": "b152befcd193b52cdd5a571d8cc6c01d6366d53c1bcdda4debef534fead44037"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "libggml.so",
|
|
49
49
|
"bytes": 1899104,
|
|
50
|
-
"sha256": "
|
|
50
|
+
"sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "libggml.so.0",
|
|
54
54
|
"bytes": 1899104,
|
|
55
|
-
"sha256": "
|
|
55
|
+
"sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"name": "libggml.so.0.15.1",
|
|
59
59
|
"bytes": 1899104,
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "d4359ff3fb00825dd99834a2e01b25773f45c293e2b2aeaf193123195b8645e7"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "openmates-pii-worker",
|