bazilion 0.51.0 → 0.53.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 (205) hide show
  1. package/dist/cli.js +74 -28
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +547 -187
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
  7. package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
  8. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
  9. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
  10. package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
  11. package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
  13. package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
  14. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
  16. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
  17. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
  19. package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
  20. package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
  21. package/dist/web/client/assets/access-34_ShgHU.js +1 -0
  22. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
  23. package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
  24. package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
  25. package/dist/web/client/assets/api-CoLs57oO.js +1 -0
  26. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
  27. package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
  28. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
  29. package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
  31. package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
  32. package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
  33. package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
  34. package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
  35. package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
  36. package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
  37. package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
  38. package/dist/web/client/assets/login-076Bc601.js +1 -0
  39. package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
  40. package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
  41. package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
  42. package/dist/web/client/assets/model-facts-DoB6QD5y.js +1 -0
  43. package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
  44. package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
  45. package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
  46. package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
  47. package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
  48. package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
  49. package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
  50. package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
  51. package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
  52. package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
  53. package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
  54. package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
  55. package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
  56. package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
  57. package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
  58. package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
  59. package/dist/web/server/assets/{AddProviderDialog-CR6TRYdZ.js → AddProviderDialog-Di5crZUB.js} +9 -205
  60. package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
  61. package/dist/web/server/assets/{ConfigPage-CIh3ohea.js → ConfigPage-oXM3wyOU.js} +2 -2
  62. package/dist/web/server/assets/{ConfirmDialog-B79K2KEW.js → ConfirmDialog-DfaJ--A6.js} +2 -2
  63. package/dist/web/server/assets/{ConnectionsView-BIMYdp9C.js → ConnectionsView-DZrLoNoW.js} +7 -7
  64. package/dist/web/server/assets/{Dialog-CVqpXxuN.js → Dialog-aup_yJv5.js} +1 -1
  65. package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
  66. package/dist/web/server/assets/ModelMenu-BAZeARx6.js +138 -0
  67. package/dist/web/server/assets/{Rail-Cg-efcpA.js → Rail-7JU6ly2O.js} +17 -107
  68. package/dist/web/server/assets/{SectionTabs-DrcgVeZd.js → SectionTabs-CWQ5orUW.js} +12 -5
  69. package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +124 -0
  70. package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
  71. package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
  72. package/dist/web/server/assets/{TeamThread-5CjVPcDr.js → TeamThread-SyQpUvz5.js} +3 -3
  73. package/dist/web/server/assets/{UnsavedChangesGuard-CyF2Z9p1.js → UnsavedChangesGuard-DrOvPV14.js} +1 -1
  74. package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
  75. package/dist/web/server/assets/{_id-8bsYEcGg.js → _id-BGTgqsWm.js} +8 -4
  76. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  77. package/dist/web/server/assets/{_id-0fEWiVZX.js → _id-DPGzfmjG.js} +258 -206
  78. package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
  79. package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
  80. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
  81. package/dist/web/server/assets/{tokens-C-oDTqnp.js → access-BJe-NduL.js} +5 -5
  82. package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
  83. package/dist/web/server/assets/{tokens-CEdl8puR.js → access-WWspT0v4.js} +5 -4
  84. package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
  85. package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
  86. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
  87. package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
  88. package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
  89. package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
  90. package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
  91. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
  92. package/dist/web/server/assets/{attention-CHQEQiZl.js → attention-DefKwvgm.js} +2 -2
  93. package/dist/web/server/assets/attention-johfkM0_.js +203 -0
  94. package/dist/web/server/assets/{config-DOp28gcy.js → config-Clz57LuN.js} +186 -87
  95. package/dist/web/server/assets/{config-DzgkbBoD.js → config-DYAaaE9Z.js} +2 -2
  96. package/dist/web/server/assets/{createSsrRpc-CcLbajrF.js → createSsrRpc-BijMHgqE.js} +2 -46
  97. package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
  98. package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
  99. package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
  100. package/dist/web/server/assets/{mcp-D3OCoHtO.js → mcp-DB38leWS.js} +2 -2
  101. package/dist/web/server/assets/model-facts-mrfrWQne.js +136 -0
  102. package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
  103. package/dist/web/server/assets/{router-Cs2Ak4II.js → router-C97bwlXi.js} +55 -50
  104. package/dist/web/server/assets/{routes-BSNOKE-C.js → routes-C4aGqXfr.js} +65 -17
  105. package/dist/web/server/assets/{routes-CO4l-GJ0.js → routes-DuOShl4q.js} +2 -2
  106. package/dist/web/server/assets/{routes-BVwqgZGI.js → routes-IHMVKpDK.js} +3 -3
  107. package/dist/web/server/assets/{skills-CggQJk6a.js → skills-B7sg0QKS.js} +2 -2
  108. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  109. package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
  110. package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
  111. package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
  112. package/dist/web/server/assets/{system-DtswhLW62.js → system-D3th6n2E.js} +4 -2
  113. package/dist/web/server/assets/{system-DsJfpBPl.js → system-DaP0ol67.js} +2 -2
  114. package/dist/web/server/assets/{teams-B6lBhvdL.js → teams-4cEZ4_rw.js} +4 -2
  115. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  116. package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
  117. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  118. package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
  119. package/dist/web/server/assets/{teams-Bp2tERZe.js → teams-CuKE5iAK.js} +2 -2
  120. package/dist/web/server/assets/{telegram-D2RZriz_.js → telegram-BnQADwnj.js} +5 -5
  121. package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
  122. package/dist/web/server/assets/{telegram-Gy7_9yih.js → telegram-CGol0CKX.js} +3 -3
  123. package/dist/web/server/assets/tools-BQeWn7Tj.js +12 -0
  124. package/dist/web/server/assets/tools-C-wwWjLI.js +12 -0
  125. package/dist/web/server/assets/tools-CURTfG2q.js +341 -0
  126. package/dist/web/server/assets/{use-resource-ChQozXVI.js → use-resource-DVzK0toP.js} +1 -1
  127. package/dist/web/server/assets/utils-C_uf36nf.js +8 -0
  128. package/dist/web/server/assets/{welcome-BLw1G6SS.js → welcome-OiZCAIHZ.js} +5 -5
  129. package/dist/web/server/assets/{welcome-ByAkvHSP.js → welcome-SNsE49JO.js} +2 -2
  130. package/dist/web/server/assets/{workspace-DeEYMPDX.js → workspace-DaitCM0t.js} +1 -8
  131. package/dist/web/server/server.js +30 -30
  132. package/dist/worker.js +202 -120
  133. package/dist/worker.js.map +1 -1
  134. package/package.json +1 -1
  135. package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +0 -1
  136. package/dist/web/client/assets/ConfigPage-pupvtSCX.js +0 -1
  137. package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +0 -1
  138. package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +0 -1
  139. package/dist/web/client/assets/Dialog-bg86_x4v.js +0 -1
  140. package/dist/web/client/assets/FieldRow-B8eIni5r.js +0 -1
  141. package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +0 -1
  142. package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +0 -1
  143. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  144. package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +0 -1
  145. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  146. package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +0 -1
  147. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  148. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  149. package/dist/web/client/assets/TeamThread-DFvbakHo.js +0 -1
  150. package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +0 -1
  151. package/dist/web/client/assets/_id-BjNtLwak.js +0 -1
  152. package/dist/web/client/assets/_id-BklaQf3z.js +0 -1
  153. package/dist/web/client/assets/agents-D9cUF2d9.js +0 -1
  154. package/dist/web/client/assets/agents-wuBlzx4e.js +0 -1
  155. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  156. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  157. package/dist/web/client/assets/attention-8ZkSLl2e.js +0 -1
  158. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  159. package/dist/web/client/assets/config-Con_BbSh.js +0 -1
  160. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  161. package/dist/web/client/assets/index-Br9qkGM-.js +0 -54
  162. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  163. package/dist/web/client/assets/login-llnOKSJc.js +0 -1
  164. package/dist/web/client/assets/mcp-zIUguMSI.js +0 -1
  165. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  166. package/dist/web/client/assets/routes-BY5uqJ2n.js +0 -76
  167. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  168. package/dist/web/client/assets/services-esLrcTwe.js +0 -1
  169. package/dist/web/client/assets/skills-DzYXksM0.js +0 -1
  170. package/dist/web/client/assets/style-Cdzqt_TJ.js +0 -7
  171. package/dist/web/client/assets/styles-BRSS6yrm.css +0 -2
  172. package/dist/web/client/assets/system-CsI66nyZ.js +0 -1
  173. package/dist/web/client/assets/teams-CHE_zpxS.js +0 -1
  174. package/dist/web/client/assets/teams-dxG9OESG.js +0 -1
  175. package/dist/web/client/assets/telegram-C3dGndJV.js +0 -1
  176. package/dist/web/client/assets/tokens-CNNH-Wr9.js +0 -1
  177. package/dist/web/client/assets/use-resource-BjnxgGvh.js +0 -1
  178. package/dist/web/client/assets/welcome-C8EOtc8P.js +0 -1
  179. package/dist/web/server/assets/FieldRow-CHVhX2rS.js +0 -173
  180. package/dist/web/server/assets/ModelSelect-DrZrdndo.js +0 -43
  181. package/dist/web/server/assets/SkillFindings-DSDiL6hn.js +0 -46
  182. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  183. package/dist/web/server/assets/SpawnDialog-BUUlLxE9.js +0 -129
  184. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  185. package/dist/web/server/assets/TeamForm-CvQAs2FA.js +0 -96
  186. package/dist/web/server/assets/_id-BvAaRSUW.js +0 -18
  187. package/dist/web/server/assets/_id-Dg6M_qfr.js +0 -383
  188. package/dist/web/server/assets/_id-Dji7xr9C.js +0 -28
  189. package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +0 -214
  190. package/dist/web/server/assets/agents-BDA5yYZ2.js +0 -130
  191. package/dist/web/server/assets/agents-BTDxmp-F.js +0 -12
  192. package/dist/web/server/assets/agents-DM7guWF2.js +0 -14
  193. package/dist/web/server/assets/agents-DktqUffG.js +0 -327
  194. package/dist/web/server/assets/agents-xgZ9rsac.js +0 -27
  195. package/dist/web/server/assets/attention-De3-ehuf.js +0 -216
  196. package/dist/web/server/assets/mcp-CO_tycXU.js +0 -250
  197. package/dist/web/server/assets/services-DZLxUSG8.js +0 -13
  198. package/dist/web/server/assets/services-DsHRLL8q.js +0 -12
  199. package/dist/web/server/assets/services-DsvpaF3L.js +0 -74
  200. package/dist/web/server/assets/skills-DKYV7PTk.js +0 -275
  201. package/dist/web/server/assets/system-CZ2qzBz3.js +0 -138
  202. package/dist/web/server/assets/teams-B6PzNcoy.js +0 -88
  203. package/dist/web/server/assets/teams-C-8iz-uV.js +0 -108
  204. package/dist/web/server/assets/telegram-CXrP3hMp.js +0 -984
  205. package/dist/web/server/assets/tokens-DSLwQ1Pw.js +0 -232
@@ -1,130 +0,0 @@
1
- import { E as errorMessage, d as Button, f as AgentAvatar } from "./workspace-DeEYMPDX.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
3
- import { a as unarchiveAgent, n as archiveAgent, r as deleteAgent, t as SpawnDialog } from "./SpawnDialog-BUUlLxE9.js";
4
- import { a as PageHeader, i as ItemRow, l as StatusBadge, n as EmptyState, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
5
- import { t as Route } from "./agents-DM7guWF2.js";
6
- import { useState } from "react";
7
- import { Link, useRouter } from "@tanstack/react-router";
8
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/routes/agents/index.tsx?tsr-split=component
10
- function AgentsPage() {
11
- const { agents, profiles, teams } = Route.useLoaderData();
12
- const showAll = Route.useSearch().all === 1;
13
- const router = useRouter();
14
- const [spawning, setSpawning] = useState(false);
15
- const [pending, setPending] = useState(null);
16
- const [error, setError] = useState(null);
17
- async function restore(agent) {
18
- setError(null);
19
- try {
20
- await unarchiveAgent(agent.id);
21
- await router.invalidate();
22
- } catch (cause) {
23
- setError(errorMessage(cause));
24
- }
25
- }
26
- return /* @__PURE__ */ jsxs(PageShell, {
27
- size: "wide",
28
- children: [
29
- /* @__PURE__ */ jsx(PageHeader, {
30
- eyebrow: "Workspace",
31
- title: "Agents",
32
- description: "Every Agent across your teams: spawn, archive, restore and delete. Open one to talk to it; its model, skills and schedules are in its side panel.",
33
- actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("a", {
34
- className: "ghost-btn",
35
- href: showAll ? "/agents" : "/agents?all=1",
36
- children: showAll ? "Hide archived" : "Show archived"
37
- }), /* @__PURE__ */ jsx(Button, {
38
- variant: "primary",
39
- disabled: profiles.length === 0,
40
- onClick: () => setSpawning(true),
41
- children: "Spawn agent"
42
- })] })
43
- }),
44
- error && /* @__PURE__ */ jsx("p", {
45
- role: "alert",
46
- className: "err",
47
- children: error
48
- }),
49
- /* @__PURE__ */ jsx(SectionCard, {
50
- title: showAll ? "All agents" : "Current agents",
51
- description: showAll ? "Active and archived agents are shown together." : "Archived agents stay hidden until you choose to show them.",
52
- children: agents.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
53
- title: showAll ? "No agents yet" : "No current agents",
54
- description: "Spawn an agent to give a team its first working member."
55
- }) : /* @__PURE__ */ jsx(ItemList, { children: agents.map((agent) => /* @__PURE__ */ jsx(ItemRow, {
56
- title: /* @__PURE__ */ jsxs("span", {
57
- className: "flex min-w-0 items-center gap-2",
58
- children: [
59
- /* @__PURE__ */ jsx(AgentAvatar, {
60
- identity: agent.identity,
61
- size: 26
62
- }),
63
- /* @__PURE__ */ jsx(Link, {
64
- to: "/",
65
- search: { agent: agent.id },
66
- className: "truncate",
67
- children: agent.name
68
- }),
69
- /* @__PURE__ */ jsx(StatusBadge, {
70
- variant: agent.status === "archived" ? "warning" : "success",
71
- children: agent.status
72
- })
73
- ]
74
- }),
75
- meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
76
- (agent.identity?.creature || agent.identity?.vibe) && /* @__PURE__ */ jsx("span", { children: [agent.identity?.creature, agent.identity?.vibe].filter(Boolean).join(" · ") }),
77
- /* @__PURE__ */ jsxs("span", { children: ["template ", /* @__PURE__ */ jsx("code", { children: agent.profileId })] }),
78
- /* @__PURE__ */ jsxs("span", { children: ["team ", /* @__PURE__ */ jsx("code", { children: agent.teamId })] }),
79
- /* @__PURE__ */ jsx("code", {
80
- title: agent.id,
81
- children: agent.id.slice(0, 8)
82
- })
83
- ] }),
84
- actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [agent.status === "archived" ? /* @__PURE__ */ jsx(Button, {
85
- variant: "ghost",
86
- onClick: () => void restore(agent),
87
- children: "Restore"
88
- }) : /* @__PURE__ */ jsx(Button, {
89
- variant: "ghost",
90
- onClick: () => setPending({
91
- kind: "archive",
92
- agent
93
- }),
94
- children: "Archive"
95
- }), /* @__PURE__ */ jsx(Button, {
96
- variant: "danger",
97
- onClick: () => setPending({
98
- kind: "delete",
99
- agent
100
- }),
101
- children: "Delete"
102
- })] })
103
- }, agent.id)) })
104
- }),
105
- spawning && /* @__PURE__ */ jsx(SpawnDialog, {
106
- profiles,
107
- teams,
108
- onClose: () => setSpawning(false)
109
- }),
110
- /* @__PURE__ */ jsx(ConfirmDialog, {
111
- open: pending !== null,
112
- onOpenChange: (open) => {
113
- if (!open) setPending(null);
114
- },
115
- title: pending?.kind === "delete" ? `Delete ${pending.agent.name} permanently?` : `Archive ${pending?.agent.name ?? "agent"}?`,
116
- description: pending?.kind === "delete" ? /* @__PURE__ */ jsx("p", { children: "This permanently removes the Agent, its messages, triggers, skill attachments, sessions, and private on-disk directory. This cannot be undone." }) : /* @__PURE__ */ jsx("p", { children: "The Agent will stop appearing in current lists and cannot receive normal work. You can restore it later from “Show archived”." }),
117
- confirmLabel: pending?.kind === "delete" ? "Delete permanently" : "Archive agent",
118
- confirmVariant: pending?.kind === "delete" ? "danger" : "primary",
119
- onConfirm: async () => {
120
- if (!pending) return;
121
- if (pending.kind === "delete") await deleteAgent(pending.agent.id);
122
- else await archiveAgent(pending.agent.id);
123
- await router.invalidate();
124
- }
125
- })
126
- ]
127
- });
128
- }
129
- //#endregion
130
- export { AgentsPage as component };
@@ -1,12 +0,0 @@
1
- import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
- import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
- //#region src/routes/templates/agents/index.tsx
5
- var $$splitComponentImporter = () => import("./agents-DktqUffG.js");
6
- var fetchProfiles = createServerFn({ method: "GET" }).handler(createSsrRpc("bc31355f2be9889a616d03c35062d483ea77c3f967af9432d721626a81078ef3"));
7
- var Route = createFileRoute("/templates/agents/")({
8
- loader: () => fetchProfiles(),
9
- component: lazyRouteComponent($$splitComponentImporter, "component")
10
- });
11
- //#endregion
12
- export { Route as t };
@@ -1,14 +0,0 @@
1
- import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
- import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
- //#region src/routes/agents/index.tsx
5
- var $$splitComponentImporter = () => import("./agents-BDA5yYZ2.js");
6
- var fetchAgents = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e"));
7
- var Route = createFileRoute("/agents/")({
8
- validateSearch: (search) => ({ all: search.all === 1 ? 1 : void 0 }),
9
- loaderDeps: ({ search }) => ({ all: search.all === 1 }),
10
- loader: ({ deps }) => fetchAgents({ data: { all: deps.all } }),
11
- component: lazyRouteComponent($$splitComponentImporter, "component")
12
- });
13
- //#endregion
14
- export { Route as t };
@@ -1,327 +0,0 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
3
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CyF2Z9p1.js";
4
- import { n as ModelSelect } from "./ModelSelect-DrZrdndo.js";
5
- import { a as PageHeader, i as ItemRow, l as StatusBadge, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
6
- import { t as Route } from "./agents-BTDxmp-F.js";
7
- import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-DrcgVeZd.js";
8
- import { t as Tabs } from "./Tabs-BhF41MfQ.js";
9
- import { t as SkillsPicker } from "./SkillsPicker-DlqEfRWh.js";
10
- import { useState } from "react";
11
- import { useRouter } from "@tanstack/react-router";
12
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
- //#region src/routes/templates/agents/index.tsx?tsr-split=component
14
- function ProfilesPage() {
15
- const { profiles, modelGroups, skills, templates } = Route.useLoaderData();
16
- const router = useRouter();
17
- const [deleteTarget, setDeleteTarget] = useState(null);
18
- return /* @__PURE__ */ jsxs(PageShell, {
19
- size: "wide",
20
- children: [
21
- /* @__PURE__ */ jsx(PageHeader, {
22
- eyebrow: "Templates",
23
- title: "Agent templates",
24
- description: "Reusable identity, model and skills for newly spawned agents."
25
- }),
26
- /* @__PURE__ */ jsx(SectionTabs, {
27
- label: "Template kinds",
28
- base: "/templates",
29
- tabs: TEMPLATE_TABS
30
- }),
31
- /* @__PURE__ */ jsx(CreateProfileForm, {
32
- modelGroups,
33
- skills,
34
- templates,
35
- onCreated: () => router.invalidate()
36
- }),
37
- /* @__PURE__ */ jsx(SectionCard, {
38
- title: "Templates",
39
- children: profiles.length === 0 ? /* @__PURE__ */ jsx("p", {
40
- className: "muted",
41
- children: "No Agent templates yet."
42
- }) : /* @__PURE__ */ jsx(ItemList, { children: profiles.map((profile) => /* @__PURE__ */ jsx(ItemRow, {
43
- title: /* @__PURE__ */ jsx("a", {
44
- href: `/templates/agents/${encodeURIComponent(profile.id)}`,
45
- children: profile.name
46
- }),
47
- meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
48
- /* @__PURE__ */ jsx("code", { children: profile.id }),
49
- /* @__PURE__ */ jsx("code", { children: profile.defaultModel }),
50
- /* @__PURE__ */ jsxs("span", { children: [
51
- profile.agentCount,
52
- " agent",
53
- profile.agentCount === 1 ? "" : "s"
54
- ] }),
55
- /* @__PURE__ */ jsxs("span", { children: [
56
- "skills:",
57
- " ",
58
- profile.skillsMode === "all" ? "all" : profile.defaultSkills.join(", ") || "none"
59
- ] })
60
- ] }),
61
- actions: profile.agentCount === 0 ? /* @__PURE__ */ jsx(Button, {
62
- variant: "danger",
63
- onClick: () => setDeleteTarget(profile),
64
- children: "Delete"
65
- }) : /* @__PURE__ */ jsx(StatusBadge, {
66
- title: `${profile.agentCount} agent(s) use this template`,
67
- children: "In use"
68
- })
69
- }, profile.id)) })
70
- }),
71
- /* @__PURE__ */ jsx(ConfirmDialog, {
72
- open: deleteTarget !== null,
73
- title: `Delete Agent template ${deleteTarget?.name ?? ""}?`,
74
- description: /* @__PURE__ */ jsxs("p", { children: [
75
- "This permanently deletes ",
76
- /* @__PURE__ */ jsx("code", {
77
- className: "font-mono",
78
- children: deleteTarget?.id
79
- }),
80
- " and its files. Existing Agents keep their own copies."
81
- ] }),
82
- confirmLabel: "Delete Agent template",
83
- onConfirm: async () => {
84
- if (!deleteTarget) return;
85
- await api(`/api/profiles/${encodeURIComponent(deleteTarget.id)}`, { method: "DELETE" });
86
- await router.invalidate();
87
- },
88
- onOpenChange: (open) => {
89
- if (!open) setDeleteTarget(null);
90
- }
91
- })
92
- ]
93
- });
94
- }
95
- var FILES = [
96
- {
97
- key: "soul",
98
- label: "SOUL.md",
99
- hint: "Persona, values and operating principles. Part of every session.",
100
- rows: 16,
101
- optional: false
102
- },
103
- {
104
- key: "identity",
105
- label: "IDENTITY.md",
106
- hint: "Name, creature, vibe, emoji, avatar: filled in during the first-run ritual.",
107
- rows: 12,
108
- optional: false
109
- },
110
- {
111
- key: "bootstrap",
112
- label: "BOOTSTRAP.md",
113
- hint: "The first-run ritual; the agent retires it once introductions are done.",
114
- rows: 16,
115
- optional: true
116
- },
117
- {
118
- key: "agents",
119
- label: "AGENTS.md",
120
- hint: "The workspace operating manual: memory discipline, red lines, channel etiquette.",
121
- rows: 16,
122
- optional: true
123
- },
124
- {
125
- key: "tools",
126
- label: "TOOLS.md",
127
- hint: "Agent-specific tool notes and environment facts beyond the tool descriptions.",
128
- rows: 14,
129
- optional: true
130
- }
131
- ];
132
- function CreateProfileForm({ modelGroups, skills, templates, onCreated }) {
133
- const initialFiles = () => ({
134
- soul: templates.soul,
135
- identity: templates.identity,
136
- bootstrap: templates.bootstrap,
137
- agents: templates.agents,
138
- tools: templates.tools
139
- });
140
- const [tab, setTab] = useState("basics");
141
- const [id, setId] = useState("");
142
- const [name, setName] = useState("");
143
- const [model, setModel] = useState("");
144
- const [files, setFiles] = useState(initialFiles);
145
- const [enabled, setEnabled] = useState({
146
- soul: true,
147
- identity: true,
148
- bootstrap: true,
149
- agents: true,
150
- tools: true
151
- });
152
- const [skillsMode, setSkillsMode] = useState("all");
153
- const [picked, setPicked] = useState(/* @__PURE__ */ new Set());
154
- const [error, setError] = useState(null);
155
- const [submitting, setSubmitting] = useState(false);
156
- const starter = initialFiles();
157
- const dirty = id.length > 0 || name.length > 0 || model.length > 0 || FILES.some((file) => files[file.key] !== starter[file.key] || !enabled[file.key]) || skillsMode !== "all" || picked.size > 0;
158
- function toggleFile(key, on) {
159
- setEnabled((current) => ({
160
- ...current,
161
- [key]: on
162
- }));
163
- if (!on && tab === key) setTab("basics");
164
- }
165
- async function submit(event) {
166
- event.preventDefault();
167
- setError(null);
168
- setSubmitting(true);
169
- try {
170
- await api("/api/profiles", { body: {
171
- id: id.trim(),
172
- name: name.trim() || void 0,
173
- defaultModel: model,
174
- skillsMode,
175
- defaultSkills: skillsMode === "selected" ? Array.from(picked) : [],
176
- soul: files.soul,
177
- identity: files.identity,
178
- bootstrap: enabled.bootstrap ? files.bootstrap : null,
179
- agents: enabled.agents ? files.agents : null,
180
- tools: enabled.tools ? files.tools : null
181
- } });
182
- setId("");
183
- setName("");
184
- setModel("");
185
- setFiles(initialFiles());
186
- setEnabled({
187
- soul: true,
188
- identity: true,
189
- bootstrap: true,
190
- agents: true,
191
- tools: true
192
- });
193
- setPicked(/* @__PURE__ */ new Set());
194
- setSkillsMode("all");
195
- setTab("basics");
196
- await onCreated();
197
- } catch (cause) {
198
- setError(errorMessage(cause));
199
- } finally {
200
- setSubmitting(false);
201
- }
202
- }
203
- const file = FILES.find((entry) => entry.key === tab);
204
- return /* @__PURE__ */ jsx(SectionCard, {
205
- title: "Create an Agent template",
206
- children: /* @__PURE__ */ jsxs("form", {
207
- onSubmit: (event) => void submit(event),
208
- children: [
209
- /* @__PURE__ */ jsx(UnsavedChangesGuard, {
210
- when: dirty && !submitting,
211
- subject: "Agent template draft"
212
- }),
213
- error && /* @__PURE__ */ jsx("p", {
214
- role: "alert",
215
- className: "err",
216
- children: error
217
- }),
218
- /* @__PURE__ */ jsx(Tabs, {
219
- items: [
220
- {
221
- id: "basics",
222
- label: "Basics"
223
- },
224
- ...FILES.map((entry) => ({
225
- id: entry.key,
226
- label: entry.label.replace(".md", ""),
227
- disabled: !enabled[entry.key]
228
- })),
229
- {
230
- id: "skills",
231
- label: "Skills"
232
- }
233
- ],
234
- active: tab,
235
- onChange: setTab
236
- }),
237
- /* @__PURE__ */ jsxs("fieldset", {
238
- className: "mb-5 rounded-md border border-frost p-3",
239
- children: [
240
- /* @__PURE__ */ jsx("legend", {
241
- className: "px-1 text-[0.85em] font-medium text-mocha",
242
- children: "Files to include"
243
- }),
244
- /* @__PURE__ */ jsx("div", {
245
- className: "flex flex-wrap gap-x-5 gap-y-2 text-[0.9em]",
246
- children: FILES.map((entry) => /* @__PURE__ */ jsxs("label", {
247
- className: `m-0 inline-flex items-center gap-1.5 ${entry.optional ? "cursor-pointer" : "opacity-60"}`,
248
- title: entry.optional ? void 0 : "always included",
249
- children: [/* @__PURE__ */ jsx("input", {
250
- type: "checkbox",
251
- checked: enabled[entry.key],
252
- disabled: !entry.optional,
253
- onChange: (event) => toggleFile(entry.key, event.target.checked)
254
- }), entry.label]
255
- }, entry.key))
256
- }),
257
- /* @__PURE__ */ jsx("p", {
258
- className: "muted mt-2 text-[0.8em]",
259
- children: "Each spawned agent gets its own copy of the included files."
260
- })
261
- ]
262
- }),
263
- tab === "basics" && /* @__PURE__ */ jsxs("div", { children: [
264
- /* @__PURE__ */ jsxs("div", {
265
- className: "grid gap-x-4 sm:grid-cols-2",
266
- children: [/* @__PURE__ */ jsxs("label", { children: ["ID (slug)", /* @__PURE__ */ jsx("input", {
267
- value: id,
268
- onChange: (event) => setId(event.target.value),
269
- required: true
270
- })] }), /* @__PURE__ */ jsxs("label", { children: ["Name", /* @__PURE__ */ jsx("input", {
271
- value: name,
272
- onChange: (event) => setName(event.target.value)
273
- })] })]
274
- }),
275
- /* @__PURE__ */ jsx(ModelSelect, {
276
- label: "Default model",
277
- value: model,
278
- onChange: setModel,
279
- groups: modelGroups,
280
- required: true
281
- }),
282
- modelGroups.length === 0 && /* @__PURE__ */ jsxs("p", {
283
- className: "muted text-[0.85em]",
284
- children: [
285
- "Connect a provider under ",
286
- /* @__PURE__ */ jsx("a", {
287
- href: "/config",
288
- children: "Setup"
289
- }),
290
- " first."
291
- ]
292
- })
293
- ] }),
294
- file && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
295
- className: "muted my-2 text-[0.85em]",
296
- children: file.hint
297
- }), /* @__PURE__ */ jsxs("label", { children: [file.label, /* @__PURE__ */ jsx("textarea", {
298
- rows: file.rows,
299
- value: files[file.key],
300
- onChange: (event) => setFiles((current) => ({
301
- ...current,
302
- [file.key]: event.target.value
303
- })),
304
- className: "font-mono text-[0.88em] leading-[1.55]"
305
- })] })] }),
306
- tab === "skills" && /* @__PURE__ */ jsx(SkillsPicker, {
307
- mode: skillsMode,
308
- onModeChange: setSkillsMode,
309
- picked,
310
- onPickedChange: setPicked,
311
- skills
312
- }),
313
- /* @__PURE__ */ jsx("div", {
314
- className: "mt-5",
315
- children: /* @__PURE__ */ jsx(Button, {
316
- variant: "primary",
317
- type: "submit",
318
- disabled: submitting || !id.trim() || !model,
319
- children: submitting ? "Creating…" : "Create"
320
- })
321
- })
322
- ]
323
- })
324
- });
325
- }
326
- //#endregion
327
- export { ProfilesPage as component };
@@ -1,27 +0,0 @@
1
- import { n as createServerFn } from "../server.js";
2
- import { t as AVAILABLE_MODELS_PATH } from "./ModelSelect-DrZrdndo.js";
3
- import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
4
- import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
5
- //#region src/routes/templates/agents/index.tsx?tss-serverfn-split
6
- var fetchProfiles_createServerFn_handler = createServerRpc({
7
- id: "bc31355f2be9889a616d03c35062d483ea77c3f967af9432d721626a81078ef3",
8
- name: "fetchProfiles",
9
- filename: "src/routes/templates/agents/index.tsx"
10
- }, (opts) => fetchProfiles.__executeServer(opts));
11
- var fetchProfiles = createServerFn({ method: "GET" }).handler(fetchProfiles_createServerFn_handler, async () => {
12
- const client = daemonClient();
13
- const [profiles, models, skills, templates] = await Promise.all([
14
- client.get("/api/profiles"),
15
- client.get(AVAILABLE_MODELS_PATH),
16
- client.get("/api/skills"),
17
- client.get("/api/profiles/_/templates")
18
- ]);
19
- return {
20
- profiles,
21
- modelGroups: models.teams,
22
- skills,
23
- templates
24
- };
25
- });
26
- //#endregion
27
- export { fetchProfiles_createServerFn_handler };