@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.
Files changed (127) hide show
  1. package/dist/botlit/BotlitRoutes.js +0 -1
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
  4. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
  5. package/dist/botlit/components/AgentA2APanel.js +20 -21
  6. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  7. package/dist/botlit/components/AgentApprovalPanel.js +22 -23
  8. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  9. package/dist/botlit/components/AgentBindingsPanel.js +66 -68
  10. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  11. package/dist/botlit/components/AiOperationsPanel.js +34 -35
  12. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  13. package/dist/botlit/components/BotAgentsPanel.js +59 -60
  14. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  15. package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
  16. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
  17. package/dist/botlit/components/BucketDialogs.js +0 -1
  18. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  19. package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
  20. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  21. package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
  22. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  23. package/dist/botlit/components/DescribeBotDialog.js +0 -1
  24. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  25. package/dist/botlit/components/GettingStartedChecklist.js +9 -10
  26. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  27. package/dist/botlit/components/HandoffConfigPanel.js +0 -1
  28. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  29. package/dist/botlit/components/RetentionStatusPanel.js +10 -12
  30. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  31. package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
  32. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
  33. package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
  34. package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
  35. package/dist/botlit/components/StorePackageDraftCard.js +38 -39
  36. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  37. package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
  38. package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
  39. package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
  40. package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
  41. package/dist/botlit/components/VersionHistoryPanel.js +18 -19
  42. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  43. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
  44. package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
  45. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  46. package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
  47. package/dist/botlit/hooks/useToolApprovals.js +68 -73
  48. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  49. package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
  50. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  51. package/dist/botlit/pages/A2ARegistryPage.js +39 -41
  52. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  53. package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
  54. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  55. package/dist/botlit/pages/AgentBuilderPage.js +470 -471
  56. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  57. package/dist/botlit/pages/AgentDetailPage.js +68 -69
  58. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  59. package/dist/botlit/pages/AgentsListPage.js +277 -278
  60. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  61. package/dist/botlit/pages/AiOperationsPage.js +44 -46
  62. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  63. package/dist/botlit/pages/BotChannelsTab.js +354 -356
  64. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  65. package/dist/botlit/pages/BotDetailPage.js +138 -139
  66. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  67. package/dist/botlit/pages/BotWorkflowTab.js +23 -24
  68. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  69. package/dist/botlit/pages/BotsListPage.js +32 -33
  70. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  71. package/dist/botlit/pages/BucketDetailPage.js +110 -112
  72. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  73. package/dist/botlit/pages/BucketsPage.js +115 -117
  74. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  75. package/dist/botlit/pages/ChannelDetailPage.js +105 -107
  76. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  77. package/dist/botlit/pages/ChannelsPage.js +38 -40
  78. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  79. package/dist/botlit/pages/DashboardPage.js +26 -27
  80. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  81. package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
  82. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  83. package/dist/botlit/pages/ExecutionsPage.js +219 -220
  84. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  85. package/dist/botlit/pages/HandoffsPage.js +208 -210
  86. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  87. package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
  88. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  89. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
  90. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  91. package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
  92. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  93. package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
  94. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  95. package/dist/botlit/pages/MCPServersPage.js +42 -43
  96. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  97. package/dist/botlit/pages/PoliciesPage.js +77 -78
  98. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  99. package/dist/botlit/pages/PolicyDetailPage.js +517 -519
  100. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  101. package/dist/botlit/pages/PromptStudioPage.js +81 -83
  102. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  103. package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
  104. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  105. package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
  106. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  107. package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
  108. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  109. package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
  110. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  111. package/dist/botlit/pages/SettingsPage.js +30 -31
  112. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  113. package/dist/botlit/pages/SkillDetailPage.js +205 -207
  114. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  115. package/dist/botlit/pages/SkillsPage.js +68 -69
  116. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  117. package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
  118. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  119. package/dist/botlit/pages/StorePage.js +169 -171
  120. package/dist/botlit/pages/StorePage.js.map +1 -1
  121. package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
  122. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  123. package/dist/index.js +0 -1
  124. package/package.json +4 -1
  125. package/dist/botlit/hooks/index.js +0 -21
  126. package/dist/botlit/index.js +0 -12
  127. 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 { 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 { 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 u, CardContent as d, CardDescription as f, CardHeader as p, CardTitle as m } from "../components/Card.js";
11
- import { Button as h } from "../components/Button.js";
12
- import { FormField as g, Input as _, Textarea as v } from "../components/Input.js";
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/index.js";
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 y } from "../utils/formatters.js";
17
- import { toUnion as b } from "../utils/unions.js";
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 _e, isCreatablePolicyType as x, policyFormFromConfig as ve, unenforcedConfigKeys as ye } from "../utils/policyConfig.js";
19
- import "../permissions/index.js";
20
- import { useState as S } from "react";
21
- import { PagePurpose as be, ThemedSelect as C } from "@burdenoff/fe-libs/ui";
22
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
23
- import { useParams as xe } from "react-router";
24
- import { AlertTriangle as D, ArrowLeft as Se, Clock as Ce, Database as we, DollarSign as Te, Edit as Ee, FileText as O, Power as De, Save as Oe, Settings as ke, Shield as Ae, Trash2 as k, Wrench as je } from "lucide-react";
25
- import { toast as A } from "sonner";
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 j = [
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
- ], Me = [
33
+ ], je = [
36
34
  "PRIVATE",
37
35
  "WORKSPACE",
38
36
  "PUBLIC"
39
- ], M = "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm", Ne = ({ type: e }) => ({
40
- CONTENT: /* @__PURE__ */ T(D, { size: 18 }),
41
- TOOL: /* @__PURE__ */ T(je, { size: 18 }),
42
- DATA: /* @__PURE__ */ T(we, { size: 18 }),
43
- RESPONSE: /* @__PURE__ */ T(O, { size: 18 }),
44
- BUDGET: /* @__PURE__ */ T(Te, { size: 18 }),
45
- RATE_LIMIT: /* @__PURE__ */ T(Ce, { size: 18 }),
46
- RETENTION: /* @__PURE__ */ T(k, { size: 18 })
47
- })[e] || /* @__PURE__ */ T(Ae, { size: 18 });
48
- function N(e, t, n) {
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 Pe = ({ value: t, onChange: r }) => {
52
- let i = e(), { data: a, loading: o, error: s, refetch: c, hasMore: ee, loadingMore: l, loadMore: te } = n();
53
- return /* @__PURE__ */ T(g, {
54
- label: i("botlit.policyDetail.applyToAgents", "Apply To Agents"),
55
- description: i("botlit.policyDetail.leaveAllUncheckedToApply", "Leave all unchecked to apply this policy to every agent in the workspace."),
56
- children: /* @__PURE__ */ E("div", {
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
- s && a.length === 0 ? /* @__PURE__ */ E("div", {
57
+ o && i.length === 0 ? /* @__PURE__ */ D("div", {
60
58
  className: "space-y-2",
61
59
  role: "alert",
62
- children: [/* @__PURE__ */ T("p", {
60
+ children: [/* @__PURE__ */ E("p", {
63
61
  className: "text-sm text-status-error-text",
64
- 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.")
65
- }), /* @__PURE__ */ T(h, {
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 c(),
69
- children: i("botlit.policyDetail.retry", "Retry")
66
+ onClick: () => void ee(),
67
+ children: r("botlit.policyDetail.retry", "Retry")
70
68
  })]
71
- }) : o && a.length === 0 ? /* @__PURE__ */ T("p", {
69
+ }) : a && i.length === 0 ? /* @__PURE__ */ E("p", {
72
70
  className: "text-sm text-text-secondary",
73
- children: i("botlit.policyDetail.loadingAgents", "Loading agents…")
74
- }) : a.length === 0 ? /* @__PURE__ */ T("p", {
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: i("botlit.policyDetail.noAgentsInThisWorkspace", "No agents in this workspace yet.")
77
- }) : a.map((e) => /* @__PURE__ */ E("label", {
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__ */ T("input", {
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: (n) => r(N(t, e.id, n.target.checked))
84
- }), /* @__PURE__ */ T("span", { children: e.name })]
81
+ onChange: (r) => n(P(t, e.id, r.target.checked))
82
+ }), /* @__PURE__ */ E("span", { children: e.name })]
85
83
  }, e.id)),
86
- s && a.length > 0 && /* @__PURE__ */ T("p", {
84
+ o && i.length > 0 && /* @__PURE__ */ E("p", {
87
85
  className: "text-sm text-status-error-text",
88
86
  role: "alert",
89
- children: i("botlit.policyDetail.moreAgentsCouldNotBe", "More agents could not be loaded; the list above is incomplete.")
87
+ children: r("botlit.policyDetail.moreAgentsCouldNotBe", "More agents could not be loaded; the list above is incomplete.")
90
88
  }),
91
- ee && /* @__PURE__ */ T(h, {
89
+ te && /* @__PURE__ */ E(f, {
92
90
  variant: "ghost",
93
91
  size: "sm",
94
- onClick: () => void te(),
95
- isLoading: l,
96
- disabled: l,
97
- children: s ? i("botlit.policyDetail.retryLoadingMoreAgents", "Retry loading more agents") : i("botlit.policyDetail.loadMoreAgents", "Load more agents")
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
- }, P = ({ isNew: n }) => {
103
- let P = e(), F = {
104
- CONTENT: P("botlit.policyDetail.contentPolicy", "Content Policy"),
105
- TOOL: P("botlit.policyDetail.toolPolicy", "Tool Policy"),
106
- DATA: P("botlit.policyDetail.dataPolicy", "Data Policy"),
107
- RESPONSE: P("botlit.policyDetail.responseModelPolicy", "Response & Model Policy"),
108
- BUDGET: P("botlit.policyDetail.budgetPolicy", "Budget Policy"),
109
- RATE_LIMIT: P("botlit.policyDetail.rateLimitPolicy", "Rate Limit Policy"),
110
- RETENTION: P("botlit.policyDetail.retentionPolicy", "Retention Policy")
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
- EMAIL: P("botlit.policyDetail.maskEmail", "Email addresses"),
113
- PHONE: P("botlit.policyDetail.maskPhone", "Phone numbers"),
114
- CREDIT_CARD: P("botlit.policyDetail.maskCard", "Card numbers"),
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
- LOW: P("botlit.policyDetail.toolRiskLow", "low"),
119
- MEDIUM: P("botlit.policyDetail.toolRiskMedium", "medium"),
120
- HIGH: P("botlit.policyDetail.toolRiskHigh", "high")
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] = S({
128
+ }), [W, G] = C({
131
129
  name: "",
132
130
  description: "",
133
131
  visibility: "PRIVATE"
134
- }), [K, q] = S(de), [J, Y] = S(null), [qe, Je] = S(null), X = (e, t) => {
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] = S(!1), Ze = async () => {
140
+ }, [Ye, Xe] = C(!1), Ze = async () => {
143
141
  if (!H.name) return;
144
- let e = _e(H.type, K);
145
- if (!e.ok) Y(e.error), A.error(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 Be({
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
- A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToCreatePolicy", "Failed to create policy"));
155
+ j.error(e instanceof Error ? e.message : F("botlit.policyDetail.failedToCreatePolicy", "Failed to create policy"));
158
156
  return;
159
157
  }
160
- A.success(P("botlit.policyDetail.policyNameCreated", "Policy \"{{name}}\" created", { name: H.name })), L("policies");
158
+ j.success(F("botlit.policyDetail.policyNameCreated", "Policy \"{{name}}\" created", { name: H.name })), R("policies");
161
159
  }
162
160
  }, Qe = async () => {
163
- if (!I || !R || !W.name) return;
164
- let e = j.find((e) => e === R.type), t, n = JSON.stringify(K) !== JSON.stringify(qe);
165
- if (e && x(e) && n) {
166
- let n = _e(e, K);
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), A.error(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 He({
175
- policyId: I,
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
- A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
182
+ j.error(e instanceof Error ? e.message : F("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
185
183
  return;
186
184
  }
187
- await ze(), A.success(P("botlit.policyDetail.policyUpdated", "Policy updated")), B(!1);
185
+ await Re(), j.success(F("botlit.policyDetail.policyUpdated", "Policy updated")), V(!1);
188
186
  }, $e = async () => {
189
- if (I) try {
190
- await We(I), r() && a("success"), L("policies");
187
+ if (L) try {
188
+ await Ue(L), n() && i("success"), R("policies");
191
189
  } catch (e) {
192
- throw r() && a("error"), e;
190
+ throw n() && i("error"), e;
193
191
  }
194
- }, Z = R?.status === "ACTIVE", et = async () => {
195
- if (!I) return;
192
+ }, Z = z?.status === "ACTIVE", et = async () => {
193
+ if (!L) return;
196
194
  let e = Z ? "DRAFT" : "ACTIVE";
197
195
  try {
198
- await He({
199
- policyId: I,
196
+ await Ve({
197
+ policyId: L,
200
198
  input: { status: e }
201
199
  });
202
200
  } catch (e) {
203
- A.error(e instanceof Error ? e.message : P("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
201
+ j.error(e instanceof Error ? e.message : F("botlit.policyDetail.failedToUpdatePolicy", "Failed to update policy"));
204
202
  return;
205
203
  }
206
- await ze(), A.success(e === "ACTIVE" ? P("botlit.policyDetail.policyIsNowEnforced", "Policy is now enforced") : P("botlit.policyDetail.policyIsNoLongerEnforced", "Policy is no longer enforced"));
207
- }, tt = (e) => /* @__PURE__ */ E(w, { children: [
208
- e === "CONTENT" && /* @__PURE__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(D, { size: 18 }), P("botlit.policyDetail.contentPolicyConfiguration", "Content Policy Configuration")]
211
- }), /* @__PURE__ */ T(f, { 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__ */ E(d, {
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__ */ E("div", {
212
+ /* @__PURE__ */ D("div", {
215
213
  className: "flex items-start gap-2",
216
- children: [/* @__PURE__ */ T("input", {
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__ */ E("label", {
220
+ }), /* @__PURE__ */ D("label", {
223
221
  htmlFor: "pii",
224
222
  className: "text-sm",
225
- children: [/* @__PURE__ */ T("span", {
223
+ children: [/* @__PURE__ */ E("span", {
226
224
  className: "font-medium",
227
- children: P("botlit.policyDetail.piiDetection", "PII Detection")
228
- }), /* @__PURE__ */ T("span", {
225
+ children: F("botlit.policyDetail.piiDetection", "PII Detection")
226
+ }), /* @__PURE__ */ E("span", {
229
227
  className: "block text-text-secondary",
230
- children: P("botlit.policyDetail.blocksTextContainingAnEmail", "Blocks text containing an email address, a US SSN or a card-number shaped digit run.")
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__ */ T(ee, {
232
+ /* @__PURE__ */ E(o, {
235
233
  checked: K.content.promptInjectionDetection,
236
234
  onChange: (e) => X("content", { promptInjectionDetection: e })
237
235
  }),
238
- /* @__PURE__ */ T(g, {
239
- label: P("botlit.policyDetail.blockedKeywords", "Blocked Keywords"),
240
- description: P("botlit.policyDetail.commaSeparatedCaseInsensitiveAny", "Comma-separated. Case-insensitive; any occurrence blocks the text."),
241
- children: /* @__PURE__ */ T(_, {
242
- placeholder: P("botlit.policyDetail.exampleInternalOnlyProjectX", "e.g., internal-only, project-x"),
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__ */ T(g, {
248
- label: P("botlit.policyDetail.blockedPatterns", "Blocked Patterns"),
249
- description: P("botlit.policyDetail.oneRegularExpressionPerLine", "One regular expression per line, matched case-insensitively."),
250
- children: /* @__PURE__ */ T(v, {
251
- placeholder: P("botlit.policyDetail.exampleBlockedPattern", "e.g., \\bACME-\\d{6}\\b"),
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(je, { size: 18 }), P("botlit.policyDetail.toolPolicyConfiguration", "Tool Policy Configuration")]
262
- }), /* @__PURE__ */ T(f, { 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__ */ E(d, {
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__ */ T(g, {
266
- label: P("botlit.policyDetail.allowedTools", "Allowed Tools"),
267
- description: P("botlit.policyDetail.commaSeparatedMcpToolNames", "Comma-separated MCP tool names. End an entry with * to allow a prefix. Empty allows every tool."),
268
- children: /* @__PURE__ */ T(_, {
269
- placeholder: P("botlit.policyDetail.exampleSearchRead", "e.g., search, read_*"),
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__ */ T(g, {
275
- label: P("botlit.policyDetail.deniedTools", "Denied Tools"),
276
- description: P("botlit.policyDetail.commaSeparatedMcpToolNames2", "Comma-separated MCP tool names that may never run. A deny always wins."),
277
- children: /* @__PURE__ */ T(_, {
278
- placeholder: P("botlit.policyDetail.exampleDeleteExecuteCode", "e.g., delete_*, execute_code"),
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__ */ E("div", {
281
+ /* @__PURE__ */ D("div", {
284
282
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
285
- children: [/* @__PURE__ */ T(g, {
286
- label: P("botlit.policyDetail.maxToolRiskLevel", "Max Tool Risk Level"),
287
- children: /* @__PURE__ */ E(C, {
288
- className: M,
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__ */ T("option", {
289
+ children: [/* @__PURE__ */ E("option", {
292
290
  value: "",
293
- children: P("botlit.policyDetail.anyRiskLevel", "Any risk level")
294
- }), ge.map((e) => /* @__PURE__ */ T("option", {
291
+ children: F("botlit.policyDetail.anyRiskLevel", "Any risk level")
292
+ }), ge.map((e) => /* @__PURE__ */ E("option", {
295
293
  value: e,
296
- children: P("botlit.policyDetail.upToLevel", "Up to {{level}}", { level: Ie[e] })
294
+ children: F("botlit.policyDetail.upToLevel", "Up to {{level}}", { level: Fe[e] })
297
295
  }, e))]
298
296
  })
299
- }), /* @__PURE__ */ T(g, {
300
- label: P("botlit.policyDetail.minimumA2aTrustLevel", "Minimum A2A Trust Level"),
301
- description: P("botlit.policyDetail.forDelegationToExternalRegistry", "For delegation to external registry agents."),
302
- children: /* @__PURE__ */ E(C, {
303
- className: M,
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__ */ T("option", {
304
+ children: [/* @__PURE__ */ E("option", {
307
305
  value: "",
308
- children: P("botlit.policyDetail.defaultVerifiedPublisher", "Default (verified publisher)")
309
- }), ce.map((e) => /* @__PURE__ */ T("option", {
306
+ children: F("botlit.policyDetail.defaultVerifiedPublisher", "Default (verified publisher)")
307
+ }), ce.map((e) => /* @__PURE__ */ E("option", {
310
308
  value: e,
311
- children: Le[e]
309
+ children: Ie[e]
312
310
  }, e))]
313
311
  })
314
312
  })]
315
313
  }),
316
- /* @__PURE__ */ E("div", {
314
+ /* @__PURE__ */ D("div", {
317
315
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
318
- children: [/* @__PURE__ */ T(g, {
319
- label: P("botlit.policyDetail.maxToolCallsPerExecution", "Max Tool Calls Per Execution"),
320
- description: P("botlit.policyDetail.toolCallsAllowedInOne", "Tool calls allowed in one agent turn."),
321
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ T(g, {
329
- label: P("botlit.policyDetail.toolCallTimeoutSeconds", "Tool Call Timeout (seconds)"),
330
- description: P("botlit.policyDetail.canOnlyShortenThePlatform", "Can only shorten the platform's own timeout."),
331
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.platformDefault", "Platform default"),
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__ */ T(l, {
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(Te, { size: 18 }), P("botlit.policyDetail.budgetPolicyConfiguration", "Budget Policy Configuration")]
349
- }), /* @__PURE__ */ T(f, { children: P("botlit.policyDetail.tokenBudgetsApplyPerAgent", "Token budgets apply per agent. Leave a field empty to not restrict it.") })] }), /* @__PURE__ */ T(d, {
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__ */ E("div", {
349
+ children: /* @__PURE__ */ D("div", {
352
350
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
353
- children: [/* @__PURE__ */ T(g, {
354
- label: P("botlit.policyDetail.maxTokensPerDay", "Max Tokens Per Day"),
355
- description: P("botlit.policyDetail.anAgentThatHasUsed", "An agent that has used this many tokens today (UTC) is refused."),
356
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ T(g, {
364
- label: P("botlit.policyDetail.maxOutputTokensPerModel", "Max Output Tokens Per Model Call"),
365
- description: P("botlit.policyDetail.lowersTheAgentSOwn", "Lowers the agent's own max-tokens setting when it is higher."),
366
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(Ce, { size: 18 }), P("botlit.policyDetail.rateLimitConfiguration", "Rate Limit Configuration")]
379
- }), /* @__PURE__ */ T(f, { children: P("botlit.policyDetail.everyLimitIsCountedPer", "Every limit is counted per agent. Leave a field empty to not restrict it.") })] }), /* @__PURE__ */ T(d, {
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__ */ E("div", {
379
+ children: /* @__PURE__ */ D("div", {
382
380
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
383
381
  children: [
384
- /* @__PURE__ */ T(g, {
385
- label: P("botlit.policyDetail.requestsMinute", "Requests / Minute"),
386
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ T(g, {
395
- label: P("botlit.policyDetail.requestsHour", "Requests / Hour"),
396
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ T(g, {
405
- label: P("botlit.policyDetail.tokensMinute", "Tokens / Minute"),
406
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(O, { size: 18 }), P("botlit.policyDetail.modelUsageAllowlist", "Model Usage Allowlist")]
420
- }), /* @__PURE__ */ T(f, { 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__ */ E(d, {
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__ */ T(g, {
423
- label: P("botlit.policyDetail.allowedModels", "Allowed Models"),
424
- description: P("botlit.policyDetail.commaSeparatedModelIdsEnd", "Comma-separated model IDs. End an entry with * to allow a prefix."),
425
- children: /* @__PURE__ */ T(_, {
426
- placeholder: P("botlit.policyDetail.exampleGpt4oMiniAnthropic", "e.g., gpt-4o-mini, anthropic.claude-*"),
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__ */ T(g, {
431
- label: P("botlit.policyDetail.allowedProviders", "Allowed Providers"),
432
- description: P("botlit.policyDetail.commaSeparatedProviderTypesE", "Comma-separated provider types, e.g. OPENAI, ANTHROPIC, AWS_BEDROCK."),
433
- children: /* @__PURE__ */ T(_, {
434
- placeholder: P("botlit.policyDetail.exampleAwsBedrockAnthropic", "e.g., AWS_BEDROCK, ANTHROPIC"),
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(O, { size: 18 }), P("botlit.policyDetail.responseStyleLengthAndCitations", "Response Style, Length And Citations")]
443
- }), /* @__PURE__ */ T(f, { 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__ */ E(d, {
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__ */ T(g, {
447
- label: P("botlit.policyDetail.persona", "Persona"),
448
- description: P("botlit.policyDetail.whoTheAgentSpeaksAs", "Who the agent speaks as. Up to {{count}} characters.", { count: 2e3 }),
449
- children: /* @__PURE__ */ T(v, {
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: P("botlit.policyDetail.exampleAPatientSupportSpecialist", "e.g., A patient support specialist for Acme Cloud"),
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__ */ E("div", {
455
+ /* @__PURE__ */ D("div", {
458
456
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
459
457
  children: [
460
- /* @__PURE__ */ T(g, {
461
- label: P("botlit.policyDetail.tone", "Tone"),
462
- children: /* @__PURE__ */ T(_, {
463
- placeholder: P("botlit.policyDetail.exampleFriendlyCalm", "e.g., friendly, calm"),
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__ */ T(g, {
469
- label: P("botlit.policyDetail.formality", "Formality"),
470
- children: /* @__PURE__ */ E(C, {
471
- className: M,
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__ */ T("option", {
472
+ children: [/* @__PURE__ */ E("option", {
475
473
  value: "",
476
- children: P("botlit.policyDetail.notSet", "Not set")
477
- }), me.map((e) => /* @__PURE__ */ T("option", {
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__ */ T(g, {
484
- label: P("botlit.policyDetail.structure", "Structure"),
485
- children: /* @__PURE__ */ E(C, {
486
- className: M,
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__ */ T("option", {
487
+ children: [/* @__PURE__ */ E("option", {
490
488
  value: "",
491
- children: P("botlit.policyDetail.notSet", "Not set")
492
- }), he.map((e) => /* @__PURE__ */ T("option", {
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__ */ T(g, {
501
- label: P("botlit.policyDetail.formattingInstructions", "Formatting Instructions"),
502
- children: /* @__PURE__ */ T(_, {
503
- placeholder: P("botlit.policyDetail.exampleEndEveryAnswerWith", "e.g., End every answer with a one-line summary"),
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__ */ E("div", {
506
+ /* @__PURE__ */ D("div", {
509
507
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
510
- children: [/* @__PURE__ */ T(g, {
511
- label: P("botlit.policyDetail.maxResponseTokens", "Max Response Tokens"),
512
- description: P("botlit.policyDetail.capsTheOutputTokensOf", "Caps the output tokens of every model call."),
513
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ T(g, {
521
- label: P("botlit.policyDetail.maxResponseLengthCharacters", "Max Response Length (characters)"),
522
- description: P("botlit.policyDetail.longerAnswersAreCutAt", "Longer answers are cut at a word boundary."),
523
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.noLimit", "No limit"),
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__ */ E("div", {
530
+ /* @__PURE__ */ D("div", {
533
531
  className: "flex items-start gap-2",
534
- children: [/* @__PURE__ */ T("input", {
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__ */ E("label", {
538
+ }), /* @__PURE__ */ D("label", {
541
539
  htmlFor: "require-citations",
542
540
  className: "text-sm",
543
- children: [/* @__PURE__ */ T("span", {
541
+ children: [/* @__PURE__ */ E("span", {
544
542
  className: "font-medium",
545
- children: P("botlit.policyDetail.requireCitations", "Require citations")
546
- }), /* @__PURE__ */ T("span", {
543
+ children: F("botlit.policyDetail.requireCitations", "Require citations")
544
+ }), /* @__PURE__ */ E("span", {
547
545
  className: "block text-text-secondary",
548
- 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.")
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__ */ T(g, {
553
- label: P("botlit.policyDetail.whenCitationsAreMissing", "When Citations Are Missing"),
554
- children: /* @__PURE__ */ T(C, {
555
- className: M,
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__ */ T("option", {
556
+ children: le.map((e) => /* @__PURE__ */ E("option", {
559
557
  value: e,
560
- children: e === "APPEND" ? P("botlit.policyDetail.addTheSourceReferences", "Add the source references") : P("botlit.policyDetail.refuseTheAnswer", "Refuse the answer")
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__ */ T(Pe, {
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(we, { size: 18 }), P("botlit.policyDetail.dataPolicyConfiguration", "Data Policy Configuration")]
578
- }), /* @__PURE__ */ T(f, { 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__ */ E(d, {
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__ */ T(g, {
582
- label: P("botlit.policyDetail.mask", "Mask"),
583
- children: /* @__PURE__ */ T("div", {
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__ */ E("label", {
583
+ children: pe.map((e) => /* @__PURE__ */ D("label", {
586
584
  className: "flex items-center gap-2 text-sm",
587
- children: [/* @__PURE__ */ T("input", {
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: N(K.data.maskPii, e, t.target.checked) })
592
- }), /* @__PURE__ */ T("span", { children: Fe[e] })]
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__ */ T(g, {
597
- label: P("botlit.policyDetail.customMaskingPatterns", "Custom Masking Patterns"),
598
- description: P("botlit.policyDetail.oneRegularExpressionPerLine2", "One regular expression per line; matches are replaced with [REDACTED]."),
599
- children: /* @__PURE__ */ T(v, {
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: P("botlit.policyDetail.exampleMaskPattern", "e.g., EMP-\\d{5}"),
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__ */ T(g, {
607
- label: P("botlit.policyDetail.allowedRegions", "Allowed Regions"),
608
- 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."),
609
- children: /* @__PURE__ */ T(_, {
610
- placeholder: P("botlit.policyDetail.exampleApSouth1Eu", "e.g., ap-south-1, eu-*"),
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
- P("botlit.policyDetail.restrictProviders", "Only share with these model providers"),
620
- P("botlit.policyDetail.allowedProviders", "Allowed Providers"),
621
- P("botlit.policyDetail.exampleProviderRestriction", "e.g., AWS_BEDROCK; comma-separated, empty = none")
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
- P("botlit.policyDetail.restrictMcpServers", "Only share with these MCP servers"),
627
- P("botlit.policyDetail.allowedMcpServers", "Allowed MCP servers"),
628
- P("botlit.policyDetail.exampleServerRestriction", "Connection name, id or host; comma-separated, empty = none")
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
- P("botlit.policyDetail.restrictDelegation", "Only share with these agents to delegate to"),
634
- P("botlit.policyDetail.allowedDelegates", "Allowed agents to delegate to"),
635
- P("botlit.policyDetail.exampleDelegateRestriction", "Agent name or id; comma-separated, empty = none")
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__ */ E("div", {
635
+ ].map(([e, t, n, r, i]) => /* @__PURE__ */ D("div", {
638
636
  className: "space-y-2",
639
- children: [/* @__PURE__ */ E("label", {
637
+ children: [/* @__PURE__ */ D("label", {
640
638
  className: "flex items-center gap-2 text-sm",
641
- children: [/* @__PURE__ */ T("input", {
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__ */ T("span", {
644
+ }), /* @__PURE__ */ E("span", {
647
645
  className: "font-medium",
648
646
  children: n
649
647
  })]
650
- }), K.data[e] && /* @__PURE__ */ T(_, {
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__ */ T(g, {
658
- label: P("botlit.policyDetail.allowedKnowledgeClassifications", "Allowed Knowledge Classifications"),
659
- description: P("botlit.policyDetail.knowledgeBasesAreClassifiedBy", "Knowledge bases are classified by metadata.classification. Leave all unchecked to not restrict retrieval."),
660
- children: /* @__PURE__ */ T("div", {
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__ */ E("label", {
660
+ children: fe.map((e) => /* @__PURE__ */ D("label", {
663
661
  className: "flex items-center gap-2 text-sm",
664
- children: [/* @__PURE__ */ T("input", {
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: N(K.data.allowedClassifications, e, t.target.checked) })
669
- }), /* @__PURE__ */ T("span", { children: e.charAt(0) + e.slice(1).toLowerCase() })]
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__ */ T(g, {
674
- label: P("botlit.policyDetail.blockedKnowledgeLabels", "Blocked Knowledge Labels"),
675
- description: P("botlit.policyDetail.commaSeparatedKnowledgeBasesWith", "Comma-separated; knowledge bases with any of these labels (metadata.labels) are never retrieved."),
676
- children: /* @__PURE__ */ T(_, {
677
- placeholder: P("botlit.policyDetail.exampleHrLegal", "e.g., hr, legal"),
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__ */ T(Pe, {
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__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ E(m, {
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__ */ T(k, { size: 18 }), P("botlit.policyDetail.retentionPolicyConfiguration", "Retention Policy Configuration")]
696
- }), /* @__PURE__ */ T(f, { 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__ */ T(d, {
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__ */ E("div", {
696
+ children: /* @__PURE__ */ D("div", {
699
697
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
700
- children: [/* @__PURE__ */ T(g, {
701
- label: P("botlit.policyDetail.executionDataRetentionDays", "Execution Data Retention (days)"),
702
- 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."),
703
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.keep", "Keep"),
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__ */ T(g, {
712
- label: P("botlit.policyDetail.conversationRetentionDays", "Conversation Retention (days)"),
713
- description: P("botlit.policyDetail.assistantConversationsOlderThanThis", "Assistant conversations older than this are retired and erased."),
714
- children: /* @__PURE__ */ T(_, {
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: P("botlit.policyDetail.keep", "Keep"),
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 (!R) return;
724
+ if (!z) return;
727
725
  G({
728
- name: R.name,
729
- description: R.description || "",
730
- visibility: b(R.visibility, Me, "PRIVATE")
726
+ name: z.name,
727
+ description: z.description || "",
728
+ visibility: v(z.visibility, je, "PRIVATE")
731
729
  });
732
- let e = ve(b(R.type, j, "CONTENT"), R.config);
733
- q(e), Je(e), Y(null), B(!0);
730
+ let e = _e(v(z.type, M, "CONTENT"), z.config);
731
+ q(e), Je(e), Y(null), V(!0);
734
732
  };
735
- if (n) return /* @__PURE__ */ T(c, {
736
- title: P("botlit.policyDetail.createPolicy", "Create Policy"),
737
- description: P("botlit.policyDetail.defineGuardrailsAndConstraintsFor", "Define guardrails and constraints for your AI agents"),
738
- actions: /* @__PURE__ */ E("div", {
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__ */ T(h, {
738
+ children: [/* @__PURE__ */ E(f, {
741
739
  variant: "outline",
742
- onClick: () => L("policies"),
743
- children: P("botlit.policyDetail.cancel", "Cancel")
744
- }), /* @__PURE__ */ T(h, {
745
- leftIcon: /* @__PURE__ */ T(Oe, { size: 16 }),
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: Ve,
745
+ isLoading: Be,
748
746
  disabled: !H.name,
749
- children: P("botlit.policyDetail.create", "Create")
747
+ children: F("botlit.policyDetail.create", "Create")
750
748
  })]
751
749
  }),
752
- children: /* @__PURE__ */ E("div", {
750
+ children: /* @__PURE__ */ D("div", {
753
751
  className: "max-w-2xl space-y-6",
754
752
  children: [
755
- /* @__PURE__ */ E(u, { children: [/* @__PURE__ */ T(p, { children: /* @__PURE__ */ T(m, { children: P("botlit.policyDetail.basicInformation", "Basic Information") }) }), /* @__PURE__ */ E(d, {
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__ */ T(g, {
759
- label: P("botlit.policyDetail.policyName", "Policy Name"),
756
+ /* @__PURE__ */ E(p, {
757
+ label: F("botlit.policyDetail.policyName", "Policy Name"),
760
758
  required: !0,
761
- children: /* @__PURE__ */ T(_, {
762
- placeholder: P("botlit.policyDetail.exampleProductionContentPolicy", "e.g., Production Content Policy"),
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__ */ T(g, {
771
- label: P("botlit.policyDetail.description", "Description"),
772
- children: /* @__PURE__ */ T(v, {
773
- placeholder: P("botlit.policyDetail.whatDoesThisPolicyEnforce", "What does this policy enforce?"),
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__ */ E("div", {
780
+ /* @__PURE__ */ D("div", {
783
781
  className: "grid grid-cols-2 gap-4",
784
- children: [/* @__PURE__ */ T(g, {
785
- label: P("botlit.policyDetail.policyType", "Policy Type"),
782
+ children: [/* @__PURE__ */ E(p, {
783
+ label: F("botlit.policyDetail.policyType", "Policy Type"),
786
784
  required: !0,
787
- children: /* @__PURE__ */ T(C, {
788
- className: M,
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
- x(t) && (Y(null), U({
790
+ b(t) && (Y(null), U({
793
791
  ...H,
794
792
  type: t
795
793
  }));
796
794
  },
797
- children: ue.map((e) => /* @__PURE__ */ T("option", {
795
+ children: ue.map((e) => /* @__PURE__ */ E("option", {
798
796
  value: e,
799
- children: F[e]
797
+ children: I[e]
800
798
  }, e))
801
799
  })
802
- }), /* @__PURE__ */ T(g, {
803
- label: P("botlit.policyDetail.visibility", "Visibility"),
804
- children: /* @__PURE__ */ E(C, {
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__ */ T("option", {
810
+ /* @__PURE__ */ E("option", {
813
811
  value: "PRIVATE",
814
- children: P("botlit.policyDetail.private", "Private")
812
+ children: F("botlit.policyDetail.private", "Private")
815
813
  }),
816
- /* @__PURE__ */ T("option", {
814
+ /* @__PURE__ */ E("option", {
817
815
  value: "WORKSPACE",
818
- children: P("botlit.policyDetail.workspace", "Workspace")
816
+ children: F("botlit.policyDetail.workspace", "Workspace")
819
817
  }),
820
- /* @__PURE__ */ T("option", {
818
+ /* @__PURE__ */ E("option", {
821
819
  value: "PUBLIC",
822
- children: P("botlit.policyDetail.public", "Public")
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__ */ T("p", {
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__ */ T(u, { children: /* @__PURE__ */ T(d, {
834
+ /* @__PURE__ */ E(s, { children: /* @__PURE__ */ E(c, {
837
835
  className: "pt-6",
838
- children: /* @__PURE__ */ E("div", {
836
+ children: /* @__PURE__ */ D("div", {
839
837
  className: "flex items-start gap-2",
840
- children: [/* @__PURE__ */ T("input", {
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__ */ E("label", {
844
+ }), /* @__PURE__ */ D("label", {
847
845
  htmlFor: "activate-on-create",
848
846
  className: "text-sm",
849
- children: [/* @__PURE__ */ T("span", {
847
+ children: [/* @__PURE__ */ E("span", {
850
848
  className: "font-medium",
851
- children: P("botlit.policyDetail.enforceImmediately", "Enforce immediately")
852
- }), /* @__PURE__ */ T("span", {
849
+ children: F("botlit.policyDetail.enforceImmediately", "Enforce immediately")
850
+ }), /* @__PURE__ */ E("span", {
853
851
  className: "block text-text-secondary",
854
- children: P("botlit.policyDetail.onlyActivePoliciesAreEnforced", "Only active policies are enforced. Leave unchecked to save this policy as a draft and activate it later.")
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 (Re) return /* @__PURE__ */ T(c, {
863
- title: P("botlit.policyDetail.loading", "Loading..."),
864
- children: /* @__PURE__ */ T("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
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 (!R) return /* @__PURE__ */ T(c, {
867
- title: P("botlit.policyDetail.policyNotFound", "Policy Not Found"),
868
- children: /* @__PURE__ */ T(te, {
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: P("botlit.policyDetail.policyNotFound", "Policy Not Found"),
872
- description: P("botlit.policyDetail.thisPolicyDoesnTExist", "This policy doesn't exist."),
873
- action: /* @__PURE__ */ T(h, {
874
- onClick: () => L("policies"),
875
- children: P("botlit.policyDetail.backToPolicies", "Back to Policies")
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 = b(R.type, j, "CONTENT"), $ = ye(Q, R.config);
880
- return /* @__PURE__ */ T(c, {
881
- title: /* @__PURE__ */ E("div", {
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__ */ T(h, {
882
+ /* @__PURE__ */ E(f, {
885
883
  variant: "ghost",
886
884
  size: "icon",
887
- onClick: () => L("policies"),
888
- children: /* @__PURE__ */ T(Se, { size: 20 })
885
+ onClick: () => R("policies"),
886
+ children: /* @__PURE__ */ E(xe, { size: 20 })
889
887
  }),
890
- /* @__PURE__ */ T("div", {
888
+ /* @__PURE__ */ E("div", {
891
889
  className: "p-2 rounded-lg bg-action-primary-bg/10",
892
- children: /* @__PURE__ */ T(Ne, { type: Q })
890
+ children: /* @__PURE__ */ E(Me, { type: Q })
893
891
  }),
894
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
892
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
895
893
  className: "flex items-center gap-2",
896
- children: [/* @__PURE__ */ T("span", { children: R.name }), /* @__PURE__ */ T(re, { status: R.status })]
897
- }), /* @__PURE__ */ T("p", {
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: R.description
897
+ children: z.description
900
898
  })] })
901
899
  ]
902
900
  }),
903
- actions: /* @__PURE__ */ T("div", {
901
+ actions: /* @__PURE__ */ E("div", {
904
902
  className: "flex gap-2",
905
- children: z ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(h, {
903
+ children: B ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(f, {
906
904
  variant: "outline",
907
- onClick: () => B(!1),
908
- children: P("botlit.policyDetail.cancel", "Cancel")
909
- }), /* @__PURE__ */ T(h, {
910
- leftIcon: /* @__PURE__ */ T(Oe, { size: 16 }),
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: Ue,
910
+ isLoading: He,
913
911
  disabled: !W.name,
914
- children: P("botlit.policyDetail.saveChanges", "Save Changes")
915
- })] }) : /* @__PURE__ */ E(w, { children: [
916
- /* @__PURE__ */ T(s, {
917
- permission: o.POLICY_UPDATE,
918
- children: /* @__PURE__ */ T(h, {
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__ */ T(De, { size: 16 }),
918
+ leftIcon: /* @__PURE__ */ E(Ee, { size: 16 }),
921
919
  onClick: () => void et(),
922
- isLoading: Ue,
923
- children: Z ? P("botlit.policyDetail.deactivate", "Deactivate") : P("botlit.policyDetail.activate", "Activate")
920
+ isLoading: He,
921
+ children: Z ? F("botlit.policyDetail.deactivate", "Deactivate") : F("botlit.policyDetail.activate", "Activate")
924
922
  })
925
923
  }),
926
- /* @__PURE__ */ T(s, {
927
- permission: o.POLICY_UPDATE,
928
- children: /* @__PURE__ */ T(h, {
924
+ /* @__PURE__ */ E(S, {
925
+ permission: x.POLICY_UPDATE,
926
+ children: /* @__PURE__ */ E(f, {
929
927
  variant: "outline",
930
- leftIcon: /* @__PURE__ */ T(Ee, { size: 16 }),
928
+ leftIcon: /* @__PURE__ */ E(Te, { size: 16 }),
931
929
  onClick: nt,
932
- children: P("botlit.policyDetail.edit", "Edit")
930
+ children: F("botlit.policyDetail.edit", "Edit")
933
931
  })
934
932
  }),
935
- Ke ? /* @__PURE__ */ E("div", {
933
+ Ge ? /* @__PURE__ */ D("div", {
936
934
  className: "flex gap-2",
937
- children: [/* @__PURE__ */ T(h, {
935
+ children: [/* @__PURE__ */ E(f, {
938
936
  variant: "outline",
939
937
  size: "sm",
940
- onClick: () => V(!1),
941
- children: P("botlit.policyDetail.cancel", "Cancel")
942
- }), /* @__PURE__ */ T(h, {
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
- i("medium"), $e();
944
+ r("medium"), $e();
947
945
  },
948
- isLoading: Ge,
949
- children: P("botlit.policyDetail.confirmDelete", "Confirm Delete")
946
+ isLoading: We,
947
+ children: F("botlit.policyDetail.confirmDelete", "Confirm Delete")
950
948
  })]
951
- }) : /* @__PURE__ */ T(s, {
952
- permission: o.POLICY_DELETE,
953
- children: /* @__PURE__ */ T(h, {
949
+ }) : /* @__PURE__ */ E(S, {
950
+ permission: x.POLICY_DELETE,
951
+ children: /* @__PURE__ */ E(f, {
954
952
  variant: "destructive",
955
- leftIcon: /* @__PURE__ */ T(k, { size: 16 }),
956
- onClick: () => V(!0),
957
- children: P("botlit.policyDetail.delete", "Delete")
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__ */ E("div", {
960
+ children: /* @__PURE__ */ D("div", {
963
961
  className: "space-y-6",
964
962
  children: [
965
- /* @__PURE__ */ T(be, {
966
- icon: /* @__PURE__ */ T(Ae, { size: 18 }),
967
- 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.")
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
- z && /* @__PURE__ */ E(u, { children: [/* @__PURE__ */ T(p, { children: /* @__PURE__ */ T(m, { children: P("botlit.policyDetail.editPolicy", "Edit Policy") }) }), /* @__PURE__ */ E(d, {
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__ */ T(g, {
973
- label: P("botlit.policyDetail.policyName", "Policy Name"),
970
+ /* @__PURE__ */ E(p, {
971
+ label: F("botlit.policyDetail.policyName", "Policy Name"),
974
972
  required: !0,
975
- children: /* @__PURE__ */ T(_, {
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__ */ T(g, {
984
- label: P("botlit.policyDetail.description", "Description"),
985
- children: /* @__PURE__ */ T(v, {
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__ */ T(g, {
995
- label: P("botlit.policyDetail.visibility", "Visibility"),
996
- children: /* @__PURE__ */ E(C, {
997
- className: M,
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__ */ T("option", {
1002
+ /* @__PURE__ */ E("option", {
1005
1003
  value: "PRIVATE",
1006
- children: P("botlit.policyDetail.private", "Private")
1004
+ children: F("botlit.policyDetail.private", "Private")
1007
1005
  }),
1008
- /* @__PURE__ */ T("option", {
1006
+ /* @__PURE__ */ E("option", {
1009
1007
  value: "WORKSPACE",
1010
- children: P("botlit.policyDetail.workspace", "Workspace")
1008
+ children: F("botlit.policyDetail.workspace", "Workspace")
1011
1009
  }),
1012
- /* @__PURE__ */ T("option", {
1010
+ /* @__PURE__ */ E("option", {
1013
1011
  value: "PUBLIC",
1014
- children: P("botlit.policyDetail.public", "Public")
1012
+ children: F("botlit.policyDetail.public", "Public")
1015
1013
  })
1016
1014
  ]
1017
1015
  })
1018
1016
  }),
1019
- /* @__PURE__ */ T("p", {
1017
+ /* @__PURE__ */ E("p", {
1020
1018
  className: "text-sm text-text-secondary",
1021
- children: P("botlit.policyDetail.thePolicyTypeCannotBe", "The policy type cannot be changed after creation; its rules can be edited below.")
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
- z && R.type === Q && x(Q) && tt(Q),
1026
- z && J && /* @__PURE__ */ T("p", {
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__ */ E("div", {
1029
+ /* @__PURE__ */ D("div", {
1032
1030
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
1033
1031
  children: [
1034
- /* @__PURE__ */ T(u, {
1032
+ /* @__PURE__ */ E(s, {
1035
1033
  treatment: "glass",
1036
1034
  glow: !0,
1037
- children: /* @__PURE__ */ E(d, {
1035
+ children: /* @__PURE__ */ D(c, {
1038
1036
  className: "pt-6 text-center",
1039
1037
  children: [
1040
- /* @__PURE__ */ T("div", {
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__ */ T(Ne, { type: Q })
1040
+ children: /* @__PURE__ */ E(Me, { type: Q })
1043
1041
  }),
1044
- /* @__PURE__ */ T("p", {
1042
+ /* @__PURE__ */ E("p", {
1045
1043
  className: "text-lg font-bold",
1046
- children: F[Q]
1044
+ children: I[Q]
1047
1045
  }),
1048
- /* @__PURE__ */ T("p", {
1046
+ /* @__PURE__ */ E("p", {
1049
1047
  className: "text-sm text-text-secondary",
1050
- children: P("botlit.policyDetail.policyType", "Policy Type")
1048
+ children: F("botlit.policyDetail.policyType", "Policy Type")
1051
1049
  })
1052
1050
  ]
1053
1051
  })
1054
1052
  }),
1055
- /* @__PURE__ */ T(u, { children: /* @__PURE__ */ E(d, {
1053
+ /* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
1056
1054
  className: "pt-6 text-center",
1057
- children: [/* @__PURE__ */ T("p", {
1055
+ children: [/* @__PURE__ */ E("p", {
1058
1056
  className: "text-3xl font-bold text-text-primary capitalize",
1059
- children: R.visibility.toLowerCase()
1060
- }), /* @__PURE__ */ T("p", {
1057
+ children: z.visibility.toLowerCase()
1058
+ }), /* @__PURE__ */ E("p", {
1061
1059
  className: "text-sm text-text-secondary",
1062
- children: P("botlit.policyDetail.visibility", "Visibility")
1060
+ children: F("botlit.policyDetail.visibility", "Visibility")
1063
1061
  })]
1064
1062
  }) }),
1065
- /* @__PURE__ */ T(u, { children: /* @__PURE__ */ E(d, {
1063
+ /* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
1066
1064
  className: "pt-6 text-center",
1067
- children: [/* @__PURE__ */ T("p", {
1065
+ children: [/* @__PURE__ */ E("p", {
1068
1066
  className: "text-3xl font-bold text-text-primary",
1069
- children: R.revision
1070
- }), /* @__PURE__ */ T("p", {
1067
+ children: z.revision
1068
+ }), /* @__PURE__ */ E("p", {
1071
1069
  className: "text-sm text-text-secondary",
1072
- children: P("botlit.policyDetail.revision", "Revision")
1070
+ children: F("botlit.policyDetail.revision", "Revision")
1073
1071
  })]
1074
1072
  }) }),
1075
- /* @__PURE__ */ T(u, { children: /* @__PURE__ */ E(d, {
1073
+ /* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
1076
1074
  className: "pt-6 text-center",
1077
- children: [/* @__PURE__ */ T("p", {
1075
+ children: [/* @__PURE__ */ E("p", {
1078
1076
  className: "text-lg font-bold text-text-primary",
1079
- children: y(R.updatedAt)
1080
- }), /* @__PURE__ */ T("p", {
1077
+ children: _(z.updatedAt)
1078
+ }), /* @__PURE__ */ E("p", {
1081
1079
  className: "text-sm text-text-secondary",
1082
- children: P("botlit.policyDetail.lastUpdated", "Last Updated")
1080
+ children: F("botlit.policyDetail.lastUpdated", "Last Updated")
1083
1081
  })]
1084
1082
  }) })
1085
1083
  ]
1086
1084
  }),
1087
- /* @__PURE__ */ E(u, { children: [/* @__PURE__ */ E(p, { children: [/* @__PURE__ */ T(m, { children: P("botlit.policyDetail.configuration", "Configuration") }), /* @__PURE__ */ T(f, { children: P("botlit.policyDetail.currentPolicyConfiguration", "Current policy configuration") })] }), /* @__PURE__ */ E(d, {
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__ */ E("div", {
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__ */ T(D, {
1090
+ children: [/* @__PURE__ */ E(O, {
1093
1091
  size: 16,
1094
1092
  className: "mt-0.5 shrink-0 text-status-warning-text"
1095
- }), /* @__PURE__ */ T("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] }) })]
1096
- }) : $.length > 0 ? /* @__PURE__ */ E("div", {
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__ */ T(D, {
1097
+ children: [/* @__PURE__ */ E(O, {
1100
1098
  size: 16,
1101
1099
  className: "mt-0.5 shrink-0 text-status-warning-text"
1102
- }), /* @__PURE__ */ T("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(", ") }) })]
1103
- }) : null, /* @__PURE__ */ T("div", {
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__ */ T("pre", { children: JSON.stringify(R.config, null, 2) })
1103
+ children: /* @__PURE__ */ E("pre", { children: JSON.stringify(z.config, null, 2) })
1106
1104
  })]
1107
1105
  })] }),
1108
- /* @__PURE__ */ E(u, { children: [/* @__PURE__ */ T(p, { children: /* @__PURE__ */ E(m, {
1106
+ /* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
1109
1107
  className: "flex items-center gap-2",
1110
- children: [/* @__PURE__ */ T(ke, { size: 18 }), P("botlit.policyDetail.metadata", "Metadata")]
1111
- }) }), /* @__PURE__ */ T(d, { children: /* @__PURE__ */ E("div", {
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__ */ E("div", { children: [/* @__PURE__ */ T("p", {
1112
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
1115
1113
  className: "text-text-secondary",
1116
- children: P("botlit.policyDetail.created", "Created")
1117
- }), /* @__PURE__ */ T("p", {
1114
+ children: F("botlit.policyDetail.created", "Created")
1115
+ }), /* @__PURE__ */ E("p", {
1118
1116
  className: "font-medium",
1119
- children: y(R.createdAt)
1117
+ children: _(z.createdAt)
1120
1118
  })] }),
1121
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
1119
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
1122
1120
  className: "text-text-secondary",
1123
- children: P("botlit.policyDetail.updated", "Updated")
1124
- }), /* @__PURE__ */ T("p", {
1121
+ children: F("botlit.policyDetail.updated", "Updated")
1122
+ }), /* @__PURE__ */ E("p", {
1125
1123
  className: "font-medium",
1126
- children: y(R.updatedAt)
1124
+ children: _(z.updatedAt)
1127
1125
  })] }),
1128
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
1126
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
1129
1127
  className: "text-text-secondary",
1130
- children: P("botlit.policyDetail.tags", "Tags")
1131
- }), /* @__PURE__ */ T("div", {
1128
+ children: F("botlit.policyDetail.tags", "Tags")
1129
+ }), /* @__PURE__ */ E("div", {
1132
1130
  className: "flex gap-1",
1133
- children: R.tags.length > 0 ? R.tags.map((e) => /* @__PURE__ */ T(ne, {
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__ */ T("span", {
1135
+ }, e)) : /* @__PURE__ */ E("span", {
1138
1136
  className: "text-text-secondary",
1139
- children: P("botlit.policyDetail.none", "None")
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 { P as PolicyDetailPage };
1146
+ export { F as PolicyDetailPage };
1149
1147
 
1150
1148
  //# sourceMappingURL=PolicyDetailPage.js.map