@burdenoff/microfe-botmanor 2026.1127.1 → 2026.1127.2

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 (112) hide show
  1. package/dist/botlit/BotmanorRootInner.js +45 -44
  2. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  3. package/dist/botlit/components/AgentA2APanel.js +63 -62
  4. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  5. package/dist/botlit/components/AgentBindingsPanel.js +125 -124
  6. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  7. package/dist/botlit/components/AgentFallbackModelsPicker.js +56 -55
  8. package/dist/botlit/components/AgentFallbackModelsPicker.js.map +1 -1
  9. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  10. package/dist/botlit/components/AssistantChannelPanel.js +40 -39
  11. package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
  12. package/dist/botlit/components/AssistantRuntimeSetupPanel.js +36 -35
  13. package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
  14. package/dist/botlit/components/BotAgentsPanel.js +104 -103
  15. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  16. package/dist/botlit/components/BotFormFields.js +118 -117
  17. package/dist/botlit/components/BotFormFields.js.map +1 -1
  18. package/dist/botlit/components/BucketDialogs.js +110 -110
  19. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  20. package/dist/botlit/components/ChannelRoutesPanel.js +29 -28
  21. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  22. package/dist/botlit/components/CreateChannelRouteDialog.js +105 -105
  23. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  24. package/dist/botlit/components/DescribeBotDialog.js +86 -86
  25. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  26. package/dist/botlit/components/EmptyState.d.ts +8 -0
  27. package/dist/botlit/components/EmptyState.js +43 -30
  28. package/dist/botlit/components/EmptyState.js.map +1 -1
  29. package/dist/botlit/components/HandoffConfigPanel.js +125 -124
  30. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  31. package/dist/botlit/components/HandoffTargetPickers.js +42 -41
  32. package/dist/botlit/components/HandoffTargetPickers.js.map +1 -1
  33. package/dist/botlit/components/KnowledgeBackendMigrationPanel.js +106 -105
  34. package/dist/botlit/components/KnowledgeBackendMigrationPanel.js.map +1 -1
  35. package/dist/botlit/components/KnowledgeRetrievalTestPanel.js +76 -75
  36. package/dist/botlit/components/KnowledgeRetrievalTestPanel.js.map +1 -1
  37. package/dist/botlit/components/KnowledgeSourceImportPanel.js +76 -75
  38. package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
  39. package/dist/botlit/components/ModelRegistrationPanel.js +70 -69
  40. package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
  41. package/dist/botlit/components/StorePackageDraftCard.js +87 -86
  42. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  43. package/dist/botlit/components/SuggestionsPanel.js.map +1 -1
  44. package/dist/botlit/pages/A2AAgentDetailPage.js +263 -262
  45. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  46. package/dist/botlit/pages/A2ARegistryPage.js +47 -46
  47. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  48. package/dist/botlit/pages/AgentBuilderPage.js +426 -425
  49. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  50. package/dist/botlit/pages/AgentDetailPage.js +1 -0
  51. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  52. package/dist/botlit/pages/AgentsListPage.js +248 -247
  53. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  54. package/dist/botlit/pages/BotChannelsTab.js +324 -310
  55. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  56. package/dist/botlit/pages/BotDetailPage.js +1 -0
  57. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  58. package/dist/botlit/pages/BotWorkflowTab.js +126 -121
  59. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  60. package/dist/botlit/pages/BotsListPage.js +1 -0
  61. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  62. package/dist/botlit/pages/BucketDetailPage.js +1 -0
  63. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  64. package/dist/botlit/pages/BucketsPage.js +1 -0
  65. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  66. package/dist/botlit/pages/ChannelDetailPage.js +267 -266
  67. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  68. package/dist/botlit/pages/ChannelsPage.js +187 -186
  69. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  70. package/dist/botlit/pages/ChatPage.js +69 -68
  71. package/dist/botlit/pages/ChatPage.js.map +1 -1
  72. package/dist/botlit/pages/ExecutionDetailPage.js +1 -0
  73. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  74. package/dist/botlit/pages/ExecutionsPage.js +191 -191
  75. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  76. package/dist/botlit/pages/HandoffsPage.js +65 -64
  77. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  78. package/dist/botlit/pages/InstalledPackagesPage.js +146 -145
  79. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  80. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +235 -234
  81. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  82. package/dist/botlit/pages/KnowledgeBasesPage.js +152 -151
  83. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  84. package/dist/botlit/pages/MCPServerDetailPage.js +180 -179
  85. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  86. package/dist/botlit/pages/MCPServersPage.js +145 -145
  87. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  88. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  89. package/dist/botlit/pages/PolicyDetailPage.js +293 -292
  90. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  91. package/dist/botlit/pages/PromptStudioPage.js +229 -229
  92. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  93. package/dist/botlit/pages/PromptTemplateDetailPage.js +280 -279
  94. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  95. package/dist/botlit/pages/PromptTemplatesPage.js +31 -30
  96. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  97. package/dist/botlit/pages/RetrievalProfileDetailPage.js +204 -203
  98. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  99. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  100. package/dist/botlit/pages/SettingsPage.js +153 -153
  101. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  102. package/dist/botlit/pages/SkillDetailPage.js +305 -304
  103. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  104. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  105. package/dist/botlit/pages/StorePackageDetailPage.js +1 -0
  106. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  107. package/dist/botlit/pages/StorePage.js +173 -173
  108. package/dist/botlit/pages/StorePage.js.map +1 -1
  109. package/dist/botlit/utils/confirmAction.d.ts +13 -11
  110. package/dist/botlit/utils/confirmAction.js +26 -4
  111. package/dist/botlit/utils/confirmAction.js.map +1 -1
  112. package/package.json +3 -3
@@ -8,16 +8,16 @@ import { FormField as u, Input as d } from "../components/Input.js";
8
8
  import { Badge as f } from "../components/Badge.js";
9
9
  import "../permissions/index.js";
10
10
  import { ModelRegistrationPanel as ee } from "../components/ModelRegistrationPanel.js";
11
- import { useConfigureLLMProvider as te, useLLMModels as p, useLLMProviders as m, useTestLLMConnection as h } from "../hooks/useLLMProviders.js";
12
- import { cn as g } from "../utils/cn.js";
13
- import { toUnion as _ } from "../utils/unions.js";
14
- import { useState as v } from "react";
15
- import { PagePurpose as ne } from "@burdenoff/fe-libs/ui";
16
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
17
- import { Brain as re, ExternalLink as ie, Key as x, Link2 as S, Save as C } from "lucide-react";
18
- import { toast as w } from "sonner";
11
+ import { useConfigureLLMProvider as te, useLLMModels as ne, useLLMProviders as p, useTestLLMConnection as m } from "../hooks/useLLMProviders.js";
12
+ import { cn as h } from "../utils/cn.js";
13
+ import { toUnion as g } from "../utils/unions.js";
14
+ import { useState as _ } from "react";
15
+ import { PagePurpose as v, ThemedSelect as y } from "@burdenoff/fe-libs/ui";
16
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
17
+ import { Brain as S, ExternalLink as re, Key as C, Link2 as w, Save as T } from "lucide-react";
18
+ import { toast as E } from "sonner";
19
19
  // src/botlit/pages/SettingsPage.tsx
20
- var T = [
20
+ var D = [
21
21
  "OPENAI",
22
22
  "ANTHROPIC",
23
23
  "GOOGLE",
@@ -25,10 +25,10 @@ var T = [
25
25
  "AWS_BEDROCK",
26
26
  "CUSTOM"
27
27
  ];
28
- function E(e) {
29
- return _(e.toUpperCase(), T, "CUSTOM");
28
+ function O(e) {
29
+ return g(e.toUpperCase(), D, "CUSTOM");
30
30
  }
31
- var D = {
31
+ var k = {
32
32
  OPENAI: "OpenAI",
33
33
  ANTHROPIC: "Anthropic",
34
34
  GOOGLE: "Google AI",
@@ -36,111 +36,111 @@ var D = {
36
36
  AWS_BEDROCK: "AWS Bedrock",
37
37
  CUSTOM: "Custom"
38
38
  };
39
- function O(e) {
40
- return D[E(e)];
39
+ function A(e) {
40
+ return k[O(e)];
41
41
  }
42
- function k(e, t) {
43
- return t?.trim() || O(e);
42
+ function j(e, t) {
43
+ return t?.trim() || A(e);
44
44
  }
45
- var A = ({ providerId: e, providerName: t }) => {
46
- let [n, r] = h();
47
- return /* @__PURE__ */ y(l, {
45
+ var ie = ({ providerId: e, providerName: t }) => {
46
+ let [n, r] = m();
47
+ return /* @__PURE__ */ b(l, {
48
48
  variant: "outline",
49
49
  size: "sm",
50
50
  isLoading: r.loading,
51
51
  "aria-label": `Test connection to ${t}`,
52
52
  onClick: async () => {
53
53
  try {
54
- await n(e) ? w.success(`${t}: connection works`) : w.error(`${t}: the provider did not accept the request`);
54
+ await n(e) ? E.success(`${t}: connection works`) : E.error(`${t}: the provider did not accept the request`);
55
55
  } catch (e) {
56
- w.error(e instanceof Error ? e.message : `${t}: connection test failed`);
56
+ E.error(e instanceof Error ? e.message : `${t}: connection test failed`);
57
57
  }
58
58
  },
59
59
  children: "Test connection"
60
60
  });
61
- }, j = () => {
62
- let h = e(), { data: _, refetch: T, loading: D, error: O } = m(), { configureProvider: j, isConfiguring: M } = te(), { data: N, refetch: P, loading: ae, error: F } = p(), I = D || ae, L = O || F, [R, z] = v(""), [B, V] = v(!0), [H, U] = v("openai"), [W, G] = v(null), [K, q] = v("apikey"), [J, Y] = v(""), [X, Z] = v("ap-south-1"), Q = H === "aws_bedrock", $ = Q && K === "iam", oe = /^[a-z]{2}(?:-[a-z]+)+-\d+$/.test(X.trim());
63
- return /* @__PURE__ */ y(t, {
64
- title: h("botlit.settings.title", "Settings"),
65
- description: h("botlit.settings.description", "Configure your BotManor workspace settings"),
66
- children: /* @__PURE__ */ b("div", {
61
+ }, M = () => {
62
+ let m = e(), { data: g, refetch: D, loading: k, error: A } = p(), { configureProvider: M, isConfiguring: ae } = te(), { data: N, refetch: P, loading: oe, error: F } = ne(), I = k || oe, L = A || F, [R, z] = _(""), [B, V] = _(!0), [H, U] = _("openai"), [W, G] = _(null), [K, q] = _("apikey"), [J, Y] = _(""), [X, Z] = _("ap-south-1"), Q = H === "aws_bedrock", $ = Q && K === "iam", se = /^[a-z]{2}(?:-[a-z]+)+-\d+$/.test(X.trim());
63
+ return /* @__PURE__ */ b(t, {
64
+ title: m("botlit.settings.title", "Settings"),
65
+ description: m("botlit.settings.description", "Configure your BotManor workspace settings"),
66
+ children: /* @__PURE__ */ x("div", {
67
67
  className: "space-y-6",
68
68
  children: [
69
- I && /* @__PURE__ */ y("p", {
69
+ I && /* @__PURE__ */ b("p", {
70
70
  role: "status",
71
71
  children: "Loading providers and models…"
72
72
  }),
73
- L && /* @__PURE__ */ b("div", {
73
+ L && /* @__PURE__ */ x("div", {
74
74
  role: "alert",
75
- children: [/* @__PURE__ */ y("p", { children: "Could not load providers and models. Try loading the catalog again." }), /* @__PURE__ */ y(l, {
75
+ children: [/* @__PURE__ */ b("p", { children: "Could not load providers and models. Try loading the catalog again." }), /* @__PURE__ */ b(l, {
76
76
  variant: "secondary",
77
77
  onClick: () => {
78
- T(), P();
78
+ D(), P();
79
79
  },
80
80
  children: "Retry model catalog"
81
81
  })]
82
82
  }),
83
- /* @__PURE__ */ y(ne, {
84
- icon: /* @__PURE__ */ y(x, { size: 18 }),
85
- children: h("botlit.settings.purpose", "Workspace-wide settings for LLM Providers — connect at least one model provider (OpenAI, Anthropic, Google and others) so your agents have a brain to think with.")
83
+ /* @__PURE__ */ b(v, {
84
+ icon: /* @__PURE__ */ b(C, { size: 18 }),
85
+ children: m("botlit.settings.purpose", "Workspace-wide settings for LLM Providers — connect at least one model provider (OpenAI, Anthropic, Google and others) so your agents have a brain to think with.")
86
86
  }),
87
- /* @__PURE__ */ b(n, {
87
+ /* @__PURE__ */ x(n, {
88
88
  treatment: "glass",
89
89
  glow: !0,
90
- children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(o, { children: h("botlit.settings.providers.title", "LLM Providers") }), /* @__PURE__ */ y(i, { children: h("botlit.settings.providers.description", "Configure API keys for AI model providers") })] }), /* @__PURE__ */ y(r, {
90
+ children: [/* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(o, { children: m("botlit.settings.providers.title", "LLM Providers") }), /* @__PURE__ */ b(i, { children: m("botlit.settings.providers.description", "Configure API keys for AI model providers") })] }), /* @__PURE__ */ b(r, {
91
91
  className: "space-y-4",
92
- children: _?.map((e) => /* @__PURE__ */ b("div", {
92
+ children: g?.map((e) => /* @__PURE__ */ x("div", {
93
93
  className: "flex items-center justify-between p-4 border border-border-subtle rounded-lg",
94
- children: [/* @__PURE__ */ b("div", {
94
+ children: [/* @__PURE__ */ x("div", {
95
95
  className: "flex items-center gap-4",
96
- children: [/* @__PURE__ */ y("div", {
96
+ children: [/* @__PURE__ */ b("div", {
97
97
  className: "p-2 bg-action-primary-bg/10 rounded-lg",
98
- children: e.connectionId ? /* @__PURE__ */ y(S, { className: "h-5 w-5 text-primary" }) : /* @__PURE__ */ y(x, { className: "h-5 w-5 text-primary" })
99
- }), /* @__PURE__ */ b("div", { children: [
100
- /* @__PURE__ */ y("p", {
98
+ children: e.connectionId ? /* @__PURE__ */ b(w, { className: "h-5 w-5 text-primary" }) : /* @__PURE__ */ b(C, { className: "h-5 w-5 text-primary" })
99
+ }), /* @__PURE__ */ x("div", { children: [
100
+ /* @__PURE__ */ b("p", {
101
101
  className: "font-medium",
102
102
  children: e.name
103
103
  }),
104
- /* @__PURE__ */ y("p", {
104
+ /* @__PURE__ */ b("p", {
105
105
  className: "text-sm text-text-secondary",
106
- children: h("botlit.settings.providers.type", "Type: {{type}}", { type: e.type })
106
+ children: m("botlit.settings.providers.type", "Type: {{type}}", { type: e.type })
107
107
  }),
108
- e.connectionId && /* @__PURE__ */ y("p", {
108
+ e.connectionId && /* @__PURE__ */ b("p", {
109
109
  className: "text-xs text-text-secondary mt-0.5",
110
- children: h("botlit.settings.providers.connectedViaIntegrations", "Connected via Integrations")
110
+ children: m("botlit.settings.providers.connectedViaIntegrations", "Connected via Integrations")
111
111
  }),
112
- !e.connectionId && e.credentialsHash && /* @__PURE__ */ y("p", {
112
+ !e.connectionId && e.credentialsHash && /* @__PURE__ */ b("p", {
113
113
  className: "text-xs text-text-secondary mt-0.5",
114
- children: h("botlit.settings.providers.apiKeyStored", "API key stored locally")
114
+ children: m("botlit.settings.providers.apiKeyStored", "API key stored locally")
115
115
  })
116
116
  ] })]
117
- }), /* @__PURE__ */ b("div", {
117
+ }), /* @__PURE__ */ x("div", {
118
118
  className: "flex items-center gap-3",
119
119
  children: [
120
- e.connectionId && /* @__PURE__ */ y(f, {
120
+ e.connectionId && /* @__PURE__ */ b(f, {
121
121
  variant: "default",
122
- children: h("botlit.settings.providers.integrationBadge", "Integration")
122
+ children: m("botlit.settings.providers.integrationBadge", "Integration")
123
123
  }),
124
- /* @__PURE__ */ y(f, {
124
+ /* @__PURE__ */ b(f, {
125
125
  variant: e.isActive ? "success" : "secondary",
126
- children: e.isActive ? h("botlit.settings.providers.active", "Active") : h("botlit.settings.providers.inactive", "Inactive")
126
+ children: e.isActive ? m("botlit.settings.providers.active", "Active") : m("botlit.settings.providers.inactive", "Inactive")
127
127
  }),
128
- e.isActive && /* @__PURE__ */ y(c, {
128
+ e.isActive && /* @__PURE__ */ b(c, {
129
129
  permission: s.LLM_TEST,
130
- children: /* @__PURE__ */ y(A, {
130
+ children: /* @__PURE__ */ b(ie, {
131
131
  providerId: e.id,
132
132
  providerName: e.name
133
133
  })
134
134
  }),
135
- /* @__PURE__ */ y(c, {
135
+ /* @__PURE__ */ b(c, {
136
136
  permission: s.LLM_UPDATE,
137
- children: /* @__PURE__ */ y(l, {
137
+ children: /* @__PURE__ */ b(l, {
138
138
  variant: "outline",
139
139
  size: "sm",
140
140
  onClick: () => {
141
141
  G(e.id), V(e.isActive), U(e.type.toLowerCase()), z(""), Y(e.connectionId || ""), q(e.type === "AWS_BEDROCK" && e.metadata?.awsAuthentication === "iam" ? "iam" : e.connectionId ? "integration" : "apikey"), Z(typeof e.metadata?.region == "string" ? e.metadata.region : "ap-south-1"), document.getElementById("provider-form")?.scrollIntoView({ behavior: "smooth" });
142
142
  },
143
- children: h("botlit.settings.actions.configure", "Configure")
143
+ children: m("botlit.settings.actions.configure", "Configure")
144
144
  })
145
145
  })
146
146
  ]
@@ -148,63 +148,63 @@ var A = ({ providerId: e, providerName: t }) => {
148
148
  }, e.id))
149
149
  })]
150
150
  }),
151
- /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(o, { children: h("botlit.settings.models.title", "LLM Models") }), /* @__PURE__ */ y(i, { children: h("botlit.settings.models.description", "Registered models across your providers") })] }), /* @__PURE__ */ y(r, {
151
+ /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(o, { children: m("botlit.settings.models.title", "LLM Models") }), /* @__PURE__ */ b(i, { children: m("botlit.settings.models.description", "Registered models across your providers") })] }), /* @__PURE__ */ b(r, {
152
152
  className: "space-y-4",
153
153
  children: N && N.length > 0 ? N.map((e) => {
154
- let t = _?.find((t) => t.id === e.providerId)?.name;
155
- return /* @__PURE__ */ b("div", {
154
+ let t = g?.find((t) => t.id === e.providerId)?.name;
155
+ return /* @__PURE__ */ x("div", {
156
156
  className: "flex items-center justify-between p-4 border border-border-subtle rounded-lg",
157
- children: [/* @__PURE__ */ b("div", {
157
+ children: [/* @__PURE__ */ x("div", {
158
158
  className: "flex items-center gap-4",
159
- children: [/* @__PURE__ */ y("div", {
159
+ children: [/* @__PURE__ */ b("div", {
160
160
  className: "p-2 bg-accent rounded-lg",
161
- children: /* @__PURE__ */ y(re, { className: "h-5 w-5 text-text-primary" })
162
- }), /* @__PURE__ */ b("div", { children: [
163
- /* @__PURE__ */ y("p", {
161
+ children: /* @__PURE__ */ b(S, { className: "h-5 w-5 text-text-primary" })
162
+ }), /* @__PURE__ */ x("div", { children: [
163
+ /* @__PURE__ */ b("p", {
164
164
  className: "font-medium",
165
165
  children: e.name
166
166
  }),
167
- /* @__PURE__ */ b("p", {
167
+ /* @__PURE__ */ x("p", {
168
168
  className: "text-sm text-text-secondary",
169
169
  children: [e.modelId, t && ` · ${t}`]
170
170
  }),
171
- /* @__PURE__ */ b("div", {
171
+ /* @__PURE__ */ x("div", {
172
172
  className: "flex gap-3 mt-1 text-xs text-text-secondary",
173
173
  children: [
174
- e.contextWindow != null && /* @__PURE__ */ y("span", { children: h("botlit.settings.models.context", "Context: {{value}}K", { value: (e.contextWindow / 1e3).toFixed(0) }) }),
175
- e.maxOutputTokens != null && /* @__PURE__ */ y("span", { children: h("botlit.settings.models.maxOut", "Max out: {{value}}K", { value: (e.maxOutputTokens / 1e3).toFixed(0) }) }),
176
- e.inputPricePerMToken != null && /* @__PURE__ */ y("span", { children: h("botlit.settings.models.priceIn", "${{value}}/M in", { value: e.inputPricePerMToken }) }),
177
- e.outputPricePerMToken != null && /* @__PURE__ */ y("span", { children: h("botlit.settings.models.priceOut", "${{value}}/M out", { value: e.outputPricePerMToken }) })
174
+ e.contextWindow != null && /* @__PURE__ */ b("span", { children: m("botlit.settings.models.context", "Context: {{value}}K", { value: (e.contextWindow / 1e3).toFixed(0) }) }),
175
+ e.maxOutputTokens != null && /* @__PURE__ */ b("span", { children: m("botlit.settings.models.maxOut", "Max out: {{value}}K", { value: (e.maxOutputTokens / 1e3).toFixed(0) }) }),
176
+ e.inputPricePerMToken != null && /* @__PURE__ */ b("span", { children: m("botlit.settings.models.priceIn", "${{value}}/M in", { value: e.inputPricePerMToken }) }),
177
+ e.outputPricePerMToken != null && /* @__PURE__ */ b("span", { children: m("botlit.settings.models.priceOut", "${{value}}/M out", { value: e.outputPricePerMToken }) })
178
178
  ]
179
179
  })
180
180
  ] })]
181
- }), /* @__PURE__ */ y(f, {
181
+ }), /* @__PURE__ */ b(f, {
182
182
  variant: e.isActive ? "success" : "secondary",
183
- children: e.isActive ? h("botlit.settings.providers.active", "Active") : h("botlit.settings.providers.inactive", "Inactive")
183
+ children: e.isActive ? m("botlit.settings.providers.active", "Active") : m("botlit.settings.providers.inactive", "Inactive")
184
184
  })]
185
185
  }, e.id);
186
- }) : !I && !L ? /* @__PURE__ */ y("p", {
186
+ }) : !I && !L ? /* @__PURE__ */ b("p", {
187
187
  className: "text-sm text-text-secondary text-center py-4",
188
- children: h("botlit.settings.models.empty", "No models registered yet.")
188
+ children: m("botlit.settings.models.empty", "No models registered yet.")
189
189
  }) : null
190
190
  })] }),
191
- !I && !L && /* @__PURE__ */ y(c, {
191
+ !I && !L && /* @__PURE__ */ b(c, {
192
192
  permission: s.LLM_CREATE,
193
- children: /* @__PURE__ */ y(ee, {
194
- providers: _ ?? [],
193
+ children: /* @__PURE__ */ b(ee, {
194
+ providers: g ?? [],
195
195
  onCreated: () => void P()
196
196
  })
197
197
  }),
198
- /* @__PURE__ */ y(c, {
198
+ /* @__PURE__ */ b(c, {
199
199
  permission: s.LLM_CREATE,
200
- children: /* @__PURE__ */ b(n, {
200
+ children: /* @__PURE__ */ x(n, {
201
201
  id: "provider-form",
202
- children: [/* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(o, { children: W ? h("botlit.settings.form.updateTitle", "Update Provider") : h("botlit.settings.form.addTitle", "Add Provider") }), /* @__PURE__ */ y(i, { children: W ? h("botlit.settings.form.updateDescription", "Update credentials for this provider") : h("botlit.settings.form.addDescription", "Configure a new LLM provider") })] }), /* @__PURE__ */ b(r, {
202
+ children: [/* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(o, { children: W ? m("botlit.settings.form.updateTitle", "Update Provider") : m("botlit.settings.form.addTitle", "Add Provider") }), /* @__PURE__ */ b(i, { children: W ? m("botlit.settings.form.updateDescription", "Update credentials for this provider") : m("botlit.settings.form.addDescription", "Configure a new LLM provider") })] }), /* @__PURE__ */ x(r, {
203
203
  className: "space-y-4",
204
204
  children: [
205
- /* @__PURE__ */ y(u, {
206
- label: h("botlit.settings.form.providerLabel", "Provider"),
207
- children: /* @__PURE__ */ b("select", {
205
+ /* @__PURE__ */ b(u, {
206
+ label: m("botlit.settings.form.providerLabel", "Provider"),
207
+ children: /* @__PURE__ */ x(y, {
208
208
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
209
209
  value: H,
210
210
  disabled: !!W,
@@ -212,60 +212,60 @@ var A = ({ providerId: e, providerName: t }) => {
212
212
  U(e.target.value), q(e.target.value === "aws_bedrock" ? "iam" : "apikey"), z(""), Y("");
213
213
  },
214
214
  children: [
215
- /* @__PURE__ */ y("option", {
215
+ /* @__PURE__ */ b("option", {
216
216
  value: "openai",
217
217
  children: "OpenAI"
218
218
  }),
219
- /* @__PURE__ */ y("option", {
219
+ /* @__PURE__ */ b("option", {
220
220
  value: "anthropic",
221
221
  children: "Anthropic"
222
222
  }),
223
- /* @__PURE__ */ y("option", {
223
+ /* @__PURE__ */ b("option", {
224
224
  value: "google",
225
225
  children: "Google AI"
226
226
  }),
227
- /* @__PURE__ */ y("option", {
227
+ /* @__PURE__ */ b("option", {
228
228
  value: "azure_openai",
229
229
  children: "Azure OpenAI"
230
230
  }),
231
- /* @__PURE__ */ y("option", {
231
+ /* @__PURE__ */ b("option", {
232
232
  value: "aws_bedrock",
233
233
  children: "AWS Bedrock"
234
234
  }),
235
- /* @__PURE__ */ y("option", {
235
+ /* @__PURE__ */ b("option", {
236
236
  value: "custom",
237
237
  children: "Custom"
238
238
  })
239
239
  ]
240
240
  })
241
241
  }),
242
- W && /* @__PURE__ */ b("label", {
242
+ W && /* @__PURE__ */ x("label", {
243
243
  className: "flex items-center gap-2 text-sm",
244
- children: [/* @__PURE__ */ y("input", {
244
+ children: [/* @__PURE__ */ b("input", {
245
245
  type: "checkbox",
246
246
  checked: B,
247
247
  onChange: (e) => V(e.target.checked)
248
248
  }), "Provider enabled"]
249
249
  }),
250
- Q && /* @__PURE__ */ b(u, {
250
+ Q && /* @__PURE__ */ x(u, {
251
251
  label: "AWS region",
252
- children: [/* @__PURE__ */ y(d, {
252
+ children: [/* @__PURE__ */ b(d, {
253
253
  "aria-label": "AWS region",
254
254
  value: X,
255
255
  onChange: (e) => Z(e.target.value)
256
- }), /* @__PURE__ */ y("p", {
256
+ }), /* @__PURE__ */ b("p", {
257
257
  className: "text-sm text-text-secondary",
258
258
  children: "Managed AWS IAM requires model access enabled for this workspace by your platform administrator."
259
259
  })]
260
260
  }),
261
- /* @__PURE__ */ y(u, {
262
- label: h("botlit.settings.form.credentialMethod", "Credential Method"),
263
- children: /* @__PURE__ */ b("div", {
261
+ /* @__PURE__ */ b(u, {
262
+ label: m("botlit.settings.form.credentialMethod", "Credential Method"),
263
+ children: /* @__PURE__ */ x("div", {
264
264
  className: "flex flex-wrap gap-3",
265
265
  children: [
266
- Q && /* @__PURE__ */ b("label", {
267
- className: g("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer flex-1", $ ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
268
- children: [/* @__PURE__ */ y("input", {
266
+ Q && /* @__PURE__ */ x("label", {
267
+ className: h("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer flex-1", $ ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
268
+ children: [/* @__PURE__ */ b("input", {
269
269
  type: "radio",
270
270
  name: "credentialMethod",
271
271
  value: "iam",
@@ -275,134 +275,134 @@ var A = ({ providerId: e, providerName: t }) => {
275
275
  }
276
276
  }), "Managed AWS IAM"]
277
277
  }),
278
- /* @__PURE__ */ b("label", {
279
- className: g("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer transition-colors flex-1", K === "integration" ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
280
- children: [/* @__PURE__ */ y("input", {
278
+ /* @__PURE__ */ x("label", {
279
+ className: h("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer transition-colors flex-1", K === "integration" ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
280
+ children: [/* @__PURE__ */ b("input", {
281
281
  type: "radio",
282
282
  name: "credentialMethod",
283
283
  value: "integration",
284
284
  checked: K === "integration",
285
285
  onChange: () => q("integration"),
286
286
  className: "h-4 w-4"
287
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
287
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
288
288
  className: "font-medium text-sm",
289
- children: h("botlit.settings.form.integrationOption", "Connect via Integrations")
290
- }), /* @__PURE__ */ y("p", {
289
+ children: m("botlit.settings.form.integrationOption", "Connect via Integrations")
290
+ }), /* @__PURE__ */ b("p", {
291
291
  className: "text-xs text-text-secondary",
292
- children: h("botlit.settings.form.integrationHint", "Managed credentials (recommended)")
292
+ children: m("botlit.settings.form.integrationHint", "Managed credentials (recommended)")
293
293
  })] })]
294
294
  }),
295
- /* @__PURE__ */ b("label", {
296
- className: g("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer transition-colors flex-1", K === "apikey" ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
297
- children: [/* @__PURE__ */ y("input", {
295
+ /* @__PURE__ */ x("label", {
296
+ className: h("flex items-center gap-2 px-4 py-3 border rounded-lg cursor-pointer transition-colors flex-1", K === "apikey" ? "border-primary bg-action-primary-bg/5" : "border-border-subtle hover:border-primary/50"),
297
+ children: [/* @__PURE__ */ b("input", {
298
298
  type: "radio",
299
299
  name: "credentialMethod",
300
300
  value: "apikey",
301
301
  checked: K === "apikey",
302
302
  onChange: () => q("apikey"),
303
303
  className: "h-4 w-4"
304
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
304
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
305
305
  className: "font-medium text-sm",
306
- children: h("botlit.settings.form.apiKeyOption", "Enter API Key")
307
- }), /* @__PURE__ */ y("p", {
306
+ children: m("botlit.settings.form.apiKeyOption", "Enter API Key")
307
+ }), /* @__PURE__ */ b("p", {
308
308
  className: "text-xs text-text-secondary",
309
- children: h("botlit.settings.form.apiKeyHint", "Paste key directly (legacy)")
309
+ children: m("botlit.settings.form.apiKeyHint", "Paste key directly (legacy)")
310
310
  })] })]
311
311
  })
312
312
  ]
313
313
  })
314
314
  }),
315
- K === "integration" && /* @__PURE__ */ b("div", {
315
+ K === "integration" && /* @__PURE__ */ x("div", {
316
316
  className: "space-y-3",
317
- children: [/* @__PURE__ */ y("div", {
317
+ children: [/* @__PURE__ */ b("div", {
318
318
  className: "p-4 bg-bg-sunken/50 border border-border-subtle rounded-lg",
319
- children: /* @__PURE__ */ b("div", {
319
+ children: /* @__PURE__ */ x("div", {
320
320
  className: "flex items-start gap-3",
321
- children: [/* @__PURE__ */ y(S, { className: "h-5 w-5 text-primary mt-0.5 flex-shrink-0" }), /* @__PURE__ */ b("div", {
321
+ children: [/* @__PURE__ */ b(w, { className: "h-5 w-5 text-primary mt-0.5 flex-shrink-0" }), /* @__PURE__ */ x("div", {
322
322
  className: "space-y-2 flex-1",
323
323
  children: [
324
- /* @__PURE__ */ y("p", {
324
+ /* @__PURE__ */ b("p", {
325
325
  className: "text-sm font-medium",
326
- children: h("botlit.settings.form.integrationTitle", "Integration Connection")
326
+ children: m("botlit.settings.form.integrationTitle", "Integration Connection")
327
327
  }),
328
- /* @__PURE__ */ y("p", {
328
+ /* @__PURE__ */ b("p", {
329
329
  className: "text-xs text-text-secondary",
330
- children: h("botlit.settings.form.integrationDescription", "Create a connection in the Integrations module, then paste the Connection ID here. This stores your API key securely in the Integrations vault.")
330
+ children: m("botlit.settings.form.integrationDescription", "Create a connection in the Integrations module, then paste the Connection ID here. This stores your API key securely in the Integrations vault.")
331
331
  }),
332
- /* @__PURE__ */ y("div", {
332
+ /* @__PURE__ */ b("div", {
333
333
  className: "flex gap-2 mt-2",
334
- children: /* @__PURE__ */ b(l, {
334
+ children: /* @__PURE__ */ x(l, {
335
335
  variant: "outline",
336
336
  size: "sm",
337
337
  onClick: () => {
338
338
  window.open("/integrations/connections", "_blank");
339
339
  },
340
- children: [/* @__PURE__ */ y(ie, {
340
+ children: [/* @__PURE__ */ b(re, {
341
341
  size: 14,
342
342
  className: "mr-1.5"
343
- }), h("botlit.settings.form.openIntegrations", "Open Integrations")]
343
+ }), m("botlit.settings.form.openIntegrations", "Open Integrations")]
344
344
  })
345
345
  })
346
346
  ]
347
347
  })]
348
348
  })
349
- }), /* @__PURE__ */ y(u, {
350
- label: h("botlit.settings.form.connectionIdPlaceholder", "Connection ID"),
351
- children: /* @__PURE__ */ y(d, {
352
- placeholder: h("botlit.settings.form.connectionIdPlaceholder", "Paste connection ID from Integrations..."),
349
+ }), /* @__PURE__ */ b(u, {
350
+ label: m("botlit.settings.form.connectionIdPlaceholder", "Connection ID"),
351
+ children: /* @__PURE__ */ b(d, {
352
+ placeholder: m("botlit.settings.form.connectionIdPlaceholder", "Paste connection ID from Integrations..."),
353
353
  value: J,
354
354
  onChange: (e) => Y(e.target.value)
355
355
  })
356
356
  })]
357
357
  }),
358
- K === "apikey" && /* @__PURE__ */ y(u, {
359
- label: h("botlit.settings.form.apiKeyLabel", "API Key"),
360
- children: /* @__PURE__ */ y(d, {
358
+ K === "apikey" && /* @__PURE__ */ b(u, {
359
+ label: m("botlit.settings.form.apiKeyLabel", "API Key"),
360
+ children: /* @__PURE__ */ b(d, {
361
361
  type: "password",
362
- placeholder: h("botlit.settings.form.apiKeyPlaceholder", "sk-..."),
362
+ placeholder: m("botlit.settings.form.apiKeyPlaceholder", "sk-..."),
363
363
  value: R,
364
364
  onChange: (e) => z(e.target.value)
365
365
  })
366
366
  }),
367
- /* @__PURE__ */ b("div", {
367
+ /* @__PURE__ */ x("div", {
368
368
  className: "flex gap-2",
369
- children: [/* @__PURE__ */ y(l, {
370
- leftIcon: /* @__PURE__ */ y(C, { size: 16 }),
371
- isLoading: M,
372
- disabled: Q && !oe || ($ ? !1 : K === "apikey" ? !R.trim() : !J.trim()),
369
+ children: [/* @__PURE__ */ b(l, {
370
+ leftIcon: /* @__PURE__ */ b(T, { size: 16 }),
371
+ isLoading: ae,
372
+ disabled: Q && !se || ($ ? !1 : K === "apikey" ? !R.trim() : !J.trim()),
373
373
  onClick: async () => {
374
374
  try {
375
- let e = _?.find((e) => e.id === W), t = k(H, e?.name), n = K === "apikey" && R ? { apiKey: R } : void 0, r = K === "integration" ? J : null, i = e?.metadata ?? {}, a = Q ? {
375
+ let e = g?.find((e) => e.id === W), t = j(H, e?.name), n = K === "apikey" && R ? { apiKey: R } : void 0, r = K === "integration" ? J : null, i = e?.metadata ?? {}, a = Q ? {
376
376
  ...i,
377
377
  region: X.trim(),
378
378
  awsAuthentication: $ ? "iam" : "credentials"
379
379
  } : i;
380
- W ? await j({
380
+ W ? await M({
381
381
  name: t,
382
- type: E(H),
382
+ type: O(H),
383
383
  connectionId: r,
384
384
  credentials: n,
385
385
  metadata: a,
386
386
  isActive: B
387
- }, W) : await j({
387
+ }, W) : await M({
388
388
  name: t,
389
- type: E(H),
389
+ type: O(H),
390
390
  connectionId: r,
391
391
  credentials: n,
392
392
  metadata: a
393
- }), z(""), Y(""), G(null), await T(), w.success(W ? h("botlit.settings.form.updateSuccess", "{{provider}} provider updated successfully", { provider: t }) : h("botlit.settings.form.addSuccess", "{{provider}} provider added successfully", { provider: t }));
393
+ }), z(""), Y(""), G(null), await D(), E.success(W ? m("botlit.settings.form.updateSuccess", "{{provider}} provider updated successfully", { provider: t }) : m("botlit.settings.form.addSuccess", "{{provider}} provider added successfully", { provider: t }));
394
394
  } catch (e) {
395
- let t = e instanceof Error ? e.message : h("botlit.settings.form.saveError", "Failed to save provider");
396
- w.error(t);
395
+ let t = e instanceof Error ? e.message : m("botlit.settings.form.saveError", "Failed to save provider");
396
+ E.error(t);
397
397
  }
398
398
  },
399
- children: W ? h("botlit.settings.form.updateProvider", "Update Provider") : h("botlit.settings.form.saveProvider", "Save Provider")
400
- }), W && /* @__PURE__ */ y(l, {
399
+ children: W ? m("botlit.settings.form.updateProvider", "Update Provider") : m("botlit.settings.form.saveProvider", "Save Provider")
400
+ }), W && /* @__PURE__ */ b(l, {
401
401
  variant: "outline",
402
402
  onClick: () => {
403
403
  G(null), z(""), Y(""), q("apikey"), U("openai");
404
404
  },
405
- children: h("botlit.settings.form.cancel", "Cancel")
405
+ children: m("botlit.settings.form.cancel", "Cancel")
406
406
  })]
407
407
  })
408
408
  ]
@@ -413,6 +413,6 @@ var A = ({ providerId: e, providerName: t }) => {
413
413
  })
414
414
  });
415
415
  };
416
- export { j as SettingsPage, O as providerLabel, k as providerNameFor };
416
+ export { M as SettingsPage, A as providerLabel, j as providerNameFor };
417
417
 
418
418
  //# sourceMappingURL=SettingsPage.js.map