@burdenoff/microfe-botmanor 2026.1127.3 → 2026.1127.4
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/pages/AgentTestChatPage.js +95 -94
- package/dist/botlit/pages/AgentTestChatPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +327 -328
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +285 -289
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +457 -453
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +229 -228
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +324 -323
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/shared/hooks/useTr.js +1 -1
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
+
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
+
import { useAgents as n } from "../hooks/useAgents.js";
|
|
4
|
+
import { isNative as r, nativeImpact as i, nativeNotify as a } from "../../utils/nativeBridge.js";
|
|
5
|
+
import { BOTMANOR_PERMISSIONS as o } from "../permissions/botmanorPermissions.js";
|
|
6
|
+
import { BotmanorPermissionGate as s } from "../permissions/useBotmanorPermissions.js";
|
|
7
|
+
import { PageLayout as c } from "../components/PageLayout.js";
|
|
8
|
+
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
8
9
|
import { Card as l, CardContent as u, CardDescription as d, CardHeader as f, CardTitle as p } from "../components/Card.js";
|
|
9
10
|
import { Button as m } from "../components/Button.js";
|
|
10
11
|
import { FormField as h, Input as g, Textarea as _ } from "../components/Input.js";
|
|
11
|
-
import { Badge as
|
|
12
|
+
import { Badge as te, StatusBadge as ne } from "../components/Badge.js";
|
|
12
13
|
import "../hooks/index.js";
|
|
13
14
|
import { formatRelativeTime as v } from "../utils/formatters.js";
|
|
14
|
-
import { useCreatePolicy as
|
|
15
|
+
import { useCreatePolicy as re, useDeletePolicy as ie, usePolicy as ae, useUpdatePolicy as oe } from "../hooks/usePolicies.js";
|
|
15
16
|
import { toUnion as y } from "../utils/unions.js";
|
|
16
|
-
import { A2A_TRUST_LEVELS as
|
|
17
|
+
import { A2A_TRUST_LEVELS as se, CITATION_MODES as ce, CREATABLE_POLICY_TYPES as le, EMPTY_POLICY_FORM as ue, KNOWLEDGE_CLASSIFICATIONS as de, PII_MASK_TYPES as fe, RESPONSE_FORMALITY_LEVELS as pe, RESPONSE_STRUCTURES as me, TOOL_RISK_LEVELS as he, buildPolicyConfig as ge, isCreatablePolicyType as b, policyFormFromConfig as _e, unenforcedConfigKeys as ve } from "../utils/policyConfig.js";
|
|
17
18
|
import "../permissions/index.js";
|
|
18
19
|
import { useState as x } from "react";
|
|
19
|
-
import { PagePurpose as
|
|
20
|
+
import { PagePurpose as ye, ThemedSelect as S } from "@burdenoff/fe-libs/ui";
|
|
20
21
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
21
|
-
import { useParams as
|
|
22
|
-
import { AlertTriangle as E, ArrowLeft as
|
|
23
|
-
import { toast as
|
|
22
|
+
import { useParams as be } from "react-router";
|
|
23
|
+
import { AlertTriangle as E, ArrowLeft as xe, Clock as Se, Database as Ce, DollarSign as D, Edit as we, FileText as O, Power as Te, Save as Ee, Settings as De, Shield as Oe, Trash2 as k, Wrench as ke } from "lucide-react";
|
|
24
|
+
import { toast as A } from "sonner";
|
|
24
25
|
// src/botlit/pages/PolicyDetailPage.tsx
|
|
25
|
-
var
|
|
26
|
+
var j = [
|
|
26
27
|
"CONTENT",
|
|
27
28
|
"TOOL",
|
|
28
29
|
"DATA",
|
|
@@ -30,175 +31,183 @@ var N = [
|
|
|
30
31
|
"BUDGET",
|
|
31
32
|
"RATE_LIMIT",
|
|
32
33
|
"RETENTION"
|
|
33
|
-
],
|
|
34
|
+
], Ae = [
|
|
34
35
|
"PRIVATE",
|
|
35
36
|
"WORKSPACE",
|
|
36
37
|
"PUBLIC"
|
|
37
|
-
],
|
|
38
|
+
], M = "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm", je = ({ type: e }) => ({
|
|
38
39
|
CONTENT: /* @__PURE__ */ w(E, { size: 18 }),
|
|
39
|
-
TOOL: /* @__PURE__ */ w(
|
|
40
|
-
DATA: /* @__PURE__ */ w(
|
|
41
|
-
RESPONSE: /* @__PURE__ */ w(
|
|
42
|
-
BUDGET: /* @__PURE__ */ w(
|
|
43
|
-
RATE_LIMIT: /* @__PURE__ */ w(
|
|
44
|
-
RETENTION: /* @__PURE__ */ w(
|
|
45
|
-
})[e] || /* @__PURE__ */ w(
|
|
46
|
-
|
|
47
|
-
PHONE: "Phone numbers",
|
|
48
|
-
CREDIT_CARD: "Card numbers",
|
|
49
|
-
SSN: "US social security numbers",
|
|
50
|
-
IP_ADDRESS: "IP addresses"
|
|
51
|
-
};
|
|
52
|
-
function F(e, t, n) {
|
|
40
|
+
TOOL: /* @__PURE__ */ w(ke, { size: 18 }),
|
|
41
|
+
DATA: /* @__PURE__ */ w(Ce, { size: 18 }),
|
|
42
|
+
RESPONSE: /* @__PURE__ */ w(O, { size: 18 }),
|
|
43
|
+
BUDGET: /* @__PURE__ */ w(D, { size: 18 }),
|
|
44
|
+
RATE_LIMIT: /* @__PURE__ */ w(Se, { size: 18 }),
|
|
45
|
+
RETENTION: /* @__PURE__ */ w(k, { size: 18 })
|
|
46
|
+
})[e] || /* @__PURE__ */ w(Oe, { size: 18 });
|
|
47
|
+
function N(e, t, n) {
|
|
53
48
|
return n ? [...e.filter((e) => e !== t), t] : e.filter((e) => e !== t);
|
|
54
49
|
}
|
|
55
|
-
var
|
|
56
|
-
let { data:
|
|
50
|
+
var Me = ({ value: t, onChange: r }) => {
|
|
51
|
+
let i = e(), { data: a, loading: o, error: s, refetch: c, hasMore: ee, loadingMore: l, loadMore: u } = n();
|
|
57
52
|
return /* @__PURE__ */ w(h, {
|
|
58
|
-
label: "Apply To Agents",
|
|
59
|
-
description: "Leave all unchecked to apply this policy to every agent in the workspace.",
|
|
53
|
+
label: i("botlit.policyDetail.applyToAgents", "Apply To Agents"),
|
|
54
|
+
description: i("botlit.policyDetail.leaveAllUncheckedToApply", "Leave all unchecked to apply this policy to every agent in the workspace."),
|
|
60
55
|
children: /* @__PURE__ */ T("div", {
|
|
61
56
|
className: "max-h-48 overflow-auto rounded-md border border-border-default p-2 space-y-1",
|
|
62
57
|
children: [
|
|
63
|
-
|
|
58
|
+
s && a.length === 0 ? /* @__PURE__ */ T("div", {
|
|
64
59
|
className: "space-y-2",
|
|
65
60
|
role: "alert",
|
|
66
61
|
children: [/* @__PURE__ */ w("p", {
|
|
67
62
|
className: "text-sm text-status-error-text",
|
|
68
|
-
children: "Agents could not be loaded, so this policy cannot be limited to agents right now. Saving it as is applies it to every agent in the workspace."
|
|
63
|
+
children: i("botlit.policyDetail.agentsCouldNotBeLoaded", "Agents could not be loaded, so this policy cannot be limited to agents right now. Saving it as is applies it to every agent in the workspace.")
|
|
69
64
|
}), /* @__PURE__ */ w(m, {
|
|
70
65
|
variant: "outline",
|
|
71
66
|
size: "sm",
|
|
72
|
-
onClick: () => void
|
|
73
|
-
children: "Retry"
|
|
67
|
+
onClick: () => void c(),
|
|
68
|
+
children: i("botlit.policyDetail.retry", "Retry")
|
|
74
69
|
})]
|
|
75
|
-
}) :
|
|
70
|
+
}) : o && a.length === 0 ? /* @__PURE__ */ w("p", {
|
|
76
71
|
className: "text-sm text-text-secondary",
|
|
77
|
-
children: "Loading agents…"
|
|
78
|
-
}) :
|
|
72
|
+
children: i("botlit.policyDetail.loadingAgents", "Loading agents…")
|
|
73
|
+
}) : a.length === 0 ? /* @__PURE__ */ w("p", {
|
|
79
74
|
className: "text-sm text-text-secondary",
|
|
80
|
-
children: "No agents in this workspace yet."
|
|
81
|
-
}) :
|
|
75
|
+
children: i("botlit.policyDetail.noAgentsInThisWorkspace", "No agents in this workspace yet.")
|
|
76
|
+
}) : a.map((e) => /* @__PURE__ */ T("label", {
|
|
82
77
|
className: "flex items-center gap-2 text-sm",
|
|
83
78
|
children: [/* @__PURE__ */ w("input", {
|
|
84
79
|
type: "checkbox",
|
|
85
80
|
className: "h-4 w-4",
|
|
86
|
-
checked:
|
|
87
|
-
onChange: (
|
|
88
|
-
}), /* @__PURE__ */ w("span", { children:
|
|
89
|
-
},
|
|
90
|
-
|
|
81
|
+
checked: t.includes(e.id),
|
|
82
|
+
onChange: (n) => r(N(t, e.id, n.target.checked))
|
|
83
|
+
}), /* @__PURE__ */ w("span", { children: e.name })]
|
|
84
|
+
}, e.id)),
|
|
85
|
+
s && a.length > 0 && /* @__PURE__ */ w("p", {
|
|
91
86
|
className: "text-sm text-status-error-text",
|
|
92
87
|
role: "alert",
|
|
93
|
-
children: "More agents could not be loaded; the list above is incomplete."
|
|
88
|
+
children: i("botlit.policyDetail.moreAgentsCouldNotBe", "More agents could not be loaded; the list above is incomplete.")
|
|
94
89
|
}),
|
|
95
|
-
|
|
90
|
+
ee && /* @__PURE__ */ w(m, {
|
|
96
91
|
variant: "ghost",
|
|
97
92
|
size: "sm",
|
|
98
|
-
onClick: () => void
|
|
99
|
-
isLoading:
|
|
100
|
-
disabled:
|
|
101
|
-
children:
|
|
93
|
+
onClick: () => void u(),
|
|
94
|
+
isLoading: l,
|
|
95
|
+
disabled: l,
|
|
96
|
+
children: s ? i("botlit.policyDetail.retryLoadingMoreAgents", "Retry loading more agents") : i("botlit.policyDetail.loadMoreAgents", "Load more agents")
|
|
102
97
|
})
|
|
103
98
|
]
|
|
104
99
|
})
|
|
105
100
|
});
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
101
|
+
}, P = ({ isNew: n }) => {
|
|
102
|
+
let P = e(), F = {
|
|
103
|
+
CONTENT: P("botlit.policyDetail.contentPolicy", "Content Policy"),
|
|
104
|
+
TOOL: P("botlit.policyDetail.toolPolicy", "Tool Policy"),
|
|
105
|
+
DATA: P("botlit.policyDetail.dataPolicy", "Data Policy"),
|
|
106
|
+
RESPONSE: P("botlit.policyDetail.responseModelPolicy", "Response & Model Policy"),
|
|
107
|
+
BUDGET: P("botlit.policyDetail.budgetPolicy", "Budget Policy"),
|
|
108
|
+
RATE_LIMIT: P("botlit.policyDetail.rateLimitPolicy", "Rate Limit Policy"),
|
|
109
|
+
RETENTION: P("botlit.policyDetail.retentionPolicy", "Retention Policy")
|
|
110
|
+
}, Ne = {
|
|
111
|
+
EMAIL: P("botlit.policyDetail.maskEmail", "Email addresses"),
|
|
112
|
+
PHONE: P("botlit.policyDetail.maskPhone", "Phone numbers"),
|
|
113
|
+
CREDIT_CARD: P("botlit.policyDetail.maskCard", "Card numbers"),
|
|
114
|
+
SSN: P("botlit.policyDetail.maskSsn", "US social security numbers"),
|
|
115
|
+
IP_ADDRESS: P("botlit.policyDetail.maskIp", "IP addresses")
|
|
116
|
+
}, Pe = {
|
|
117
|
+
LOW: P("botlit.policyDetail.toolRiskLow", "low"),
|
|
118
|
+
MEDIUM: P("botlit.policyDetail.toolRiskMedium", "medium"),
|
|
119
|
+
HIGH: P("botlit.policyDetail.toolRiskHigh", "high")
|
|
120
|
+
}, Fe = {
|
|
121
|
+
UNVERIFIED: P("botlit.policyDetail.unverifiedTrust", "Unverified"),
|
|
122
|
+
VERIFIED_PUBLISHER: P("botlit.policyDetail.verifiedPublisher", "Verified publisher"),
|
|
123
|
+
INTERNAL: P("botlit.policyDetail.internalTrust", "Internal")
|
|
124
|
+
}, { policyId: I } = be(), { navigateTo: L } = t(), { data: R, loading: Ie, refetch: Le } = ae(n ? void 0 : I), { create: Re, loading: ze } = re(), { update: Be, loading: Ve } = oe(), { remove: He, loading: Ue } = ie(), [z, B] = x(!1), [We, Ge] = x(!1), [V, H] = x({
|
|
116
125
|
name: "",
|
|
117
126
|
description: "",
|
|
118
127
|
type: "CONTENT",
|
|
119
128
|
visibility: "PRIVATE"
|
|
120
|
-
}), [
|
|
129
|
+
}), [U, W] = x({
|
|
121
130
|
name: "",
|
|
122
131
|
description: "",
|
|
123
132
|
visibility: "PRIVATE"
|
|
124
|
-
}), [
|
|
125
|
-
|
|
133
|
+
}), [G, K] = x(ue), [q, J] = x(null), [Ke, qe] = x(null), Y = (e, t) => {
|
|
134
|
+
J(null), K((n) => ({
|
|
126
135
|
...n,
|
|
127
136
|
[e]: {
|
|
128
137
|
...n[e],
|
|
129
138
|
...t
|
|
130
139
|
}
|
|
131
140
|
}));
|
|
132
|
-
}, [
|
|
133
|
-
if (!
|
|
134
|
-
let e =
|
|
135
|
-
if (!e.ok)
|
|
141
|
+
}, [X, Je] = x(!1), Ye = async () => {
|
|
142
|
+
if (!V.name) return;
|
|
143
|
+
let e = ge(V.type, G);
|
|
144
|
+
if (!e.ok) J(e.error), A.error(e.error);
|
|
136
145
|
else {
|
|
137
146
|
try {
|
|
138
|
-
await
|
|
139
|
-
name:
|
|
140
|
-
description:
|
|
141
|
-
type:
|
|
142
|
-
visibility:
|
|
143
|
-
status:
|
|
147
|
+
await Re({
|
|
148
|
+
name: V.name,
|
|
149
|
+
description: V.description,
|
|
150
|
+
type: V.type,
|
|
151
|
+
visibility: V.visibility,
|
|
152
|
+
status: X ? "ACTIVE" : "DRAFT",
|
|
144
153
|
config: e.config
|
|
145
154
|
});
|
|
146
155
|
} catch (e) {
|
|
147
|
-
|
|
156
|
+
A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToCreatePolicy", "Failed to create policy"));
|
|
148
157
|
return;
|
|
149
158
|
}
|
|
150
|
-
|
|
159
|
+
A.success(P("botlit.policyDetail.policyNameCreated", "Policy \"{{name}}\" created", { name: V.name })), L("policies");
|
|
151
160
|
}
|
|
152
|
-
},
|
|
153
|
-
if (!
|
|
154
|
-
let e =
|
|
161
|
+
}, Xe = async () => {
|
|
162
|
+
if (!I || !R || !U.name) return;
|
|
163
|
+
let e = j.find((e) => e === R.type), t, n = JSON.stringify(G) !== JSON.stringify(Ke);
|
|
155
164
|
if (e && b(e) && n) {
|
|
156
|
-
let n =
|
|
165
|
+
let n = ge(e, G);
|
|
157
166
|
if (!n.ok) {
|
|
158
|
-
|
|
167
|
+
J(n.error), A.error(n.error);
|
|
159
168
|
return;
|
|
160
169
|
}
|
|
161
170
|
t = n.config;
|
|
162
171
|
}
|
|
163
172
|
try {
|
|
164
|
-
await
|
|
165
|
-
policyId:
|
|
173
|
+
await Be({
|
|
174
|
+
policyId: I,
|
|
166
175
|
input: {
|
|
167
|
-
name:
|
|
168
|
-
description:
|
|
169
|
-
visibility:
|
|
176
|
+
name: U.name,
|
|
177
|
+
description: U.description,
|
|
178
|
+
visibility: U.visibility,
|
|
170
179
|
...t ? { config: t } : {}
|
|
171
180
|
}
|
|
172
181
|
});
|
|
173
182
|
} catch (e) {
|
|
174
|
-
|
|
183
|
+
A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
|
|
175
184
|
return;
|
|
176
185
|
}
|
|
177
|
-
await
|
|
178
|
-
},
|
|
179
|
-
if (
|
|
180
|
-
await
|
|
186
|
+
await Le(), A.success(P("botlit.policyDetail.policyUpdated", "Policy updated")), B(!1);
|
|
187
|
+
}, Ze = async () => {
|
|
188
|
+
if (I) try {
|
|
189
|
+
await He(I), r() && a("success"), L("policies");
|
|
181
190
|
} catch (e) {
|
|
182
|
-
throw
|
|
191
|
+
throw r() && a("error"), e;
|
|
183
192
|
}
|
|
184
|
-
}, Z =
|
|
185
|
-
if (!
|
|
193
|
+
}, Z = R?.status === "ACTIVE", Qe = async () => {
|
|
194
|
+
if (!I) return;
|
|
186
195
|
let e = Z ? "DRAFT" : "ACTIVE";
|
|
187
196
|
try {
|
|
188
|
-
await
|
|
189
|
-
policyId:
|
|
197
|
+
await Be({
|
|
198
|
+
policyId: I,
|
|
190
199
|
input: { status: e }
|
|
191
200
|
});
|
|
192
201
|
} catch (e) {
|
|
193
|
-
|
|
202
|
+
A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
|
|
194
203
|
return;
|
|
195
204
|
}
|
|
196
|
-
await
|
|
197
|
-
},
|
|
205
|
+
await Le(), A.success(e === "ACTIVE" ? P("botlit.policyDetail.policyIsNowEnforced", "Policy is now enforced") : P("botlit.policyDetail.policyIsNoLongerEnforced", "Policy is no longer enforced"));
|
|
206
|
+
}, $e = (e) => /* @__PURE__ */ T(C, { children: [
|
|
198
207
|
e === "CONTENT" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
199
208
|
className: "flex items-center gap-2",
|
|
200
|
-
children: [/* @__PURE__ */ w(E, { size: 18 }), "Content Policy Configuration"]
|
|
201
|
-
}), /* @__PURE__ */ w(d, { children: "Checked against every message sent to an agent and every response it gives. A blocked message is refused; a blocked response is replaced with a refusal." })] }), /* @__PURE__ */ T(u, {
|
|
209
|
+
children: [/* @__PURE__ */ w(E, { size: 18 }), P("botlit.policyDetail.contentPolicyConfiguration", "Content Policy Configuration")]
|
|
210
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.checkedAgainstEveryMessageSent", "Checked against every message sent to an agent and every response it gives. A blocked message is refused; a blocked response is replaced with a refusal.") })] }), /* @__PURE__ */ T(u, {
|
|
202
211
|
className: "space-y-4",
|
|
203
212
|
children: [
|
|
204
213
|
/* @__PURE__ */ T("div", {
|
|
@@ -206,37 +215,37 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
206
215
|
children: [/* @__PURE__ */ w("input", {
|
|
207
216
|
type: "checkbox",
|
|
208
217
|
id: "pii",
|
|
209
|
-
checked:
|
|
210
|
-
onChange: (e) =>
|
|
218
|
+
checked: G.content.piiDetection,
|
|
219
|
+
onChange: (e) => Y("content", { piiDetection: e.target.checked }),
|
|
211
220
|
className: "mt-1 h-4 w-4"
|
|
212
221
|
}), /* @__PURE__ */ T("label", {
|
|
213
222
|
htmlFor: "pii",
|
|
214
223
|
className: "text-sm",
|
|
215
224
|
children: [/* @__PURE__ */ w("span", {
|
|
216
225
|
className: "font-medium",
|
|
217
|
-
children: "PII Detection"
|
|
226
|
+
children: P("botlit.policyDetail.piiDetection", "PII Detection")
|
|
218
227
|
}), /* @__PURE__ */ w("span", {
|
|
219
228
|
className: "block text-text-secondary",
|
|
220
|
-
children: "Blocks text containing an email address, a US SSN or a card-number shaped digit run."
|
|
229
|
+
children: P("botlit.policyDetail.blocksTextContainingAnEmail", "Blocks text containing an email address, a US SSN or a card-number shaped digit run.")
|
|
221
230
|
})]
|
|
222
231
|
})]
|
|
223
232
|
}),
|
|
224
233
|
/* @__PURE__ */ w(h, {
|
|
225
|
-
label: "Blocked Keywords",
|
|
226
|
-
description: "Comma-separated. Case-insensitive; any occurrence blocks the text.",
|
|
234
|
+
label: P("botlit.policyDetail.blockedKeywords", "Blocked Keywords"),
|
|
235
|
+
description: P("botlit.policyDetail.commaSeparatedCaseInsensitiveAny", "Comma-separated. Case-insensitive; any occurrence blocks the text."),
|
|
227
236
|
children: /* @__PURE__ */ w(g, {
|
|
228
|
-
placeholder: "e.g., internal-only, project-x",
|
|
229
|
-
value:
|
|
230
|
-
onChange: (e) =>
|
|
237
|
+
placeholder: P("botlit.policyDetail.exampleInternalOnlyProjectX", "e.g., internal-only, project-x"),
|
|
238
|
+
value: G.content.blockedKeywords,
|
|
239
|
+
onChange: (e) => Y("content", { blockedKeywords: e.target.value })
|
|
231
240
|
})
|
|
232
241
|
}),
|
|
233
242
|
/* @__PURE__ */ w(h, {
|
|
234
|
-
label: "Blocked Patterns",
|
|
235
|
-
description: "One regular expression per line, matched case-insensitively.",
|
|
243
|
+
label: P("botlit.policyDetail.blockedPatterns", "Blocked Patterns"),
|
|
244
|
+
description: P("botlit.policyDetail.oneRegularExpressionPerLine", "One regular expression per line, matched case-insensitively."),
|
|
236
245
|
children: /* @__PURE__ */ w(_, {
|
|
237
|
-
placeholder: "e.g., \\bACME-\\d{6}\\b",
|
|
238
|
-
value:
|
|
239
|
-
onChange: (e) =>
|
|
246
|
+
placeholder: P("botlit.policyDetail.exampleBlockedPattern", "e.g., \\bACME-\\d{6}\\b"),
|
|
247
|
+
value: G.content.blockedPatterns,
|
|
248
|
+
onChange: (e) => Y("content", { blockedPatterns: e.target.value }),
|
|
240
249
|
rows: 3
|
|
241
250
|
})
|
|
242
251
|
})
|
|
@@ -244,57 +253,57 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
244
253
|
})] }),
|
|
245
254
|
e === "TOOL" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
246
255
|
className: "flex items-center gap-2",
|
|
247
|
-
children: [/* @__PURE__ */ w(
|
|
248
|
-
}), /* @__PURE__ */ w(d, { children: "Applies to MCP tool calls made by agents and through Call Tool, and to agent delegation. Leave a field empty to not restrict it." })] }), /* @__PURE__ */ T(u, {
|
|
256
|
+
children: [/* @__PURE__ */ w(ke, { size: 18 }), P("botlit.policyDetail.toolPolicyConfiguration", "Tool Policy Configuration")]
|
|
257
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.appliesToMcpToolCalls", "Applies to MCP tool calls made by agents and through Call Tool, and to agent delegation. Leave a field empty to not restrict it.") })] }), /* @__PURE__ */ T(u, {
|
|
249
258
|
className: "space-y-4",
|
|
250
259
|
children: [
|
|
251
260
|
/* @__PURE__ */ w(h, {
|
|
252
|
-
label: "Allowed Tools",
|
|
253
|
-
description: "Comma-separated MCP tool names. End an entry with * to allow a prefix. Empty allows every tool.",
|
|
261
|
+
label: P("botlit.policyDetail.allowedTools", "Allowed Tools"),
|
|
262
|
+
description: P("botlit.policyDetail.commaSeparatedMcpToolNames", "Comma-separated MCP tool names. End an entry with * to allow a prefix. Empty allows every tool."),
|
|
254
263
|
children: /* @__PURE__ */ w(g, {
|
|
255
|
-
placeholder: "e.g., search, read_*",
|
|
256
|
-
value:
|
|
257
|
-
onChange: (e) =>
|
|
264
|
+
placeholder: P("botlit.policyDetail.exampleSearchRead", "e.g., search, read_*"),
|
|
265
|
+
value: G.tool.allowedTools,
|
|
266
|
+
onChange: (e) => Y("tool", { allowedTools: e.target.value })
|
|
258
267
|
})
|
|
259
268
|
}),
|
|
260
269
|
/* @__PURE__ */ w(h, {
|
|
261
|
-
label: "Denied Tools",
|
|
262
|
-
description: "Comma-separated MCP tool names that may never run. A deny always wins.",
|
|
270
|
+
label: P("botlit.policyDetail.deniedTools", "Denied Tools"),
|
|
271
|
+
description: P("botlit.policyDetail.commaSeparatedMcpToolNames2", "Comma-separated MCP tool names that may never run. A deny always wins."),
|
|
263
272
|
children: /* @__PURE__ */ w(g, {
|
|
264
|
-
placeholder: "e.g., delete_*, execute_code",
|
|
265
|
-
value:
|
|
266
|
-
onChange: (e) =>
|
|
273
|
+
placeholder: P("botlit.policyDetail.exampleDeleteExecuteCode", "e.g., delete_*, execute_code"),
|
|
274
|
+
value: G.tool.deniedTools,
|
|
275
|
+
onChange: (e) => Y("tool", { deniedTools: e.target.value })
|
|
267
276
|
})
|
|
268
277
|
}),
|
|
269
278
|
/* @__PURE__ */ T("div", {
|
|
270
279
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
271
280
|
children: [/* @__PURE__ */ w(h, {
|
|
272
|
-
label: "Max Tool Risk Level",
|
|
281
|
+
label: P("botlit.policyDetail.maxToolRiskLevel", "Max Tool Risk Level"),
|
|
273
282
|
children: /* @__PURE__ */ T(S, {
|
|
274
|
-
className:
|
|
275
|
-
value:
|
|
276
|
-
onChange: (e) =>
|
|
283
|
+
className: M,
|
|
284
|
+
value: G.tool.maxToolRiskLevel,
|
|
285
|
+
onChange: (e) => Y("tool", { maxToolRiskLevel: e.target.value }),
|
|
277
286
|
children: [/* @__PURE__ */ w("option", {
|
|
278
287
|
value: "",
|
|
279
|
-
children: "Any risk level"
|
|
280
|
-
}),
|
|
288
|
+
children: P("botlit.policyDetail.anyRiskLevel", "Any risk level")
|
|
289
|
+
}), he.map((e) => /* @__PURE__ */ w("option", {
|
|
281
290
|
value: e,
|
|
282
|
-
children:
|
|
291
|
+
children: P("botlit.policyDetail.upToLevel", "Up to {{level}}", { level: Pe[e] })
|
|
283
292
|
}, e))]
|
|
284
293
|
})
|
|
285
294
|
}), /* @__PURE__ */ w(h, {
|
|
286
|
-
label: "Minimum A2A Trust Level",
|
|
287
|
-
description: "For delegation to external registry agents.",
|
|
295
|
+
label: P("botlit.policyDetail.minimumA2aTrustLevel", "Minimum A2A Trust Level"),
|
|
296
|
+
description: P("botlit.policyDetail.forDelegationToExternalRegistry", "For delegation to external registry agents."),
|
|
288
297
|
children: /* @__PURE__ */ T(S, {
|
|
289
|
-
className:
|
|
290
|
-
value:
|
|
291
|
-
onChange: (e) =>
|
|
298
|
+
className: M,
|
|
299
|
+
value: G.tool.a2aMinTrustLevel,
|
|
300
|
+
onChange: (e) => Y("tool", { a2aMinTrustLevel: e.target.value }),
|
|
292
301
|
children: [/* @__PURE__ */ w("option", {
|
|
293
302
|
value: "",
|
|
294
|
-
children: "Default (verified publisher)"
|
|
295
|
-
}),
|
|
303
|
+
children: P("botlit.policyDetail.defaultVerifiedPublisher", "Default (verified publisher)")
|
|
304
|
+
}), se.map((e) => /* @__PURE__ */ w("option", {
|
|
296
305
|
value: e,
|
|
297
|
-
children: e
|
|
306
|
+
children: Fe[e]
|
|
298
307
|
}, e))]
|
|
299
308
|
})
|
|
300
309
|
})]
|
|
@@ -302,24 +311,24 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
302
311
|
/* @__PURE__ */ T("div", {
|
|
303
312
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
304
313
|
children: [/* @__PURE__ */ w(h, {
|
|
305
|
-
label: "Max Tool Calls Per Execution",
|
|
306
|
-
description: "Tool calls allowed in one agent turn.",
|
|
314
|
+
label: P("botlit.policyDetail.maxToolCallsPerExecution", "Max Tool Calls Per Execution"),
|
|
315
|
+
description: P("botlit.policyDetail.toolCallsAllowedInOne", "Tool calls allowed in one agent turn."),
|
|
307
316
|
children: /* @__PURE__ */ w(g, {
|
|
308
317
|
type: "number",
|
|
309
318
|
min: 1,
|
|
310
|
-
placeholder: "No limit",
|
|
311
|
-
value:
|
|
312
|
-
onChange: (e) =>
|
|
319
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
320
|
+
value: G.tool.maxCallsPerExecution,
|
|
321
|
+
onChange: (e) => Y("tool", { maxCallsPerExecution: e.target.value })
|
|
313
322
|
})
|
|
314
323
|
}), /* @__PURE__ */ w(h, {
|
|
315
|
-
label: "Tool Call Timeout (seconds)",
|
|
316
|
-
description: "Can only shorten the platform's own timeout.",
|
|
324
|
+
label: P("botlit.policyDetail.toolCallTimeoutSeconds", "Tool Call Timeout (seconds)"),
|
|
325
|
+
description: P("botlit.policyDetail.canOnlyShortenThePlatform", "Can only shorten the platform's own timeout."),
|
|
317
326
|
children: /* @__PURE__ */ w(g, {
|
|
318
327
|
type: "number",
|
|
319
328
|
min: 1,
|
|
320
|
-
placeholder: "Platform default",
|
|
321
|
-
value:
|
|
322
|
-
onChange: (e) =>
|
|
329
|
+
placeholder: P("botlit.policyDetail.platformDefault", "Platform default"),
|
|
330
|
+
value: G.tool.timeoutSeconds,
|
|
331
|
+
onChange: (e) => Y("tool", { timeoutSeconds: e.target.value })
|
|
323
332
|
})
|
|
324
333
|
})]
|
|
325
334
|
})
|
|
@@ -327,70 +336,70 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
327
336
|
})] }),
|
|
328
337
|
e === "BUDGET" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
329
338
|
className: "flex items-center gap-2",
|
|
330
|
-
children: [/* @__PURE__ */ w(
|
|
331
|
-
}), /* @__PURE__ */ w(d, { children: "Token budgets apply per agent. Leave a field empty to not restrict it." })] }), /* @__PURE__ */ w(u, {
|
|
339
|
+
children: [/* @__PURE__ */ w(D, { size: 18 }), P("botlit.policyDetail.budgetPolicyConfiguration", "Budget Policy Configuration")]
|
|
340
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.tokenBudgetsApplyPerAgent", "Token budgets apply per agent. Leave a field empty to not restrict it.") })] }), /* @__PURE__ */ w(u, {
|
|
332
341
|
className: "space-y-4",
|
|
333
342
|
children: /* @__PURE__ */ T("div", {
|
|
334
343
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
335
344
|
children: [/* @__PURE__ */ w(h, {
|
|
336
|
-
label: "Max Tokens Per Day",
|
|
337
|
-
description: "An agent that has used this many tokens today (UTC) is refused.",
|
|
345
|
+
label: P("botlit.policyDetail.maxTokensPerDay", "Max Tokens Per Day"),
|
|
346
|
+
description: P("botlit.policyDetail.anAgentThatHasUsed", "An agent that has used this many tokens today (UTC) is refused."),
|
|
338
347
|
children: /* @__PURE__ */ w(g, {
|
|
339
348
|
type: "number",
|
|
340
349
|
min: 1,
|
|
341
|
-
placeholder: "No limit",
|
|
342
|
-
value:
|
|
343
|
-
onChange: (e) =>
|
|
350
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
351
|
+
value: G.budget.maxTokensPerDay,
|
|
352
|
+
onChange: (e) => Y("budget", { maxTokensPerDay: e.target.value })
|
|
344
353
|
})
|
|
345
354
|
}), /* @__PURE__ */ w(h, {
|
|
346
|
-
label: "Max Output Tokens Per Model Call",
|
|
347
|
-
description: "Lowers the agent's own max-tokens setting when it is higher.",
|
|
355
|
+
label: P("botlit.policyDetail.maxOutputTokensPerModel", "Max Output Tokens Per Model Call"),
|
|
356
|
+
description: P("botlit.policyDetail.lowersTheAgentSOwn", "Lowers the agent's own max-tokens setting when it is higher."),
|
|
348
357
|
children: /* @__PURE__ */ w(g, {
|
|
349
358
|
type: "number",
|
|
350
359
|
min: 1,
|
|
351
|
-
placeholder: "No limit",
|
|
352
|
-
value:
|
|
353
|
-
onChange: (e) =>
|
|
360
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
361
|
+
value: G.budget.maxTokensPerExecution,
|
|
362
|
+
onChange: (e) => Y("budget", { maxTokensPerExecution: e.target.value })
|
|
354
363
|
})
|
|
355
364
|
})]
|
|
356
365
|
})
|
|
357
366
|
})] }),
|
|
358
367
|
e === "RATE_LIMIT" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
359
368
|
className: "flex items-center gap-2",
|
|
360
|
-
children: [/* @__PURE__ */ w(
|
|
361
|
-
}), /* @__PURE__ */ w(d, { children: "Every limit is counted per agent. Leave a field empty to not restrict it." })] }), /* @__PURE__ */ w(u, {
|
|
369
|
+
children: [/* @__PURE__ */ w(Se, { size: 18 }), P("botlit.policyDetail.rateLimitConfiguration", "Rate Limit Configuration")]
|
|
370
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.everyLimitIsCountedPer", "Every limit is counted per agent. Leave a field empty to not restrict it.") })] }), /* @__PURE__ */ w(u, {
|
|
362
371
|
className: "space-y-4",
|
|
363
372
|
children: /* @__PURE__ */ T("div", {
|
|
364
373
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
365
374
|
children: [
|
|
366
375
|
/* @__PURE__ */ w(h, {
|
|
367
|
-
label: "Requests / Minute",
|
|
376
|
+
label: P("botlit.policyDetail.requestsMinute", "Requests / Minute"),
|
|
368
377
|
children: /* @__PURE__ */ w(g, {
|
|
369
378
|
type: "number",
|
|
370
379
|
min: 1,
|
|
371
|
-
placeholder: "No limit",
|
|
372
|
-
value:
|
|
373
|
-
onChange: (e) =>
|
|
380
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
381
|
+
value: G.rateLimit.requestsPerMinute,
|
|
382
|
+
onChange: (e) => Y("rateLimit", { requestsPerMinute: e.target.value })
|
|
374
383
|
})
|
|
375
384
|
}),
|
|
376
385
|
/* @__PURE__ */ w(h, {
|
|
377
|
-
label: "Requests / Hour",
|
|
386
|
+
label: P("botlit.policyDetail.requestsHour", "Requests / Hour"),
|
|
378
387
|
children: /* @__PURE__ */ w(g, {
|
|
379
388
|
type: "number",
|
|
380
389
|
min: 1,
|
|
381
|
-
placeholder: "No limit",
|
|
382
|
-
value:
|
|
383
|
-
onChange: (e) =>
|
|
390
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
391
|
+
value: G.rateLimit.requestsPerHour,
|
|
392
|
+
onChange: (e) => Y("rateLimit", { requestsPerHour: e.target.value })
|
|
384
393
|
})
|
|
385
394
|
}),
|
|
386
395
|
/* @__PURE__ */ w(h, {
|
|
387
|
-
label: "Tokens / Minute",
|
|
396
|
+
label: P("botlit.policyDetail.tokensMinute", "Tokens / Minute"),
|
|
388
397
|
children: /* @__PURE__ */ w(g, {
|
|
389
398
|
type: "number",
|
|
390
399
|
min: 1,
|
|
391
|
-
placeholder: "No limit",
|
|
392
|
-
value:
|
|
393
|
-
onChange: (e) =>
|
|
400
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
401
|
+
value: G.rateLimit.tokensPerMinute,
|
|
402
|
+
onChange: (e) => Y("rateLimit", { tokensPerMinute: e.target.value })
|
|
394
403
|
})
|
|
395
404
|
})
|
|
396
405
|
]
|
|
@@ -398,80 +407,80 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
398
407
|
})] }),
|
|
399
408
|
e === "RESPONSE" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
400
409
|
className: "flex items-center gap-2",
|
|
401
|
-
children: [/* @__PURE__ */ w(
|
|
402
|
-
}), /* @__PURE__ */ w(d, { children: "Agents in this workspace may only answer with models that match every active model policy. Leave both fields empty to allow all models." })] }), /* @__PURE__ */ T(u, {
|
|
410
|
+
children: [/* @__PURE__ */ w(O, { size: 18 }), P("botlit.policyDetail.modelUsageAllowlist", "Model Usage Allowlist")]
|
|
411
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.agentsInThisWorkspaceMay", "Agents in this workspace may only answer with models that match every active model policy. Leave both fields empty to allow all models.") })] }), /* @__PURE__ */ T(u, {
|
|
403
412
|
className: "space-y-4",
|
|
404
413
|
children: [/* @__PURE__ */ w(h, {
|
|
405
|
-
label: "Allowed Models",
|
|
406
|
-
description: "Comma-separated model IDs. End an entry with * to allow a prefix.",
|
|
414
|
+
label: P("botlit.policyDetail.allowedModels", "Allowed Models"),
|
|
415
|
+
description: P("botlit.policyDetail.commaSeparatedModelIdsEnd", "Comma-separated model IDs. End an entry with * to allow a prefix."),
|
|
407
416
|
children: /* @__PURE__ */ w(g, {
|
|
408
|
-
placeholder: "e.g., gpt-4o-mini, anthropic.claude-*",
|
|
409
|
-
value:
|
|
410
|
-
onChange: (e) =>
|
|
417
|
+
placeholder: P("botlit.policyDetail.exampleGpt4oMiniAnthropic", "e.g., gpt-4o-mini, anthropic.claude-*"),
|
|
418
|
+
value: G.response.allowedModels,
|
|
419
|
+
onChange: (e) => Y("response", { allowedModels: e.target.value })
|
|
411
420
|
})
|
|
412
421
|
}), /* @__PURE__ */ w(h, {
|
|
413
|
-
label: "Allowed Providers",
|
|
414
|
-
description: "Comma-separated provider types, e.g. OPENAI, ANTHROPIC, AWS_BEDROCK.",
|
|
422
|
+
label: P("botlit.policyDetail.allowedProviders", "Allowed Providers"),
|
|
423
|
+
description: P("botlit.policyDetail.commaSeparatedProviderTypesE", "Comma-separated provider types, e.g. OPENAI, ANTHROPIC, AWS_BEDROCK."),
|
|
415
424
|
children: /* @__PURE__ */ w(g, {
|
|
416
|
-
placeholder: "e.g., AWS_BEDROCK, ANTHROPIC",
|
|
417
|
-
value:
|
|
418
|
-
onChange: (e) =>
|
|
425
|
+
placeholder: P("botlit.policyDetail.exampleAwsBedrockAnthropic", "e.g., AWS_BEDROCK, ANTHROPIC"),
|
|
426
|
+
value: G.response.allowedProviders,
|
|
427
|
+
onChange: (e) => Y("response", { allowedProviders: e.target.value })
|
|
419
428
|
})
|
|
420
429
|
})]
|
|
421
430
|
})] }),
|
|
422
431
|
e === "RESPONSE" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
423
432
|
className: "flex items-center gap-2",
|
|
424
|
-
children: [/* @__PURE__ */ w(
|
|
425
|
-
}), /* @__PURE__ */ w(d, { children: "Persona, tone, formality, structure and formatting are given to the model as instructions. The token limit caps every model call and longer answers are cut to the length limit. Leave a field empty to not set it." })] }), /* @__PURE__ */ T(u, {
|
|
433
|
+
children: [/* @__PURE__ */ w(O, { size: 18 }), P("botlit.policyDetail.responseStyleLengthAndCitations", "Response Style, Length And Citations")]
|
|
434
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.personaToneFormalityStructureAnd", "Persona, tone, formality, structure and formatting are given to the model as instructions. The token limit caps every model call and longer answers are cut to the length limit. Leave a field empty to not set it.") })] }), /* @__PURE__ */ T(u, {
|
|
426
435
|
className: "space-y-4",
|
|
427
436
|
children: [
|
|
428
437
|
/* @__PURE__ */ w(h, {
|
|
429
|
-
label: "Persona",
|
|
430
|
-
description: "Who the agent speaks as. Up to
|
|
438
|
+
label: P("botlit.policyDetail.persona", "Persona"),
|
|
439
|
+
description: P("botlit.policyDetail.whoTheAgentSpeaksAs", "Who the agent speaks as. Up to {{count}} characters.", { count: 2e3 }),
|
|
431
440
|
children: /* @__PURE__ */ w(_, {
|
|
432
441
|
rows: 3,
|
|
433
442
|
maxLength: 2e3,
|
|
434
|
-
placeholder: "e.g., A patient support specialist for Acme Cloud",
|
|
435
|
-
value:
|
|
436
|
-
onChange: (e) =>
|
|
443
|
+
placeholder: P("botlit.policyDetail.exampleAPatientSupportSpecialist", "e.g., A patient support specialist for Acme Cloud"),
|
|
444
|
+
value: G.response.persona,
|
|
445
|
+
onChange: (e) => Y("response", { persona: e.target.value })
|
|
437
446
|
})
|
|
438
447
|
}),
|
|
439
448
|
/* @__PURE__ */ T("div", {
|
|
440
449
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
441
450
|
children: [
|
|
442
451
|
/* @__PURE__ */ w(h, {
|
|
443
|
-
label: "Tone",
|
|
452
|
+
label: P("botlit.policyDetail.tone", "Tone"),
|
|
444
453
|
children: /* @__PURE__ */ w(g, {
|
|
445
|
-
placeholder: "e.g., friendly, calm",
|
|
446
|
-
value:
|
|
447
|
-
onChange: (e) =>
|
|
454
|
+
placeholder: P("botlit.policyDetail.exampleFriendlyCalm", "e.g., friendly, calm"),
|
|
455
|
+
value: G.response.tone,
|
|
456
|
+
onChange: (e) => Y("response", { tone: e.target.value })
|
|
448
457
|
})
|
|
449
458
|
}),
|
|
450
459
|
/* @__PURE__ */ w(h, {
|
|
451
|
-
label: "Formality",
|
|
460
|
+
label: P("botlit.policyDetail.formality", "Formality"),
|
|
452
461
|
children: /* @__PURE__ */ T(S, {
|
|
453
|
-
className:
|
|
454
|
-
value:
|
|
455
|
-
onChange: (e) =>
|
|
462
|
+
className: M,
|
|
463
|
+
value: G.response.formality,
|
|
464
|
+
onChange: (e) => Y("response", { formality: e.target.value }),
|
|
456
465
|
children: [/* @__PURE__ */ w("option", {
|
|
457
466
|
value: "",
|
|
458
|
-
children: "Not set"
|
|
459
|
-
}),
|
|
467
|
+
children: P("botlit.policyDetail.notSet", "Not set")
|
|
468
|
+
}), pe.map((e) => /* @__PURE__ */ w("option", {
|
|
460
469
|
value: e,
|
|
461
470
|
children: e.charAt(0) + e.slice(1).toLowerCase()
|
|
462
471
|
}, e))]
|
|
463
472
|
})
|
|
464
473
|
}),
|
|
465
474
|
/* @__PURE__ */ w(h, {
|
|
466
|
-
label: "Structure",
|
|
475
|
+
label: P("botlit.policyDetail.structure", "Structure"),
|
|
467
476
|
children: /* @__PURE__ */ T(S, {
|
|
468
|
-
className:
|
|
469
|
-
value:
|
|
470
|
-
onChange: (e) =>
|
|
477
|
+
className: M,
|
|
478
|
+
value: G.response.structure,
|
|
479
|
+
onChange: (e) => Y("response", { structure: e.target.value }),
|
|
471
480
|
children: [/* @__PURE__ */ w("option", {
|
|
472
481
|
value: "",
|
|
473
|
-
children: "Not set"
|
|
474
|
-
}),
|
|
482
|
+
children: P("botlit.policyDetail.notSet", "Not set")
|
|
483
|
+
}), me.map((e) => /* @__PURE__ */ w("option", {
|
|
475
484
|
value: e,
|
|
476
485
|
children: e.split("_").map((e) => e.charAt(0) + e.slice(1).toLowerCase()).join(" ")
|
|
477
486
|
}, e))]
|
|
@@ -480,34 +489,34 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
480
489
|
]
|
|
481
490
|
}),
|
|
482
491
|
/* @__PURE__ */ w(h, {
|
|
483
|
-
label: "Formatting Instructions",
|
|
492
|
+
label: P("botlit.policyDetail.formattingInstructions", "Formatting Instructions"),
|
|
484
493
|
children: /* @__PURE__ */ w(g, {
|
|
485
|
-
placeholder: "e.g., End every answer with a one-line summary",
|
|
486
|
-
value:
|
|
487
|
-
onChange: (e) =>
|
|
494
|
+
placeholder: P("botlit.policyDetail.exampleEndEveryAnswerWith", "e.g., End every answer with a one-line summary"),
|
|
495
|
+
value: G.response.formattingInstructions,
|
|
496
|
+
onChange: (e) => Y("response", { formattingInstructions: e.target.value })
|
|
488
497
|
})
|
|
489
498
|
}),
|
|
490
499
|
/* @__PURE__ */ T("div", {
|
|
491
500
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
492
501
|
children: [/* @__PURE__ */ w(h, {
|
|
493
|
-
label: "Max Response Tokens",
|
|
494
|
-
description: "Caps the output tokens of every model call.",
|
|
502
|
+
label: P("botlit.policyDetail.maxResponseTokens", "Max Response Tokens"),
|
|
503
|
+
description: P("botlit.policyDetail.capsTheOutputTokensOf", "Caps the output tokens of every model call."),
|
|
495
504
|
children: /* @__PURE__ */ w(g, {
|
|
496
505
|
type: "number",
|
|
497
506
|
min: 1,
|
|
498
|
-
placeholder: "No limit",
|
|
499
|
-
value:
|
|
500
|
-
onChange: (e) =>
|
|
507
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
508
|
+
value: G.response.maxResponseTokens,
|
|
509
|
+
onChange: (e) => Y("response", { maxResponseTokens: e.target.value })
|
|
501
510
|
})
|
|
502
511
|
}), /* @__PURE__ */ w(h, {
|
|
503
|
-
label: "Max Response Length (characters)",
|
|
504
|
-
description: "Longer answers are cut at a word boundary.",
|
|
512
|
+
label: P("botlit.policyDetail.maxResponseLengthCharacters", "Max Response Length (characters)"),
|
|
513
|
+
description: P("botlit.policyDetail.longerAnswersAreCutAt", "Longer answers are cut at a word boundary."),
|
|
505
514
|
children: /* @__PURE__ */ w(g, {
|
|
506
515
|
type: "number",
|
|
507
516
|
min: 1,
|
|
508
|
-
placeholder: "No limit",
|
|
509
|
-
value:
|
|
510
|
-
onChange: (e) =>
|
|
517
|
+
placeholder: P("botlit.policyDetail.noLimit", "No limit"),
|
|
518
|
+
value: G.response.maxResponseLength,
|
|
519
|
+
onChange: (e) => Y("response", { maxResponseLength: e.target.value })
|
|
511
520
|
})
|
|
512
521
|
})]
|
|
513
522
|
}),
|
|
@@ -516,37 +525,37 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
516
525
|
children: [/* @__PURE__ */ w("input", {
|
|
517
526
|
type: "checkbox",
|
|
518
527
|
id: "require-citations",
|
|
519
|
-
checked:
|
|
520
|
-
onChange: (e) =>
|
|
528
|
+
checked: G.response.requireCitations,
|
|
529
|
+
onChange: (e) => Y("response", { requireCitations: e.target.checked }),
|
|
521
530
|
className: "mt-1 h-4 w-4"
|
|
522
531
|
}), /* @__PURE__ */ T("label", {
|
|
523
532
|
htmlFor: "require-citations",
|
|
524
533
|
className: "text-sm",
|
|
525
534
|
children: [/* @__PURE__ */ w("span", {
|
|
526
535
|
className: "font-medium",
|
|
527
|
-
children: "Require citations"
|
|
536
|
+
children: P("botlit.policyDetail.requireCitations", "Require citations")
|
|
528
537
|
}), /* @__PURE__ */ w("span", {
|
|
529
538
|
className: "block text-text-secondary",
|
|
530
|
-
children: "When knowledge-base passages ground an answer and the answer cites none of them, either add the passage references or refuse the answer."
|
|
539
|
+
children: P("botlit.policyDetail.whenKnowledgeBasePassagesGround", "When knowledge-base passages ground an answer and the answer cites none of them, either add the passage references or refuse the answer.")
|
|
531
540
|
})]
|
|
532
541
|
})]
|
|
533
542
|
}),
|
|
534
|
-
|
|
535
|
-
label: "When Citations Are Missing",
|
|
543
|
+
G.response.requireCitations && /* @__PURE__ */ w(h, {
|
|
544
|
+
label: P("botlit.policyDetail.whenCitationsAreMissing", "When Citations Are Missing"),
|
|
536
545
|
children: /* @__PURE__ */ w(S, {
|
|
537
|
-
className:
|
|
538
|
-
value:
|
|
539
|
-
onChange: (e) =>
|
|
540
|
-
children:
|
|
546
|
+
className: M,
|
|
547
|
+
value: G.response.citationMode,
|
|
548
|
+
onChange: (e) => Y("response", { citationMode: e.target.value }),
|
|
549
|
+
children: ce.map((e) => /* @__PURE__ */ w("option", {
|
|
541
550
|
value: e,
|
|
542
|
-
children: e === "APPEND" ? "Add the source references" : "Refuse the answer"
|
|
551
|
+
children: e === "APPEND" ? P("botlit.policyDetail.addTheSourceReferences", "Add the source references") : P("botlit.policyDetail.refuseTheAnswer", "Refuse the answer")
|
|
543
552
|
}, e))
|
|
544
553
|
})
|
|
545
554
|
}),
|
|
546
|
-
/* @__PURE__ */ w(
|
|
547
|
-
value:
|
|
555
|
+
/* @__PURE__ */ w(Me, {
|
|
556
|
+
value: G.appliesToAgentIds,
|
|
548
557
|
onChange: (e) => {
|
|
549
|
-
|
|
558
|
+
J(null), K((t) => ({
|
|
550
559
|
...t,
|
|
551
560
|
appliesToAgentIds: e
|
|
552
561
|
}));
|
|
@@ -556,112 +565,115 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
556
565
|
})] }),
|
|
557
566
|
e === "DATA" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
558
567
|
className: "flex items-center gap-2",
|
|
559
|
-
children: [/* @__PURE__ */ w(
|
|
560
|
-
}), /* @__PURE__ */ w(d, { children: "Masked values are replaced before any model, tool or log sees them. Provider, region, tool and agent rules refuse a turn that would share data outside them." })] }), /* @__PURE__ */ T(u, {
|
|
568
|
+
children: [/* @__PURE__ */ w(Ce, { size: 18 }), P("botlit.policyDetail.dataPolicyConfiguration", "Data Policy Configuration")]
|
|
569
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.maskedValuesAreReplacedBefore", "Masked values are replaced before any model, tool or log sees them. Provider, region, tool and agent rules refuse a turn that would share data outside them.") })] }), /* @__PURE__ */ T(u, {
|
|
561
570
|
className: "space-y-4",
|
|
562
571
|
children: [
|
|
563
572
|
/* @__PURE__ */ w(h, {
|
|
564
|
-
label: "Mask",
|
|
573
|
+
label: P("botlit.policyDetail.mask", "Mask"),
|
|
565
574
|
children: /* @__PURE__ */ w("div", {
|
|
566
575
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-1",
|
|
567
|
-
children:
|
|
576
|
+
children: fe.map((e) => /* @__PURE__ */ T("label", {
|
|
568
577
|
className: "flex items-center gap-2 text-sm",
|
|
569
578
|
children: [/* @__PURE__ */ w("input", {
|
|
570
579
|
type: "checkbox",
|
|
571
580
|
className: "h-4 w-4",
|
|
572
|
-
checked:
|
|
573
|
-
onChange: (t) =>
|
|
574
|
-
}), /* @__PURE__ */ w("span", { children:
|
|
581
|
+
checked: G.data.maskPii.includes(e),
|
|
582
|
+
onChange: (t) => Y("data", { maskPii: N(G.data.maskPii, e, t.target.checked) })
|
|
583
|
+
}), /* @__PURE__ */ w("span", { children: Ne[e] })]
|
|
575
584
|
}, e))
|
|
576
585
|
})
|
|
577
586
|
}),
|
|
578
587
|
/* @__PURE__ */ w(h, {
|
|
579
|
-
label: "Custom Masking Patterns",
|
|
580
|
-
description: "One regular expression per line; matches are replaced with [REDACTED].",
|
|
588
|
+
label: P("botlit.policyDetail.customMaskingPatterns", "Custom Masking Patterns"),
|
|
589
|
+
description: P("botlit.policyDetail.oneRegularExpressionPerLine2", "One regular expression per line; matches are replaced with [REDACTED]."),
|
|
581
590
|
children: /* @__PURE__ */ w(_, {
|
|
582
591
|
rows: 3,
|
|
583
|
-
placeholder: "e.g., EMP-\\d{5}",
|
|
584
|
-
value:
|
|
585
|
-
onChange: (e) =>
|
|
592
|
+
placeholder: P("botlit.policyDetail.exampleMaskPattern", "e.g., EMP-\\d{5}"),
|
|
593
|
+
value: G.data.maskPatterns,
|
|
594
|
+
onChange: (e) => Y("data", { maskPatterns: e.target.value })
|
|
586
595
|
})
|
|
587
596
|
}),
|
|
588
597
|
/* @__PURE__ */ w(h, {
|
|
589
|
-
label: "Allowed Regions",
|
|
590
|
-
description: "Comma-separated regions a model provider may process data in; end an entry with * for a prefix. A provider whose region is not recorded is refused.",
|
|
598
|
+
label: P("botlit.policyDetail.allowedRegions", "Allowed Regions"),
|
|
599
|
+
description: P("botlit.policyDetail.commaSeparatedRegionsAModel", "Comma-separated regions a model provider may process data in; end an entry with * for a prefix. A provider whose region is not recorded is refused."),
|
|
591
600
|
children: /* @__PURE__ */ w(g, {
|
|
592
|
-
placeholder: "e.g., ap-south-1, eu-*",
|
|
593
|
-
value:
|
|
594
|
-
onChange: (e) =>
|
|
601
|
+
placeholder: P("botlit.policyDetail.exampleApSouth1Eu", "e.g., ap-south-1, eu-*"),
|
|
602
|
+
value: G.data.allowedRegions,
|
|
603
|
+
onChange: (e) => Y("data", { allowedRegions: e.target.value })
|
|
595
604
|
})
|
|
596
605
|
}),
|
|
597
606
|
[
|
|
598
607
|
[
|
|
599
608
|
"restrictProviders",
|
|
600
609
|
"allowedProviders",
|
|
601
|
-
"model providers",
|
|
602
|
-
"
|
|
610
|
+
P("botlit.policyDetail.restrictProviders", "Only share with these model providers"),
|
|
611
|
+
P("botlit.policyDetail.allowedProviders", "Allowed Providers"),
|
|
612
|
+
P("botlit.policyDetail.exampleProviderRestriction", "e.g., AWS_BEDROCK; comma-separated, empty = none")
|
|
603
613
|
],
|
|
604
614
|
[
|
|
605
615
|
"restrictMcpServers",
|
|
606
616
|
"allowedMcpServers",
|
|
607
|
-
"MCP servers",
|
|
608
|
-
"
|
|
617
|
+
P("botlit.policyDetail.restrictMcpServers", "Only share with these MCP servers"),
|
|
618
|
+
P("botlit.policyDetail.allowedMcpServers", "Allowed MCP servers"),
|
|
619
|
+
P("botlit.policyDetail.exampleServerRestriction", "Connection name, id or host; comma-separated, empty = none")
|
|
609
620
|
],
|
|
610
621
|
[
|
|
611
622
|
"restrictA2AAgents",
|
|
612
623
|
"allowedA2AAgents",
|
|
613
|
-
"agents to delegate to",
|
|
614
|
-
"
|
|
624
|
+
P("botlit.policyDetail.restrictDelegation", "Only share with these agents to delegate to"),
|
|
625
|
+
P("botlit.policyDetail.allowedDelegates", "Allowed agents to delegate to"),
|
|
626
|
+
P("botlit.policyDetail.exampleDelegateRestriction", "Agent name or id; comma-separated, empty = none")
|
|
615
627
|
]
|
|
616
|
-
].map(([e, t, n, r]) => /* @__PURE__ */ T("div", {
|
|
628
|
+
].map(([e, t, n, r, i]) => /* @__PURE__ */ T("div", {
|
|
617
629
|
className: "space-y-2",
|
|
618
630
|
children: [/* @__PURE__ */ T("label", {
|
|
619
631
|
className: "flex items-center gap-2 text-sm",
|
|
620
632
|
children: [/* @__PURE__ */ w("input", {
|
|
621
633
|
type: "checkbox",
|
|
622
634
|
className: "h-4 w-4",
|
|
623
|
-
checked:
|
|
624
|
-
onChange: (t) =>
|
|
625
|
-
}), /* @__PURE__ */
|
|
635
|
+
checked: G.data[e],
|
|
636
|
+
onChange: (t) => Y("data", { [e]: t.target.checked })
|
|
637
|
+
}), /* @__PURE__ */ w("span", {
|
|
626
638
|
className: "font-medium",
|
|
627
|
-
children:
|
|
639
|
+
children: n
|
|
628
640
|
})]
|
|
629
|
-
}),
|
|
630
|
-
"aria-label":
|
|
631
|
-
placeholder:
|
|
632
|
-
value:
|
|
633
|
-
onChange: (e) =>
|
|
641
|
+
}), G.data[e] && /* @__PURE__ */ w(g, {
|
|
642
|
+
"aria-label": r,
|
|
643
|
+
placeholder: i,
|
|
644
|
+
value: G.data[t],
|
|
645
|
+
onChange: (e) => Y("data", { [t]: e.target.value })
|
|
634
646
|
})]
|
|
635
647
|
}, e)),
|
|
636
648
|
/* @__PURE__ */ w(h, {
|
|
637
|
-
label: "Allowed Knowledge Classifications",
|
|
638
|
-
description: "Knowledge bases are classified by metadata.classification. Leave all unchecked to not restrict retrieval.",
|
|
649
|
+
label: P("botlit.policyDetail.allowedKnowledgeClassifications", "Allowed Knowledge Classifications"),
|
|
650
|
+
description: P("botlit.policyDetail.knowledgeBasesAreClassifiedBy", "Knowledge bases are classified by metadata.classification. Leave all unchecked to not restrict retrieval."),
|
|
639
651
|
children: /* @__PURE__ */ w("div", {
|
|
640
652
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-1",
|
|
641
|
-
children:
|
|
653
|
+
children: de.map((e) => /* @__PURE__ */ T("label", {
|
|
642
654
|
className: "flex items-center gap-2 text-sm",
|
|
643
655
|
children: [/* @__PURE__ */ w("input", {
|
|
644
656
|
type: "checkbox",
|
|
645
657
|
className: "h-4 w-4",
|
|
646
|
-
checked:
|
|
647
|
-
onChange: (t) =>
|
|
658
|
+
checked: G.data.allowedClassifications.includes(e),
|
|
659
|
+
onChange: (t) => Y("data", { allowedClassifications: N(G.data.allowedClassifications, e, t.target.checked) })
|
|
648
660
|
}), /* @__PURE__ */ w("span", { children: e.charAt(0) + e.slice(1).toLowerCase() })]
|
|
649
661
|
}, e))
|
|
650
662
|
})
|
|
651
663
|
}),
|
|
652
664
|
/* @__PURE__ */ w(h, {
|
|
653
|
-
label: "Blocked Knowledge Labels",
|
|
654
|
-
description: "Comma-separated; knowledge bases with any of these labels (metadata.labels) are never retrieved.",
|
|
665
|
+
label: P("botlit.policyDetail.blockedKnowledgeLabels", "Blocked Knowledge Labels"),
|
|
666
|
+
description: P("botlit.policyDetail.commaSeparatedKnowledgeBasesWith", "Comma-separated; knowledge bases with any of these labels (metadata.labels) are never retrieved."),
|
|
655
667
|
children: /* @__PURE__ */ w(g, {
|
|
656
|
-
placeholder: "e.g., hr, legal",
|
|
657
|
-
value:
|
|
658
|
-
onChange: (e) =>
|
|
668
|
+
placeholder: P("botlit.policyDetail.exampleHrLegal", "e.g., hr, legal"),
|
|
669
|
+
value: G.data.blockedLabels,
|
|
670
|
+
onChange: (e) => Y("data", { blockedLabels: e.target.value })
|
|
659
671
|
})
|
|
660
672
|
}),
|
|
661
|
-
/* @__PURE__ */ w(
|
|
662
|
-
value:
|
|
673
|
+
/* @__PURE__ */ w(Me, {
|
|
674
|
+
value: G.appliesToAgentIds,
|
|
663
675
|
onChange: (e) => {
|
|
664
|
-
|
|
676
|
+
J(null), K((t) => ({
|
|
665
677
|
...t,
|
|
666
678
|
appliesToAgentIds: e
|
|
667
679
|
}));
|
|
@@ -671,88 +683,88 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
671
683
|
})] }),
|
|
672
684
|
e === "RETENTION" && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ T(p, {
|
|
673
685
|
className: "flex items-center gap-2",
|
|
674
|
-
children: [/* @__PURE__ */ w(
|
|
675
|
-
}), /* @__PURE__ */ w(d, { children: "A scheduled job erases content older than these periods every hour. With several active retention policies the shortest period applies. Leave a field empty to keep that content for the life of the workspace." })] }), /* @__PURE__ */ w(u, {
|
|
686
|
+
children: [/* @__PURE__ */ w(k, { size: 18 }), P("botlit.policyDetail.retentionPolicyConfiguration", "Retention Policy Configuration")]
|
|
687
|
+
}), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.aScheduledJobErasesContent", "A scheduled job erases content older than these periods every hour. With several active retention policies the shortest period applies. Leave a field empty to keep that content for the life of the workspace.") })] }), /* @__PURE__ */ w(u, {
|
|
676
688
|
className: "space-y-4",
|
|
677
689
|
children: /* @__PURE__ */ T("div", {
|
|
678
690
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
679
691
|
children: [/* @__PURE__ */ w(h, {
|
|
680
|
-
label: "Execution Data Retention (days)",
|
|
681
|
-
description: "Inputs, outputs and errors of finished runs and agent-to-agent messages are erased this many days after the run ended; 0 keeps none. Run metrics stay.",
|
|
692
|
+
label: P("botlit.policyDetail.executionDataRetentionDays", "Execution Data Retention (days)"),
|
|
693
|
+
description: P("botlit.policyDetail.inputsOutputsAndErrorsOf", "Inputs, outputs and errors of finished runs and agent-to-agent messages are erased this many days after the run ended; 0 keeps none. Run metrics stay."),
|
|
682
694
|
children: /* @__PURE__ */ w(g, {
|
|
683
695
|
type: "number",
|
|
684
696
|
min: 0,
|
|
685
697
|
max: 3650,
|
|
686
|
-
placeholder: "Keep",
|
|
687
|
-
value:
|
|
688
|
-
onChange: (e) =>
|
|
698
|
+
placeholder: P("botlit.policyDetail.keep", "Keep"),
|
|
699
|
+
value: G.retention.executionDataRetentionDays,
|
|
700
|
+
onChange: (e) => Y("retention", { executionDataRetentionDays: e.target.value })
|
|
689
701
|
})
|
|
690
702
|
}), /* @__PURE__ */ w(h, {
|
|
691
|
-
label: "Conversation Retention (days)",
|
|
692
|
-
description: "Assistant conversations older than this are retired and erased.",
|
|
703
|
+
label: P("botlit.policyDetail.conversationRetentionDays", "Conversation Retention (days)"),
|
|
704
|
+
description: P("botlit.policyDetail.assistantConversationsOlderThanThis", "Assistant conversations older than this are retired and erased."),
|
|
693
705
|
children: /* @__PURE__ */ w(g, {
|
|
694
706
|
type: "number",
|
|
695
707
|
min: 1,
|
|
696
708
|
max: 3650,
|
|
697
|
-
placeholder: "Keep",
|
|
698
|
-
value:
|
|
699
|
-
onChange: (e) =>
|
|
709
|
+
placeholder: P("botlit.policyDetail.keep", "Keep"),
|
|
710
|
+
value: G.retention.conversationRetentionDays,
|
|
711
|
+
onChange: (e) => Y("retention", { conversationRetentionDays: e.target.value })
|
|
700
712
|
})
|
|
701
713
|
})]
|
|
702
714
|
})
|
|
703
715
|
})] })
|
|
704
|
-
] }),
|
|
705
|
-
if (!
|
|
706
|
-
|
|
707
|
-
name:
|
|
708
|
-
description:
|
|
709
|
-
visibility: y(
|
|
716
|
+
] }), et = () => {
|
|
717
|
+
if (!R) return;
|
|
718
|
+
W({
|
|
719
|
+
name: R.name,
|
|
720
|
+
description: R.description || "",
|
|
721
|
+
visibility: y(R.visibility, Ae, "PRIVATE")
|
|
710
722
|
});
|
|
711
|
-
let e =
|
|
712
|
-
|
|
723
|
+
let e = _e(y(R.type, j, "CONTENT"), R.config);
|
|
724
|
+
K(e), qe(e), J(null), B(!0);
|
|
713
725
|
};
|
|
714
|
-
if (
|
|
715
|
-
title: "Create Policy",
|
|
716
|
-
description: "Define guardrails and constraints for your AI agents",
|
|
726
|
+
if (n) return /* @__PURE__ */ w(c, {
|
|
727
|
+
title: P("botlit.policyDetail.createPolicy", "Create Policy"),
|
|
728
|
+
description: P("botlit.policyDetail.defineGuardrailsAndConstraintsFor", "Define guardrails and constraints for your AI agents"),
|
|
717
729
|
actions: /* @__PURE__ */ T("div", {
|
|
718
730
|
className: "flex gap-2",
|
|
719
731
|
children: [/* @__PURE__ */ w(m, {
|
|
720
732
|
variant: "outline",
|
|
721
|
-
onClick: () =>
|
|
722
|
-
children: "Cancel"
|
|
733
|
+
onClick: () => L("policies"),
|
|
734
|
+
children: P("botlit.policyDetail.cancel", "Cancel")
|
|
723
735
|
}), /* @__PURE__ */ w(m, {
|
|
724
|
-
leftIcon: /* @__PURE__ */ w(
|
|
725
|
-
onClick:
|
|
726
|
-
isLoading:
|
|
727
|
-
disabled: !
|
|
728
|
-
children: "Create"
|
|
736
|
+
leftIcon: /* @__PURE__ */ w(Ee, { size: 16 }),
|
|
737
|
+
onClick: Ye,
|
|
738
|
+
isLoading: ze,
|
|
739
|
+
disabled: !V.name,
|
|
740
|
+
children: P("botlit.policyDetail.create", "Create")
|
|
729
741
|
})]
|
|
730
742
|
}),
|
|
731
743
|
children: /* @__PURE__ */ T("div", {
|
|
732
744
|
className: "max-w-2xl space-y-6",
|
|
733
745
|
children: [
|
|
734
|
-
/* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(f, { children: /* @__PURE__ */ w(p, { children: "Basic Information" }) }), /* @__PURE__ */ T(u, {
|
|
746
|
+
/* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(f, { children: /* @__PURE__ */ w(p, { children: P("botlit.policyDetail.basicInformation", "Basic Information") }) }), /* @__PURE__ */ T(u, {
|
|
735
747
|
className: "space-y-4",
|
|
736
748
|
children: [
|
|
737
749
|
/* @__PURE__ */ w(h, {
|
|
738
|
-
label: "Policy Name",
|
|
750
|
+
label: P("botlit.policyDetail.policyName", "Policy Name"),
|
|
739
751
|
required: !0,
|
|
740
752
|
children: /* @__PURE__ */ w(g, {
|
|
741
|
-
placeholder: "e.g., Production Content Policy",
|
|
742
|
-
value:
|
|
743
|
-
onChange: (e) =>
|
|
744
|
-
...
|
|
753
|
+
placeholder: P("botlit.policyDetail.exampleProductionContentPolicy", "e.g., Production Content Policy"),
|
|
754
|
+
value: V.name,
|
|
755
|
+
onChange: (e) => H({
|
|
756
|
+
...V,
|
|
745
757
|
name: e.target.value
|
|
746
758
|
})
|
|
747
759
|
})
|
|
748
760
|
}),
|
|
749
761
|
/* @__PURE__ */ w(h, {
|
|
750
|
-
label: "Description",
|
|
762
|
+
label: P("botlit.policyDetail.description", "Description"),
|
|
751
763
|
children: /* @__PURE__ */ w(_, {
|
|
752
|
-
placeholder: "What does this policy enforce?",
|
|
753
|
-
value:
|
|
754
|
-
onChange: (e) =>
|
|
755
|
-
...
|
|
764
|
+
placeholder: P("botlit.policyDetail.whatDoesThisPolicyEnforce", "What does this policy enforce?"),
|
|
765
|
+
value: V.description,
|
|
766
|
+
onChange: (e) => H({
|
|
767
|
+
...V,
|
|
756
768
|
description: e.target.value
|
|
757
769
|
}),
|
|
758
770
|
rows: 3
|
|
@@ -761,44 +773,44 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
761
773
|
/* @__PURE__ */ T("div", {
|
|
762
774
|
className: "grid grid-cols-2 gap-4",
|
|
763
775
|
children: [/* @__PURE__ */ w(h, {
|
|
764
|
-
label: "Policy Type",
|
|
776
|
+
label: P("botlit.policyDetail.policyType", "Policy Type"),
|
|
765
777
|
required: !0,
|
|
766
778
|
children: /* @__PURE__ */ w(S, {
|
|
767
|
-
className:
|
|
768
|
-
value:
|
|
779
|
+
className: M,
|
|
780
|
+
value: V.type,
|
|
769
781
|
onChange: (e) => {
|
|
770
782
|
let t = e.target.value;
|
|
771
|
-
b(t) && (
|
|
772
|
-
...
|
|
783
|
+
b(t) && (J(null), H({
|
|
784
|
+
...V,
|
|
773
785
|
type: t
|
|
774
786
|
}));
|
|
775
787
|
},
|
|
776
|
-
children:
|
|
788
|
+
children: le.map((e) => /* @__PURE__ */ w("option", {
|
|
777
789
|
value: e,
|
|
778
|
-
children:
|
|
790
|
+
children: F[e]
|
|
779
791
|
}, e))
|
|
780
792
|
})
|
|
781
793
|
}), /* @__PURE__ */ w(h, {
|
|
782
|
-
label: "Visibility",
|
|
794
|
+
label: P("botlit.policyDetail.visibility", "Visibility"),
|
|
783
795
|
children: /* @__PURE__ */ T(S, {
|
|
784
796
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
785
|
-
value:
|
|
786
|
-
onChange: (e) =>
|
|
787
|
-
...
|
|
797
|
+
value: V.visibility,
|
|
798
|
+
onChange: (e) => H({
|
|
799
|
+
...V,
|
|
788
800
|
visibility: e.target.value
|
|
789
801
|
}),
|
|
790
802
|
children: [
|
|
791
803
|
/* @__PURE__ */ w("option", {
|
|
792
804
|
value: "PRIVATE",
|
|
793
|
-
children: "Private"
|
|
805
|
+
children: P("botlit.policyDetail.private", "Private")
|
|
794
806
|
}),
|
|
795
807
|
/* @__PURE__ */ w("option", {
|
|
796
808
|
value: "WORKSPACE",
|
|
797
|
-
children: "Workspace"
|
|
809
|
+
children: P("botlit.policyDetail.workspace", "Workspace")
|
|
798
810
|
}),
|
|
799
811
|
/* @__PURE__ */ w("option", {
|
|
800
812
|
value: "PUBLIC",
|
|
801
|
-
children: "Public"
|
|
813
|
+
children: P("botlit.policyDetail.public", "Public")
|
|
802
814
|
})
|
|
803
815
|
]
|
|
804
816
|
})
|
|
@@ -806,11 +818,11 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
806
818
|
})
|
|
807
819
|
]
|
|
808
820
|
})] }),
|
|
809
|
-
|
|
810
|
-
|
|
821
|
+
$e(V.type),
|
|
822
|
+
q && /* @__PURE__ */ w("p", {
|
|
811
823
|
className: "text-sm text-status-error-text",
|
|
812
824
|
role: "alert",
|
|
813
|
-
children:
|
|
825
|
+
children: q
|
|
814
826
|
}),
|
|
815
827
|
/* @__PURE__ */ w(l, { children: /* @__PURE__ */ w(u, {
|
|
816
828
|
className: "pt-6",
|
|
@@ -819,18 +831,18 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
819
831
|
children: [/* @__PURE__ */ w("input", {
|
|
820
832
|
type: "checkbox",
|
|
821
833
|
id: "activate-on-create",
|
|
822
|
-
checked:
|
|
823
|
-
onChange: (e) =>
|
|
834
|
+
checked: X,
|
|
835
|
+
onChange: (e) => Je(e.target.checked),
|
|
824
836
|
className: "mt-1 h-4 w-4"
|
|
825
837
|
}), /* @__PURE__ */ T("label", {
|
|
826
838
|
htmlFor: "activate-on-create",
|
|
827
839
|
className: "text-sm",
|
|
828
840
|
children: [/* @__PURE__ */ w("span", {
|
|
829
841
|
className: "font-medium",
|
|
830
|
-
children: "Enforce immediately"
|
|
842
|
+
children: P("botlit.policyDetail.enforceImmediately", "Enforce immediately")
|
|
831
843
|
}), /* @__PURE__ */ w("span", {
|
|
832
844
|
className: "block text-text-secondary",
|
|
833
|
-
children: "Only active policies are enforced. Leave unchecked to save this policy as a draft and activate it later."
|
|
845
|
+
children: P("botlit.policyDetail.onlyActivePoliciesAreEnforced", "Only active policies are enforced. Leave unchecked to save this policy as a draft and activate it later.")
|
|
834
846
|
})]
|
|
835
847
|
})]
|
|
836
848
|
})
|
|
@@ -838,102 +850,102 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
838
850
|
]
|
|
839
851
|
})
|
|
840
852
|
});
|
|
841
|
-
if (
|
|
842
|
-
title: "Loading...",
|
|
853
|
+
if (Ie) return /* @__PURE__ */ w(c, {
|
|
854
|
+
title: P("botlit.policyDetail.loading", "Loading..."),
|
|
843
855
|
children: /* @__PURE__ */ w("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
844
856
|
});
|
|
845
|
-
if (!
|
|
846
|
-
title: "Policy Not Found",
|
|
847
|
-
children: /* @__PURE__ */ w(
|
|
857
|
+
if (!R) return /* @__PURE__ */ w(c, {
|
|
858
|
+
title: P("botlit.policyDetail.policyNotFound", "Policy Not Found"),
|
|
859
|
+
children: /* @__PURE__ */ w(ee, {
|
|
848
860
|
kind: "not-found",
|
|
849
861
|
illustration: "empty-generic",
|
|
850
|
-
title: "Policy Not Found",
|
|
851
|
-
description: "This policy doesn't exist.",
|
|
862
|
+
title: P("botlit.policyDetail.policyNotFound", "Policy Not Found"),
|
|
863
|
+
description: P("botlit.policyDetail.thisPolicyDoesnTExist", "This policy doesn't exist."),
|
|
852
864
|
action: /* @__PURE__ */ w(m, {
|
|
853
|
-
onClick: () =>
|
|
854
|
-
children: "Back to Policies"
|
|
865
|
+
onClick: () => L("policies"),
|
|
866
|
+
children: P("botlit.policyDetail.backToPolicies", "Back to Policies")
|
|
855
867
|
})
|
|
856
868
|
})
|
|
857
869
|
});
|
|
858
|
-
let Q = y(
|
|
859
|
-
return /* @__PURE__ */ w(
|
|
870
|
+
let Q = y(R.type, j, "CONTENT"), $ = ve(Q, R.config);
|
|
871
|
+
return /* @__PURE__ */ w(c, {
|
|
860
872
|
title: /* @__PURE__ */ T("div", {
|
|
861
873
|
className: "flex items-center gap-3",
|
|
862
874
|
children: [
|
|
863
875
|
/* @__PURE__ */ w(m, {
|
|
864
876
|
variant: "ghost",
|
|
865
877
|
size: "icon",
|
|
866
|
-
onClick: () =>
|
|
867
|
-
children: /* @__PURE__ */ w(
|
|
878
|
+
onClick: () => L("policies"),
|
|
879
|
+
children: /* @__PURE__ */ w(xe, { size: 20 })
|
|
868
880
|
}),
|
|
869
881
|
/* @__PURE__ */ w("div", {
|
|
870
882
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
871
|
-
children: /* @__PURE__ */ w(
|
|
883
|
+
children: /* @__PURE__ */ w(je, { type: Q })
|
|
872
884
|
}),
|
|
873
885
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
874
886
|
className: "flex items-center gap-2",
|
|
875
|
-
children: [/* @__PURE__ */ w("span", { children:
|
|
887
|
+
children: [/* @__PURE__ */ w("span", { children: R.name }), /* @__PURE__ */ w(ne, { status: R.status })]
|
|
876
888
|
}), /* @__PURE__ */ w("p", {
|
|
877
889
|
className: "text-sm font-normal text-text-secondary",
|
|
878
|
-
children:
|
|
890
|
+
children: R.description
|
|
879
891
|
})] })
|
|
880
892
|
]
|
|
881
893
|
}),
|
|
882
894
|
actions: /* @__PURE__ */ w("div", {
|
|
883
895
|
className: "flex gap-2",
|
|
884
|
-
children:
|
|
896
|
+
children: z ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(m, {
|
|
885
897
|
variant: "outline",
|
|
886
|
-
onClick: () =>
|
|
887
|
-
children: "Cancel"
|
|
898
|
+
onClick: () => B(!1),
|
|
899
|
+
children: P("botlit.policyDetail.cancel", "Cancel")
|
|
888
900
|
}), /* @__PURE__ */ w(m, {
|
|
889
|
-
leftIcon: /* @__PURE__ */ w(
|
|
890
|
-
onClick:
|
|
891
|
-
isLoading:
|
|
892
|
-
disabled: !
|
|
893
|
-
children: "Save Changes"
|
|
901
|
+
leftIcon: /* @__PURE__ */ w(Ee, { size: 16 }),
|
|
902
|
+
onClick: Xe,
|
|
903
|
+
isLoading: Ve,
|
|
904
|
+
disabled: !U.name,
|
|
905
|
+
children: P("botlit.policyDetail.saveChanges", "Save Changes")
|
|
894
906
|
})] }) : /* @__PURE__ */ T(C, { children: [
|
|
895
|
-
/* @__PURE__ */ w(
|
|
896
|
-
permission:
|
|
907
|
+
/* @__PURE__ */ w(s, {
|
|
908
|
+
permission: o.POLICY_UPDATE,
|
|
897
909
|
children: /* @__PURE__ */ w(m, {
|
|
898
910
|
variant: Z ? "outline" : "default",
|
|
899
|
-
leftIcon: /* @__PURE__ */ w(
|
|
900
|
-
onClick: () => void
|
|
901
|
-
isLoading:
|
|
902
|
-
children: Z ? "Deactivate" : "Activate"
|
|
911
|
+
leftIcon: /* @__PURE__ */ w(Te, { size: 16 }),
|
|
912
|
+
onClick: () => void Qe(),
|
|
913
|
+
isLoading: Ve,
|
|
914
|
+
children: Z ? P("botlit.policyDetail.deactivate", "Deactivate") : P("botlit.policyDetail.activate", "Activate")
|
|
903
915
|
})
|
|
904
916
|
}),
|
|
905
|
-
/* @__PURE__ */ w(
|
|
906
|
-
permission:
|
|
917
|
+
/* @__PURE__ */ w(s, {
|
|
918
|
+
permission: o.POLICY_UPDATE,
|
|
907
919
|
children: /* @__PURE__ */ w(m, {
|
|
908
920
|
variant: "outline",
|
|
909
|
-
leftIcon: /* @__PURE__ */ w(
|
|
910
|
-
onClick:
|
|
911
|
-
children: "Edit"
|
|
921
|
+
leftIcon: /* @__PURE__ */ w(we, { size: 16 }),
|
|
922
|
+
onClick: et,
|
|
923
|
+
children: P("botlit.policyDetail.edit", "Edit")
|
|
912
924
|
})
|
|
913
925
|
}),
|
|
914
|
-
|
|
926
|
+
We ? /* @__PURE__ */ T("div", {
|
|
915
927
|
className: "flex gap-2",
|
|
916
928
|
children: [/* @__PURE__ */ w(m, {
|
|
917
929
|
variant: "outline",
|
|
918
930
|
size: "sm",
|
|
919
|
-
onClick: () =>
|
|
920
|
-
children: "Cancel"
|
|
931
|
+
onClick: () => Ge(!1),
|
|
932
|
+
children: P("botlit.policyDetail.cancel", "Cancel")
|
|
921
933
|
}), /* @__PURE__ */ w(m, {
|
|
922
934
|
variant: "destructive",
|
|
923
935
|
size: "sm",
|
|
924
936
|
onClick: () => {
|
|
925
|
-
|
|
937
|
+
i("medium"), Ze();
|
|
926
938
|
},
|
|
927
|
-
isLoading:
|
|
928
|
-
children: "Confirm Delete"
|
|
939
|
+
isLoading: Ue,
|
|
940
|
+
children: P("botlit.policyDetail.confirmDelete", "Confirm Delete")
|
|
929
941
|
})]
|
|
930
|
-
}) : /* @__PURE__ */ w(
|
|
931
|
-
permission:
|
|
942
|
+
}) : /* @__PURE__ */ w(s, {
|
|
943
|
+
permission: o.POLICY_DELETE,
|
|
932
944
|
children: /* @__PURE__ */ w(m, {
|
|
933
945
|
variant: "destructive",
|
|
934
|
-
leftIcon: /* @__PURE__ */ w(
|
|
935
|
-
onClick: () =>
|
|
936
|
-
children: "Delete"
|
|
946
|
+
leftIcon: /* @__PURE__ */ w(k, { size: 16 }),
|
|
947
|
+
onClick: () => Ge(!0),
|
|
948
|
+
children: P("botlit.policyDetail.delete", "Delete")
|
|
937
949
|
})
|
|
938
950
|
})
|
|
939
951
|
] })
|
|
@@ -941,71 +953,71 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
941
953
|
children: /* @__PURE__ */ T("div", {
|
|
942
954
|
className: "space-y-6",
|
|
943
955
|
children: [
|
|
944
|
-
/* @__PURE__ */ w(
|
|
945
|
-
icon: /* @__PURE__ */ w(
|
|
946
|
-
children: "This is a single guardrail and its rules. Review and tune exactly what it enforces — what content to block, which tools are allowed, the spend or rate limits it applies — then attach it to the agents and bots that should obey it. Policies are how you keep agents safe, compliant and within budget."
|
|
956
|
+
/* @__PURE__ */ w(ye, {
|
|
957
|
+
icon: /* @__PURE__ */ w(Oe, { size: 18 }),
|
|
958
|
+
children: P("botlit.policyDetail.thisIsASingleGuardrail", "This is a single guardrail and its rules. Review and tune exactly what it enforces — what content to block, which tools are allowed, the spend or rate limits it applies — then attach it to the agents and bots that should obey it. Policies are how you keep agents safe, compliant and within budget.")
|
|
947
959
|
}),
|
|
948
|
-
|
|
960
|
+
z && /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(f, { children: /* @__PURE__ */ w(p, { children: P("botlit.policyDetail.editPolicy", "Edit Policy") }) }), /* @__PURE__ */ T(u, {
|
|
949
961
|
className: "space-y-4",
|
|
950
962
|
children: [
|
|
951
963
|
/* @__PURE__ */ w(h, {
|
|
952
|
-
label: "Policy Name",
|
|
964
|
+
label: P("botlit.policyDetail.policyName", "Policy Name"),
|
|
953
965
|
required: !0,
|
|
954
966
|
children: /* @__PURE__ */ w(g, {
|
|
955
|
-
value:
|
|
956
|
-
onChange: (e) =>
|
|
957
|
-
...
|
|
967
|
+
value: U.name,
|
|
968
|
+
onChange: (e) => W({
|
|
969
|
+
...U,
|
|
958
970
|
name: e.target.value
|
|
959
971
|
})
|
|
960
972
|
})
|
|
961
973
|
}),
|
|
962
974
|
/* @__PURE__ */ w(h, {
|
|
963
|
-
label: "Description",
|
|
975
|
+
label: P("botlit.policyDetail.description", "Description"),
|
|
964
976
|
children: /* @__PURE__ */ w(_, {
|
|
965
|
-
value:
|
|
966
|
-
onChange: (e) =>
|
|
967
|
-
...
|
|
977
|
+
value: U.description,
|
|
978
|
+
onChange: (e) => W({
|
|
979
|
+
...U,
|
|
968
980
|
description: e.target.value
|
|
969
981
|
}),
|
|
970
982
|
rows: 3
|
|
971
983
|
})
|
|
972
984
|
}),
|
|
973
985
|
/* @__PURE__ */ w(h, {
|
|
974
|
-
label: "Visibility",
|
|
986
|
+
label: P("botlit.policyDetail.visibility", "Visibility"),
|
|
975
987
|
children: /* @__PURE__ */ T(S, {
|
|
976
|
-
className:
|
|
977
|
-
value:
|
|
978
|
-
onChange: (e) =>
|
|
979
|
-
...
|
|
988
|
+
className: M,
|
|
989
|
+
value: U.visibility,
|
|
990
|
+
onChange: (e) => W({
|
|
991
|
+
...U,
|
|
980
992
|
visibility: e.target.value
|
|
981
993
|
}),
|
|
982
994
|
children: [
|
|
983
995
|
/* @__PURE__ */ w("option", {
|
|
984
996
|
value: "PRIVATE",
|
|
985
|
-
children: "Private"
|
|
997
|
+
children: P("botlit.policyDetail.private", "Private")
|
|
986
998
|
}),
|
|
987
999
|
/* @__PURE__ */ w("option", {
|
|
988
1000
|
value: "WORKSPACE",
|
|
989
|
-
children: "Workspace"
|
|
1001
|
+
children: P("botlit.policyDetail.workspace", "Workspace")
|
|
990
1002
|
}),
|
|
991
1003
|
/* @__PURE__ */ w("option", {
|
|
992
1004
|
value: "PUBLIC",
|
|
993
|
-
children: "Public"
|
|
1005
|
+
children: P("botlit.policyDetail.public", "Public")
|
|
994
1006
|
})
|
|
995
1007
|
]
|
|
996
1008
|
})
|
|
997
1009
|
}),
|
|
998
1010
|
/* @__PURE__ */ w("p", {
|
|
999
1011
|
className: "text-sm text-text-secondary",
|
|
1000
|
-
children: "The policy type cannot be changed after creation; its rules can be edited below."
|
|
1012
|
+
children: P("botlit.policyDetail.thePolicyTypeCannotBe", "The policy type cannot be changed after creation; its rules can be edited below.")
|
|
1001
1013
|
})
|
|
1002
1014
|
]
|
|
1003
1015
|
})] }),
|
|
1004
|
-
|
|
1005
|
-
|
|
1016
|
+
z && R.type === Q && b(Q) && $e(Q),
|
|
1017
|
+
z && q && /* @__PURE__ */ w("p", {
|
|
1006
1018
|
className: "text-sm text-status-error-text",
|
|
1007
1019
|
role: "alert",
|
|
1008
|
-
children:
|
|
1020
|
+
children: q
|
|
1009
1021
|
}),
|
|
1010
1022
|
/* @__PURE__ */ T("div", {
|
|
1011
1023
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
@@ -1018,15 +1030,15 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
1018
1030
|
children: [
|
|
1019
1031
|
/* @__PURE__ */ w("div", {
|
|
1020
1032
|
className: "p-3 rounded-full bg-action-primary-bg/10 w-fit mx-auto mb-2",
|
|
1021
|
-
children: /* @__PURE__ */ w(
|
|
1033
|
+
children: /* @__PURE__ */ w(je, { type: Q })
|
|
1022
1034
|
}),
|
|
1023
1035
|
/* @__PURE__ */ w("p", {
|
|
1024
1036
|
className: "text-lg font-bold",
|
|
1025
|
-
children:
|
|
1037
|
+
children: F[Q]
|
|
1026
1038
|
}),
|
|
1027
1039
|
/* @__PURE__ */ w("p", {
|
|
1028
1040
|
className: "text-sm text-text-secondary",
|
|
1029
|
-
children: "Policy Type"
|
|
1041
|
+
children: P("botlit.policyDetail.policyType", "Policy Type")
|
|
1030
1042
|
})
|
|
1031
1043
|
]
|
|
1032
1044
|
})
|
|
@@ -1035,35 +1047,35 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
1035
1047
|
className: "pt-6 text-center",
|
|
1036
1048
|
children: [/* @__PURE__ */ w("p", {
|
|
1037
1049
|
className: "text-3xl font-bold text-text-primary capitalize",
|
|
1038
|
-
children:
|
|
1050
|
+
children: R.visibility.toLowerCase()
|
|
1039
1051
|
}), /* @__PURE__ */ w("p", {
|
|
1040
1052
|
className: "text-sm text-text-secondary",
|
|
1041
|
-
children: "Visibility"
|
|
1053
|
+
children: P("botlit.policyDetail.visibility", "Visibility")
|
|
1042
1054
|
})]
|
|
1043
1055
|
}) }),
|
|
1044
1056
|
/* @__PURE__ */ w(l, { children: /* @__PURE__ */ T(u, {
|
|
1045
1057
|
className: "pt-6 text-center",
|
|
1046
1058
|
children: [/* @__PURE__ */ w("p", {
|
|
1047
1059
|
className: "text-3xl font-bold text-text-primary",
|
|
1048
|
-
children:
|
|
1060
|
+
children: R.revision
|
|
1049
1061
|
}), /* @__PURE__ */ w("p", {
|
|
1050
1062
|
className: "text-sm text-text-secondary",
|
|
1051
|
-
children: "Revision"
|
|
1063
|
+
children: P("botlit.policyDetail.revision", "Revision")
|
|
1052
1064
|
})]
|
|
1053
1065
|
}) }),
|
|
1054
1066
|
/* @__PURE__ */ w(l, { children: /* @__PURE__ */ T(u, {
|
|
1055
1067
|
className: "pt-6 text-center",
|
|
1056
1068
|
children: [/* @__PURE__ */ w("p", {
|
|
1057
1069
|
className: "text-lg font-bold text-text-primary",
|
|
1058
|
-
children: v(
|
|
1070
|
+
children: v(R.updatedAt)
|
|
1059
1071
|
}), /* @__PURE__ */ w("p", {
|
|
1060
1072
|
className: "text-sm text-text-secondary",
|
|
1061
|
-
children: "Last Updated"
|
|
1073
|
+
children: P("botlit.policyDetail.lastUpdated", "Last Updated")
|
|
1062
1074
|
})]
|
|
1063
1075
|
}) })
|
|
1064
1076
|
]
|
|
1065
1077
|
}),
|
|
1066
|
-
/* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ w(p, { children: "Configuration" }), /* @__PURE__ */ w(d, { children: "Current policy configuration" })] }), /* @__PURE__ */ T(u, {
|
|
1078
|
+
/* @__PURE__ */ T(l, { children: [/* @__PURE__ */ T(f, { children: [/* @__PURE__ */ w(p, { children: P("botlit.policyDetail.configuration", "Configuration") }), /* @__PURE__ */ w(d, { children: P("botlit.policyDetail.currentPolicyConfiguration", "Current policy configuration") })] }), /* @__PURE__ */ T(u, {
|
|
1067
1079
|
className: "space-y-4",
|
|
1068
1080
|
children: [$ === null ? /* @__PURE__ */ T("div", {
|
|
1069
1081
|
className: "flex items-start gap-2 p-3 bg-status-warning-bg-subtle rounded-lg text-sm",
|
|
@@ -1071,59 +1083,51 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
1071
1083
|
children: [/* @__PURE__ */ w(E, {
|
|
1072
1084
|
size: 16,
|
|
1073
1085
|
className: "mt-0.5 shrink-0 text-status-warning-text"
|
|
1074
|
-
}), /* @__PURE__ */
|
|
1086
|
+
}), /* @__PURE__ */ w("p", { children: P("botlit.policyDetail.legacyPolicyNotEnforced", "{{policyType}} settings are not enforced at runtime. This policy is kept for reference only and does not restrict any agent.", { policyType: F[Q] }) })]
|
|
1075
1087
|
}) : $.length > 0 ? /* @__PURE__ */ T("div", {
|
|
1076
1088
|
className: "flex items-start gap-2 p-3 bg-status-warning-bg-subtle rounded-lg text-sm",
|
|
1077
1089
|
"data-testid": "policy-ignored-keys",
|
|
1078
1090
|
children: [/* @__PURE__ */ w(E, {
|
|
1079
1091
|
size: 16,
|
|
1080
1092
|
className: "mt-0.5 shrink-0 text-status-warning-text"
|
|
1081
|
-
}), /* @__PURE__ */
|
|
1082
|
-
"These settings are not enforced at runtime and have no effect:",
|
|
1083
|
-
" ",
|
|
1084
|
-
/* @__PURE__ */ w("span", {
|
|
1085
|
-
className: "font-mono",
|
|
1086
|
-
children: $.join(", ")
|
|
1087
|
-
}),
|
|
1088
|
-
". Create a new policy to use the enforced settings."
|
|
1089
|
-
] })]
|
|
1093
|
+
}), /* @__PURE__ */ w("p", { children: P("botlit.policyDetail.ignoredSettingsWarning", "These settings are not enforced at runtime and have no effect: {{fields}}. Create a new policy to use the enforced settings.", { fields: $.join(", ") }) })]
|
|
1090
1094
|
}) : null, /* @__PURE__ */ w("div", {
|
|
1091
1095
|
className: "p-4 bg-bg-sunken rounded-lg font-mono text-sm overflow-auto",
|
|
1092
|
-
children: /* @__PURE__ */ w("pre", { children: JSON.stringify(
|
|
1096
|
+
children: /* @__PURE__ */ w("pre", { children: JSON.stringify(R.config, null, 2) })
|
|
1093
1097
|
})]
|
|
1094
1098
|
})] }),
|
|
1095
1099
|
/* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(f, { children: /* @__PURE__ */ T(p, {
|
|
1096
1100
|
className: "flex items-center gap-2",
|
|
1097
|
-
children: [/* @__PURE__ */ w(
|
|
1101
|
+
children: [/* @__PURE__ */ w(De, { size: 18 }), P("botlit.policyDetail.metadata", "Metadata")]
|
|
1098
1102
|
}) }), /* @__PURE__ */ w(u, { children: /* @__PURE__ */ T("div", {
|
|
1099
1103
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
1100
1104
|
children: [
|
|
1101
1105
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
1102
1106
|
className: "text-text-secondary",
|
|
1103
|
-
children: "Created"
|
|
1107
|
+
children: P("botlit.policyDetail.created", "Created")
|
|
1104
1108
|
}), /* @__PURE__ */ w("p", {
|
|
1105
1109
|
className: "font-medium",
|
|
1106
|
-
children: v(
|
|
1110
|
+
children: v(R.createdAt)
|
|
1107
1111
|
})] }),
|
|
1108
1112
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
1109
1113
|
className: "text-text-secondary",
|
|
1110
|
-
children: "Updated"
|
|
1114
|
+
children: P("botlit.policyDetail.updated", "Updated")
|
|
1111
1115
|
}), /* @__PURE__ */ w("p", {
|
|
1112
1116
|
className: "font-medium",
|
|
1113
|
-
children: v(
|
|
1117
|
+
children: v(R.updatedAt)
|
|
1114
1118
|
})] }),
|
|
1115
1119
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
1116
1120
|
className: "text-text-secondary",
|
|
1117
|
-
children: "Tags"
|
|
1121
|
+
children: P("botlit.policyDetail.tags", "Tags")
|
|
1118
1122
|
}), /* @__PURE__ */ w("div", {
|
|
1119
1123
|
className: "flex gap-1",
|
|
1120
|
-
children:
|
|
1124
|
+
children: R.tags.length > 0 ? R.tags.map((e) => /* @__PURE__ */ w(te, {
|
|
1121
1125
|
variant: "secondary",
|
|
1122
1126
|
className: "text-xs",
|
|
1123
1127
|
children: e
|
|
1124
1128
|
}, e)) : /* @__PURE__ */ w("span", {
|
|
1125
1129
|
className: "text-text-secondary",
|
|
1126
|
-
children: "None"
|
|
1130
|
+
children: P("botlit.policyDetail.none", "None")
|
|
1127
1131
|
})
|
|
1128
1132
|
})] })
|
|
1129
1133
|
]
|
|
@@ -1132,6 +1136,6 @@ var Ae = ({ value: e, onChange: n }) => {
|
|
|
1132
1136
|
})
|
|
1133
1137
|
});
|
|
1134
1138
|
};
|
|
1135
|
-
export {
|
|
1139
|
+
export { P as PolicyDetailPage };
|
|
1136
1140
|
|
|
1137
1141
|
//# sourceMappingURL=PolicyDetailPage.js.map
|