bazilion 0.55.0 → 0.57.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 (193) hide show
  1. package/dist/cli.js +193 -37
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +1821 -788
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-DwUu2FGE.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-C3BasVck.js +1 -0
  7. package/dist/web/client/assets/{Button-bTJUy9Qf.js → Button-CoKQRO-s.js} +1 -1
  8. package/dist/web/client/assets/ConfigPage-DFmHgEaL.js +1 -0
  9. package/dist/web/client/assets/ConfirmDialog-BCOfW63x.js +1 -0
  10. package/dist/web/client/assets/ConnectionsView-BbpY5YbI.js +1 -0
  11. package/dist/web/client/assets/ManagePage-BzyMHGqs.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-C8H_LunZ.js +1 -0
  13. package/dist/web/client/assets/{Segmented-oPkAHPO1.js → Segmented-iylzLwE6.js} +1 -1
  14. package/dist/web/client/assets/SkillsParts-DoygBgF2.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-BVf4yN9X.js +1 -0
  16. package/dist/web/client/assets/TeamForm-Bfb5hVUX.js +1 -0
  17. package/dist/web/client/assets/TeamThread-BFmaBj82.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-BUsIHSxO.js +1 -0
  19. package/dist/web/client/assets/_id-BRD3kxrX.js +1 -0
  20. package/dist/web/client/assets/_id-BapVoTMJ.js +1 -0
  21. package/dist/web/client/assets/access-CqcKius1.js +1 -0
  22. package/dist/web/client/assets/{agent-actions-CUee6aJq.js → agent-actions-B-9KIwn6.js} +1 -1
  23. package/dist/web/client/assets/agents-BC_ITk28.js +1 -0
  24. package/dist/web/client/assets/agents-DQ8nQnD6.js +1 -0
  25. package/dist/web/client/assets/arrow-right-BqqfPqVi.js +1 -0
  26. package/dist/web/client/assets/attention-BnCihfi0.js +1 -0
  27. package/dist/web/client/assets/{bot-BCone8es.js → bot-BHky7KAX.js} +1 -1
  28. package/dist/web/client/assets/chart-column-DTsDbzL0.js +1 -0
  29. package/dist/web/client/assets/chevron-right-D1shxvdo.js +1 -0
  30. package/dist/web/client/assets/config-DYS8bkQl.js +1 -0
  31. package/dist/web/client/assets/{createLucideIcon-jxSFpY0Q.js → createLucideIcon-CZHSSDYA.js} +1 -1
  32. package/dist/web/client/assets/{download-Dy88XavQ.js → download-Dr0PgyMr.js} +1 -1
  33. package/dist/web/client/assets/es2015-DZDOQ3kj.js +41 -0
  34. package/dist/web/client/assets/{file-text-DPsZ8-h9.js → file-text-D6OTHixJ.js} +1 -1
  35. package/dist/web/client/assets/{images-QBh_rL8b.js → images-BULrW-FC.js} +1 -1
  36. package/dist/web/client/assets/index-CxXsZzDC.js +14 -0
  37. package/dist/web/client/assets/{key-round-C-I8fAG0.js → key-round-DmSZN0Kq.js} +1 -1
  38. package/dist/web/client/assets/{list-checks-C9Q-bjEi.js → list-checks-DdTdAQXS.js} +1 -1
  39. package/dist/web/client/assets/login-DFVsVP0s.js +1 -0
  40. package/dist/web/client/assets/{manage-BaIU5zKy.js → manage-CpXaObuS.js} +1 -1
  41. package/dist/web/client/assets/mcp-DslGDHmN.js +1 -0
  42. package/dist/web/client/assets/{message-square-Bwf9cHOx.js → message-square-B_pULba_.js} +1 -1
  43. package/dist/web/client/assets/{network-B3FA93gC.js → network-BqmVqC4_.js} +1 -1
  44. package/dist/web/client/assets/parts-C104qEuC.js +1 -0
  45. package/dist/web/client/assets/plus-CEKaHPBw.js +1 -0
  46. package/dist/web/client/assets/preload-helper-CZOd_z6l.js +1 -0
  47. package/dist/web/client/assets/routes-D1wFPm0n.js +85 -0
  48. package/dist/web/client/assets/skills-DmIo3vN3.js +1 -0
  49. package/dist/web/client/assets/{square-terminal-DaNLwvEs.js → square-terminal-CYfGBHPC.js} +1 -1
  50. package/dist/web/client/assets/style-CqkCFvvz.js +7 -0
  51. package/dist/web/client/assets/styles-C7NsCHeU.css +2 -0
  52. package/dist/web/client/assets/{system-CrTSr5_t.js → system-CUW9JZ9c.js} +1 -1
  53. package/dist/web/client/assets/teams-DJzYsuh9.js +1 -0
  54. package/dist/web/client/assets/teams-DrhG8KiS.js +1 -0
  55. package/dist/web/client/assets/telegram-Bk_kg8hb.js +1 -0
  56. package/dist/web/client/assets/tools-z9Ixmuu2.js +1 -0
  57. package/dist/web/client/assets/usage-DGe3x1m7.js +1 -0
  58. package/dist/web/client/assets/use-resource-qjIkNQDY.js +1 -0
  59. package/dist/web/client/assets/{users-round-BElBVSnw.js → users-round-cxQ5HF-C.js} +1 -1
  60. package/dist/web/client/assets/welcome-DDKqxHkF.js +1 -0
  61. package/dist/web/client/assets/{wrench-DotqSqSm.js → wrench-BLEJjETg.js} +1 -1
  62. package/dist/web/server/assets/{AddProviderDialog-BbpuvC2a.js → AddProviderDialog-CpLDHOcA.js} +6 -3
  63. package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +37 -0
  64. package/dist/web/server/assets/{AgentTemplateParts-Ce7snK3m.js → AgentTemplateParts-Dh9F_-T_.js} +7 -3
  65. package/dist/web/server/assets/Button-Dsnw22OF.js +17 -0
  66. package/dist/web/server/assets/{ConfigPage-qP9ejjuw.js → ConfigPage-CrxctbtN.js} +2 -2
  67. package/dist/web/server/assets/{ConfirmDialog-Z-uYbE9B.js → ConfirmDialog-C89B8qKM.js} +3 -1
  68. package/dist/web/server/assets/{ConnectionsView-CLIV7V5D.js → ConnectionsView-DslcKQmA.js} +9 -7
  69. package/dist/web/server/assets/Dialog-_Gt_Nt86.js +85 -0
  70. package/dist/web/server/assets/{ManagePage-BR9FwVZM.js → ManagePage-DGYNJ6XG.js} +2 -2
  71. package/dist/web/server/assets/{ModelMenu-D-hTgYOO.js → ModelMenu-DEJoYASj.js} +13 -1
  72. package/dist/web/server/assets/{SectionTabs-CWQ5orUW.js → SectionTabs--vMBvaUz.js} +9 -2
  73. package/dist/web/server/assets/{SkillsParts-DWpdydCJ.js → SkillsParts-CqS2B45v.js} +7 -3
  74. package/dist/web/server/assets/SpawnDialog-BNKj2Lup.js +127 -0
  75. package/dist/web/server/assets/{SpawnTeamModal-C-YMvoaB.js → SpawnTeamModal-zcLxtFOO.js} +6 -2
  76. package/dist/web/server/assets/{TeamForm-CL45gBdt.js → TeamForm-XFP0l2TB.js} +11 -5
  77. package/dist/web/server/assets/{TeamThread-CVVH6kKj.js → TeamThread-gYV_ToRM.js} +59 -12
  78. package/dist/web/server/assets/{UnsavedChangesGuard-CXK75QQp.js → UnsavedChangesGuard-CB_TugFF.js} +1 -1
  79. package/dist/web/server/assets/{_id-d2OwovYV.js → _id-517adSuB.js} +2 -2
  80. package/dist/web/server/assets/{_id-BKzOw78O.js → _id-BTyd2i5U.js} +1 -1
  81. package/dist/web/server/assets/{_id-8zsImuGa.js → _id-BsQnL9LV.js} +14 -9
  82. package/dist/web/server/assets/{_id-2I4CSMQj.js → _id-CyinHJam.js} +17 -11
  83. package/dist/web/server/assets/{_id-De3Bm0SG.js → _id-D4RFNqaJ.js} +2 -2
  84. package/dist/web/server/assets/{_id-BpfoPuTv.js → _id-josYXBx3.js} +2 -2
  85. package/dist/web/server/assets/_tanstack-start-manifest_v-w2xn07aY.js +275 -0
  86. package/dist/web/server/assets/{access-WWspT0v4.js → access-B97-94Wt.js} +1 -1
  87. package/dist/web/server/assets/{access-CyUoElTP.js → access-BdQmjMJV.js} +2 -2
  88. package/dist/web/server/assets/{access-CwZ27Wsl.js → access-Cc7fMMod.js} +7 -4
  89. package/dist/web/server/assets/activity-Czfq-5_F.js +471 -0
  90. package/dist/web/server/assets/{agent-actions-C07Cp5Ue.js → agent-actions-ChH7Mne4.js} +1 -1
  91. package/dist/web/server/assets/{agents-DCWEoaxY.js → agents-BL918wVc.js} +2 -2
  92. package/dist/web/server/assets/{agents-vuXrAv1j.js → agents-BlUZqqJn.js} +14 -8
  93. package/dist/web/server/assets/{agents-CRtMfKqX.js → agents-BzJFjA2i.js} +2 -2
  94. package/dist/web/server/assets/{agents-CwzhpDPm.js → agents-CjrkaEz8.js} +11 -8
  95. package/dist/web/server/assets/{agents-DQowl6Ly.js → agents-Tg3zkmQv.js} +2 -2
  96. package/dist/web/server/assets/{agents-DTub-rJk.js → agents-uw32jPWx.js} +2 -2
  97. package/dist/web/server/assets/{attention-Dki8rmGZ.js → attention-2unmuO-q.js} +1 -1
  98. package/dist/web/server/assets/{attention-BqCnJ1hg.js → attention-C94WWwQe.js} +2 -2
  99. package/dist/web/server/assets/{attention-DwGaur_w.js → attention-a_OmC6L3.js} +9 -7
  100. package/dist/web/server/assets/{auth-dJnrFW6y.js → auth-DuIqEAed.js} +1 -1
  101. package/dist/web/server/assets/{config-B9dJiji_.js → config-BG1KOtwA.js} +2 -2
  102. package/dist/web/server/assets/{config-D3MR2VjE.js → config-Bhem9XER.js} +10 -7
  103. package/dist/web/server/assets/{config-X7qWbbpH.js → config-D1Li_7Yt2.js} +1 -1
  104. package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +16 -0
  105. package/dist/web/server/assets/{daemon-client-B_ZRIIrT.js → daemon-client-D-NWKQto.js} +1 -1
  106. package/dist/web/server/assets/form-Bwsyt9OY.js +416 -0
  107. package/dist/web/server/assets/live-DbJeq6KP.js +263 -0
  108. package/dist/web/server/assets/{login-CRd1yTH5.js → login-BJdJ219n.js} +1 -1
  109. package/dist/web/server/assets/{login-ZN6KV8n-.js → login-C4lL4AxI.js} +2 -2
  110. package/dist/web/server/assets/{manage-Ce6cI4eW.js → manage-C7ReF2ZZ.js} +3 -2
  111. package/dist/web/server/assets/{mcp-CYQuYWGX.js → mcp-BFixpBQk.js} +2 -2
  112. package/dist/web/server/assets/{mcp-BQ15a9dG.js → mcp-BTZkDvdc.js} +7 -4
  113. package/dist/web/server/assets/{mcp-C97uAZe1.js → mcp-Ceg9gzKE.js} +1 -1
  114. package/dist/web/server/assets/open-groups-C89TEK85.js +12 -0
  115. package/dist/web/server/assets/{page-title-CVY-c2Pd.js → page-title-PTpFHXWo.js} +1 -1
  116. package/dist/web/server/assets/parts-B0wbj_yK.js +436 -0
  117. package/dist/web/server/assets/{router-CPdWGKQ5.js → router-Ci_9VxDk.js} +244 -104
  118. package/dist/web/server/assets/{routes-BPloBDc8.js → routes-CVrH9qgo.js} +3 -3
  119. package/dist/web/server/assets/{routes-Dw1K3TQw.js → routes-D9Mw1_VV.js} +1453 -403
  120. package/dist/web/server/assets/{routes-xDPesCQu.js → routes-DsuaDPTO.js} +3 -3
  121. package/dist/web/server/assets/{skills-DWzlT_hC.js → skills-BNbZ75am.js} +1 -1
  122. package/dist/web/server/assets/{skills-6VSpEORe.js → skills-BWwEFc4a.js} +2 -2
  123. package/dist/web/server/assets/{skills-D0xrNc2_.js → skills-D5rnOmKJ.js} +9 -7
  124. package/dist/web/server/assets/src-BeMh8Fze.js +113 -0
  125. package/dist/web/server/assets/{start-DhW7sy23.js → start-2MvkBRdC.js} +1 -1
  126. package/dist/web/server/assets/{style-aMybyKzc.js → style-B3l0Wtlf.js} +1 -1
  127. package/dist/web/server/assets/{system-B5sPgdQW.js → system-Cr4C-YRw.js} +2 -2
  128. package/dist/web/server/assets/{system-CXmiWyDG.js → system-DT7AU0e6.js} +3 -3
  129. package/dist/web/server/assets/{system-D3th6n2E.js → system-DsmXkgqn.js} +1 -1
  130. package/dist/web/server/assets/{teams-ClRBVSYU.js → teams-BeStcDvQ.js} +2 -2
  131. package/dist/web/server/assets/{teams-yF3I_Zjq.js → teams-CsEBLW8-.js} +14 -8
  132. package/dist/web/server/assets/{teams-Dq4RCxis.js → teams-Dix5XVIx.js} +2 -2
  133. package/dist/web/server/assets/{teams-iXiCnN2i.js → teams-DjE0swAZ.js} +10 -6
  134. package/dist/web/server/assets/{teams-70u1XQTr.js → teams-Rk_RED7X.js} +1 -1
  135. package/dist/web/server/assets/{teams-BopOP4x7.js → teams-u6m6JzuU.js} +1 -1
  136. package/dist/web/server/assets/{telegram-DwEgyR1x.js → telegram-BjqABrl-.js} +287 -273
  137. package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-CQpF3EHA.js} +1 -1
  138. package/dist/web/server/assets/{telegram-D9U9c1MN.js → telegram-DhzHgDfg.js} +2 -2
  139. package/dist/web/server/assets/{tools-C-wwWjLI.js → tools-DC69leH7.js} +1 -1
  140. package/dist/web/server/assets/{tools-DflVIdDd.js → tools-Dn6RnOFu.js} +2 -2
  141. package/dist/web/server/assets/{tools-VPIKjr3y.js → tools-x_DQTQtE.js} +6 -4
  142. package/dist/web/server/assets/usage-4zMG0sab.js +465 -0
  143. package/dist/web/server/assets/usage-mvQegG4l.js +46 -0
  144. package/dist/web/server/assets/{use-resource-CbHGYti0.js → use-resource-BjN1uJoL.js} +10 -2
  145. package/dist/web/server/assets/{welcome-7DrYZVs6.js → welcome-BuE9FRf4.js} +2 -2
  146. package/dist/web/server/assets/{welcome-CxXMI4HI.js → welcome-DYw35wl5.js} +1 -1
  147. package/dist/web/server/assets/{welcome-966nOyyK.js → welcome-DrYbWGd_.js} +8 -6
  148. package/dist/web/server/assets/workspace-0XPILV1W.js +82 -0
  149. package/dist/web/server/server.js +20 -20
  150. package/dist/worker.js +143 -18
  151. package/dist/worker.js.map +1 -1
  152. package/package.json +1 -1
  153. package/dist/web/client/assets/AddProviderDialog-DfFOaCjC.js +0 -1
  154. package/dist/web/client/assets/AgentTemplateParts-IMJmAQjN.js +0 -1
  155. package/dist/web/client/assets/ConfigPage-CzLHZa5o.js +0 -1
  156. package/dist/web/client/assets/ConfirmDialog-Cu_evkgc.js +0 -1
  157. package/dist/web/client/assets/ConnectionsView-D7Fmutl2.js +0 -1
  158. package/dist/web/client/assets/ManagePage-BfvlCrmz.js +0 -1
  159. package/dist/web/client/assets/SectionTabs-D7kPQGoh.js +0 -1
  160. package/dist/web/client/assets/SkillsParts-BuTxcCam.js +0 -1
  161. package/dist/web/client/assets/SpawnTeamModal-B1UnOvtp.js +0 -1
  162. package/dist/web/client/assets/TeamForm-DbzxtRjj.js +0 -1
  163. package/dist/web/client/assets/TeamThread-jpsWq6vI.js +0 -1
  164. package/dist/web/client/assets/UnsavedChangesGuard-BfyU9v9i.js +0 -1
  165. package/dist/web/client/assets/_id-BCNBLF-2.js +0 -1
  166. package/dist/web/client/assets/_id-D8_H79U2.js +0 -1
  167. package/dist/web/client/assets/access-CDWe1Kwy.js +0 -1
  168. package/dist/web/client/assets/agents-sE686DTf.js +0 -1
  169. package/dist/web/client/assets/agents-yrur1NDa.js +0 -1
  170. package/dist/web/client/assets/arrow-right-U66krZnr.js +0 -1
  171. package/dist/web/client/assets/attention-DYEHDfmx.js +0 -1
  172. package/dist/web/client/assets/chevron-right-CuqJFXTe.js +0 -1
  173. package/dist/web/client/assets/config-BHv886pr.js +0 -1
  174. package/dist/web/client/assets/index-GOthyyE-.js +0 -14
  175. package/dist/web/client/assets/login-Dhe15Uuc.js +0 -1
  176. package/dist/web/client/assets/mcp-A_Eo7x3q.js +0 -1
  177. package/dist/web/client/assets/parts-CpIfn_BH.js +0 -41
  178. package/dist/web/client/assets/plus-CQPjc8uR.js +0 -1
  179. package/dist/web/client/assets/routes-CTg_yjbY.js +0 -85
  180. package/dist/web/client/assets/skills-CLjtYtkA.js +0 -1
  181. package/dist/web/client/assets/style-mjEbxhf5.js +0 -7
  182. package/dist/web/client/assets/styles-DzcEC3Rd.css +0 -2
  183. package/dist/web/client/assets/teams-Bhje5n2h.js +0 -1
  184. package/dist/web/client/assets/teams-Cbgw0Qhv.js +0 -1
  185. package/dist/web/client/assets/telegram-HtUczmaA.js +0 -1
  186. package/dist/web/client/assets/tools-BpjFvmoX.js +0 -1
  187. package/dist/web/client/assets/use-resource-BnvgCpBi.js +0 -1
  188. package/dist/web/client/assets/welcome-D47LKWYO.js +0 -1
  189. package/dist/web/server/assets/Rail-b6EbjBB-.js +0 -605
  190. package/dist/web/server/assets/SpawnDialog-3wNx0W1R.js +0 -1851
  191. package/dist/web/server/assets/_tanstack-start-manifest_v-kkY_s_uR.js +0 -256
  192. package/dist/web/server/assets/createSsrRpc-qesavJv-.js +0 -72
  193. package/dist/web/server/assets/public-origin-BpDkdS5Q.js +0 -34
@@ -0,0 +1,471 @@
1
+ import { i as api, n as useLive } from "./live-DbJeq6KP.js";
2
+ import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/lib/tool-steps.ts
5
+ var TARGET_CHARS = 96;
6
+ function clip(value, limit = TARGET_CHARS) {
7
+ const line = value.trim().split("\n")[0] ?? "";
8
+ return line.length > limit ? `${line.slice(0, limit - 1)}…` : line;
9
+ }
10
+ /** The last segment of a path: what a person would call the file. */
11
+ function baseName(path) {
12
+ const parts = path.replace(/[\\/]+$/, "").split(/[\\/]/);
13
+ return parts[parts.length - 1] || path;
14
+ }
15
+ function hostOf(url) {
16
+ try {
17
+ return new URL(url).host || clip(url, 40);
18
+ } catch {
19
+ return clip(url, 40);
20
+ }
21
+ }
22
+ /** A tool call's arguments as an object; null when they are not one. */
23
+ function parseArgs(raw) {
24
+ try {
25
+ const parsed = JSON.parse(raw);
26
+ return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
27
+ } catch {
28
+ return null;
29
+ }
30
+ }
31
+ var str = (value) => typeof value === "string" && value.trim() ? value : null;
32
+ /** Describe one tool call. `args` may be partial: a running turn only reports its main target. */
33
+ function describeStep(tool, args) {
34
+ const path = str(args?.path);
35
+ const file = path ? baseName(path) : "a file";
36
+ switch (tool) {
37
+ case "bash": return {
38
+ doing: "running a command",
39
+ verb: "Ran",
40
+ target: str(args?.command) ? clip(String(args?.command)) : null,
41
+ icon: "terminal",
42
+ kind: "command"
43
+ };
44
+ case "read": return {
45
+ doing: `reading ${file}`,
46
+ verb: "Read",
47
+ target: path,
48
+ icon: "read",
49
+ kind: "read"
50
+ };
51
+ case "write": return {
52
+ doing: `writing ${file}`,
53
+ verb: "Wrote",
54
+ target: path,
55
+ icon: "write",
56
+ kind: "write"
57
+ };
58
+ case "edit": return {
59
+ doing: `editing ${file}`,
60
+ verb: "Edited",
61
+ target: path,
62
+ icon: "write",
63
+ kind: "write"
64
+ };
65
+ case "grep":
66
+ case "find": return {
67
+ doing: "searching the files",
68
+ verb: "Searched for",
69
+ target: str(args?.pattern) ? clip(String(args?.pattern)) : null,
70
+ icon: "search",
71
+ kind: "read"
72
+ };
73
+ case "ls": return {
74
+ doing: "listing files",
75
+ verb: "Listed",
76
+ target: path ?? ".",
77
+ icon: "search",
78
+ kind: "read"
79
+ };
80
+ case "web_search": return {
81
+ doing: "searching the web",
82
+ verb: "Searched the web for",
83
+ target: str(args?.query) ? clip(String(args?.query)) : null,
84
+ icon: "web",
85
+ kind: "web"
86
+ };
87
+ case "web_fetch":
88
+ case "browser_navigate": {
89
+ const url = str(args?.url);
90
+ return {
91
+ doing: url ? `reading ${hostOf(url)}` : "reading a web page",
92
+ verb: "Opened",
93
+ target: url ? clip(url) : null,
94
+ icon: "web",
95
+ kind: "web"
96
+ };
97
+ }
98
+ case "browser_take_screenshot": return {
99
+ doing: "taking a screenshot",
100
+ verb: "Took a screenshot",
101
+ target: null,
102
+ icon: "image",
103
+ kind: "web"
104
+ };
105
+ case "send_message": return {
106
+ doing: "messaging a teammate",
107
+ verb: "Messaged",
108
+ target: str(args?.to),
109
+ icon: "message",
110
+ kind: "message"
111
+ };
112
+ case "read_inbox": return {
113
+ doing: "reading its inbox",
114
+ verb: "Read its inbox",
115
+ target: null,
116
+ icon: "message",
117
+ kind: "other"
118
+ };
119
+ case "wait_for_reply": return {
120
+ doing: "waiting for a reply",
121
+ verb: "Waited for a reply",
122
+ target: null,
123
+ icon: "message",
124
+ kind: "other"
125
+ };
126
+ case "deliver_file": return {
127
+ doing: `delivering ${file}`,
128
+ verb: "Delivered",
129
+ target: path,
130
+ icon: "file",
131
+ kind: "deliver"
132
+ };
133
+ case "image_generate": return {
134
+ doing: "drawing an image",
135
+ verb: "Generated an image",
136
+ target: null,
137
+ icon: "image",
138
+ kind: "deliver"
139
+ };
140
+ case "memory_write": return {
141
+ doing: "saving a note",
142
+ verb: "Saved the note",
143
+ target: str(args?.key),
144
+ icon: "note",
145
+ kind: "other"
146
+ };
147
+ case "memory_read": return {
148
+ doing: "reading a note",
149
+ verb: "Read the note",
150
+ target: str(args?.key),
151
+ icon: "note",
152
+ kind: "other"
153
+ };
154
+ case "memory_search": return {
155
+ doing: "searching the notes",
156
+ verb: "Searched the notes for",
157
+ target: str(args?.query) ? clip(String(args?.query)) : null,
158
+ icon: "note",
159
+ kind: "other"
160
+ };
161
+ case "memory_list": return {
162
+ doing: "listing the notes",
163
+ verb: "Listed the notes",
164
+ target: null,
165
+ icon: "note",
166
+ kind: "other"
167
+ };
168
+ case "user_md_get": return {
169
+ doing: "reading USER.md",
170
+ verb: "Read USER.md",
171
+ target: null,
172
+ icon: "read",
173
+ kind: "other"
174
+ };
175
+ case "user_md_write": return {
176
+ doing: "updating USER.md",
177
+ verb: "Updated USER.md",
178
+ target: null,
179
+ icon: "write",
180
+ kind: "other"
181
+ };
182
+ case "ask_user": return {
183
+ doing: "asking you a question",
184
+ verb: "Asked you a question",
185
+ target: null,
186
+ icon: "question",
187
+ kind: "other"
188
+ };
189
+ case "propose_lesson": return {
190
+ doing: "proposing a lesson",
191
+ verb: "Proposed a lesson",
192
+ target: null,
193
+ icon: "note",
194
+ kind: "other"
195
+ };
196
+ default: break;
197
+ }
198
+ if (tool.startsWith("home_")) {
199
+ const own = str(args?.file);
200
+ return tool === "home_write" ? {
201
+ doing: "updating its own files",
202
+ verb: "Updated its file",
203
+ target: own,
204
+ icon: "write",
205
+ kind: "other"
206
+ } : {
207
+ doing: "reading its own files",
208
+ verb: "Read its file",
209
+ target: own,
210
+ icon: "read",
211
+ kind: "other"
212
+ };
213
+ }
214
+ if (tool.startsWith("browser_")) return {
215
+ doing: "using the browser",
216
+ verb: "In the browser:",
217
+ target: tool.slice(8).replaceAll("_", " "),
218
+ icon: "web",
219
+ kind: "web"
220
+ };
221
+ return {
222
+ doing: `using ${tool}`,
223
+ verb: "Used",
224
+ target: tool,
225
+ icon: "tool",
226
+ kind: "other"
227
+ };
228
+ }
229
+ var KIND_LABEL = {
230
+ command: ["command", "commands"],
231
+ read: ["lookup", "lookups"],
232
+ write: ["file written", "files written"],
233
+ web: ["web step", "web steps"],
234
+ message: ["message", "messages"],
235
+ deliver: ["file delivered", "files delivered"],
236
+ other: ["more", "more"]
237
+ };
238
+ /** "2 commands, 1 lookup, 3 files written" for a group of steps. */
239
+ function summarizeSteps(kinds) {
240
+ return [
241
+ "command",
242
+ "read",
243
+ "write",
244
+ "web",
245
+ "message",
246
+ "deliver",
247
+ "other"
248
+ ].map((kind) => {
249
+ const count = kinds.filter((entry) => entry === kind).length;
250
+ if (count === 0) return null;
251
+ const [one, many] = KIND_LABEL[kind];
252
+ return `${count} ${count === 1 ? one : many}`;
253
+ }).filter(Boolean).join(", ");
254
+ }
255
+ /** Lines a write or an edit added and removed, from its arguments; null for other tools. */
256
+ function lineChange(tool, args) {
257
+ const lines = (value) => typeof value === "string" && value.length > 0 ? value.replace(/\n$/, "").split("\n").length : 0;
258
+ if (tool === "write") return {
259
+ added: lines(args?.content),
260
+ removed: 0
261
+ };
262
+ if (tool !== "edit" || !Array.isArray(args?.edits)) return null;
263
+ let added = 0;
264
+ let removed = 0;
265
+ for (const edit of args.edits) {
266
+ added += lines(edit?.newText);
267
+ removed += lines(edit?.oldText);
268
+ }
269
+ return {
270
+ added,
271
+ removed
272
+ };
273
+ }
274
+ //#endregion
275
+ //#region src/lib/activity.tsx
276
+ var POLL_MS = 3e3;
277
+ var SEEN_KEY = "bz_seen";
278
+ var plural = (count, one, many = `${one}s`) => `${count} ${count === 1 ? one : many}`;
279
+ /**
280
+ * One line for an Agent. What needs the operator comes first, then work in progress, then what
281
+ * is new since they last looked.
282
+ */
283
+ function agentState(activity, seen, nameOf = () => void 0) {
284
+ if (!activity) return {
285
+ kind: "idle",
286
+ text: "Idle"
287
+ };
288
+ if (activity.questions > 0) return {
289
+ kind: "needs",
290
+ text: `Waiting for you: ${activity.questions === 1 ? "a question" : plural(activity.questions, "question")}`
291
+ };
292
+ if (activity.approvals > 0) return {
293
+ kind: "needs",
294
+ text: `Waiting for you: ${activity.approvals === 1 ? "a command" : plural(activity.approvals, "command")} to approve`
295
+ };
296
+ if (activity.working) {
297
+ const step = activity.step;
298
+ if (!step) return {
299
+ kind: "working",
300
+ text: "Working"
301
+ };
302
+ if (step.tool === "send_message") return {
303
+ kind: "working",
304
+ text: `Working: messaging ${(step.target ? nameOf(step.target) : void 0) ?? "a teammate"}`
305
+ };
306
+ const target = step.target;
307
+ const args = target ? {
308
+ path: target,
309
+ command: target,
310
+ url: target,
311
+ query: target,
312
+ key: target,
313
+ file: target
314
+ } : null;
315
+ return {
316
+ kind: "working",
317
+ text: `Working: ${describeStep(step.tool, args).doing}`
318
+ };
319
+ }
320
+ if (activity.queuePaused) return {
321
+ kind: "paused",
322
+ text: "Follow-ups paused"
323
+ };
324
+ if (seen) {
325
+ const files = activity.results - seen.results;
326
+ if (files > 0) return {
327
+ kind: "fresh",
328
+ text: plural(files, "new file")
329
+ };
330
+ if (activity.lastActivityAt !== null && activity.lastActivityAt > seen.at) return {
331
+ kind: "fresh",
332
+ text: "New activity"
333
+ };
334
+ }
335
+ return {
336
+ kind: "idle",
337
+ text: activity.lastActivityAt === null ? "No conversation yet" : "Idle"
338
+ };
339
+ }
340
+ /** "1 waiting · 2 working" for a Team's header; empty when everyone is idle. */
341
+ function teamSummary(states) {
342
+ const count = (kind) => states.filter((state) => state.kind === kind).length;
343
+ return [
344
+ count("needs") ? `${count("needs")} waiting` : null,
345
+ count("working") ? `${count("working")} working` : null,
346
+ count("fresh") ? `${count("fresh")} new` : null
347
+ ].filter(Boolean).join(" · ");
348
+ }
349
+ /**
350
+ * Whether a turn ended between two readings of the feed: an Agent stopped working, or an idle
351
+ * Agent's conversation or saved files moved on (a turn shorter than the time between readings).
352
+ */
353
+ function turnEnded(before, after) {
354
+ const known = new Map(before.map((activity) => [activity.agentId, activity]));
355
+ return after.some((now) => {
356
+ const was = known.get(now.agentId);
357
+ if (!was || now.working) return false;
358
+ return was.working || was.lastActivityAt !== now.lastActivityAt || was.results !== now.results;
359
+ });
360
+ }
361
+ var ActivityContext = createContext(null);
362
+ function readSeen() {
363
+ try {
364
+ const parsed = JSON.parse(window.localStorage.getItem(SEEN_KEY) ?? "{}");
365
+ return parsed && typeof parsed === "object" ? parsed : {};
366
+ } catch {
367
+ return {};
368
+ }
369
+ }
370
+ function ActivityProvider({ initial, openAgentId, names, children }) {
371
+ const [agents, setAgents] = useState(initial);
372
+ const [seen, setSeen] = useState(null);
373
+ const [turnsEnded, setTurnsEnded] = useState(0);
374
+ const lastRef = useRef(initial);
375
+ const live = useLive();
376
+ const apply = useCallback((next) => {
377
+ const ended = turnEnded(lastRef.current, next);
378
+ lastRef.current = next;
379
+ setAgents(next);
380
+ if (ended) setTurnsEnded((count) => count + 1);
381
+ }, []);
382
+ const refresh = useCallback(() => {
383
+ api("/api/activity").then((body) => apply(body.agents)).catch(() => {});
384
+ }, [apply]);
385
+ useEffect(() => live.subscribe("activity", (event) => apply(event.agents)), [live.subscribe, apply]);
386
+ useEffect(() => {
387
+ if (live.connected) return;
388
+ const timer = setInterval(() => {
389
+ if (!document.hidden) refresh();
390
+ }, POLL_MS);
391
+ const onVisible = () => {
392
+ if (!document.hidden) refresh();
393
+ };
394
+ document.addEventListener("visibilitychange", onVisible);
395
+ return () => {
396
+ clearInterval(timer);
397
+ document.removeEventListener("visibilitychange", onVisible);
398
+ };
399
+ }, [refresh, live.connected]);
400
+ useEffect(() => setSeen(readSeen()), []);
401
+ useEffect(() => {
402
+ if (!seen) return;
403
+ let next = null;
404
+ for (const activity of agents) {
405
+ const current = seen[activity.agentId];
406
+ const now = {
407
+ at: activity.lastActivityAt ?? 0,
408
+ results: activity.results
409
+ };
410
+ const open = activity.agentId === openAgentId && !document.hidden;
411
+ if (!current || open && (current.at !== now.at || current.results !== now.results)) next = {
412
+ ...next ?? seen,
413
+ [activity.agentId]: now
414
+ };
415
+ }
416
+ if (!next) return;
417
+ setSeen(next);
418
+ try {
419
+ window.localStorage.setItem(SEEN_KEY, JSON.stringify(next));
420
+ } catch {}
421
+ }, [
422
+ agents,
423
+ seen,
424
+ openAgentId
425
+ ]);
426
+ const value = useMemo(() => {
427
+ const byAgent = new Map(agents.map((activity) => [activity.agentId, activity]));
428
+ return {
429
+ byAgent,
430
+ stateOf: (agentId) => agentState(byAgent.get(agentId), agentId === openAgentId ? void 0 : seen?.[agentId], (id) => names.get(id)),
431
+ turnsEnded,
432
+ refresh
433
+ };
434
+ }, [
435
+ agents,
436
+ seen,
437
+ openAgentId,
438
+ names,
439
+ turnsEnded,
440
+ refresh
441
+ ]);
442
+ return /* @__PURE__ */ jsx(ActivityContext.Provider, {
443
+ value,
444
+ children
445
+ });
446
+ }
447
+ function useActivity() {
448
+ const value = useContext(ActivityContext);
449
+ if (!value) throw new Error("useActivity needs an ActivityProvider");
450
+ return value;
451
+ }
452
+ /** The feed when there is one: a conversation can also render on its own. */
453
+ function useActivityOptional() {
454
+ return useContext(ActivityContext);
455
+ }
456
+ /** A short clock or date for "last active": 12:04 today, Tue this week, 12 Nov otherwise. */
457
+ function shortTime(at, now = Date.now()) {
458
+ const date = new Date(at);
459
+ const today = new Date(now);
460
+ if (date.toDateString() === today.toDateString()) return date.toLocaleTimeString([], {
461
+ hour: "2-digit",
462
+ minute: "2-digit"
463
+ });
464
+ if (now - at < 144 * 36e5) return date.toLocaleDateString([], { weekday: "short" });
465
+ return date.toLocaleDateString([], {
466
+ day: "numeric",
467
+ month: "short"
468
+ });
469
+ }
470
+ //#endregion
471
+ export { useActivity as a, lineChange as c, teamSummary as i, parseArgs as l, agentState as n, useActivityOptional as o, shortTime as r, describeStep as s, ActivityProvider as t, summarizeSteps as u };
@@ -1,4 +1,4 @@
1
- import { dt as api } from "./SpawnDialog-3wNx0W1R.js";
1
+ import { i as api } from "./live-DbJeq6KP.js";
2
2
  //#region src/lib/agent-actions.ts
3
3
  var agentPath = (id) => `/api/agents/${encodeURIComponent(id)}`;
4
4
  function archiveAgent(id) {
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/agents/index.tsx
5
- var $$splitComponentImporter = () => import("./agents-vuXrAv1j.js");
5
+ var $$splitComponentImporter = () => import("./agents-BlUZqqJn.js");
6
6
  var fetchAgents = createServerFn({ method: "GET" }).handler(createSsrRpc("f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e"));
7
7
  var Route = createFileRoute("/agents/")({
8
8
  loader: () => fetchAgents(),
@@ -1,10 +1,16 @@
1
- import { A as RowMenu, D as GroupHeader, G as DialogActions, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, c as SelectField, dt as api, g as CardBody, j as SearchField, k as Notice, pt as errorMessage, q as AgentAvatar, t as SpawnDialog, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
1
+ import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
2
+ import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
3
+ import { t as Button } from "./Button-Dsnw22OF.js";
4
+ import { n as DialogActions, t as Dialog } from "./Dialog-_Gt_Nt86.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-C89B8qKM.js";
3
6
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
4
- import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-C07Cp5Ue.js";
5
- import { T as templateName, c as groupAgents, n as agentCounts, r as agentModel, s as count } from "./manage-Ce6cI4eW.js";
6
- import { t as Route } from "./agents-DCWEoaxY.js";
7
- import { t as ManagePage } from "./ManagePage-BR9FwVZM.js";
7
+ import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, m as GroupHeader, o as CardList, r as CardBody, v as SearchField, y as SetupCard } from "./parts-B0wbj_yK.js";
8
+ import { s as SelectField } from "./form-Bwsyt9OY.js";
9
+ import { t as SpawnDialog } from "./SpawnDialog-BNKj2Lup.js";
10
+ import { t as Route } from "./agents-BL918wVc.js";
11
+ import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
12
+ import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-ChH7Mne4.js";
13
+ import { T as templateName, c as groupAgents, n as agentCounts, r as agentModel, s as count } from "./manage-C7ReF2ZZ.js";
8
14
  import { useEffect, useRef, useState } from "react";
9
15
  import { Link, useRouter } from "@tanstack/react-router";
10
16
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -175,7 +181,7 @@ function AgentsCard({ agents, teams, templates, chat, onSpawn, onChanged }) {
175
181
  variant: "primary",
176
182
  disabled: templates.length === 0 || teams.length === 0,
177
183
  onClick: onSpawn,
178
- children: "Spawn an agent"
184
+ children: "Add an Agent"
179
185
  }),
180
186
  children: "An Agent is spawned from a template into a Team, and starts talking as soon as it is."
181
187
  }) : groups.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
@@ -303,7 +309,7 @@ function AgentsPage() {
303
309
  variant: "primary",
304
310
  disabled: templates.length === 0 || teams.length === 0,
305
311
  onClick: () => setSpawning(true),
306
- children: "Spawn an agent"
312
+ children: "Add an Agent"
307
313
  }),
308
314
  children: [/* @__PURE__ */ jsx(AgentsCard, {
309
315
  agents,
@@ -1,7 +1,7 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as MODELS_PATH } from "./ModelMenu-D-hTgYOO.js";
2
+ import { t as MODELS_PATH } from "./ModelMenu-DEJoYASj.js";
3
3
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
4
- import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
+ import { n as daemonClient } from "./daemon-client-D-NWKQto.js";
5
5
  //#region src/routes/agents/index.tsx?tss-serverfn-split
6
6
  var fetchAgents_createServerFn_handler = createServerRpc({
7
7
  id: "f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e",
@@ -1,9 +1,12 @@
1
- import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, dt as api, t as SpawnDialog, w as Chip, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
3
- import { E as templateUseLine, T as templateName, d as modelLine, s as count, w as templateDeleteBlocker, y as skillsLine } from "./manage-Ce6cI4eW.js";
4
- import { t as Route } from "./agents-DTub-rJk.js";
5
- import { t as ManagePage } from "./ManagePage-BR9FwVZM.js";
6
- import { t as CreateAgentTemplateDialog } from "./AgentTemplateParts-Ce7snK3m.js";
1
+ import { i as api } from "./live-DbJeq6KP.js";
2
+ import { t as Button } from "./Button-Dsnw22OF.js";
3
+ import { t as ConfirmDialog } from "./ConfirmDialog-C89B8qKM.js";
4
+ import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-B0wbj_yK.js";
5
+ import { t as SpawnDialog } from "./SpawnDialog-BNKj2Lup.js";
6
+ import { t as Route } from "./agents-uw32jPWx.js";
7
+ import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
8
+ import { E as templateUseLine, T as templateName, d as modelLine, s as count, w as templateDeleteBlocker, y as skillsLine } from "./manage-C7ReF2ZZ.js";
9
+ import { t as CreateAgentTemplateDialog } from "./AgentTemplateParts-Dh9F_-T_.js";
7
10
  import { useState } from "react";
8
11
  import { useNavigate, useRouter } from "@tanstack/react-router";
9
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -78,9 +81,9 @@ function AgentTemplatesPage() {
78
81
  ] }),
79
82
  actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
80
83
  variant: "ghost",
81
- "aria-label": `Spawn an agent from ${templateName(template)}`,
84
+ "aria-label": `Add an Agent from ${templateName(template)}`,
82
85
  onClick: () => setSpawnFrom(template.id),
83
- children: "Spawn"
86
+ children: "Add an Agent"
84
87
  }), /* @__PURE__ */ jsx(RowMenu, {
85
88
  label: `More for ${templateName(template)}`,
86
89
  items: [{
@@ -1,7 +1,7 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as MODELS_PATH } from "./ModelMenu-D-hTgYOO.js";
2
+ import { t as MODELS_PATH } from "./ModelMenu-DEJoYASj.js";
3
3
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
4
- import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
+ import { n as daemonClient } from "./daemon-client-D-NWKQto.js";
5
5
  //#region src/routes/templates/agents/index.tsx?tss-serverfn-split
6
6
  var fetchTemplates_createServerFn_handler = createServerRpc({
7
7
  id: "7bc7f3b145d10e7a733fbe068ce367dda04ec2f1cdb53f0d6dcba3838eb2deeb",
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/templates/agents/index.tsx
5
- var $$splitComponentImporter = () => import("./agents-CwzhpDPm.js");
5
+ var $$splitComponentImporter = () => import("./agents-CjrkaEz8.js");
6
6
  var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("7bc7f3b145d10e7a733fbe068ce367dda04ec2f1cdb53f0d6dcba3838eb2deeb"));
7
7
  var Route = createFileRoute("/templates/agents/")({
8
8
  validateSearch: (search) => ({ new: search.new === 1 || search.new === "1" ? 1 : void 0 }),
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
3
+ import { n as daemonClient } from "./daemon-client-D-NWKQto.js";
4
4
  //#region src/routes/attention/index.tsx?tss-serverfn-split
5
5
  var LIST_PATH = "/api/attention?state=all&limit=200";
6
6
  var SUMMARY_PATH = "/api/attention/summary";
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/attention/index.tsx
5
- var $$splitComponentImporter = () => import("./attention-DwGaur_w.js");
5
+ var $$splitComponentImporter = () => import("./attention-a_OmC6L3.js");
6
6
  /** Questions expire in minutes and commands in two: the page keeps itself current. */
7
7
  /** "2 minutes ago" moves on even when nothing in the list changes. */
8
8
  /** What the item's button says: where it takes you and what you do there. */
@@ -1,11 +1,13 @@
1
- import { K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, dt as api, g as CardBody, i as FilterSelect, k as Notice, lt as useLive, m as Banner, pt as errorMessage, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
2
- import { t as useHydrated } from "./use-resource-CbHGYti0.js";
3
- import { r as ago } from "./ModelMenu-D-hTgYOO.js";
1
+ import { i as api, n as useLive, o as errorMessage } from "./live-DbJeq6KP.js";
2
+ import { t as useHydrated } from "./use-resource-BjN1uJoL.js";
3
+ import { t as Button } from "./Button-Dsnw22OF.js";
4
+ import { r as ago } from "./ModelMenu-DEJoYASj.js";
4
5
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
5
- import { a as attentionSource, m as severityLabel, o as attentionSummary, t as ATTENTION_KINDS } from "./manage-Ce6cI4eW.js";
6
- import { i as useAttentionCount } from "./page-title-CVY-c2Pd.js";
7
- import { n as PageHeader, r as PageShell } from "./createSsrRpc-qesavJv-.js";
8
- import { t as Route } from "./attention-BqCnJ1hg.js";
6
+ import { i as useAttentionCount } from "./page-title-PTpFHXWo.js";
7
+ import { C as PageShell, S as PageHeader, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, y as SetupCard } from "./parts-B0wbj_yK.js";
8
+ import { r as FilterSelect } from "./form-Bwsyt9OY.js";
9
+ import { t as Route } from "./attention-C94WWwQe.js";
10
+ import { a as attentionSource, m as severityLabel, o as attentionSummary, t as ATTENTION_KINDS } from "./manage-C7ReF2ZZ.js";
9
11
  import { useEffect, useRef, useState } from "react";
10
12
  import { Link } from "@tanstack/react-router";
11
13
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
3
+ import { n as daemonClient, r as ApiClientError } from "./daemon-client-D-NWKQto.js";
4
4
  //#region src/lib/auth.ts?tss-serverfn-split
5
5
  var fetchAuthState_createServerFn_handler = createServerRpc({
6
6
  id: "a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2",
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/index.tsx
5
- var $$splitComponentImporter = () => import("./config-D3MR2VjE.js");
5
+ var $$splitComponentImporter = () => import("./config-Bhem9XER.js");
6
6
  var fetchModelsPage = createServerFn({ method: "GET" }).handler(createSsrRpc("71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731"));
7
7
  var Route = createFileRoute("/config/")({
8
8
  validateSearch: (search) => ({