@budibase/frontend-core 3.37.4 → 3.38.0

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.37.4",
3
+ "version": "3.38.0",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -23,5 +23,5 @@
23
23
  "devDependencies": {
24
24
  "vitest": "^3.2.4"
25
25
  },
26
- "gitHead": "cde1ea48fb34a1f21307a047066170830f41f2f2"
26
+ "gitHead": "a16eac4b5fd97bb1f8a1e5b04b25ddbd17f1cf44"
27
27
  }
package/src/api/agents.ts CHANGED
@@ -8,7 +8,6 @@ import {
8
8
  DuplicateAgentResponse,
9
9
  FetchAgentKnowledgeResponse,
10
10
  FetchAgentKnowledgeSourceEntriesResponse,
11
- FetchAgentKnowledgeSourceConnectionsResponse,
12
11
  FetchAgentKnowledgeSourceOptionsResponse,
13
12
  FetchAgentsResponse,
14
13
  ProvisionAgentSlackChannelRequest,
@@ -71,9 +70,9 @@ export interface AgentEndpoints {
71
70
  fileId: string
72
71
  ) => Promise<{ deleted: true }>
73
72
  fetchAgentKnowledgeSourceOptions: (
74
- connectionId: string
73
+ datasourceId: string,
74
+ authConfigId: string
75
75
  ) => Promise<FetchAgentKnowledgeSourceOptionsResponse>
76
- fetchAgentKnowledgeSourceConnections: () => Promise<FetchAgentKnowledgeSourceConnectionsResponse>
77
76
  fetchAgentKnowledgeSourceAllEntries: (
78
77
  agentId: string,
79
78
  siteId: string
@@ -220,15 +219,12 @@ export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
220
219
  })
221
220
  },
222
221
 
223
- fetchAgentKnowledgeSourceOptions: async (connectionId: string) => {
222
+ fetchAgentKnowledgeSourceOptions: async (
223
+ datasourceId: string,
224
+ authConfigId: string
225
+ ) => {
224
226
  return await API.get<FetchAgentKnowledgeSourceOptionsResponse>({
225
- url: `/api/knowledge-sources/${encodeURIComponent(connectionId)}/options`,
226
- })
227
- },
228
-
229
- fetchAgentKnowledgeSourceConnections: async () => {
230
- return await API.get<FetchAgentKnowledgeSourceConnectionsResponse>({
231
- url: "/api/agent/knowledge-sources/connections",
227
+ url: `/api/knowledge-sources/${encodeURIComponent(datasourceId)}/${encodeURIComponent(authConfigId)}/options`,
232
228
  })
233
229
  },
234
230
 
@@ -26,7 +26,6 @@
26
26
  export let agentAvailability: AgentAvailability = "ready"
27
27
 
28
28
  export let chat: ChatConversationLike
29
- export let loading: boolean = false
30
29
  export let suppressAgentPicker: boolean = false
31
30
  export let workspaceId: string
32
31
  export let initialPrompt: string = ""
@@ -306,7 +306,6 @@
306
306
  color: var(--spectrum-global-color-gray-900);
307
307
  }
308
308
 
309
- .list-item.selected,
310
309
  .conversation-row.selected .list-item {
311
310
  color: var(--spectrum-global-color-gray-900);
312
311
  font-weight: 600;