@burdenoff/microfe-botmanor 2026.1127.1 → 2026.1127.3

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