@burdenoff/microfe-botmanor 2026.1127.5 → 2026.1127.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/dist/botlit/hooks/usePolicies.d.ts +6 -2
- package/dist/botlit/hooks/usePolicies.js +57 -34
- package/dist/botlit/hooks/usePolicies.js.map +1 -1
- package/dist/botlit/hooks/useRetrievalProfiles.d.ts +5 -1
- package/dist/botlit/hooks/useRetrievalProfiles.js +49 -31
- package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +177 -152
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +171 -154
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +88 -0
- package/dist/generated/wspace-operations.js +81 -51
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +3 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,203 +9,108 @@ import { Input as d } from "../components/Input.js";
|
|
|
9
9
|
import { Badge as f, StatusBadge as p } from "../components/Badge.js";
|
|
10
10
|
import { EmptyState as m } from "../components/EmptyState.js";
|
|
11
11
|
import { ErrorState as h } from "../components/ErrorState.js";
|
|
12
|
-
import "../
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { LoadMore as g } from "../components/LoadMore.js";
|
|
13
|
+
import { useRetrievalProfilesPage as _ } from "../hooks/useRetrievalProfiles.js";
|
|
14
|
+
import { formatRelativeTime as v } from "../utils/formatters.js";
|
|
15
15
|
import "../permissions/index.js";
|
|
16
|
-
import { useState as
|
|
17
|
-
import { GlassCard as
|
|
18
|
-
import { jsx as
|
|
19
|
-
import { Link as
|
|
20
|
-
import { Database as
|
|
16
|
+
import { useState as y } from "react";
|
|
17
|
+
import { GlassCard as b, PagePurpose as x } from "@burdenoff/fe-libs/ui";
|
|
18
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
19
|
+
import { Link as T } from "react-router";
|
|
20
|
+
import { Database as E, Filter as D, Layers as O, Plus as k, Search as A, Settings as j, Zap as M } from "lucide-react";
|
|
21
21
|
// src/botlit/pages/RetrievalProfilesPage.tsx
|
|
22
|
-
var
|
|
23
|
-
let
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
title:
|
|
26
|
-
description:
|
|
27
|
-
actions: /* @__PURE__ */
|
|
22
|
+
var N = () => {
|
|
23
|
+
let a = t(), { getPath: o, workspaceId: s } = e(), [c, l] = y(""), f = c.trim();
|
|
24
|
+
return /* @__PURE__ */ C(n, {
|
|
25
|
+
title: a("botlit.retrievalProfiles.title", "Retrieval Profiles"),
|
|
26
|
+
description: a("botlit.retrievalProfiles.description", "Configure how agents retrieve and rank knowledge from knowledge bases"),
|
|
27
|
+
actions: /* @__PURE__ */ C(i, {
|
|
28
28
|
permission: r.RETRIEVAL_PROFILE_CREATE,
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
leftIcon: /* @__PURE__ */
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
to:
|
|
33
|
-
children:
|
|
29
|
+
children: /* @__PURE__ */ C(u, {
|
|
30
|
+
leftIcon: /* @__PURE__ */ C(k, { size: 16 }),
|
|
31
|
+
children: /* @__PURE__ */ C(T, {
|
|
32
|
+
to: o("retrieval-profiles/new"),
|
|
33
|
+
children: a("botlit.retrievalProfiles.actions.createProfile", "Create Profile")
|
|
34
34
|
})
|
|
35
35
|
})
|
|
36
36
|
}),
|
|
37
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ w("div", {
|
|
38
38
|
className: "space-y-6",
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */ x
|
|
41
|
-
icon: /* @__PURE__ */
|
|
42
|
-
children:
|
|
40
|
+
/* @__PURE__ */ C(x, {
|
|
41
|
+
icon: /* @__PURE__ */ C(E, { size: 18 }),
|
|
42
|
+
children: a("botlit.retrievalProfiles.purpose", "A retrieval profile decides how an agent searches your knowledge bases — which search strategy to use (semantic, keyword or hybrid), how many passages to pull back, whether to rerank for relevance and whether answers must cite their sources. Tune a profile here to control the accuracy-versus-speed trade-off of every grounded answer your agents give.")
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ w("div", {
|
|
45
45
|
className: "flex items-center gap-4",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ w("div", {
|
|
47
47
|
className: "relative flex-1 max-w-md",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
49
|
-
placeholder:
|
|
50
|
-
value:
|
|
51
|
-
onChange: (e) =>
|
|
48
|
+
children: [/* @__PURE__ */ C(A, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ C(d, {
|
|
49
|
+
placeholder: a("botlit.retrievalProfiles.searchPlaceholder", "Search profiles..."),
|
|
50
|
+
value: c,
|
|
51
|
+
onChange: (e) => l(e.target.value),
|
|
52
52
|
className: "pl-9"
|
|
53
53
|
})]
|
|
54
|
-
}), /* @__PURE__ */
|
|
54
|
+
}), /* @__PURE__ */ C(u, {
|
|
55
55
|
variant: "outline",
|
|
56
|
-
leftIcon: /* @__PURE__ */
|
|
57
|
-
children:
|
|
56
|
+
leftIcon: /* @__PURE__ */ C(D, { size: 16 }),
|
|
57
|
+
children: a("botlit.retrievalProfiles.actions.filters", "Filters")
|
|
58
58
|
})]
|
|
59
59
|
}),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
children: [
|
|
63
|
-
1,
|
|
64
|
-
2,
|
|
65
|
-
3
|
|
66
|
-
].map((e) => /* @__PURE__ */ x("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
67
|
-
}) : L ? /* @__PURE__ */ x(h, {
|
|
68
|
-
resource: "retrieval profiles",
|
|
69
|
-
error: L,
|
|
70
|
-
onRetry: () => void R()
|
|
71
|
-
}) : F.length > 0 ? /* @__PURE__ */ x("div", {
|
|
72
|
-
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
73
|
-
children: F.map((e) => /* @__PURE__ */ x(C, {
|
|
74
|
-
to: M(`retrieval-profiles/${e.id}`),
|
|
75
|
-
children: /* @__PURE__ */ S(a, {
|
|
76
|
-
className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
|
|
77
|
-
children: [/* @__PURE__ */ x(c, { children: /* @__PURE__ */ S("div", {
|
|
78
|
-
className: "flex items-start justify-between",
|
|
79
|
-
children: [/* @__PURE__ */ S("div", {
|
|
80
|
-
className: "flex items-center gap-3",
|
|
81
|
-
children: [/* @__PURE__ */ x("div", {
|
|
82
|
-
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
83
|
-
children: /* @__PURE__ */ x(w, { className: "h-5 w-5 text-primary" })
|
|
84
|
-
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x(l, {
|
|
85
|
-
className: "text-base",
|
|
86
|
-
children: e.name
|
|
87
|
-
}), /* @__PURE__ */ x(s, {
|
|
88
|
-
className: "text-xs",
|
|
89
|
-
children: e.description
|
|
90
|
-
})] })]
|
|
91
|
-
}), /* @__PURE__ */ x(p, { status: e.status })]
|
|
92
|
-
}) }), /* @__PURE__ */ x(o, { children: /* @__PURE__ */ S("div", {
|
|
93
|
-
className: "space-y-3",
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ S("div", {
|
|
96
|
-
className: "flex items-center gap-2",
|
|
97
|
-
children: [/* @__PURE__ */ x(E, {
|
|
98
|
-
size: 14,
|
|
99
|
-
className: "text-text-secondary"
|
|
100
|
-
}), /* @__PURE__ */ x("span", {
|
|
101
|
-
className: "text-sm capitalize",
|
|
102
|
-
children: j("botlit.retrievalProfiles.overview.mode", "{{mode}} mode", { mode: e.strategyMode.toLowerCase().replace("_", " ") })
|
|
103
|
-
})]
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ S("div", {
|
|
106
|
-
className: "flex items-center gap-2",
|
|
107
|
-
children: [/* @__PURE__ */ x(A, {
|
|
108
|
-
size: 14,
|
|
109
|
-
className: "text-text-secondary"
|
|
110
|
-
}), /* @__PURE__ */ x("span", {
|
|
111
|
-
className: "text-sm",
|
|
112
|
-
children: j("botlit.retrievalProfiles.overview.citations", "Citations: {{status}}", { status: e.citationsRequired ? j("botlit.retrievalProfiles.overview.required", "Required") : j("botlit.retrievalProfiles.overview.optional", "Optional") })
|
|
113
|
-
})]
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ S("div", {
|
|
116
|
-
className: "flex items-center gap-2",
|
|
117
|
-
children: [/* @__PURE__ */ x(w, {
|
|
118
|
-
size: 14,
|
|
119
|
-
className: "text-text-secondary"
|
|
120
|
-
}), /* @__PURE__ */ x("span", {
|
|
121
|
-
className: "text-sm",
|
|
122
|
-
children: j("botlit.retrievalProfiles.topK", "Top K: {{value}}", { value: e.topK })
|
|
123
|
-
})]
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ S("div", {
|
|
126
|
-
className: "pt-3 border-t border-border-subtle flex items-center justify-between text-xs text-text-secondary",
|
|
127
|
-
children: [/* @__PURE__ */ S("span", { children: [
|
|
128
|
-
j("botlit.botsList.createdLabel", "Created"),
|
|
129
|
-
" ",
|
|
130
|
-
g(e.createdAt)
|
|
131
|
-
] }), /* @__PURE__ */ x(f, {
|
|
132
|
-
variant: "outline",
|
|
133
|
-
className: "text-xs capitalize",
|
|
134
|
-
children: e.strategyMode.toLowerCase().replace("_", " ")
|
|
135
|
-
})]
|
|
136
|
-
})
|
|
137
|
-
]
|
|
138
|
-
}) })]
|
|
139
|
-
})
|
|
140
|
-
}, e.id))
|
|
141
|
-
}) : /* @__PURE__ */ x(m, {
|
|
142
|
-
illustration: "empty-files",
|
|
143
|
-
title: j("botlit.retrievalProfiles.empty.title", "No retrieval profiles"),
|
|
144
|
-
description: j("botlit.retrievalProfiles.empty.description", "Create retrieval profiles to customize how agents search and rank knowledge."),
|
|
145
|
-
action: /* @__PURE__ */ x(i, {
|
|
146
|
-
permission: r.RETRIEVAL_PROFILE_CREATE,
|
|
147
|
-
children: /* @__PURE__ */ x(u, {
|
|
148
|
-
leftIcon: /* @__PURE__ */ x(D, { size: 16 }),
|
|
149
|
-
children: /* @__PURE__ */ x(C, {
|
|
150
|
-
to: M("retrieval-profiles/new"),
|
|
151
|
-
children: j("botlit.retrievalProfiles.actions.createProfile", "Create Profile")
|
|
152
|
-
})
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
}),
|
|
156
|
-
/* @__PURE__ */ S(y, {
|
|
60
|
+
/* @__PURE__ */ C(P, { search: f }, JSON.stringify([s, f])),
|
|
61
|
+
/* @__PURE__ */ w(b, {
|
|
157
62
|
treatment: "glass",
|
|
158
63
|
glow: !0,
|
|
159
64
|
className: "p-6",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ w("div", {
|
|
161
66
|
className: "mb-4",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
163
68
|
className: "flex items-center gap-2 text-lg font-semibold tracking-tight text-text-primary",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
165
|
-
}), /* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ C(j, { size: 18 }), a("botlit.retrievalProfiles.overview.title", "Retrieval Profile Configuration")]
|
|
70
|
+
}), /* @__PURE__ */ C("p", {
|
|
166
71
|
className: "text-sm text-text-secondary",
|
|
167
|
-
children:
|
|
72
|
+
children: a("botlit.retrievalProfiles.overview.description", "Retrieval profiles control how knowledge is fetched and ranked for agent responses")
|
|
168
73
|
})]
|
|
169
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ w("div", {
|
|
170
75
|
className: "grid grid-cols-1 md:grid-cols-3 gap-6",
|
|
171
76
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ w("div", {
|
|
173
78
|
className: "space-y-2",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
175
80
|
className: "font-medium flex items-center gap-2",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ C(O, {
|
|
177
82
|
size: 16,
|
|
178
83
|
className: "text-primary"
|
|
179
|
-
}),
|
|
180
|
-
}), /* @__PURE__ */
|
|
84
|
+
}), a("botlit.retrievalProfiles.overview.modesTitle", "Retrieval Modes")]
|
|
85
|
+
}), /* @__PURE__ */ C("ul", {
|
|
181
86
|
className: "text-sm text-text-secondary space-y-1",
|
|
182
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ C("li", { children: a("botlit.retrievalProfiles.overview.modesDescription", "Vector: semantic similarity search; Hybrid: vector + keyword combined; BM25: traditional keyword search.") })
|
|
183
88
|
})]
|
|
184
89
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ w("div", {
|
|
186
91
|
className: "space-y-2",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
188
93
|
className: "font-medium flex items-center gap-2",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ C(M, {
|
|
190
95
|
size: 16,
|
|
191
96
|
className: "text-primary"
|
|
192
|
-
}),
|
|
193
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), a("botlit.retrievalProfiles.overview.rerankingTitle", "Reranking")]
|
|
98
|
+
}), /* @__PURE__ */ C("ul", {
|
|
194
99
|
className: "text-sm text-text-secondary space-y-1",
|
|
195
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ C("li", { children: a("botlit.retrievalProfiles.overview.rerankingDescription", "Cross-encoder reranking for better relevance; improves precision at the cost of latency; recommended for complex queries.") })
|
|
196
101
|
})]
|
|
197
102
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ w("div", {
|
|
199
104
|
className: "space-y-2",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
201
106
|
className: "font-medium flex items-center gap-2",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ C(E, {
|
|
203
108
|
size: 16,
|
|
204
109
|
className: "text-primary"
|
|
205
|
-
}),
|
|
206
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), a("botlit.retrievalProfiles.overview.knowledgeSourcesTitle", "Knowledge Sources")]
|
|
111
|
+
}), /* @__PURE__ */ C("ul", {
|
|
207
112
|
className: "text-sm text-text-secondary space-y-1",
|
|
208
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ C("li", { children: a("botlit.retrievalProfiles.overview.knowledgeSourcesDescription", "Bind multiple knowledge bases, configure priority and weights, and set per-KB retrieval limits.") })
|
|
209
114
|
})]
|
|
210
115
|
})
|
|
211
116
|
]
|
|
@@ -215,6 +120,118 @@ var j = () => {
|
|
|
215
120
|
})
|
|
216
121
|
});
|
|
217
122
|
};
|
|
218
|
-
|
|
123
|
+
function P({ search: n }) {
|
|
124
|
+
let d = t(), { getPath: y } = e(), { data: b, loading: x, error: D, refetch: A, hasMore: j, loadingMore: N, loadMore: P } = _(n);
|
|
125
|
+
return /* @__PURE__ */ w(S, { children: [
|
|
126
|
+
x ? /* @__PURE__ */ C("div", {
|
|
127
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
128
|
+
children: [
|
|
129
|
+
1,
|
|
130
|
+
2,
|
|
131
|
+
3
|
|
132
|
+
].map((e) => /* @__PURE__ */ C("div", { className: "h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
|
|
133
|
+
}) : D && !j ? /* @__PURE__ */ C(h, {
|
|
134
|
+
resource: "retrieval profiles",
|
|
135
|
+
error: D,
|
|
136
|
+
onRetry: () => void A()
|
|
137
|
+
}) : b.length > 0 ? /* @__PURE__ */ C("div", {
|
|
138
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
139
|
+
children: b.map((e) => /* @__PURE__ */ C(T, {
|
|
140
|
+
to: y(`retrieval-profiles/${e.id}`),
|
|
141
|
+
children: /* @__PURE__ */ w(a, {
|
|
142
|
+
className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
|
|
143
|
+
children: [/* @__PURE__ */ C(c, { children: /* @__PURE__ */ w("div", {
|
|
144
|
+
className: "flex items-start justify-between",
|
|
145
|
+
children: [/* @__PURE__ */ w("div", {
|
|
146
|
+
className: "flex items-center gap-3",
|
|
147
|
+
children: [/* @__PURE__ */ C("div", {
|
|
148
|
+
className: "p-2 bg-action-primary-bg/10 rounded-lg",
|
|
149
|
+
children: /* @__PURE__ */ C(E, { className: "h-5 w-5 text-primary" })
|
|
150
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C(l, {
|
|
151
|
+
className: "text-base",
|
|
152
|
+
children: e.name
|
|
153
|
+
}), /* @__PURE__ */ C(s, {
|
|
154
|
+
className: "text-xs",
|
|
155
|
+
children: e.description
|
|
156
|
+
})] })]
|
|
157
|
+
}), /* @__PURE__ */ C(p, { status: e.status })]
|
|
158
|
+
}) }), /* @__PURE__ */ C(o, { children: /* @__PURE__ */ w("div", {
|
|
159
|
+
className: "space-y-3",
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ w("div", {
|
|
162
|
+
className: "flex items-center gap-2",
|
|
163
|
+
children: [/* @__PURE__ */ C(O, {
|
|
164
|
+
size: 14,
|
|
165
|
+
className: "text-text-secondary"
|
|
166
|
+
}), /* @__PURE__ */ C("span", {
|
|
167
|
+
className: "text-sm capitalize",
|
|
168
|
+
children: d("botlit.retrievalProfiles.overview.mode", "{{mode}} mode", { mode: e.strategyMode.toLowerCase().replace("_", " ") })
|
|
169
|
+
})]
|
|
170
|
+
}),
|
|
171
|
+
/* @__PURE__ */ w("div", {
|
|
172
|
+
className: "flex items-center gap-2",
|
|
173
|
+
children: [/* @__PURE__ */ C(M, {
|
|
174
|
+
size: 14,
|
|
175
|
+
className: "text-text-secondary"
|
|
176
|
+
}), /* @__PURE__ */ C("span", {
|
|
177
|
+
className: "text-sm",
|
|
178
|
+
children: d("botlit.retrievalProfiles.overview.citations", "Citations: {{status}}", { status: e.citationsRequired ? d("botlit.retrievalProfiles.overview.required", "Required") : d("botlit.retrievalProfiles.overview.optional", "Optional") })
|
|
179
|
+
})]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ w("div", {
|
|
182
|
+
className: "flex items-center gap-2",
|
|
183
|
+
children: [/* @__PURE__ */ C(E, {
|
|
184
|
+
size: 14,
|
|
185
|
+
className: "text-text-secondary"
|
|
186
|
+
}), /* @__PURE__ */ C("span", {
|
|
187
|
+
className: "text-sm",
|
|
188
|
+
children: d("botlit.retrievalProfiles.topK", "Top K: {{value}}", { value: e.topK })
|
|
189
|
+
})]
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ w("div", {
|
|
192
|
+
className: "pt-3 border-t border-border-subtle flex items-center justify-between text-xs text-text-secondary",
|
|
193
|
+
children: [/* @__PURE__ */ w("span", { children: [
|
|
194
|
+
d("botlit.botsList.createdLabel", "Created"),
|
|
195
|
+
" ",
|
|
196
|
+
v(e.createdAt)
|
|
197
|
+
] }), /* @__PURE__ */ C(f, {
|
|
198
|
+
variant: "outline",
|
|
199
|
+
className: "text-xs capitalize",
|
|
200
|
+
children: e.strategyMode.toLowerCase().replace("_", " ")
|
|
201
|
+
})]
|
|
202
|
+
})
|
|
203
|
+
]
|
|
204
|
+
}) })]
|
|
205
|
+
})
|
|
206
|
+
}, e.id))
|
|
207
|
+
}) : /* @__PURE__ */ C(m, {
|
|
208
|
+
illustration: "empty-files",
|
|
209
|
+
title: d("botlit.retrievalProfiles.empty.title", "No retrieval profiles"),
|
|
210
|
+
description: d("botlit.retrievalProfiles.empty.description", "Create retrieval profiles to customize how agents search and rank knowledge."),
|
|
211
|
+
action: /* @__PURE__ */ C(i, {
|
|
212
|
+
permission: r.RETRIEVAL_PROFILE_CREATE,
|
|
213
|
+
children: /* @__PURE__ */ C(u, {
|
|
214
|
+
leftIcon: /* @__PURE__ */ C(k, { size: 16 }),
|
|
215
|
+
children: /* @__PURE__ */ C(T, {
|
|
216
|
+
to: y("retrieval-profiles/new"),
|
|
217
|
+
children: d("botlit.retrievalProfiles.actions.createProfile", "Create Profile")
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
})
|
|
221
|
+
}),
|
|
222
|
+
D && j && /* @__PURE__ */ C(h, {
|
|
223
|
+
resource: d("botlit.retrievalProfiles.moreResource", "more retrieval profiles"),
|
|
224
|
+
error: D,
|
|
225
|
+
onRetry: () => void P()
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ C(g, {
|
|
228
|
+
hasMore: j && !D,
|
|
229
|
+
loadingMore: N,
|
|
230
|
+
onLoadMore: () => void P(),
|
|
231
|
+
loadedCount: b.length
|
|
232
|
+
})
|
|
233
|
+
] });
|
|
234
|
+
}
|
|
235
|
+
export { N as RetrievalProfilesPage };
|
|
219
236
|
|
|
220
237
|
//# sourceMappingURL=RetrievalProfilesPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RetrievalProfilesPage.js","names":["SearchIcon","EmptyState","EmptyState$1","RetrievalProfilesPage","t","useTr","useBotlit","search","setSearch","useState","profiles","useRetrievalProfiles","PageLayout","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Button","Plus","Link","getPath","PagePurpose","Database","Search","Input","Filter","loading","i","error","ErrorState","refetch","profile","Card","CardHeader","CardTitle","CardDescription","StatusBadge","CardContent","Layers","Zap","formatRelativeTime","Badge","GlassCard","Settings"],"sources":["../../../src/botlit/pages/RetrievalProfilesPage.tsx"],"sourcesContent":["/**\n * Retrieval Profiles Page\n * @module botlit/pages\n */\n\nimport type { FC } from 'react';\nimport { useState } from 'react';\nimport { Link } from 'react-router';\nimport { useBotlit } from '../providers/BotlitProvider';\nimport { Plus, Search as SearchIcon, Filter, Database, Layers, Zap, Settings } from 'lucide-react';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PagePurpose, GlassCard } from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../components/PageLayout';\nimport { Card, CardHeader, CardTitle, CardContent, CardDescription } from '../components/Card';\nimport { Button } from '../components/Button';\nimport { Input } from '../components/Input';\nimport { Badge, StatusBadge } from '../components/Badge';\nimport { EmptyState } from '../components/EmptyState';\nimport { ErrorState } from '../components/ErrorState';\nimport { useRetrievalProfiles } from '../hooks';\nimport { formatRelativeTime } from '../utils/formatters';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\n\nexport const RetrievalProfilesPage: FC = () => {\n const t = useTr();\n const { getPath } = useBotlit();\n const [search, setSearch] = useState('');\n const { data: profiles, loading, error, refetch } = useRetrievalProfiles({ search });\n\n return (\n <PageLayout\n title={t('botlit.retrievalProfiles.title', 'Retrieval Profiles')}\n description={t(\n 'botlit.retrievalProfiles.description',\n 'Configure how agents retrieve and rank knowledge from knowledge bases'\n )}\n actions={\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.RETRIEVAL_PROFILE_CREATE}>\n <Button leftIcon={<Plus size={16} />}>\n <Link to={getPath('retrieval-profiles/new')}>\n {t('botlit.retrievalProfiles.actions.createProfile', 'Create Profile')}\n </Link>\n </Button>\n </BotmanorPermissionGate>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Database size={18} />}>\n {t(\n 'botlit.retrievalProfiles.purpose',\n 'A retrieval profile decides how an agent searches your knowledge bases — which search strategy to use (semantic, keyword or hybrid), how many passages to pull back, whether to rerank for relevance and whether answers must cite their sources. Tune a profile here to control the accuracy-versus-speed trade-off of every grounded answer your agents give.'\n )}\n </PagePurpose>\n\n {/* Search */}\n <div className=\"flex items-center gap-4\">\n <div className=\"relative flex-1 max-w-md\">\n <SearchIcon className=\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary\" />\n <Input\n placeholder={t('botlit.retrievalProfiles.searchPlaceholder', 'Search profiles...')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n className=\"pl-9\"\n />\n </div>\n <Button variant=\"outline\" leftIcon={<Filter size={16} />}>\n {t('botlit.retrievalProfiles.actions.filters', 'Filters')}\n </Button>\n </div>\n\n {/* Profiles List */}\n {loading ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4\">\n {[1, 2, 3].map((i) => (\n <div\n key={i}\n className=\"h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg\"\n />\n ))}\n </div>\n ) : error ? (\n <ErrorState resource=\"retrieval profiles\" error={error} onRetry={() => void refetch()} />\n ) : profiles.length > 0 ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4\">\n {profiles.map(\n (profile: {\n id: string;\n name: string;\n description?: string | null;\n status: string;\n strategyMode: string;\n citationsRequired: boolean;\n topK: number;\n createdAt: string;\n }) => (\n <Link key={profile.id} to={getPath(`retrieval-profiles/${profile.id}`)}>\n <Card className=\"h-full hover:border-primary/50 transition-colors cursor-pointer\">\n <CardHeader>\n <div className=\"flex items-start justify-between\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 bg-action-primary-bg/10 rounded-lg\">\n <Database className=\"h-5 w-5 text-primary\" />\n </div>\n <div>\n <CardTitle className=\"text-base\">{profile.name}</CardTitle>\n <CardDescription className=\"text-xs\">\n {profile.description}\n </CardDescription>\n </div>\n </div>\n <StatusBadge status={profile.status} />\n </div>\n </CardHeader>\n <CardContent>\n <div className=\"space-y-3\">\n {/* Retrieval Mode */}\n <div className=\"flex items-center gap-2\">\n <Layers size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm capitalize\">\n {t('botlit.retrievalProfiles.overview.mode', '{{mode}} mode', {\n mode: profile.strategyMode.toLowerCase().replace('_', ' '),\n })}\n </span>\n </div>\n\n {/* Citations */}\n <div className=\"flex items-center gap-2\">\n <Zap size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm\">\n {t(\n 'botlit.retrievalProfiles.overview.citations',\n 'Citations: {{status}}',\n {\n status: profile.citationsRequired\n ? t('botlit.retrievalProfiles.overview.required', 'Required')\n : t('botlit.retrievalProfiles.overview.optional', 'Optional'),\n }\n )}\n </span>\n </div>\n\n {/* Top K */}\n <div className=\"flex items-center gap-2\">\n <Database size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm\">\n {t('botlit.retrievalProfiles.topK', 'Top K: {{value}}', {\n value: profile.topK,\n })}\n </span>\n </div>\n\n {/* Footer */}\n <div className=\"pt-3 border-t border-border-subtle flex items-center justify-between text-xs text-text-secondary\">\n <span>\n {t('botlit.botsList.createdLabel', 'Created')}{' '}\n {formatRelativeTime(profile.createdAt)}\n </span>\n <Badge variant=\"outline\" className=\"text-xs capitalize\">\n {profile.strategyMode.toLowerCase().replace('_', ' ')}\n </Badge>\n </div>\n </div>\n </CardContent>\n </Card>\n </Link>\n )\n )}\n </div>\n ) : (\n <EmptyState\n illustration=\"empty-files\"\n title={t('botlit.retrievalProfiles.empty.title', 'No retrieval profiles')}\n description={t(\n 'botlit.retrievalProfiles.empty.description',\n 'Create retrieval profiles to customize how agents search and rank knowledge.'\n )}\n action={\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.RETRIEVAL_PROFILE_CREATE}>\n <Button leftIcon={<Plus size={16} />}>\n <Link to={getPath('retrieval-profiles/new')}>\n {t('botlit.retrievalProfiles.actions.createProfile', 'Create Profile')}\n </Link>\n </Button>\n </BotmanorPermissionGate>\n }\n />\n )}\n\n {/* Quick Start Guide */}\n <GlassCard treatment=\"glass\" glow className=\"p-6\">\n <div className=\"mb-4\">\n <h2 className=\"flex items-center gap-2 text-lg font-semibold tracking-tight text-text-primary\">\n <Settings size={18} />\n {t('botlit.retrievalProfiles.overview.title', 'Retrieval Profile Configuration')}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {t(\n 'botlit.retrievalProfiles.overview.description',\n 'Retrieval profiles control how knowledge is fetched and ranked for agent responses'\n )}\n </p>\n </div>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-6\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Layers size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.modesTitle', 'Retrieval Modes')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.modesDescription',\n 'Vector: semantic similarity search; Hybrid: vector + keyword combined; BM25: traditional keyword search.'\n )}\n </li>\n </ul>\n </div>\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Zap size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.rerankingTitle', 'Reranking')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.rerankingDescription',\n 'Cross-encoder reranking for better relevance; improves precision at the cost of latency; recommended for complex queries.'\n )}\n </li>\n </ul>\n </div>\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Database size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.knowledgeSourcesTitle', 'Knowledge Sources')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.knowledgeSourcesDescription',\n 'Bind multiple knowledge bases, configure priority and weights, and set per-KB retrieval limits.'\n )}\n </li>\n </ul>\n </div>\n </div>\n </GlassCard>\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuBA,I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State","EmptyState$1","Fragment$1","RetrievalProfilesPage","t","useTr","useBotlit","search","setSearch","useState","catalogSearch","PageLayout","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Button","Plus","Link","getPath","PagePurpose","Database","Search","Input","Filter","RetrievalProfileResults","workspaceId","GlassCard","Settings","Layers","Zap","profiles","useRetrievalProfilesPage","loading","i","error","hasMore","ErrorState","refetch","profile","Card","CardHeader","CardTitle","CardDescription","StatusBadge","CardContent","formatRelativeTime","Badge","loadMore","LoadMore"],"sources":["../../../src/botlit/pages/RetrievalProfilesPage.tsx"],"sourcesContent":["/**\n * Retrieval Profiles Page\n * @module botlit/pages\n */\n\nimport type { FC } from 'react';\nimport { useState } from 'react';\nimport { Link } from 'react-router';\nimport { useBotlit } from '../providers/BotlitProvider';\nimport { Plus, Search as SearchIcon, Filter, Database, Layers, Zap, Settings } from 'lucide-react';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PagePurpose, GlassCard } from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../components/PageLayout';\nimport { Card, CardHeader, CardTitle, CardContent, CardDescription } from '../components/Card';\nimport { Button } from '../components/Button';\nimport { Input } from '../components/Input';\nimport { Badge, StatusBadge } from '../components/Badge';\nimport { EmptyState } from '../components/EmptyState';\nimport { ErrorState } from '../components/ErrorState';\nimport { LoadMore } from '../components/LoadMore';\nimport { useRetrievalProfilesPage } from '../hooks/useRetrievalProfiles';\nimport { formatRelativeTime } from '../utils/formatters';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\n\nexport const RetrievalProfilesPage: FC = () => {\n const t = useTr();\n const { getPath, workspaceId } = useBotlit();\n const [search, setSearch] = useState('');\n const catalogSearch = search.trim();\n\n return (\n <PageLayout\n title={t('botlit.retrievalProfiles.title', 'Retrieval Profiles')}\n description={t(\n 'botlit.retrievalProfiles.description',\n 'Configure how agents retrieve and rank knowledge from knowledge bases'\n )}\n actions={\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.RETRIEVAL_PROFILE_CREATE}>\n <Button leftIcon={<Plus size={16} />}>\n <Link to={getPath('retrieval-profiles/new')}>\n {t('botlit.retrievalProfiles.actions.createProfile', 'Create Profile')}\n </Link>\n </Button>\n </BotmanorPermissionGate>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Database size={18} />}>\n {t(\n 'botlit.retrievalProfiles.purpose',\n 'A retrieval profile decides how an agent searches your knowledge bases — which search strategy to use (semantic, keyword or hybrid), how many passages to pull back, whether to rerank for relevance and whether answers must cite their sources. Tune a profile here to control the accuracy-versus-speed trade-off of every grounded answer your agents give.'\n )}\n </PagePurpose>\n\n {/* Search */}\n <div className=\"flex items-center gap-4\">\n <div className=\"relative flex-1 max-w-md\">\n <SearchIcon className=\"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary\" />\n <Input\n placeholder={t('botlit.retrievalProfiles.searchPlaceholder', 'Search profiles...')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n className=\"pl-9\"\n />\n </div>\n <Button variant=\"outline\" leftIcon={<Filter size={16} />}>\n {t('botlit.retrievalProfiles.actions.filters', 'Filters')}\n </Button>\n </div>\n\n <RetrievalProfileResults\n key={JSON.stringify([workspaceId, catalogSearch])}\n search={catalogSearch}\n />\n\n {/* Quick Start Guide */}\n <GlassCard treatment=\"glass\" glow className=\"p-6\">\n <div className=\"mb-4\">\n <h2 className=\"flex items-center gap-2 text-lg font-semibold tracking-tight text-text-primary\">\n <Settings size={18} />\n {t('botlit.retrievalProfiles.overview.title', 'Retrieval Profile Configuration')}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {t(\n 'botlit.retrievalProfiles.overview.description',\n 'Retrieval profiles control how knowledge is fetched and ranked for agent responses'\n )}\n </p>\n </div>\n <div className=\"grid grid-cols-1 md:grid-cols-3 gap-6\">\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Layers size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.modesTitle', 'Retrieval Modes')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.modesDescription',\n 'Vector: semantic similarity search; Hybrid: vector + keyword combined; BM25: traditional keyword search.'\n )}\n </li>\n </ul>\n </div>\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Zap size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.rerankingTitle', 'Reranking')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.rerankingDescription',\n 'Cross-encoder reranking for better relevance; improves precision at the cost of latency; recommended for complex queries.'\n )}\n </li>\n </ul>\n </div>\n <div className=\"space-y-2\">\n <h4 className=\"font-medium flex items-center gap-2\">\n <Database size={16} className=\"text-primary\" />\n {t('botlit.retrievalProfiles.overview.knowledgeSourcesTitle', 'Knowledge Sources')}\n </h4>\n <ul className=\"text-sm text-text-secondary space-y-1\">\n <li>\n {t(\n 'botlit.retrievalProfiles.overview.knowledgeSourcesDescription',\n 'Bind multiple knowledge bases, configure priority and weights, and set per-KB retrieval limits.'\n )}\n </li>\n </ul>\n </div>\n </div>\n </GlassCard>\n </div>\n </PageLayout>\n );\n};\n\nfunction RetrievalProfileResults({ search }: { search: string }) {\n const t = useTr();\n const { getPath } = useBotlit();\n const {\n data: profiles,\n loading,\n error,\n refetch,\n hasMore,\n loadingMore,\n loadMore,\n } = useRetrievalProfilesPage(search);\n\n return (\n <>\n {loading ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4\">\n {[1, 2, 3].map((i) => (\n <div key={i} className=\"h-48 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg\" />\n ))}\n </div>\n ) : error && !hasMore ? (\n <ErrorState resource=\"retrieval profiles\" error={error} onRetry={() => void refetch()} />\n ) : profiles.length > 0 ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4\">\n {profiles.map((profile) => (\n <Link key={profile.id} to={getPath(`retrieval-profiles/${profile.id}`)}>\n <Card className=\"h-full hover:border-primary/50 transition-colors cursor-pointer\">\n <CardHeader>\n <div className=\"flex items-start justify-between\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 bg-action-primary-bg/10 rounded-lg\">\n <Database className=\"h-5 w-5 text-primary\" />\n </div>\n <div>\n <CardTitle className=\"text-base\">{profile.name}</CardTitle>\n <CardDescription className=\"text-xs\">{profile.description}</CardDescription>\n </div>\n </div>\n <StatusBadge status={profile.status} />\n </div>\n </CardHeader>\n <CardContent>\n <div className=\"space-y-3\">\n {/* Retrieval Mode */}\n <div className=\"flex items-center gap-2\">\n <Layers size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm capitalize\">\n {t('botlit.retrievalProfiles.overview.mode', '{{mode}} mode', {\n mode: profile.strategyMode.toLowerCase().replace('_', ' '),\n })}\n </span>\n </div>\n\n {/* Citations */}\n <div className=\"flex items-center gap-2\">\n <Zap size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm\">\n {t('botlit.retrievalProfiles.overview.citations', 'Citations: {{status}}', {\n status: profile.citationsRequired\n ? t('botlit.retrievalProfiles.overview.required', 'Required')\n : t('botlit.retrievalProfiles.overview.optional', 'Optional'),\n })}\n </span>\n </div>\n\n {/* Top K */}\n <div className=\"flex items-center gap-2\">\n <Database size={14} className=\"text-text-secondary\" />\n <span className=\"text-sm\">\n {t('botlit.retrievalProfiles.topK', 'Top K: {{value}}', {\n value: profile.topK,\n })}\n </span>\n </div>\n\n {/* Footer */}\n <div className=\"pt-3 border-t border-border-subtle flex items-center justify-between text-xs text-text-secondary\">\n <span>\n {t('botlit.botsList.createdLabel', 'Created')}{' '}\n {formatRelativeTime(profile.createdAt)}\n </span>\n <Badge variant=\"outline\" className=\"text-xs capitalize\">\n {profile.strategyMode.toLowerCase().replace('_', ' ')}\n </Badge>\n </div>\n </div>\n </CardContent>\n </Card>\n </Link>\n ))}\n </div>\n ) : (\n <EmptyState\n illustration=\"empty-files\"\n title={t('botlit.retrievalProfiles.empty.title', 'No retrieval profiles')}\n description={t(\n 'botlit.retrievalProfiles.empty.description',\n 'Create retrieval profiles to customize how agents search and rank knowledge.'\n )}\n action={\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.RETRIEVAL_PROFILE_CREATE}>\n <Button leftIcon={<Plus size={16} />}>\n <Link to={getPath('retrieval-profiles/new')}>\n {t('botlit.retrievalProfiles.actions.createProfile', 'Create Profile')}\n </Link>\n </Button>\n </BotmanorPermissionGate>\n }\n />\n )}\n\n {error && hasMore && (\n <ErrorState\n resource={t('botlit.retrievalProfiles.moreResource', 'more retrieval profiles')}\n error={error}\n onRetry={() => void loadMore()}\n />\n )}\n <LoadMore\n hasMore={hasMore && !error}\n loadingMore={loadingMore}\n onLoadMore={() => void loadMore()}\n loadedCount={profiles.length}\n />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,IAAaK,UAAkC;CAC7C,IAAMC,IAAIC,EAAM,GACV,EAAE,YAAS,mBAAgBC,EAAU,GACrC,CAACC,GAAQC,KAAaC,EAAS,EAAE,GACjCC,IAAgBH,EAAO,KAAK;CAElC,OACE,kBAACI,GAAD;EACE,OAAOP,EAAE,kCAAkC,oBAAoB;EAC/D,aAAaA,EACX,wCACA,uEACF;EACA,SACE,kBAACQ,GAAD;GAAwB,YAAYC,EAAqB;GACvD,UAAA,kBAACC,GAAD;IAAQ,UAAU,kBAACC,GAAD,EAAM,MAAM,GAAK,CAAA;IACjC,UAAA,kBAACC,GAAD;KAAM,IAAIC,EAAQ,wBAAwB;KACvC,UAAAb,EAAE,kDAAkD,gBAAgB;IACjE,CAAA;GACA,CAAA;EACc,CAAA;EAG1B,UAAA,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,kBAACc,GAAD;KAAa,MAAM,kBAACC,GAAD,EAAU,MAAM,GAAK,CAAA;KACrC,UAA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,CAAA,GACrD,kBAAC,QAAD;SAAM,WAAU;SACb,UAAAf,EAAE,iCAAiC,oBAAoB,EACtD,OAAOiC,EAAQ,KACjB,CAAC;QACG,CAAA,CACH;;OAGL,kBAAC,OAAD;QAAK,WAAU;QAAf,UAAA,CACE,kBAAC,QAAD,EAAA,UAAA;SACGjC,EAAE,gCAAgC,SAAS;SAAG;SAC9CwC,EAAmBP,EAAQ,SAAS;QACjC,EAAA,CAAA,GACN,kBAACQ,GAAD;SAAO,SAAQ;SAAU,WAAU;SAChC,UAAAR,EAAQ,aAAa,YAAY,CAAC,CAAC,QAAQ,KAAK,GAAG;QAC/C,CAAA,CACJ;;MACF;KACM,CAAA,EAAA,CAAA,CACT;;GACF,GA/DKA,EAAQ,EA+Db,CACP;EACE,CAAA,IAEL,kBAACrC,GAAD;GACE,cAAa;GACb,OAAOI,EAAE,wCAAwC,uBAAuB;GACxE,aAAaA,EACX,8CACA,8EACF;GACA,QACE,kBAACQ,GAAD;IAAwB,YAAYC,EAAqB;IACvD,UAAA,kBAACC,GAAD;KAAQ,UAAU,kBAACC,GAAD,EAAM,MAAM,GAAK,CAAA;KACjC,UAAA,kBAACC,GAAD;MAAM,IAAIC,EAAQ,wBAAwB;MACvC,UAAAb,EAAE,kDAAkD,gBAAgB;KACjE,CAAA;IACA,CAAA;GACc,CAAA;EAE3B,CAAA;EAGF6B,KAASC,KACR,kBAACC,GAAD;GACE,UAAU/B,EAAE,yCAAyC,yBAAyB;GACvE;GACP,eAAe,KAAK0C,EAAS;EAC9B,CAAA;EAEH,kBAACC,GAAD;GACE,SAASb,KAAW,CAACD;GACR;GACb,kBAAkB,KAAKa,EAAS;GAChC,aAAajB,EAAS;EACvB,CAAA;CACD,EAAA,CAAA;AAEN"}
|
|
@@ -3060,6 +3060,23 @@ export type ListPoliciesQuery = {
|
|
|
3060
3060
|
workspaceId: string;
|
|
3061
3061
|
}>;
|
|
3062
3062
|
};
|
|
3063
|
+
export type ListBotmanorPoliciesPageQueryVariables = Exact<{
|
|
3064
|
+
filters?: Types.PolicyFilterInput | null | undefined;
|
|
3065
|
+
pagination?: Types.BotmanorOffsetPaginationInput | null | undefined;
|
|
3066
|
+
}>;
|
|
3067
|
+
export type ListBotmanorPoliciesPageQuery = {
|
|
3068
|
+
listBotmanorPoliciesPage: {
|
|
3069
|
+
nextOffset: number | null;
|
|
3070
|
+
items: Array<{
|
|
3071
|
+
createdAt: string;
|
|
3072
|
+
description: string | null;
|
|
3073
|
+
id: string;
|
|
3074
|
+
name: string;
|
|
3075
|
+
status: Types.EntityStatus;
|
|
3076
|
+
type: Types.PolicyType;
|
|
3077
|
+
}>;
|
|
3078
|
+
};
|
|
3079
|
+
};
|
|
3063
3080
|
export type CreatePolicyMutationVariables = Exact<{
|
|
3064
3081
|
input: Types.CreatePolicyInput;
|
|
3065
3082
|
}>;
|
|
@@ -3456,6 +3473,25 @@ export type ListRetrievalProfilesQuery = {
|
|
|
3456
3473
|
workspaceId: string;
|
|
3457
3474
|
}>;
|
|
3458
3475
|
};
|
|
3476
|
+
export type ListBotmanorRetrievalProfilesPageQueryVariables = Exact<{
|
|
3477
|
+
filters?: Types.RetrievalProfileFilterInput | null | undefined;
|
|
3478
|
+
pagination?: Types.BotmanorOffsetPaginationInput | null | undefined;
|
|
3479
|
+
}>;
|
|
3480
|
+
export type ListBotmanorRetrievalProfilesPageQuery = {
|
|
3481
|
+
listBotmanorRetrievalProfilesPage: {
|
|
3482
|
+
nextOffset: number | null;
|
|
3483
|
+
items: Array<{
|
|
3484
|
+
citationsRequired: boolean;
|
|
3485
|
+
createdAt: string;
|
|
3486
|
+
description: string | null;
|
|
3487
|
+
id: string;
|
|
3488
|
+
name: string;
|
|
3489
|
+
status: Types.EntityStatus;
|
|
3490
|
+
strategyMode: Types.RetrievalMode;
|
|
3491
|
+
topK: number;
|
|
3492
|
+
}>;
|
|
3493
|
+
};
|
|
3494
|
+
};
|
|
3459
3495
|
export type CreateRetrievalProfileMutationVariables = Exact<{
|
|
3460
3496
|
input: Types.CreateRetrievalProfileInput;
|
|
3461
3497
|
}>;
|
|
@@ -7318,6 +7354,32 @@ export type ListPoliciesQueryHookResult = ReturnType<typeof useListPoliciesQuery
|
|
|
7318
7354
|
export type ListPoliciesLazyQueryHookResult = ReturnType<typeof useListPoliciesLazyQuery>;
|
|
7319
7355
|
export type ListPoliciesSuspenseQueryHookResult = ReturnType<typeof useListPoliciesSuspenseQuery>;
|
|
7320
7356
|
export type ListPoliciesQueryResult = Apollo.QueryResult<Types.ListPoliciesQuery, Types.ListPoliciesQueryVariables>;
|
|
7357
|
+
export declare const ListBotmanorPoliciesPageDocument: Apollo.DocumentNode;
|
|
7358
|
+
/**
|
|
7359
|
+
* __useListBotmanorPoliciesPageQuery__
|
|
7360
|
+
*
|
|
7361
|
+
* To run a query within a React component, call `useListBotmanorPoliciesPageQuery` and pass it any options that fit your needs.
|
|
7362
|
+
* When your component renders, `useListBotmanorPoliciesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7363
|
+
* you can use to render your UI.
|
|
7364
|
+
*
|
|
7365
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7366
|
+
*
|
|
7367
|
+
* @example
|
|
7368
|
+
* const { data, loading, error } = useListBotmanorPoliciesPageQuery({
|
|
7369
|
+
* variables: {
|
|
7370
|
+
* filters: // value for 'filters'
|
|
7371
|
+
* pagination: // value for 'pagination'
|
|
7372
|
+
* },
|
|
7373
|
+
* });
|
|
7374
|
+
*/
|
|
7375
|
+
export declare function useListBotmanorPoliciesPageQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables, "empty" | "complete" | "streaming", Types.ListBotmanorPoliciesPageQueryVariables, undefined>;
|
|
7376
|
+
export declare function useListBotmanorPoliciesPageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
7377
|
+
export declare function useListBotmanorPoliciesPageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>;
|
|
7378
|
+
export declare function useListBotmanorPoliciesPageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorPoliciesPageQuery | undefined, Types.ListBotmanorPoliciesPageQueryVariables>;
|
|
7379
|
+
export type ListBotmanorPoliciesPageQueryHookResult = ReturnType<typeof useListBotmanorPoliciesPageQuery>;
|
|
7380
|
+
export type ListBotmanorPoliciesPageLazyQueryHookResult = ReturnType<typeof useListBotmanorPoliciesPageLazyQuery>;
|
|
7381
|
+
export type ListBotmanorPoliciesPageSuspenseQueryHookResult = ReturnType<typeof useListBotmanorPoliciesPageSuspenseQuery>;
|
|
7382
|
+
export type ListBotmanorPoliciesPageQueryResult = Apollo.QueryResult<Types.ListBotmanorPoliciesPageQuery, Types.ListBotmanorPoliciesPageQueryVariables>;
|
|
7321
7383
|
export declare const CreatePolicyDocument: Apollo.DocumentNode;
|
|
7322
7384
|
export type CreatePolicyMutationFn = Apollo.MutationFunction<Types.CreatePolicyMutation, Types.CreatePolicyMutationVariables>;
|
|
7323
7385
|
/**
|
|
@@ -7773,6 +7835,32 @@ export type ListRetrievalProfilesQueryHookResult = ReturnType<typeof useListRetr
|
|
|
7773
7835
|
export type ListRetrievalProfilesLazyQueryHookResult = ReturnType<typeof useListRetrievalProfilesLazyQuery>;
|
|
7774
7836
|
export type ListRetrievalProfilesSuspenseQueryHookResult = ReturnType<typeof useListRetrievalProfilesSuspenseQuery>;
|
|
7775
7837
|
export type ListRetrievalProfilesQueryResult = Apollo.QueryResult<Types.ListRetrievalProfilesQuery, Types.ListRetrievalProfilesQueryVariables>;
|
|
7838
|
+
export declare const ListBotmanorRetrievalProfilesPageDocument: Apollo.DocumentNode;
|
|
7839
|
+
/**
|
|
7840
|
+
* __useListBotmanorRetrievalProfilesPageQuery__
|
|
7841
|
+
*
|
|
7842
|
+
* To run a query within a React component, call `useListBotmanorRetrievalProfilesPageQuery` and pass it any options that fit your needs.
|
|
7843
|
+
* When your component renders, `useListBotmanorRetrievalProfilesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7844
|
+
* you can use to render your UI.
|
|
7845
|
+
*
|
|
7846
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7847
|
+
*
|
|
7848
|
+
* @example
|
|
7849
|
+
* const { data, loading, error } = useListBotmanorRetrievalProfilesPageQuery({
|
|
7850
|
+
* variables: {
|
|
7851
|
+
* filters: // value for 'filters'
|
|
7852
|
+
* pagination: // value for 'pagination'
|
|
7853
|
+
* },
|
|
7854
|
+
* });
|
|
7855
|
+
*/
|
|
7856
|
+
export declare function useListBotmanorRetrievalProfilesPageQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables, "empty" | "complete" | "streaming", Types.ListBotmanorRetrievalProfilesPageQueryVariables, undefined>;
|
|
7857
|
+
export declare function useListBotmanorRetrievalProfilesPageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
7858
|
+
export declare function useListBotmanorRetrievalProfilesPageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>;
|
|
7859
|
+
export declare function useListBotmanorRetrievalProfilesPageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorRetrievalProfilesPageQuery | undefined, Types.ListBotmanorRetrievalProfilesPageQueryVariables>;
|
|
7860
|
+
export type ListBotmanorRetrievalProfilesPageQueryHookResult = ReturnType<typeof useListBotmanorRetrievalProfilesPageQuery>;
|
|
7861
|
+
export type ListBotmanorRetrievalProfilesPageLazyQueryHookResult = ReturnType<typeof useListBotmanorRetrievalProfilesPageLazyQuery>;
|
|
7862
|
+
export type ListBotmanorRetrievalProfilesPageSuspenseQueryHookResult = ReturnType<typeof useListBotmanorRetrievalProfilesPageSuspenseQuery>;
|
|
7863
|
+
export type ListBotmanorRetrievalProfilesPageQueryResult = Apollo.QueryResult<Types.ListBotmanorRetrievalProfilesPageQuery, Types.ListBotmanorRetrievalProfilesPageQueryVariables>;
|
|
7776
7864
|
export declare const CreateRetrievalProfileDocument: Apollo.DocumentNode;
|
|
7777
7865
|
export type CreateRetrievalProfileMutationFn = Apollo.MutationFunction<Types.CreateRetrievalProfileMutation, Types.CreateRetrievalProfileMutationVariables>;
|
|
7778
7866
|
/**
|