bazilion 0.50.0 → 0.51.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 (153) hide show
  1. package/dist/cli.js +245 -65
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +863 -209
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +1 -0
  6. package/dist/web/client/assets/ConfigPage-pupvtSCX.js +1 -0
  7. package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +1 -0
  8. package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +1 -0
  9. package/dist/web/client/assets/Dialog-bg86_x4v.js +1 -0
  10. package/dist/web/client/assets/FieldRow-B8eIni5r.js +1 -0
  11. package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +1 -0
  13. package/dist/web/client/assets/Segmented-Dh77vmpp.js +1 -0
  14. package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +1 -0
  15. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +1 -0
  16. package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +1 -0
  17. package/dist/web/client/assets/Tabs-f6bHvCGn.js +1 -0
  18. package/dist/web/client/assets/TeamForm-kda1HYZG.js +1 -0
  19. package/dist/web/client/assets/TeamThread-DFvbakHo.js +1 -0
  20. package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +1 -0
  21. package/dist/web/client/assets/_id-BjNtLwak.js +1 -0
  22. package/dist/web/client/assets/_id-BklaQf3z.js +1 -0
  23. package/dist/web/client/assets/agents-D9cUF2d9.js +1 -0
  24. package/dist/web/client/assets/agents-wuBlzx4e.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-8ZkSLl2e.js +1 -0
  28. package/dist/web/client/assets/check-BjgKoGvU.js +1 -0
  29. package/dist/web/client/assets/config-Con_BbSh.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +1 -0
  31. package/dist/web/client/assets/index-Br9qkGM-.js +54 -0
  32. package/dist/web/client/assets/link-Cbztlp_R.js +1 -0
  33. package/dist/web/client/assets/login-llnOKSJc.js +1 -0
  34. package/dist/web/client/assets/mcp-zIUguMSI.js +1 -0
  35. package/dist/web/client/assets/plus-CWrKMtvA.js +1 -0
  36. package/dist/web/client/assets/routes-BY5uqJ2n.js +76 -0
  37. package/dist/web/client/assets/save-f9O-CQia.js +1 -0
  38. package/dist/web/client/assets/services-esLrcTwe.js +1 -0
  39. package/dist/web/client/assets/skills-DzYXksM0.js +1 -0
  40. package/dist/web/client/assets/style-Cdzqt_TJ.js +7 -0
  41. package/dist/web/client/assets/styles-BRSS6yrm.css +2 -0
  42. package/dist/web/client/assets/system-CsI66nyZ.js +1 -0
  43. package/dist/web/client/assets/teams-CHE_zpxS.js +1 -0
  44. package/dist/web/client/assets/teams-dxG9OESG.js +1 -0
  45. package/dist/web/client/assets/telegram-C3dGndJV.js +1 -0
  46. package/dist/web/client/assets/tokens-CNNH-Wr9.js +1 -0
  47. package/dist/web/client/assets/use-resource-BjnxgGvh.js +1 -0
  48. package/dist/web/client/assets/welcome-C8EOtc8P.js +1 -0
  49. package/dist/web/server/assets/AddProviderDialog-CR6TRYdZ.js +910 -0
  50. package/dist/web/server/assets/{ConfigPage-DSLM5CLw.js → ConfigPage-CIh3ohea.js} +4 -4
  51. package/dist/web/server/assets/ConfirmDialog-B79K2KEW.js +52 -0
  52. package/dist/web/server/assets/{ConnectionsView-DVLNH81Y.js → ConnectionsView-BIMYdp9C.js} +6 -4
  53. package/dist/web/server/assets/{ConfirmDialog-CvLZgbfY.js → Dialog-CVqpXxuN.js} +3 -50
  54. package/dist/web/server/assets/{FieldRow-DQBzMtcR.js → FieldRow-CHVhX2rS.js} +1 -1
  55. package/dist/web/server/assets/{ModelSelect-Vwro6OkL.js → ModelSelect-DrZrdndo.js} +7 -7
  56. package/dist/web/server/assets/{Rail-D8LhjS38.js → Rail-Cg-efcpA.js} +6 -64
  57. package/dist/web/server/assets/{SectionTabs-CNcvxbR8.js → SectionTabs-DrcgVeZd.js} +3 -2
  58. package/dist/web/server/assets/Segmented-3ZLdqa5U.js +18 -0
  59. package/dist/web/server/assets/{SkillFindings-DX8lCMG7.js → SkillFindings-DSDiL6hn.js} +1 -1
  60. package/dist/web/server/assets/{SpawnDialog-Brmkl_ll.js → SpawnDialog-BUUlLxE9.js} +2 -2
  61. package/dist/web/server/assets/{TeamThread-BNJi6gPM.js → TeamThread-5CjVPcDr.js} +3 -18
  62. package/dist/web/server/assets/{UnsavedChangesGuard-B3Lpl08z.js → UnsavedChangesGuard-CyF2Z9p1.js} +1 -1
  63. package/dist/web/server/assets/{_id-BH1631a8.js → _id-0fEWiVZX.js} +5 -5
  64. package/dist/web/server/assets/{_id-DIXUiIaB.js → _id-8bsYEcGg.js} +2 -2
  65. package/dist/web/server/assets/{_id-CA3QO7J5.js → _id-BvAaRSUW.js} +2 -2
  66. package/dist/web/server/assets/{_id-CO1PgvyG.js → _id-Dg6M_qfr.js} +5 -5
  67. package/dist/web/server/assets/{_id-E2N4gZ4O.js → _id-Dji7xr9C.js} +1 -1
  68. package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +214 -0
  69. package/dist/web/server/assets/{agents-CalSKogx.js → agents-BDA5yYZ2.js} +4 -4
  70. package/dist/web/server/assets/{agents-CdZvooeQ.js → agents-BTDxmp-F.js} +2 -2
  71. package/dist/web/server/assets/{agents-DPZVni4Q.js → agents-DM7guWF2.js} +2 -2
  72. package/dist/web/server/assets/{agents-DrkEwIpR.js → agents-DktqUffG.js} +7 -7
  73. package/dist/web/server/assets/{agents-C63VycUw.js → agents-xgZ9rsac.js} +1 -1
  74. package/dist/web/server/assets/{attention-BbE4yc-V.js → attention-CHQEQiZl.js} +2 -2
  75. package/dist/web/server/assets/{attention-DIyX3VMB.js → attention-De3-ehuf.js} +2 -2
  76. package/dist/web/server/assets/config-DOp28gcy.js +1067 -0
  77. package/dist/web/server/assets/config-DzgkbBoD.js +17 -0
  78. package/dist/web/server/assets/config-X7qWbbpH.js +20 -0
  79. package/dist/web/server/assets/{Page-KIL1CsME.js → createSsrRpc-CcLbajrF.js} +16 -1
  80. package/dist/web/server/assets/{mcp-Cf7KzOJ9.js → mcp-CO_tycXU.js} +4 -4
  81. package/dist/web/server/assets/{mcp-DE14q5c0.js → mcp-D3OCoHtO.js} +2 -2
  82. package/dist/web/server/assets/{router-w2yPgmC1.js → router-Cs2Ak4II.js} +57 -69
  83. package/dist/web/server/assets/{routes-D1NHwz6f.js → routes-BSNOKE-C.js} +13 -10
  84. package/dist/web/server/assets/{routes-1FEodTRm.js → routes-BVwqgZGI.js} +2 -2
  85. package/dist/web/server/assets/{routes-B6AO0LjK.js → routes-CO4l-GJ0.js} +1 -1
  86. package/dist/web/server/assets/{services-Cdk40QHq.js → services-DZLxUSG8.js} +2 -2
  87. package/dist/web/server/assets/{services-BjroGXgC.js → services-DsvpaF3L.js} +4 -4
  88. package/dist/web/server/assets/{skills-CA17GjuZ.js → skills-CggQJk6a.js} +2 -2
  89. package/dist/web/server/assets/{skills-DC1OTc8n.js → skills-DKYV7PTk.js} +4 -4
  90. package/dist/web/server/assets/system-CZ2qzBz3.js +138 -0
  91. package/dist/web/server/assets/system-DsJfpBPl.js +12 -0
  92. package/dist/web/server/assets/system-DtswhLW62.js +18 -0
  93. package/dist/web/server/assets/{teams-Cg-QQWpH.js → teams-B6PzNcoy.js} +3 -3
  94. package/dist/web/server/assets/{teams-Bm63mbTt.js → teams-B6lBhvdL.js} +2 -2
  95. package/dist/web/server/assets/{teams-D6Tx-Jyn.js → teams-Bp2tERZe.js} +2 -2
  96. package/dist/web/server/assets/{teams-OzHTyVi9.js → teams-C-8iz-uV.js} +3 -3
  97. package/dist/web/server/assets/{telegram-BJ4l_TA_.js → telegram-CXrP3hMp.js} +3 -3
  98. package/dist/web/server/assets/{telegram-xU-vXgef.js → telegram-D2RZriz_.js} +2 -2
  99. package/dist/web/server/assets/{tokens-ByPTGFBQ.js → tokens-C-oDTqnp.js} +2 -2
  100. package/dist/web/server/assets/{tokens-CsqoRt5T.js → tokens-DSLwQ1Pw.js} +4 -4
  101. package/dist/web/server/assets/use-resource-ChQozXVI.js +63 -0
  102. package/dist/web/server/assets/welcome-BLw1G6SS.js +318 -0
  103. package/dist/web/server/assets/welcome-ByAkvHSP.js +26 -0
  104. package/dist/web/server/assets/welcome-CxXMI4HI.js +15 -0
  105. package/dist/web/server/server.js +17 -9
  106. package/dist/worker.js +77 -35
  107. package/dist/worker.js.map +1 -1
  108. package/package.json +1 -1
  109. package/dist/web/client/assets/ConfigPage-_FY--9PB.js +0 -1
  110. package/dist/web/client/assets/ConfirmDialog-BblXqMVb.js +0 -1
  111. package/dist/web/client/assets/ConnectionsView-BZHJysCa.js +0 -1
  112. package/dist/web/client/assets/FieldRow-k05wfDy9.js +0 -1
  113. package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +0 -1
  114. package/dist/web/client/assets/SectionTabs-DlfXtepS.js +0 -1
  115. package/dist/web/client/assets/SkillFindings-CHf5ZGY0.js +0 -1
  116. package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +0 -1
  117. package/dist/web/client/assets/SpawnDialog-C-Ujb4bC.js +0 -1
  118. package/dist/web/client/assets/Tabs-D0LgBNIk.js +0 -1
  119. package/dist/web/client/assets/TeamForm-D6EAAF7m.js +0 -1
  120. package/dist/web/client/assets/TeamThread-DpUOwMoi.js +0 -1
  121. package/dist/web/client/assets/UnsavedChangesGuard-DTUP7hwu.js +0 -1
  122. package/dist/web/client/assets/_id-C94dgBDe.js +0 -1
  123. package/dist/web/client/assets/_id-CxmEfoEp.js +0 -1
  124. package/dist/web/client/assets/agents-C-bJ5R_0.js +0 -1
  125. package/dist/web/client/assets/agents-odqBNx-A.js +0 -1
  126. package/dist/web/client/assets/api-CPzQ_z9m.js +0 -1
  127. package/dist/web/client/assets/arrow-right-Dyta3p06.js +0 -1
  128. package/dist/web/client/assets/attention-D0e7o7fh.js +0 -1
  129. package/dist/web/client/assets/chevron-right-B2YEg9rw.js +0 -1
  130. package/dist/web/client/assets/config-B7Y5MtpM.js +0 -3
  131. package/dist/web/client/assets/createLucideIcon-Cgab8gqu.js +0 -1
  132. package/dist/web/client/assets/index-CNVw44IE.js +0 -54
  133. package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
  134. package/dist/web/client/assets/link-ClwtaO_E.js +0 -1
  135. package/dist/web/client/assets/login-Br1F4rQx.js +0 -1
  136. package/dist/web/client/assets/mcp-B8bIAY6k.js +0 -1
  137. package/dist/web/client/assets/routes-BZdlkRdC.js +0 -76
  138. package/dist/web/client/assets/save-ZqeB_I-c.js +0 -1
  139. package/dist/web/client/assets/services-CPJxDrVG.js +0 -1
  140. package/dist/web/client/assets/skills-DE_kQQGj.js +0 -1
  141. package/dist/web/client/assets/style-BWShXY3e.js +0 -7
  142. package/dist/web/client/assets/styles-Tney8jZq.css +0 -2
  143. package/dist/web/client/assets/teams-AcuSLc3I.js +0 -1
  144. package/dist/web/client/assets/teams-tRamPg7O.js +0 -1
  145. package/dist/web/client/assets/telegram-Ku69-GAv.js +0 -1
  146. package/dist/web/client/assets/tokens-DuLNZMgi.js +0 -1
  147. package/dist/web/client/assets/welcome-CrQk6n6I.js +0 -1
  148. package/dist/web/server/assets/_tanstack-start-manifest_v-BVfrV7LQ.js +0 -191
  149. package/dist/web/server/assets/config-3tPtOmPE.js +0 -12
  150. package/dist/web/server/assets/config-DJGZiPBJ.js +0 -798
  151. package/dist/web/server/assets/config-rUqhMjIs.js +0 -25
  152. package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +0 -16
  153. package/dist/web/server/assets/welcome-O6Rjd7yO.js +0 -93
@@ -1,5 +1,5 @@
1
- import { a as PageShell, i as PageHeader } from "./Page-KIL1CsME.js";
2
- import { n as SectionTabs, t as CONFIG_TABS } from "./SectionTabs-CNcvxbR8.js";
1
+ import { a as PageHeader, o as PageShell } from "./createSsrRpc-CcLbajrF.js";
2
+ import { n as SectionTabs, t as CONFIG_TABS } from "./SectionTabs-DrcgVeZd.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/ConfigPage.tsx
5
5
  function ConfigPage({ title, description, children, actions, size = "default" }) {
@@ -7,13 +7,13 @@ function ConfigPage({ title, description, children, actions, size = "default" })
7
7
  size,
8
8
  children: [
9
9
  /* @__PURE__ */ jsx(PageHeader, {
10
- eyebrow: "Configuration",
10
+ eyebrow: "Setup",
11
11
  title,
12
12
  description,
13
13
  actions
14
14
  }),
15
15
  /* @__PURE__ */ jsx(SectionTabs, {
16
- label: "Configuration sections",
16
+ label: "Setup sections",
17
17
  base: "/config",
18
18
  tabs: CONFIG_TABS
19
19
  }),
@@ -0,0 +1,52 @@
1
+ import { E as errorMessage, d as Button } from "./workspace-DeEYMPDX.js";
2
+ import { n as DialogActions, t as Dialog } from "./Dialog-CVqpXxuN.js";
3
+ import { useEffect, useState } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/ConfirmDialog.tsx
6
+ /** Ask before a consequential action; `onConfirm` failures stay in the dialog. */
7
+ function ConfirmDialog({ open, title, description, confirmLabel, confirmVariant = "danger", onConfirm, onOpenChange }) {
8
+ const [busy, setBusy] = useState(false);
9
+ const [error, setError] = useState(null);
10
+ useEffect(() => {
11
+ if (!open) {
12
+ setBusy(false);
13
+ setError(null);
14
+ }
15
+ }, [open]);
16
+ async function confirm() {
17
+ setBusy(true);
18
+ setError(null);
19
+ try {
20
+ await onConfirm();
21
+ onOpenChange(false);
22
+ } catch (err) {
23
+ setError(errorMessage(err));
24
+ setBusy(false);
25
+ }
26
+ }
27
+ return /* @__PURE__ */ jsxs(Dialog, {
28
+ open,
29
+ busy,
30
+ onClose: () => onOpenChange(false),
31
+ title,
32
+ description,
33
+ className: "max-w-md",
34
+ children: [error && /* @__PURE__ */ jsx("p", {
35
+ role: "alert",
36
+ className: "rounded-md bg-danger/10 px-3 py-2 text-sm text-danger",
37
+ children: error
38
+ }), /* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
39
+ variant: "ghost",
40
+ disabled: busy,
41
+ onClick: () => onOpenChange(false),
42
+ children: "Cancel"
43
+ }), /* @__PURE__ */ jsx(Button, {
44
+ variant: confirmVariant,
45
+ disabled: busy,
46
+ onClick: () => void confirm(),
47
+ children: busy ? "Working…" : confirmLabel
48
+ })] })]
49
+ });
50
+ }
51
+ //#endregion
52
+ export { ConfirmDialog as t };
@@ -1,9 +1,11 @@
1
1
  import { E as errorMessage, _ as useActivity, d as Button, f as AgentAvatar, w as api } from "./workspace-DeEYMPDX.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-ChQozXVI.js";
4
+ import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
5
+ import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
6
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CyF2Z9p1.js";
7
+ import { c as useWorkspace, i as STATE_DOT } from "./Rail-Cg-efcpA.js";
8
+ import { i as pairKey, n as useTeamMessages, o as FocusFrame, t as TeamThread } from "./TeamThread-5CjVPcDr.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 { u as cn } from "./workspace-DeEYMPDX.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 };
@@ -1,5 +1,5 @@
1
1
  import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
2
+ import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
3
3
  import { useId, useState } from "react";
4
4
  import { useRouter } from "@tanstack/react-router";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,13 +1,13 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  //#region src/components/ModelSelect.tsx
3
- /** Curated chat models grouped by provider: an AvailableModelsResponse. */
3
+ /** The chat models Agents may use, grouped by provider: an AvailableModelsResponse. */
4
4
  var AVAILABLE_MODELS_PATH = "/api/config/available-models";
5
5
  /**
6
- * A labelled `provider:model` picker over the curated models. `emptyOption` labels the "no choice"
7
- * entry (for example "Use the template default"); a value outside the curated list stays selectable.
6
+ * A labelled `provider:model` picker over the chat models in use. `emptyOption` labels the "no
7
+ * choice" entry (for example "Use the template default"); a value outside the list stays selectable.
8
8
  */
9
9
  function ModelSelect({ label, value, onChange, groups, emptyOption, required }) {
10
- const curated = groups.some((group) => group.models.some((model) => `${group.provider}:${model}` === value));
10
+ const listed = groups.some((group) => group.models.some((model) => `${group.provider}:${model}` === value));
11
11
  return /* @__PURE__ */ jsxs("label", { children: [label, /* @__PURE__ */ jsxs("select", {
12
12
  value,
13
13
  onChange: (event) => onChange(event.target.value),
@@ -20,11 +20,11 @@ function ModelSelect({ label, value, onChange, groups, emptyOption, required })
20
20
  }) : !value && /* @__PURE__ */ jsx("option", {
21
21
  value: "",
22
22
  disabled: true,
23
- children: groups.length === 0 ? "No curated models: enable one under Setup" : "Pick a model"
23
+ children: groups.length === 0 ? "No chat model yet: add one under Setup" : "Pick a model"
24
24
  }),
25
- value && !curated && /* @__PURE__ */ jsxs("option", {
25
+ value && !listed && /* @__PURE__ */ jsxs("option", {
26
26
  value,
27
- children: [value, " (not curated)"]
27
+ children: [value, " (not in Chat)"]
28
28
  }),
29
29
  groups.map((group) => /* @__PURE__ */ jsx("optgroup", {
30
30
  label: group.provider,
@@ -1,73 +1,15 @@
1
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";
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";
3
+ import { t as useHydrated } from "./use-resource-ChQozXVI.js";
4
+ import { n as DialogActions, t as Dialog$1 } from "./Dialog-CVqpXxuN.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
6
+ import { i as renameAgent, n as archiveAgent, t as SpawnDialog } from "./SpawnDialog-BUUlLxE9.js";
5
7
  import { t as TeamForm } from "./TeamForm-CvQAs2FA.js";
6
- import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
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"],
31
+ ["", "Models"],
32
32
  ["/services", "Services"],
33
33
  ["/mcp", "MCP"],
34
34
  ["/integrations/telegram", "Integrations"],
35
- ["/tokens", "Tokens"]
35
+ ["/tokens", "Tokens"],
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-CcLbajrF.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
1
  import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.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-CVqpXxuN.js";
4
+ import { n as ModelSelect, t as AVAILABLE_MODELS_PATH } from "./ModelSelect-DrZrdndo.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";
@@ -1,24 +1,9 @@
1
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";
2
+ import { r as useResource, t as useHydrated } from "./use-resource-ChQozXVI.js";
3
+ import { c as useWorkspace } from "./Rail-Cg-efcpA.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-B79K2KEW.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,10 +1,10 @@
1
1
  import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.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-B79K2KEW.js";
4
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CyF2Z9p1.js";
5
+ import { o as PageShell } from "./createSsrRpc-CcLbajrF.js";
6
+ import { t as Route } from "./_id-8bsYEcGg.js";
7
+ import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-DrcgVeZd.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";
@@ -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-CcLbajrF.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-0fEWiVZX.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,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-CcLbajrF.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-Dg6M_qfr.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,9 +1,9 @@
1
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";
2
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CyF2Z9p1.js";
3
+ import { n as ModelSelect } from "./ModelSelect-DrZrdndo.js";
4
+ import { o as PageShell } from "./createSsrRpc-CcLbajrF.js";
5
+ import { t as Route } from "./_id-BvAaRSUW.js";
6
+ import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-DrcgVeZd.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";
@@ -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 AVAILABLE_MODELS_PATH } from "./ModelSelect-DrZrdndo.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