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