bazilion 0.50.0 → 0.52.0

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 (170) hide show
  1. package/dist/cli.js +316 -90
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +1378 -364
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +1 -0
  6. package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +1 -0
  7. package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +1 -0
  8. package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +1 -0
  9. package/dist/web/client/assets/Dialog-s_kPtI-W.js +1 -0
  10. package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +1 -0
  11. package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +1 -0
  12. package/dist/web/client/assets/Segmented-Dh77vmpp.js +1 -0
  13. package/dist/web/client/assets/SkillFindings-Xng11qqx.js +1 -0
  14. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +1 -0
  15. package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +1 -0
  16. package/dist/web/client/assets/Tabs-f6bHvCGn.js +1 -0
  17. package/dist/web/client/assets/TeamForm-kda1HYZG.js +1 -0
  18. package/dist/web/client/assets/TeamThread-2rm1JGSk.js +1 -0
  19. package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +1 -0
  20. package/dist/web/client/assets/_id-B72mIpcE.js +1 -0
  21. package/dist/web/client/assets/_id-Bzavnza1.js +1 -0
  22. package/dist/web/client/assets/access-Yw9jODuk.js +1 -0
  23. package/dist/web/client/assets/agents-C9xoyL7o.js +1 -0
  24. package/dist/web/client/assets/agents-TviG16wx.js +1 -0
  25. package/dist/web/client/assets/api-HC_YzjBy.js +1 -0
  26. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +1 -0
  27. package/dist/web/client/assets/attention-DmURtlJm.js +1 -0
  28. package/dist/web/client/assets/check-BjgKoGvU.js +1 -0
  29. package/dist/web/client/assets/chevron-right-CUZiA2aG.js +1 -0
  30. package/dist/web/client/assets/config-UZz_mjO5.js +1 -0
  31. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +1 -0
  32. package/dist/web/client/assets/dist-BWppw70N.js +41 -0
  33. package/dist/web/client/assets/dist-D2dwY7MR.js +1 -0
  34. package/dist/web/client/assets/index-Df1oUtAP.js +14 -0
  35. package/dist/web/client/assets/link-Cbztlp_R.js +1 -0
  36. package/dist/web/client/assets/login-CPfdaqsV.js +1 -0
  37. package/dist/web/client/assets/mcp-FlYnNon0.js +1 -0
  38. package/dist/web/client/assets/model-facts-DoB6QD5y.js +1 -0
  39. package/dist/web/client/assets/parts-tIDBNsYA.js +1 -0
  40. package/dist/web/client/assets/plus-CWrKMtvA.js +1 -0
  41. package/dist/web/client/assets/routes-BZaWCoQj.js +76 -0
  42. package/dist/web/client/assets/save-f9O-CQia.js +1 -0
  43. package/dist/web/client/assets/skills-C7yDPC8s.js +1 -0
  44. package/dist/web/client/assets/style-DDuTFJUu.js +7 -0
  45. package/dist/web/client/assets/styles-BviXU81u.css +2 -0
  46. package/dist/web/client/assets/system-CL3Kz36L.js +1 -0
  47. package/dist/web/client/assets/teams-CQTEF5gV.js +1 -0
  48. package/dist/web/client/assets/teams-DQ7SqVyF.js +1 -0
  49. package/dist/web/client/assets/telegram-BLgxtGhZ.js +1 -0
  50. package/dist/web/client/assets/tools-pOQyGVYo.js +1 -0
  51. package/dist/web/client/assets/use-resource-C3MBZJop.js +1 -0
  52. package/dist/web/client/assets/welcome-Hr6JpMef.js +1 -0
  53. package/dist/web/client/assets/wrench-6BEIqKDn.js +1 -0
  54. package/dist/web/server/assets/AddProviderDialog-Tn4AskPm.js +613 -0
  55. package/dist/web/server/assets/{ConfigPage-DSLM5CLw.js → ConfigPage-DqDUujmt.js} +4 -4
  56. package/dist/web/server/assets/ConfirmDialog-DfaJ--A6.js +52 -0
  57. package/dist/web/server/assets/{ConnectionsView-DVLNH81Y.js → ConnectionsView-DAG-zNBz.js} +7 -5
  58. package/dist/web/server/assets/{ConfirmDialog-CvLZgbfY.js → Dialog-aup_yJv5.js} +3 -50
  59. package/dist/web/server/assets/ModelMenu-DUY9aHkE.js +138 -0
  60. package/dist/web/server/assets/{Rail-D8LhjS38.js → Rail-BIC_4ptO.js} +8 -66
  61. package/dist/web/server/assets/{SectionTabs-CNcvxbR8.js → SectionTabs-BGsrf-UQ.js} +5 -4
  62. package/dist/web/server/assets/Segmented-3ZLdqa5U.js +18 -0
  63. package/dist/web/server/assets/{SkillFindings-DX8lCMG7.js → SkillFindings-BdATze1A.js} +1 -1
  64. package/dist/web/server/assets/{SpawnDialog-Brmkl_ll.js → SpawnDialog-D_SMPCG_.js} +11 -8
  65. package/dist/web/server/assets/{TeamForm-CvQAs2FA.js → TeamForm-ilBaeLI4.js} +1 -1
  66. package/dist/web/server/assets/{TeamThread-BNJi6gPM.js → TeamThread-DuLlGDcw.js} +4 -19
  67. package/dist/web/server/assets/{UnsavedChangesGuard-B3Lpl08z.js → UnsavedChangesGuard-DrOvPV14.js} +1 -1
  68. package/dist/web/server/assets/{_id-CO1PgvyG.js → _id-BsZcsabI.js} +11 -11
  69. package/dist/web/server/assets/{_id-CA3QO7J5.js → _id-D8Kj0F30.js} +2 -2
  70. package/dist/web/server/assets/{_id-DIXUiIaB.js → _id-DJnYgisy.js} +2 -2
  71. package/dist/web/server/assets/{_id-E2N4gZ4O.js → _id-QYifTM9w.js} +3 -3
  72. package/dist/web/server/assets/{_id-BH1631a8.js → _id-yN0z7VqE.js} +6 -6
  73. package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +223 -0
  74. package/dist/web/server/assets/{tokens-CEdl8puR.js → access-C_pupPks.js} +3 -3
  75. package/dist/web/server/assets/{tokens-CsqoRt5T.js → access-DKOpcHIJ.js} +10 -10
  76. package/dist/web/server/assets/{tokens-ByPTGFBQ.js → access-GMGed5O8.js} +5 -5
  77. package/dist/web/server/assets/{agents-DrkEwIpR.js → agents-B6OR3x99.js} +14 -14
  78. package/dist/web/server/assets/{agents-CalSKogx.js → agents-B7642eRO.js} +5 -5
  79. package/dist/web/server/assets/{agents-DPZVni4Q.js → agents-BJ-_oC2e.js} +2 -2
  80. package/dist/web/server/assets/{agents-CdZvooeQ.js → agents-CjV0w-Zy.js} +2 -2
  81. package/dist/web/server/assets/{agents-C63VycUw.js → agents-Dy_Q-9lG.js} +3 -3
  82. package/dist/web/server/assets/{attention-DIyX3VMB.js → attention-CLP4HYBz.js} +3 -3
  83. package/dist/web/server/assets/{attention-BbE4yc-V.js → attention-DS3O9UmJ.js} +2 -2
  84. package/dist/web/server/assets/config-DjTGA4iZ.js +17 -0
  85. package/dist/web/server/assets/config-Q7livfa3.js +1215 -0
  86. package/dist/web/server/assets/config-X7qWbbpH.js +20 -0
  87. package/dist/web/server/assets/{Page-KIL1CsME.js → createSsrRpc-GCCF14VW.js} +17 -2
  88. package/dist/web/server/assets/{mcp-Cf7KzOJ9.js → mcp-BI-FD-JI.js} +5 -5
  89. package/dist/web/server/assets/{mcp-DE14q5c0.js → mcp-ZARSOxZW.js} +2 -2
  90. package/dist/web/server/assets/model-facts-mrfrWQne.js +136 -0
  91. package/dist/web/server/assets/parts-B31PJkhi.js +190 -0
  92. package/dist/web/server/assets/{router-w2yPgmC1.js → router-Dh2-IvLL.js} +69 -81
  93. package/dist/web/server/assets/{routes-1FEodTRm.js → routes-BJIJWCIE.js} +3 -3
  94. package/dist/web/server/assets/{routes-D1NHwz6f.js → routes-C9NawqcV.js} +22 -15
  95. package/dist/web/server/assets/{routes-B6AO0LjK.js → routes-CDskMy5C.js} +2 -2
  96. package/dist/web/server/assets/{skills-DC1OTc8n.js → skills-BqLq3ZXq.js} +5 -5
  97. package/dist/web/server/assets/{skills-CA17GjuZ.js → skills-StN15QhC.js} +2 -2
  98. package/dist/web/server/assets/system-BtRA2HUs.js +138 -0
  99. package/dist/web/server/assets/system-Dl-1RhoP.js +12 -0
  100. package/dist/web/server/assets/system-DtswhLW6.js +18 -0
  101. package/dist/web/server/assets/{teams-D6Tx-Jyn.js → teams-5PMGvHuM.js} +2 -2
  102. package/dist/web/server/assets/{teams-OzHTyVi9.js → teams-COaU0wN9.js} +4 -4
  103. package/dist/web/server/assets/{teams-Cg-QQWpH.js → teams-Ca8W4mvl.js} +5 -5
  104. package/dist/web/server/assets/{teams-Bm63mbTt.js → teams-CbIPKf99.js} +2 -2
  105. package/dist/web/server/assets/{telegram-Gy7_9yih.js → telegram-CGol0CKX2.js} +3 -3
  106. package/dist/web/server/assets/{telegram-xU-vXgef.js → telegram-Cv0D4gyz.js} +5 -5
  107. package/dist/web/server/assets/{telegram-BJ4l_TA_.js → telegram-Yx8nm6Ei.js} +5 -5
  108. package/dist/web/server/assets/tools-C-wwWjLI.js +12 -0
  109. package/dist/web/server/assets/tools-OfD22R-C.js +502 -0
  110. package/dist/web/server/assets/tools-ioJcPzMW.js +12 -0
  111. package/dist/web/server/assets/use-resource-DVzK0toP.js +63 -0
  112. package/dist/web/server/assets/utils-C_uf36nf.js +8 -0
  113. package/dist/web/server/assets/welcome-CxXMI4HI.js +15 -0
  114. package/dist/web/server/assets/welcome-FFEbrNT1.js +319 -0
  115. package/dist/web/server/assets/welcome-jxmpE_Jb.js +26 -0
  116. package/dist/web/server/assets/{workspace-DeEYMPDX.js → workspace-DaitCM0t.js} +1 -8
  117. package/dist/web/server/server.js +27 -19
  118. package/dist/worker.js +277 -153
  119. package/dist/worker.js.map +1 -1
  120. package/package.json +1 -1
  121. package/dist/web/client/assets/ConfigPage-_FY--9PB.js +0 -1
  122. package/dist/web/client/assets/ConfirmDialog-BblXqMVb.js +0 -1
  123. package/dist/web/client/assets/ConnectionsView-BZHJysCa.js +0 -1
  124. package/dist/web/client/assets/FieldRow-k05wfDy9.js +0 -1
  125. package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +0 -1
  126. package/dist/web/client/assets/SectionTabs-DlfXtepS.js +0 -1
  127. package/dist/web/client/assets/SkillFindings-CHf5ZGY0.js +0 -1
  128. package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +0 -1
  129. package/dist/web/client/assets/SpawnDialog-C-Ujb4bC.js +0 -1
  130. package/dist/web/client/assets/Tabs-D0LgBNIk.js +0 -1
  131. package/dist/web/client/assets/TeamForm-D6EAAF7m.js +0 -1
  132. package/dist/web/client/assets/TeamThread-DpUOwMoi.js +0 -1
  133. package/dist/web/client/assets/UnsavedChangesGuard-DTUP7hwu.js +0 -1
  134. package/dist/web/client/assets/_id-C94dgBDe.js +0 -1
  135. package/dist/web/client/assets/_id-CxmEfoEp.js +0 -1
  136. package/dist/web/client/assets/agents-C-bJ5R_0.js +0 -1
  137. package/dist/web/client/assets/agents-odqBNx-A.js +0 -1
  138. package/dist/web/client/assets/api-CPzQ_z9m.js +0 -1
  139. package/dist/web/client/assets/arrow-right-Dyta3p06.js +0 -1
  140. package/dist/web/client/assets/attention-D0e7o7fh.js +0 -1
  141. package/dist/web/client/assets/chevron-right-B2YEg9rw.js +0 -1
  142. package/dist/web/client/assets/config-B7Y5MtpM.js +0 -3
  143. package/dist/web/client/assets/createLucideIcon-Cgab8gqu.js +0 -1
  144. package/dist/web/client/assets/index-CNVw44IE.js +0 -54
  145. package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
  146. package/dist/web/client/assets/link-ClwtaO_E.js +0 -1
  147. package/dist/web/client/assets/login-Br1F4rQx.js +0 -1
  148. package/dist/web/client/assets/mcp-B8bIAY6k.js +0 -1
  149. package/dist/web/client/assets/routes-BZdlkRdC.js +0 -76
  150. package/dist/web/client/assets/save-ZqeB_I-c.js +0 -1
  151. package/dist/web/client/assets/services-CPJxDrVG.js +0 -1
  152. package/dist/web/client/assets/skills-DE_kQQGj.js +0 -1
  153. package/dist/web/client/assets/style-BWShXY3e.js +0 -7
  154. package/dist/web/client/assets/styles-Tney8jZq.css +0 -2
  155. package/dist/web/client/assets/teams-AcuSLc3I.js +0 -1
  156. package/dist/web/client/assets/teams-tRamPg7O.js +0 -1
  157. package/dist/web/client/assets/telegram-Ku69-GAv.js +0 -1
  158. package/dist/web/client/assets/tokens-DuLNZMgi.js +0 -1
  159. package/dist/web/client/assets/welcome-CrQk6n6I.js +0 -1
  160. package/dist/web/server/assets/FieldRow-DQBzMtcR.js +0 -173
  161. package/dist/web/server/assets/ModelSelect-Vwro6OkL.js +0 -43
  162. package/dist/web/server/assets/_tanstack-start-manifest_v-BVfrV7LQ.js +0 -191
  163. package/dist/web/server/assets/config-3tPtOmPE.js +0 -12
  164. package/dist/web/server/assets/config-DJGZiPBJ.js +0 -798
  165. package/dist/web/server/assets/config-rUqhMjIs.js +0 -25
  166. package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +0 -16
  167. package/dist/web/server/assets/services-BjroGXgC.js +0 -74
  168. package/dist/web/server/assets/services-Cdk40QHq.js +0 -13
  169. package/dist/web/server/assets/services-DsHRLL8q.js +0 -12
  170. package/dist/web/server/assets/welcome-O6Rjd7yO.js +0 -93
@@ -1,9 +1,11 @@
1
- import { E as errorMessage, _ as useActivity, d as Button, f as AgentAvatar, w as api } from "./workspace-DeEYMPDX.js";
1
+ import { C as api, T as errorMessage, d as AgentAvatar, g as useActivity, u as Button } from "./workspace-DaitCM0t.js";
2
2
  import { a as endpointLabel, c as liveEdges, l as sameDocument, n as OUTSIDE, o as hasEdge, s as liveDocument, t as TeamPolicyMatrix, u as setEdge } from "./style-GYDODk2F.js";
3
- import { c as useWorkspace, f as useResource, i as STATE_DOT } from "./Rail-D8LhjS38.js";
4
- import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
5
- import { i as pairKey, n as useTeamMessages, o as FocusFrame, s as Segmented, t as TeamThread } from "./TeamThread-BNJi6gPM.js";
6
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-B3Lpl08z.js";
3
+ import { r as useResource } from "./use-resource-DVzK0toP.js";
4
+ import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
5
+ import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
6
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-DrOvPV14.js";
7
+ import { c as useWorkspace, i as STATE_DOT } from "./Rail-BIC_4ptO.js";
8
+ import { i as pairKey, n as useTeamMessages, o as FocusFrame, t as TeamThread } from "./TeamThread-DuLlGDcw.js";
7
9
  import { useEffect, useMemo, useState } from "react";
8
10
  import { Link, useRouter } from "@tanstack/react-router";
9
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { E as errorMessage, d as Button, u as cn } from "./workspace-DeEYMPDX.js";
2
- import { useEffect, useLayoutEffect, useRef, useState } from "react";
1
+ import { t as cn } from "./utils-C_uf36nf.js";
2
+ import { useEffect, useLayoutEffect, useRef } from "react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { X } from "lucide-react";
5
5
  import { Dialog } from "radix-ui";
@@ -82,51 +82,4 @@ function DialogActions({ children }) {
82
82
  });
83
83
  }
84
84
  //#endregion
85
- //#region src/components/ConfirmDialog.tsx
86
- /** Ask before a consequential action; `onConfirm` failures stay in the dialog. */
87
- function ConfirmDialog({ open, title, description, confirmLabel, confirmVariant = "danger", onConfirm, onOpenChange }) {
88
- const [busy, setBusy] = useState(false);
89
- const [error, setError] = useState(null);
90
- useEffect(() => {
91
- if (!open) {
92
- setBusy(false);
93
- setError(null);
94
- }
95
- }, [open]);
96
- async function confirm() {
97
- setBusy(true);
98
- setError(null);
99
- try {
100
- await onConfirm();
101
- onOpenChange(false);
102
- } catch (err) {
103
- setError(errorMessage(err));
104
- setBusy(false);
105
- }
106
- }
107
- return /* @__PURE__ */ jsxs(Dialog$1, {
108
- open,
109
- busy,
110
- onClose: () => onOpenChange(false),
111
- title,
112
- description,
113
- className: "max-w-md",
114
- children: [error && /* @__PURE__ */ jsx("p", {
115
- role: "alert",
116
- className: "rounded-md bg-danger/10 px-3 py-2 text-sm text-danger",
117
- children: error
118
- }), /* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
119
- variant: "ghost",
120
- disabled: busy,
121
- onClick: () => onOpenChange(false),
122
- children: "Cancel"
123
- }), /* @__PURE__ */ jsx(Button, {
124
- variant: confirmVariant,
125
- disabled: busy,
126
- onClick: () => void confirm(),
127
- children: busy ? "Working…" : confirmLabel
128
- })] })]
129
- });
130
- }
131
- //#endregion
132
- export { Dialog$1 as n, DialogActions as r, ConfirmDialog as t };
85
+ export { DialogActions as n, Dialog$1 as t };
@@ -0,0 +1,138 @@
1
+ import { t as cn } from "./utils-C_uf36nf.js";
2
+ import { c as menuGroups, l as modelName, s as menuFacts } from "./model-facts-mrfrWQne.js";
3
+ import { useId } from "react";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Check, ChevronDown } from "lucide-react";
6
+ import { Select } from "radix-ui";
7
+ //#region src/components/ModelMenu.tsx
8
+ /** The Models overview, whose `chat` list the menu shows. */
9
+ var MODELS_PATH = "/api/config/models";
10
+ var INHERITED = ":inherited";
11
+ var ITEM = "relative flex cursor-pointer select-none items-baseline gap-x-3 rounded-lg py-2 pl-8 pr-3 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground";
12
+ function ModelMenu({ label, value, onChange, models, inherited, required }) {
13
+ const id = useId();
14
+ const find = (candidate) => models.find((model) => model.value === candidate);
15
+ const named = (candidate) => {
16
+ const model = find(candidate);
17
+ return model ? modelName(model) : candidate;
18
+ };
19
+ const chosen = find(value);
20
+ const unlisted = value !== "" && !chosen;
21
+ const groups = menuGroups(models);
22
+ const empty = models.length === 0 && !inherited;
23
+ return /* @__PURE__ */ jsxs("div", {
24
+ className: "my-[0.6rem]",
25
+ children: [/* @__PURE__ */ jsx("span", {
26
+ id: `${id}-label`,
27
+ className: "block text-[0.9em] text-mocha",
28
+ children: label
29
+ }), /* @__PURE__ */ jsxs(Select.Root, {
30
+ value: value === "" ? inherited ? INHERITED : "" : value,
31
+ onValueChange: (next) => onChange(next === INHERITED ? "" : next),
32
+ required,
33
+ disabled: empty,
34
+ children: [/* @__PURE__ */ jsxs(Select.Trigger, {
35
+ "aria-labelledby": `${id}-label ${id}-value`,
36
+ className: "flex min-h-[2.65rem] w-full items-center justify-between gap-2 rounded-[var(--radius-md)] border border-frost bg-[color-mix(in_srgb,var(--color-snow)_82%,var(--color-ivory))] px-[0.8rem] py-[0.5rem] text-left text-[0.95em] text-chocolate transition-all focus-visible:border-sapphire focus-visible:bg-snow focus-visible:shadow-[0_0_0_3px_var(--color-sapphire-glow)] disabled:opacity-60 data-[state=open]:border-sapphire",
37
+ style: { outline: "none" },
38
+ children: [/* @__PURE__ */ jsx("span", {
39
+ id: `${id}-value`,
40
+ className: "min-w-0 flex-1 truncate",
41
+ children: value === "" ? inherited ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
42
+ inherited.model ? named(inherited.model) : inherited.label,
43
+ " ",
44
+ inherited.model && /* @__PURE__ */ jsx("span", {
45
+ className: "ml-1 text-[0.9em] text-mocha-light",
46
+ children: inherited.label.toLowerCase()
47
+ })
48
+ ] }) : /* @__PURE__ */ jsx("span", {
49
+ className: "text-mocha-light",
50
+ children: empty ? "No chat model yet" : "Pick a model"
51
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
52
+ named(value),
53
+ " ",
54
+ /* @__PURE__ */ jsx("span", {
55
+ className: "ml-1 text-[0.9em] text-mocha-light",
56
+ children: chosen ? chosen.providerName : "not in Chat"
57
+ })
58
+ ] })
59
+ }), /* @__PURE__ */ jsx(Select.Icon, {
60
+ asChild: true,
61
+ children: /* @__PURE__ */ jsx(ChevronDown, {
62
+ className: "size-4 shrink-0 text-mocha-light",
63
+ "aria-hidden": "true"
64
+ })
65
+ })]
66
+ }), /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsxs(Select.Content, {
67
+ position: "popper",
68
+ sideOffset: 6,
69
+ className: "z-50 max-h-[min(26rem,var(--radix-select-content-available-height))] w-[max(var(--radix-select-trigger-width),18rem)] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-baziu-lg",
70
+ children: [/* @__PURE__ */ jsxs(Select.Viewport, {
71
+ className: "p-1.5",
72
+ children: [
73
+ inherited && /* @__PURE__ */ jsx(Option, {
74
+ value: INHERITED,
75
+ name: inherited.label,
76
+ children: inherited.model ? named(inherited.model) : ""
77
+ }),
78
+ unlisted && /* @__PURE__ */ jsx(Option, {
79
+ value,
80
+ name: value,
81
+ mono: true,
82
+ children: "not in Chat"
83
+ }),
84
+ groups.map((group) => /* @__PURE__ */ jsxs(Select.Group, { children: [/* @__PURE__ */ jsxs(Select.Label, {
85
+ className: "flex items-baseline gap-2 px-3 pb-1 pt-2.5 text-[0.68rem] font-bold uppercase tracking-[0.08em] text-muted-foreground",
86
+ children: [group.name, group.trouble && /* @__PURE__ */ jsx("span", {
87
+ className: "font-semibold normal-case tracking-normal text-warning",
88
+ children: group.trouble
89
+ })]
90
+ }), group.models.map((model) => /* @__PURE__ */ jsx(Option, {
91
+ value: model.value,
92
+ name: modelName(model),
93
+ mono: !model.name,
94
+ children: menuFacts(model)
95
+ }, model.value))] }, group.provider)),
96
+ models.length === 0 && /* @__PURE__ */ jsx("p", {
97
+ className: "m-0 px-3 py-2 text-sm text-muted-foreground",
98
+ children: "No chat model is in use yet."
99
+ })
100
+ ]
101
+ }), /* @__PURE__ */ jsx("a", {
102
+ href: "/config?pick=true",
103
+ className: "block border-t border-border px-4 py-2.5 text-sm font-semibold text-primary hover:bg-muted/50",
104
+ children: "Add models in Setup"
105
+ })]
106
+ }) })]
107
+ })]
108
+ });
109
+ }
110
+ function Option({ value, name, mono = false, children }) {
111
+ return /* @__PURE__ */ jsxs(Select.Item, {
112
+ value,
113
+ className: ITEM,
114
+ style: { outline: "none" },
115
+ children: [
116
+ /* @__PURE__ */ jsx(Select.ItemIndicator, {
117
+ className: "absolute left-2.5 top-1/2 -translate-y-1/2",
118
+ children: /* @__PURE__ */ jsx(Check, {
119
+ className: "size-4 text-primary",
120
+ "aria-hidden": "true"
121
+ })
122
+ }),
123
+ /* @__PURE__ */ jsx(Select.ItemText, {
124
+ asChild: true,
125
+ children: /* @__PURE__ */ jsx("span", {
126
+ className: cn("min-w-0 flex-1 break-words", mono ? "font-mono text-[0.85em] font-medium" : "font-semibold"),
127
+ children: name
128
+ })
129
+ }),
130
+ children && /* @__PURE__ */ jsx("span", {
131
+ className: "shrink-0 text-xs text-muted-foreground",
132
+ children
133
+ })
134
+ ]
135
+ });
136
+ }
137
+ //#endregion
138
+ export { ModelMenu as n, MODELS_PATH as t };
@@ -1,73 +1,15 @@
1
- import { E as errorMessage, _ as useActivity, d as Button, f as AgentAvatar, g as teamSummary, h as shortTime, w as api } from "./workspace-DeEYMPDX.js";
1
+ import { C as api, T as errorMessage, d as AgentAvatar, g as useActivity, h as teamSummary, m as shortTime, u as Button } from "./workspace-DaitCM0t.js";
2
2
  import { n as DEFAULT_TEAM_ID, t as DEFAULT_PROFILE_ID } from "./entities-Dn2xzKIw.js";
3
- import { n as Dialog$1, r as DialogActions, t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
4
- import { i as renameAgent, n as archiveAgent, t as SpawnDialog } from "./SpawnDialog-Brmkl_ll.js";
5
- import { t as TeamForm } from "./TeamForm-CvQAs2FA.js";
6
- import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
3
+ import { t as useHydrated } from "./use-resource-DVzK0toP.js";
4
+ import { n as DialogActions, t as Dialog$1 } from "./Dialog-aup_yJv5.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
6
+ import { i as renameAgent, n as archiveAgent, t as SpawnDialog } from "./SpawnDialog-D_SMPCG_.js";
7
+ import { t as TeamForm } from "./TeamForm-ilBaeLI4.js";
8
+ import { createContext, useContext, useMemo, useRef, useState } from "react";
7
9
  import { Link, useRouter } from "@tanstack/react-router";
8
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
11
  import { Archive, Bot, ChevronDown, ChevronRight, Ellipsis, PanelLeft, PanelRight, Pencil, Plus, Send, Settings2, UsersRound } from "lucide-react";
10
12
  import { DropdownMenu } from "radix-ui";
11
- //#region src/lib/use-resource.ts
12
- /**
13
- * Load something from the daemon when a panel opens, and again whenever a dependency changes.
14
- * `load` gets a signal that aborts when the dependencies change or the component goes away.
15
- */
16
- function useResource(load, deps) {
17
- const [data, setData] = useState(void 0);
18
- const [error, setError] = useState(null);
19
- const [loading, setLoading] = useState(true);
20
- const loadRef = useRef(load);
21
- loadRef.current = load;
22
- const controllerRef = useRef(null);
23
- const run = useCallback(async (reset) => {
24
- controllerRef.current?.abort();
25
- const controller = new AbortController();
26
- controllerRef.current = controller;
27
- if (reset) setData(void 0);
28
- setLoading(true);
29
- try {
30
- const next = await loadRef.current(controller.signal);
31
- if (controller.signal.aborted) return;
32
- setData(next);
33
- setError(null);
34
- } catch (cause) {
35
- if (controller.signal.aborted) return;
36
- setError(errorMessage(cause));
37
- } finally {
38
- if (!controller.signal.aborted) setLoading(false);
39
- }
40
- }, []);
41
- useEffect(() => {
42
- run(true);
43
- return () => controllerRef.current?.abort();
44
- }, deps);
45
- return {
46
- data,
47
- error,
48
- loading,
49
- reload: useCallback(() => run(false), [run])
50
- };
51
- }
52
- /** False on the server and during hydration, true afterwards: for what only the browser knows. */
53
- function useHydrated() {
54
- const [hydrated, setHydrated] = useState(false);
55
- useEffect(() => setHydrated(true), []);
56
- return hydrated;
57
- }
58
- /** Whether a media query matches; `initial` until the browser says. */
59
- function useMediaQuery(query, initial = true) {
60
- const [matches, setMatches] = useState(initial);
61
- useEffect(() => {
62
- const list = window.matchMedia(query);
63
- const update = () => setMatches(list.matches);
64
- update();
65
- list.addEventListener("change", update);
66
- return () => list.removeEventListener("change", update);
67
- }, [query]);
68
- return matches;
69
- }
70
- //#endregion
71
13
  //#region src/components/workspace/context.tsx
72
14
  var WorkspaceContext = createContext(null);
73
15
  function WorkspaceProvider({ value, children }) {
@@ -753,4 +695,4 @@ function RenameAgentDialog({ agent, onClose, onRenamed }) {
753
695
  });
754
696
  }
755
697
  //#endregion
756
- export { SlimRail as a, useWorkspace as c, useMediaQuery as d, useResource as f, STATE_DOT as i, useWorkspaceOptional as l, RenameAgentDialog as n, SpawnTeamModal as o, SIDEBAR_OPEN_GROUPS_COOKIE as r, WorkspaceProvider as s, Rail as t, useHydrated as u };
698
+ export { SlimRail as a, useWorkspace as c, STATE_DOT as i, useWorkspaceOptional as l, RenameAgentDialog as n, SpawnTeamModal as o, SIDEBAR_OPEN_GROUPS_COOKIE as r, WorkspaceProvider as s, Rail as t };
@@ -28,11 +28,12 @@ function SectionTabs({ label, base, tabs, children }) {
28
28
  }
29
29
  var TEMPLATE_TABS = [["/agents", "Agent templates"], ["/teams", "Team templates"]];
30
30
  var CONFIG_TABS = [
31
- ["", "Providers"],
32
- ["/services", "Services"],
31
+ ["", "Models"],
32
+ ["/tools", "Tools"],
33
33
  ["/mcp", "MCP"],
34
- ["/integrations/telegram", "Integrations"],
35
- ["/tokens", "Tokens"]
34
+ ["/telegram", "Telegram"],
35
+ ["/access", "Access"],
36
+ ["/system", "System"]
36
37
  ];
37
38
  //#endregion
38
39
  export { SectionTabs as n, TEMPLATE_TABS as r, CONFIG_TABS as t };
@@ -0,0 +1,18 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ //#region src/components/Segmented.tsx
3
+ /** A small either-or switch: a row of options of which one is on. */
4
+ function Segmented({ label, value, options, onChange }) {
5
+ return /* @__PURE__ */ jsx("fieldset", {
6
+ "aria-label": label,
7
+ className: "m-0 flex min-w-0 rounded-[12px] border border-border bg-card p-0.5",
8
+ children: options.map((option) => /* @__PURE__ */ jsx("button", {
9
+ type: "button",
10
+ "aria-pressed": value === option.id,
11
+ onClick: () => onChange(option.id),
12
+ className: `unstyled h-7 whitespace-nowrap rounded-[9px] px-2.5 text-xs font-semibold ${value === option.id ? "bg-accent text-accent-foreground" : "text-mocha hover:text-foreground"}`,
13
+ children: option.label
14
+ }, option.id))
15
+ });
16
+ }
17
+ //#endregion
18
+ export { Segmented as t };
@@ -1,4 +1,4 @@
1
- import { c as StatusBadge } from "./Page-KIL1CsME.js";
1
+ import { l as StatusBadge } from "./createSsrRpc-GCCF14VW.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  //#region src/components/SkillFindings.tsx
4
4
  /** A skill's static-scan result: a "Clean" badge, or a finding count that expands to the list. */
@@ -1,7 +1,7 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
1
+ import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
2
  import "./entities-Dn2xzKIw.js";
3
- import { n as Dialog, r as DialogActions } from "./ConfirmDialog-CvLZgbfY.js";
4
- import { n as ModelSelect, t as AVAILABLE_MODELS_PATH } from "./ModelSelect-Vwro6OkL.js";
3
+ import { n as DialogActions, t as Dialog } from "./Dialog-aup_yJv5.js";
4
+ import { n as ModelMenu, t as MODELS_PATH } from "./ModelMenu-DUY9aHkE.js";
5
5
  import { useEffect, useState } from "react";
6
6
  import { useNavigate } from "@tanstack/react-router";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -30,14 +30,14 @@ function SpawnDialog({ profiles, teams, profileId: initialProfileId, teamId: ini
30
30
  const [profileId, setProfileId] = useState(initialProfileId ?? profiles.find((profile) => profile.id === "default")?.id ?? profiles[0]?.id ?? "");
31
31
  const [name, setName] = useState("");
32
32
  const [model, setModel] = useState("");
33
- const [modelGroups, setModelGroups] = useState([]);
33
+ const [chatModels, setChatModels] = useState([]);
34
34
  const [teamId, setTeamId] = useState(teams.find((team) => team.id === initialTeamId)?.id ?? teams.find((team) => team.id === "default")?.id ?? teams[0]?.id ?? "");
35
35
  const [busy, setBusy] = useState(false);
36
36
  const [error, setError] = useState(null);
37
37
  const restricted = teams.find((team) => team.id === teamId)?.policyMode === "restricted";
38
38
  useEffect(() => {
39
39
  const controller = new AbortController();
40
- api(AVAILABLE_MODELS_PATH, { signal: controller.signal }).then((response) => setModelGroups(response.teams)).catch(() => {});
40
+ api(MODELS_PATH, { signal: controller.signal }).then((response) => setChatModels(response.chat)).catch(() => {});
41
41
  return () => controller.abort();
42
42
  }, []);
43
43
  async function submit(event) {
@@ -83,12 +83,15 @@ function SpawnDialog({ profiles, teams, profileId: initialProfileId, teamId: ini
83
83
  onChange: (event) => setName(event.target.value),
84
84
  autoComplete: "off"
85
85
  })] }),
86
- /* @__PURE__ */ jsx(ModelSelect, {
86
+ /* @__PURE__ */ jsx(ModelMenu, {
87
87
  label: "Model",
88
88
  value: model,
89
89
  onChange: setModel,
90
- groups: modelGroups,
91
- emptyOption: "Use the template default"
90
+ models: chatModels,
91
+ inherited: {
92
+ label: "The template’s model",
93
+ model: profiles.find((profile) => profile.id === profileId)?.defaultModel
94
+ }
92
95
  }),
93
96
  /* @__PURE__ */ jsxs("label", { children: ["Team", /* @__PURE__ */ jsx("select", {
94
97
  value: teamId,
@@ -1,4 +1,4 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
1
+ import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
2
  import { useState } from "react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/TeamForm.tsx
@@ -1,24 +1,9 @@
1
- import { _ as useActivity, f as AgentAvatar, h as shortTime, t as FOCUS_VIEWS, w as api } from "./workspace-DeEYMPDX.js";
2
- import { c as useWorkspace, f as useResource, u as useHydrated } from "./Rail-D8LhjS38.js";
1
+ import { C as api, d as AgentAvatar, g as useActivity, m as shortTime, t as FOCUS_VIEWS } from "./workspace-DaitCM0t.js";
2
+ import { r as useResource, t as useHydrated } from "./use-resource-DVzK0toP.js";
3
+ import { c as useWorkspace } from "./Rail-BIC_4ptO.js";
3
4
  import { Link } from "@tanstack/react-router";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { ArrowLeft, ArrowRight, Code2, Images, Network } from "lucide-react";
6
- //#region src/components/Segmented.tsx
7
- /** A small either-or switch: a row of options of which one is on. */
8
- function Segmented({ label, value, options, onChange }) {
9
- return /* @__PURE__ */ jsx("fieldset", {
10
- "aria-label": label,
11
- className: "m-0 flex min-w-0 rounded-[12px] border border-border bg-card p-0.5",
12
- children: options.map((option) => /* @__PURE__ */ jsx("button", {
13
- type: "button",
14
- "aria-pressed": value === option.id,
15
- onClick: () => onChange(option.id),
16
- className: `unstyled h-7 whitespace-nowrap rounded-[9px] px-2.5 text-xs font-semibold ${value === option.id ? "bg-accent text-accent-foreground" : "text-mocha hover:text-foreground"}`,
17
- children: option.label
18
- }, option.id))
19
- });
20
- }
21
- //#endregion
22
7
  //#region src/components/workspace/FocusFrame.tsx
23
8
  var VIEW = {
24
9
  connections: {
@@ -202,4 +187,4 @@ function TeamThread({ messages, limit = 20, empty = "No messages between Agents
202
187
  });
203
188
  }
204
189
  //#endregion
205
- export { trafficByPair as a, pairKey as i, useTeamMessages as n, FocusFrame as o, messageText as r, Segmented as s, TeamThread as t };
190
+ export { trafficByPair as a, pairKey as i, useTeamMessages as n, FocusFrame as o, messageText as r, TeamThread as t };
@@ -1,4 +1,4 @@
1
- import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
1
+ import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
2
2
  import { useCallback, useRef } from "react";
3
3
  import { useBlocker } from "@tanstack/react-router";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-B3Lpl08z.js";
3
- import { n as ModelSelect } from "./ModelSelect-Vwro6OkL.js";
4
- import { a as PageShell } from "./Page-KIL1CsME.js";
5
- import { t as Route } from "./_id-CA3QO7J5.js";
6
- import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-CNcvxbR8.js";
1
+ import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-DrOvPV14.js";
3
+ import { n as ModelMenu } from "./ModelMenu-DUY9aHkE.js";
4
+ import { o as PageShell } from "./createSsrRpc-GCCF14VW.js";
5
+ import { t as Route } from "./_id-D8Kj0F30.js";
6
+ import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-BGsrf-UQ.js";
7
7
  import { t as Tabs } from "./Tabs-BhF41MfQ.js";
8
8
  import { t as SkillsPicker } from "./SkillsPicker-DlqEfRWh.js";
9
9
  import { useCallback, useEffect, useState } from "react";
@@ -11,7 +11,7 @@ import { useRouter } from "@tanstack/react-router";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region src/routes/templates/agents/$id/index.tsx?tsr-split=component
13
13
  function ProfileDetailPage() {
14
- const { loaded, modelGroups, skills } = Route.useLoaderData();
14
+ const { loaded, chatModels, skills } = Route.useLoaderData();
15
15
  const { profile, files } = loaded;
16
16
  const [tab, setTab] = useState("basics");
17
17
  const [dirtySections, setDirtySections] = useState({});
@@ -81,7 +81,7 @@ function ProfileDetailPage() {
81
81
  profileId: profile.id,
82
82
  initialName: profile.name,
83
83
  currentModel: profile.defaultModel,
84
- modelGroups,
84
+ chatModels,
85
85
  onDirtyChange: reportDirty
86
86
  }),
87
87
  /* @__PURE__ */ jsx(FileCard, {
@@ -270,7 +270,7 @@ function OptionalFileCard({ profileId, file, initial, hint, onDirtyChange }) {
270
270
  onDirtyChange
271
271
  })] });
272
272
  }
273
- function SettingsCard({ profileId, initialName, currentModel, modelGroups, onDirtyChange }) {
273
+ function SettingsCard({ profileId, initialName, currentModel, chatModels, onDirtyChange }) {
274
274
  const router = useRouter();
275
275
  const [original, setOriginal] = useState({
276
276
  name: initialName,
@@ -309,11 +309,11 @@ function SettingsCard({ profileId, initialName, currentModel, modelGroups, onDir
309
309
  children: [/* @__PURE__ */ jsxs("label", { children: ["Name", /* @__PURE__ */ jsx("input", {
310
310
  value: name,
311
311
  onChange: (event) => setName(event.target.value)
312
- })] }), /* @__PURE__ */ jsx(ModelSelect, {
312
+ })] }), /* @__PURE__ */ jsx(ModelMenu, {
313
313
  label: "Default model",
314
314
  value: model,
315
315
  onChange: setModel,
316
- groups: modelGroups,
316
+ models: chatModels,
317
317
  required: true
318
318
  })]
319
319
  }), /* @__PURE__ */ jsx(Button, {
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
3
3
  import { createFileRoute, lazyRouteComponent, redirect } from "@tanstack/react-router";
4
4
  //#region src/routes/templates/agents/$id/index.tsx
5
- var $$splitComponentImporter = () => import("./_id-CO1PgvyG.js");
5
+ var $$splitComponentImporter = () => import("./_id-BsZcsabI.js");
6
6
  var fetchProfile = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("032d74b7d41c718191dbdde6b06ba44993340ce1154af1fa6723a6d4f7a7236e"));
7
7
  var Route = createFileRoute("/templates/agents/$id/")({
8
8
  loader: async ({ params }) => {
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/templates/teams/$id/index.tsx
5
- var $$splitComponentImporter = () => import("./_id-BH1631a8.js");
5
+ var $$splitComponentImporter = () => import("./_id-yN0z7VqE.js");
6
6
  var fetchTemplate = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("c13d90cf82cd448c86427091165d0361b92843852a3f73a5bf4412dd2adc6bae"));
7
7
  var Route = createFileRoute("/templates/teams/$id/")({
8
8
  loader: ({ params }) => fetchTemplate({ data: { id: params.id } }),
@@ -1,5 +1,5 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as AVAILABLE_MODELS_PATH } from "./ModelSelect-Vwro6OkL.js";
2
+ import { t as MODELS_PATH } from "./ModelMenu-DUY9aHkE.js";
3
3
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
4
4
  import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
5
5
  //#region src/routes/templates/agents/$id/index.tsx?tss-serverfn-split
@@ -17,10 +17,10 @@ var fetchProfile = createServerFn({ method: "GET" }).validator((data) => data).h
17
17
  if (error instanceof ApiClientError && error.status === 404) return null;
18
18
  throw error;
19
19
  }
20
- const [models, skills] = await Promise.all([client.get(AVAILABLE_MODELS_PATH), client.get("/api/skills")]);
20
+ const [models, skills] = await Promise.all([client.get(MODELS_PATH), client.get("/api/skills")]);
21
21
  return {
22
22
  loaded,
23
- modelGroups: models.teams,
23
+ chatModels: models.chat,
24
24
  skills
25
25
  };
26
26
  });
@@ -1,10 +1,10 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
1
+ import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
2
  import { a as endpointLabel, d as templateDocument, f as templateInput, i as edgeKey, l as sameDocument, n as OUTSIDE, o as hasEdge, r as defaultPosition, t as TeamPolicyMatrix, u as setEdge } from "./style-GYDODk2F.js";
3
- import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
4
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-B3Lpl08z.js";
5
- import { a as PageShell } from "./Page-KIL1CsME.js";
6
- import { t as Route } from "./_id-DIXUiIaB.js";
7
- import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-CNcvxbR8.js";
3
+ import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
4
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-DrOvPV14.js";
5
+ import { o as PageShell } from "./createSsrRpc-GCCF14VW.js";
6
+ import { t as Route } from "./_id-DJnYgisy.js";
7
+ import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-BGsrf-UQ.js";
8
8
  import { useEffect, useMemo, useState } from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { Bot, CircleAlert, Globe2, ListTree, Plus, Save, ShieldAlert, TableProperties, X } from "lucide-react";