@budibase/frontend-core 3.30.4 → 3.30.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "3.30.
|
|
3
|
+
"version": "3.30.6",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"vitest": "^3.2.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6d2d5bab2cce9bedc76be7481e8222311967f107"
|
|
28
28
|
}
|
package/src/api/agents.ts
CHANGED
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
DuplicateAgentResponse,
|
|
6
6
|
FetchAgentFilesResponse,
|
|
7
7
|
FetchAgentsResponse,
|
|
8
|
+
ProvisionAgentMSTeamsChannelRequest,
|
|
9
|
+
ProvisionAgentMSTeamsChannelResponse,
|
|
8
10
|
SyncAgentDiscordCommandsRequest,
|
|
9
11
|
SyncAgentDiscordCommandsResponse,
|
|
10
12
|
ToggleAgentDiscordRequest,
|
|
@@ -36,6 +38,10 @@ export interface AgentEndpoints {
|
|
|
36
38
|
agentId: string,
|
|
37
39
|
body?: SyncAgentDiscordCommandsRequest
|
|
38
40
|
) => Promise<SyncAgentDiscordCommandsResponse>
|
|
41
|
+
provisionAgentMSTeamsChannel: (
|
|
42
|
+
agentId: string,
|
|
43
|
+
body?: ProvisionAgentMSTeamsChannelRequest
|
|
44
|
+
) => Promise<ProvisionAgentMSTeamsChannelResponse>
|
|
39
45
|
toggleAgentDiscordDeployment: (
|
|
40
46
|
agentId: string,
|
|
41
47
|
enabled: boolean
|
|
@@ -115,6 +121,16 @@ export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
|
|
|
115
121
|
})
|
|
116
122
|
},
|
|
117
123
|
|
|
124
|
+
provisionAgentMSTeamsChannel: async (agentId: string, body) => {
|
|
125
|
+
return await API.post<
|
|
126
|
+
ProvisionAgentMSTeamsChannelRequest | undefined,
|
|
127
|
+
ProvisionAgentMSTeamsChannelResponse
|
|
128
|
+
>({
|
|
129
|
+
url: `/api/agent/${agentId}/ms-teams/provision`,
|
|
130
|
+
body,
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
|
|
118
134
|
toggleAgentDiscordDeployment: async (agentId: string, enabled: boolean) => {
|
|
119
135
|
return await API.post<
|
|
120
136
|
ToggleAgentDiscordRequest,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Icon,
|
|
6
6
|
ProgressCircle,
|
|
7
7
|
Body,
|
|
8
|
+
Helpers,
|
|
8
9
|
} from "@budibase/bbui"
|
|
9
10
|
import type {
|
|
10
11
|
ChatConversation,
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
})
|
|
63
64
|
)
|
|
64
65
|
|
|
66
|
+
let stableSessionId = $state(Helpers.uuid())
|
|
65
67
|
let chatAreaElement = $state<HTMLDivElement>()
|
|
66
68
|
let textareaElement = $state<HTMLTextAreaElement>()
|
|
67
69
|
let expandedTools = $state<Record<string, boolean>>({})
|
|
@@ -178,6 +180,7 @@
|
|
|
178
180
|
agentId: chat?.agentId,
|
|
179
181
|
transient: !persistConversation,
|
|
180
182
|
isPreview: isAgentPreviewChat,
|
|
183
|
+
sessionId: stableSessionId,
|
|
181
184
|
title: chat?.title,
|
|
182
185
|
messages,
|
|
183
186
|
},
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
$effect(() => {
|
|
243
246
|
if (chat?._id !== lastChatId) {
|
|
244
247
|
lastChatId = chat?._id
|
|
248
|
+
stableSessionId = Helpers.uuid()
|
|
245
249
|
chatInstance.messages = chat?.messages || []
|
|
246
250
|
expandedTools = {}
|
|
247
251
|
}
|