bazilion 0.25.0 → 0.26.1
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.
- package/README.md +41 -140
- package/dist/cli.js +5001 -2
- package/dist/cli.js.map +1 -0
- package/dist/daemon.js +17836 -2
- package/dist/daemon.js.map +1 -0
- package/dist/schema.sql +382 -0
- package/dist/web/client/assets/{AgentAvatar-JYijLvZ2.js → AgentAvatar-DWx-bM6n.js} +1 -1
- package/dist/web/client/assets/ChatPane-DOV_HJg-.js +72 -0
- package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +1 -0
- package/dist/web/client/assets/FieldRow-z1JqCdqn.js +1 -0
- package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +1 -0
- package/dist/web/client/assets/ResultCard-X4nTbjYY.js +1 -0
- package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +1 -0
- package/dist/web/client/assets/SkillFindings-8LX6bYf_.js +1 -0
- package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +1 -0
- package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +1 -0
- package/dist/web/client/assets/Tabs-D0LgBNIk.js +1 -0
- package/dist/web/client/assets/TeamForm-C-WzvOl4.js +1 -0
- package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +7 -0
- package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +1 -0
- package/dist/web/client/assets/_id-BKLynswT.js +1 -0
- package/dist/web/client/assets/_id-BYM_NORr.js +1 -0
- package/dist/web/client/assets/_id-Cxa98a9m.js +1 -0
- package/dist/web/client/assets/_id-D4hV1U1t.js +1 -0
- package/dist/web/client/assets/agent-actions-CXQCoxKO.js +1 -0
- package/dist/web/client/assets/agents-BxPS1_Bp.js +1 -0
- package/dist/web/client/assets/agents-GozAWW-l.js +1 -0
- package/dist/web/client/assets/attention-Cz9rZcrr.js +1 -0
- package/dist/web/client/assets/chevron-right-CPAb1zac.js +1 -0
- package/dist/web/client/assets/config-9vv9Lipb.js +3 -0
- package/dist/web/client/assets/entities-xVoB-p2j.js +1 -0
- package/dist/web/client/assets/inbox-DHLArXxl.js +1 -0
- package/dist/web/client/assets/index-1YXquAq8.js +52 -0
- package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +1 -0
- package/dist/web/client/assets/learning-PvtXm8Ne.js +1 -0
- package/dist/web/client/assets/login-DIJpNQFo.js +1 -0
- package/dist/web/client/assets/mcp-pKBL0xIf.js +1 -0
- package/dist/web/client/assets/members-DHWsgsEs.js +1 -0
- package/dist/web/client/assets/memory-CEVppPyU.js +1 -0
- package/dist/web/client/assets/plus-BaIRdB10.js +1 -0
- package/dist/web/client/assets/policy-DEh4BLSw.js +1 -0
- package/dist/web/client/assets/preload-helper-eUUcpe2S.js +1 -0
- package/dist/web/client/assets/results-DgJPjEZF.js +1 -0
- package/dist/web/client/assets/review-BbshafTQ.js +1 -0
- package/dist/web/client/assets/route-Ccb8v41z.js +1 -0
- package/dist/web/client/assets/route-D1d6kCEV.js +1 -0
- package/dist/web/client/assets/routes-g7V4ru7T.js +1 -0
- package/dist/web/client/assets/services-B2f7e5jV.js +1 -0
- package/dist/web/client/assets/settings-B6elpcYm.js +1 -0
- package/dist/web/client/assets/skills-CngE7TF8.js +1 -0
- package/dist/web/client/assets/styles-xUnZ-ep_.css +2 -0
- package/dist/web/client/assets/teams-BdJZXOan.js +1 -0
- package/dist/web/client/assets/teams-c496ISsT.js +1 -0
- package/dist/web/client/assets/telegram-B_-hK6EC.js +1 -0
- package/dist/web/client/assets/tokens-CKz8gx4-.js +1 -0
- package/dist/web/client/assets/triggers-DCEPciGW.js +1 -0
- package/dist/web/client/assets/welcome-D-zVOLGA.js +1 -0
- package/dist/web/client/baziu.svg +176 -7
- package/dist/web/server/assets/ChatPane-De_FPEoD.js +1887 -0
- package/dist/web/server/assets/ConfigPage-CGld_wCK.js +28 -0
- package/dist/web/server/assets/ConfirmDialog-LdVlEanK.js +132 -0
- package/dist/web/server/assets/{FieldRow-DPO8x_le.js → FieldRow-Dah2KKqo.js} +8 -15
- package/dist/web/server/assets/ModelSelect-Vwro6OkL.js +43 -0
- package/dist/web/server/assets/{Page-DJNoI4Gn.js → Page-CMSYKXWJ.js} +51 -2
- package/dist/web/server/assets/ResultCard-CZn1w4KA.js +97 -0
- package/dist/web/server/assets/SectionTabs-CqFg9Vwx.js +53 -0
- package/dist/web/server/assets/Sidebar-puq47KyR.js +430 -0
- package/dist/web/server/assets/SkillFindings-Bd6e81Wu.js +46 -0
- package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +67 -0
- package/dist/web/server/assets/SpawnDialog-BGNaMfFb.js +111 -0
- package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +97 -0
- package/dist/web/server/assets/Tabs-BhF41MfQ.js +20 -0
- package/dist/web/server/assets/TeamForm-C93tpn9r.js +96 -0
- package/dist/web/server/assets/TeamPolicyEditor-BHS3J0R9.js +738 -0
- package/dist/web/server/assets/{UnsavedChangesGuard-BfSyMhiD.js → UnsavedChangesGuard-Dm4a27_5.js} +1 -1
- package/dist/web/server/assets/_id-B0x1ffz3.js +12 -0
- package/dist/web/server/assets/_id-BR6tnR6I.js +23 -0
- package/dist/web/server/assets/_id-Bdf_Rg62.js +19 -0
- package/dist/web/server/assets/_id-Bm611NQz.js +13 -0
- package/dist/web/server/assets/{_id-4fEeAcp0.js → _id-ByiXeIPS.js} +9 -8
- package/dist/web/server/assets/_id-D5UCoyES.js +359 -0
- package/dist/web/server/assets/_id-DHx5UmmL.js +12 -0
- package/dist/web/server/assets/_id-DLpGmOVm.js +19 -0
- package/dist/web/server/assets/_id-Y5ctILG2.js +13 -0
- package/dist/web/server/assets/_id-dDA0pdVo.js +54 -0
- package/dist/web/server/assets/_id-lOVnT5sS.js +383 -0
- package/dist/web/server/assets/{_id-BhJCnRR1.js → _id-sW6zXrTP.js} +4 -4
- package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +292 -0
- package/dist/web/server/assets/agent-actions-BBdFVdoa.js +20 -0
- package/dist/web/server/assets/{agents-Cmw-sUUD.js → agents-BK8OmB8g.js} +7 -6
- package/dist/web/server/assets/{agents-DOrzqCXg.js → agents-BNPkidbH.js} +8 -10
- package/dist/web/server/assets/{agents-BitDk_C5.js → agents-Cn9GkXFX.js} +1 -3
- package/dist/web/server/assets/agents-D4tqK1kH.js +131 -0
- package/dist/web/server/assets/agents-DycxHDt8.js +327 -0
- package/dist/web/server/assets/{agents-DmmuOHw8.js → agents-lOqc6VGd.js} +4 -4
- package/dist/web/server/assets/api-WWxPqx67.js +85 -0
- package/dist/web/server/assets/attention-BIm455bC.js +216 -0
- package/dist/web/server/assets/{attention-Cy3Xu-Su.js → attention-DULVjdmF.js} +2 -4
- package/dist/web/server/assets/{attention-CsYqmV0L.js → attention-YWnLKA2E.js} +4 -2
- package/dist/web/server/assets/{auth-DChuQIh4.js → auth-DiN92ydD.js} +7 -8
- package/dist/web/server/assets/{config-0_5yhRKg.js → config-BNEgu7WG.js} +141 -432
- package/dist/web/server/assets/{config-VsmvCulS.js → config-C1VB28se.js} +1 -1
- package/dist/web/server/assets/{config-CpHD812q.js → config-TdVqnqNL.js} +3 -7
- package/dist/web/server/assets/cookies-HnTYjKRp.js +17 -0
- package/dist/web/server/assets/daemon-client-DL2ik2Em.js +146 -0
- package/dist/web/server/assets/entities-Dn2xzKIw.js +16 -0
- package/dist/web/server/assets/inbox-4Vj5jTT8.js +245 -0
- package/dist/web/server/assets/inbox-D4IqUv3l.js +38 -0
- package/dist/web/server/assets/inbox-Dle24AfV.js +23 -0
- package/dist/web/server/assets/learning-BScq7VbO.js +12 -0
- package/dist/web/server/assets/learning-CBWFEnhg.js +263 -0
- package/dist/web/server/assets/{learning-BuL0c1vH.js → learning-DWAKevhF.js} +6 -14
- package/dist/web/server/assets/{login-rDox7PRD.js → login-JoIjlcmu.js} +2 -5
- package/dist/web/server/assets/{login-B_-9L8TU.js → login-VV10kZBl.js} +15 -17
- package/dist/web/server/assets/mcp-B09_O05r.js +250 -0
- package/dist/web/server/assets/{mcp-B8ErRiR_.js → mcp-BwmpNQPN.js} +1 -1
- package/dist/web/server/assets/{mcp-BEdnl_TT.js → mcp-CqdTfXcn.js} +1 -3
- package/dist/web/server/assets/members-B8QBF6TF.js +12 -0
- package/dist/web/server/assets/{members-DFLi2nQg.js → members-DsF02Wp7.js} +2 -2
- package/dist/web/server/assets/members-tWZA9b15.js +36 -0
- package/dist/web/server/assets/memory-BNN0b-0x.js +12 -0
- package/dist/web/server/assets/memory-CTl1E1Rm.js +267 -0
- package/dist/web/server/assets/memory-CV5uCBb2.js +12 -0
- package/dist/web/server/assets/policy-C9M6zV6w.js +79 -0
- package/dist/web/server/assets/policy-h-6NpU3m.js +19 -0
- package/dist/web/server/assets/policy-xEw9X0DK.js +12 -0
- package/dist/web/server/assets/public-origin-BpDkdS5Q.js +34 -0
- package/dist/web/server/assets/results-D3A3UA4d.js +182 -0
- package/dist/web/server/assets/results-D6Ui5S8D.js +12 -0
- package/dist/web/server/assets/results-DWmxvfyn.js +15 -0
- package/dist/web/server/assets/review-CyQky-WQ.js +40 -0
- package/dist/web/server/assets/review-Sq0GGcPV.js +322 -0
- package/dist/web/server/assets/review-XWbSF8cF.js +12 -0
- package/dist/web/server/assets/route-BErtkz6t.js +19 -0
- package/dist/web/server/assets/route-CLoV-An_.js +48 -0
- package/dist/web/server/assets/route-WQ19JkBa.js +19 -0
- package/dist/web/server/assets/route-dEK_2GLj.js +203 -0
- package/dist/web/server/assets/route-iHTkhO81.js +16 -0
- package/dist/web/server/assets/route-zs8uUQtB.js +16 -0
- package/dist/web/server/assets/router-BI9gmY3S.js +751 -0
- package/dist/web/server/assets/routes-081s4n24.js +45 -0
- package/dist/web/server/assets/routes-CWo5WPsr.js +15 -0
- package/dist/web/server/assets/routes-Cqp1ufHm.js +56 -0
- package/dist/web/server/assets/{services-ZeEIgTn0.js → services-BLvAvb8g.js} +1 -1
- package/dist/web/server/assets/{services-UL_2b8PP.js → services-Q9HYQXXB.js} +2 -8
- package/dist/web/server/assets/{services-T8adll3y.js → services-tCfB1B83.js} +21 -38
- package/dist/web/server/assets/settings-CVaGv-xF.js +12 -0
- package/dist/web/server/assets/settings-D9viV-86.js +561 -0
- package/dist/web/server/assets/settings-DaZNZ_CC.js +27 -0
- package/dist/web/server/assets/{skills-D1oy3JAH.js → skills-BZg_txbf.js} +1 -3
- package/dist/web/server/assets/skills-C7fqRPna.js +275 -0
- package/dist/web/server/assets/{skills-kfqhxYmf.js → skills-C_g8IKag.js} +1 -1
- package/dist/web/server/assets/start-DTX6aKCi.js +100 -0
- package/dist/web/server/assets/teams-BHkhnt6b.js +12 -0
- package/dist/web/server/assets/teams-BS-oweRl.js +80 -0
- package/dist/web/server/assets/teams-BSflKBP8.js +108 -0
- package/dist/web/server/assets/teams-CNyB5nM9.js +12 -0
- package/dist/web/server/assets/{teams-BW2ARIvk.js → teams-D4CaU76n.js} +3 -5
- package/dist/web/server/assets/teams-DX2HmKqi.js +21 -0
- package/dist/web/server/assets/{telegram-U9UAdUEx.js → telegram-BUdnc8oF.js} +1 -1
- package/dist/web/server/assets/{telegram-ByHqeAGC.js → telegram-C4v1HhyJ.js} +1 -1
- package/dist/web/server/assets/{telegram-IMfV34-w.js → telegram-CrJiygCX.js} +223 -471
- package/dist/web/server/assets/{tokens-CiThDMwM.js → tokens-B1twAJdd.js} +5 -5
- package/dist/web/server/assets/tokens-DdjEyALj.js +232 -0
- package/dist/web/server/assets/tokens-DqldzPUq.js +14 -0
- package/dist/web/server/assets/triggers-B7LW784F.js +214 -0
- package/dist/web/server/assets/triggers-C5sMCZXv2.js +12 -0
- package/dist/web/server/assets/triggers-DMfVdImD.js +12 -0
- package/dist/web/server/assets/{welcome-BFWKx138.js → welcome-D0d38Pzx.js} +5 -6
- package/dist/web/server/server.js +55 -159
- package/dist/web-server.js +3 -3
- package/dist/worker.js +1692 -6375
- package/dist/worker.js.map +1 -1
- package/package.json +8 -18
- package/dist/browser-keychain.js +0 -83
- package/dist/browser-keychain.js.map +0 -1
- package/dist/cli-main.js +0 -9211
- package/dist/cli-main.js.map +0 -1
- package/dist/daemon-main.js +0 -50664
- package/dist/daemon-main.js.map +0 -1
- package/dist/migrations/0001_init.sql +0 -1103
- package/dist/migrations/0002_device_token_scopes.sql +0 -8
- package/dist/migrations/0003_web_pairing_tokens.sql +0 -18
- package/dist/migrations/0004_image_generation.sql +0 -25
- package/dist/native-darwin-entry.js +0 -692
- package/dist/native-darwin-entry.js.map +0 -1
- package/dist/native-linux-entry.js +0 -60
- package/dist/native-linux-entry.js.map +0 -1
- package/dist/runtime-version.js +0 -28
- package/dist/runtime-version.js.map +0 -1
- package/dist/web/client/assets/AgentTabs-kEd-oDRM.js +0 -1
- package/dist/web/client/assets/ChatPane-DhvlzNPJ.js +0 -76
- package/dist/web/client/assets/ConfigPage-CMKsWDjh.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-DpAzoNG8.js +0 -1
- package/dist/web/client/assets/FieldRow-OQ-Ezw5t.js +0 -1
- package/dist/web/client/assets/ProductionTeamPolicyEditor-DhT-Q13a.js +0 -7
- package/dist/web/client/assets/ProfileCommunicationEditor-CnQIp4e6.js +0 -1
- package/dist/web/client/assets/RecoveryState-B4Rne9N_.js +0 -1
- package/dist/web/client/assets/ResultCard-BxAlMky1.js +0 -1
- package/dist/web/client/assets/ResultSourceConversation-BzIw43-r.js +0 -1
- package/dist/web/client/assets/SectionTabs-D3M6F_HR.js +0 -1
- package/dist/web/client/assets/TeamTabs-BZbg-UFx.js +0 -1
- package/dist/web/client/assets/TemplatesTabs-D8geEOte.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-CPQe9VLw.js +0 -1
- package/dist/web/client/assets/_id-1RIodFdi.js +0 -1
- package/dist/web/client/assets/_id-BV3w2kDj.js +0 -1
- package/dist/web/client/assets/_id-C9zxKqvQ.js +0 -1
- package/dist/web/client/assets/_id-CLG_POnZ.js +0 -1
- package/dist/web/client/assets/_id-Cha845UH.js +0 -1
- package/dist/web/client/assets/_id-DssxcwBl.js +0 -1
- package/dist/web/client/assets/_id-IDHR-MEm.js +0 -1
- package/dist/web/client/assets/_id-SGs5zOcT.js +0 -1
- package/dist/web/client/assets/activity-0srO4qbd.js +0 -1
- package/dist/web/client/assets/activity-DxQGr6eP.js +0 -1
- package/dist/web/client/assets/agents-CVTYoXKu.js +0 -1
- package/dist/web/client/assets/agents-DPTu6Sm_.js +0 -1
- package/dist/web/client/assets/agents-nHiIbumu.js +0 -1
- package/dist/web/client/assets/approvals-Di_Bux_Q.js +0 -1
- package/dist/web/client/assets/approvals-ScNrQg7q.js +0 -1
- package/dist/web/client/assets/attention-BF-Llt9z.js +0 -1
- package/dist/web/client/assets/attention-D7xB17sN.js +0 -1
- package/dist/web/client/assets/chevron-right-CJ2wat15.js +0 -1
- package/dist/web/client/assets/config-BOuIcP1T.js +0 -3
- package/dist/web/client/assets/context-wo9lNjHx.js +0 -1
- package/dist/web/client/assets/git-review-presentation-CzHQulDk.js +0 -1
- package/dist/web/client/assets/inbox-CNLmz0Jp.js +0 -1
- package/dist/web/client/assets/inbox-De6HOll3.js +0 -1
- package/dist/web/client/assets/index-CjI7_vB3.js +0 -52
- package/dist/web/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
- package/dist/web/client/assets/learning-591SFAKg.js +0 -1
- package/dist/web/client/assets/learning-D6bO0NeB.js +0 -1
- package/dist/web/client/assets/login-Q7uP-v0M.js +0 -1
- package/dist/web/client/assets/mcp-BGy64VOv.js +0 -1
- package/dist/web/client/assets/mcp-DSCjhc5I.js +0 -1
- package/dist/web/client/assets/members-CBVor-P4.js +0 -1
- package/dist/web/client/assets/members-CCcecjC3.js +0 -1
- package/dist/web/client/assets/memory-CSE8EQ48.js +0 -1
- package/dist/web/client/assets/memory-DgGz0wh4.js +0 -1
- package/dist/web/client/assets/policy-6j-NQvBj.js +0 -1
- package/dist/web/client/assets/policy-Do0TvNWc.js +0 -1
- package/dist/web/client/assets/preload-helper-bztXdkDj.js +0 -1
- package/dist/web/client/assets/react-3W8R1pOO.js +0 -1
- package/dist/web/client/assets/results-CCQGn0dE.js +0 -1
- package/dist/web/client/assets/results-Cx6_ChIY.js +0 -1
- package/dist/web/client/assets/review-CyS5b0fz.js +0 -1
- package/dist/web/client/assets/review-qG-2gqEp.js +0 -1
- package/dist/web/client/assets/routes-DRic0xNy.js +0 -1
- package/dist/web/client/assets/services-B_7lf-mx.js +0 -1
- package/dist/web/client/assets/services-ByBA_yA-.js +0 -1
- package/dist/web/client/assets/skills--lnDzPWe.js +0 -1
- package/dist/web/client/assets/skills-C70btgIg.js +0 -1
- package/dist/web/client/assets/styles-e_ADuRbs.css +0 -2
- package/dist/web/client/assets/team-policy-D0jpnn2b.js +0 -1
- package/dist/web/client/assets/teams-BL-Fr2xF.js +0 -1
- package/dist/web/client/assets/teams-BeoxArzy.js +0 -1
- package/dist/web/client/assets/teams-C4mb790r.js +0 -1
- package/dist/web/client/assets/teams-DHStw3OS.js +0 -1
- package/dist/web/client/assets/telegram-BIMiebJl.js +0 -1
- package/dist/web/client/assets/templates-CzHXXiA_.js +0 -1
- package/dist/web/client/assets/tokens-B9ehOc1o.js +0 -1
- package/dist/web/client/assets/tokens-DhaMzFWK.js +0 -1
- package/dist/web/client/assets/triggers--xMpHFW7.js +0 -1
- package/dist/web/client/assets/triggers-DLzZu8bB.js +0 -1
- package/dist/web/client/assets/verifications-FzypGVwW.js +0 -2
- package/dist/web/client/assets/verifications-fR9W-adv.js +0 -1
- package/dist/web/client/assets/welcome-pjZD7pq4.js +0 -1
- package/dist/web/client/assets/wire-constants-CBD-lTaa.js +0 -1
- package/dist/web/client/assets/x-CZxV4X-6.js +0 -1
- package/dist/web/server/assets/AgentTabs-DVVkxBks.js +0 -49
- package/dist/web/server/assets/ChatPane-CeDUEjmn.js +0 -2962
- package/dist/web/server/assets/ConfigPage-J3s_PX4o.js +0 -69
- package/dist/web/server/assets/ConfirmDialog-C-2cbcmQ.js +0 -99
- package/dist/web/server/assets/ProductionTeamPolicyEditor-DNtdMn2a.js +0 -1026
- package/dist/web/server/assets/ProfileCommunicationEditor-C2RU-2QB.js +0 -107
- package/dist/web/server/assets/RecoveryState-DFPWxMIo.js +0 -37
- package/dist/web/server/assets/ResultCard-BtVFqdRU.js +0 -162
- package/dist/web/server/assets/ResultSourceConversation-xn4EKjaP.js +0 -64
- package/dist/web/server/assets/SectionTabs-DQWPEk1x.js +0 -8
- package/dist/web/server/assets/Sidebar-Dk9bErQV.js +0 -1243
- package/dist/web/server/assets/TeamTabs-XybMRm3w.js +0 -59
- package/dist/web/server/assets/TemplatesTabs-BiJt7Fjx.js +0 -31
- package/dist/web/server/assets/WorkspaceRecoveryCard-B-6gfg0D.js +0 -18
- package/dist/web/server/assets/_id-6aGxCNlp.js +0 -37
- package/dist/web/server/assets/_id-BJeSZ4DF.js +0 -11
- package/dist/web/server/assets/_id-BSkg6FJC.js +0 -45
- package/dist/web/server/assets/_id-BfT3umhN.js +0 -14
- package/dist/web/server/assets/_id-Bk4SHXs4.js +0 -626
- package/dist/web/server/assets/_id-C0C6wOt8.js +0 -42
- package/dist/web/server/assets/_id-CAxK6pln.js +0 -6
- package/dist/web/server/assets/_id-CGMvV1p5.js +0 -1183
- package/dist/web/server/assets/_id-CI33J2xv.js +0 -11
- package/dist/web/server/assets/_id-C_FnWQ61.js +0 -11
- package/dist/web/server/assets/_id-CmS2d0me.js +0 -17
- package/dist/web/server/assets/_id-D9VWEfdp.js +0 -28
- package/dist/web/server/assets/_id-DhheAcWL.js +0 -1035
- package/dist/web/server/assets/_id-t8AepTB2.js +0 -26
- package/dist/web/server/assets/_id-ujm4R5OF.js +0 -18
- package/dist/web/server/assets/_tanstack-start-manifest_v-CXwNJhX2.js +0 -376
- package/dist/web/server/assets/activity-BKb_BIx7.js +0 -168
- package/dist/web/server/assets/activity-CDNYyLBC.js +0 -11
- package/dist/web/server/assets/activity-DhzxlXUk.js +0 -12
- package/dist/web/server/assets/activity-lf7L7wiL.js +0 -14
- package/dist/web/server/assets/agents-BzJDqrC8.js +0 -11
- package/dist/web/server/assets/agents-C65TunMF.js +0 -505
- package/dist/web/server/assets/agents-uXBu1F5L.js +0 -387
- package/dist/web/server/assets/approvals-CcU_pIWW.js +0 -11
- package/dist/web/server/assets/approvals-CpDs6ASO.js +0 -14
- package/dist/web/server/assets/approvals-FyuTjfdY.js +0 -332
- package/dist/web/server/assets/approvals-szknIxB6.js +0 -12
- package/dist/web/server/assets/attention-BeA3zGve.js +0 -268
- package/dist/web/server/assets/attention-jtJ9PIMp.js +0 -11
- package/dist/web/server/assets/browser-BiDvr0fy.js +0 -66
- package/dist/web/server/assets/context-DuxjdpaW.js +0 -11
- package/dist/web/server/assets/daemon-client-C-RlJHYO.js +0 -301
- package/dist/web/server/assets/git-review-BB3M9nYg.js +0 -26
- package/dist/web/server/assets/git-review-CqZTrIWS.js +0 -179
- package/dist/web/server/assets/git-review-presentation-TJiHJhen.js +0 -81
- package/dist/web/server/assets/inbox-Be3CUU4o.js +0 -11
- package/dist/web/server/assets/inbox-D1ROE7jB.js +0 -44
- package/dist/web/server/assets/inbox-DsH5oRK0.js +0 -168
- package/dist/web/server/assets/inbox-qKMkeprB.js +0 -29
- package/dist/web/server/assets/learning-BYCwIOzZ.js +0 -18
- package/dist/web/server/assets/learning-C3pqLE5b.js +0 -11
- package/dist/web/server/assets/learning-D7jWRhqD.js +0 -365
- package/dist/web/server/assets/mcp-BQ4KvXp1.js +0 -11
- package/dist/web/server/assets/mcp-Dhryb75M.js +0 -328
- package/dist/web/server/assets/members-8aWhtn4G.js +0 -100
- package/dist/web/server/assets/members-Cjpysp35.js +0 -14
- package/dist/web/server/assets/members-DWedYCMh.js +0 -11
- package/dist/web/server/assets/memory-BH7L-l65.js +0 -11
- package/dist/web/server/assets/memory-Bq0s1fr7.js +0 -18
- package/dist/web/server/assets/memory-CS-9Bb6q.js +0 -28
- package/dist/web/server/assets/memory-DN5iMDQL.js +0 -389
- package/dist/web/server/assets/policy-CK3VuVuv.js +0 -11
- package/dist/web/server/assets/policy-DDi8AjcD.js +0 -21
- package/dist/web/server/assets/policy-DcYIJaHW.js +0 -490
- package/dist/web/server/assets/policy-JF7ZI2-i.js +0 -40
- package/dist/web/server/assets/public-origin-xV0lm0Ty.js +0 -25
- package/dist/web/server/assets/publications-DV2uRrvJ.js +0 -57
- package/dist/web/server/assets/results-CkNoVDrY.js +0 -362
- package/dist/web/server/assets/results-DSGwi3vj.js +0 -14
- package/dist/web/server/assets/results-DlOsdBE7.js +0 -11
- package/dist/web/server/assets/results-vtkmZPro.js +0 -12
- package/dist/web/server/assets/review-BG71IaCa.js +0 -1061
- package/dist/web/server/assets/review-Bs6AbrSn.js +0 -40
- package/dist/web/server/assets/review-CPmUi4PR.js +0 -11
- package/dist/web/server/assets/review-packets-CO69K-FK.js +0 -172
- package/dist/web/server/assets/router-BFqyjkYu.js +0 -921
- package/dist/web/server/assets/routes-B6TnJyQ8.js +0 -57
- package/dist/web/server/assets/routes-BfEa101d.js +0 -14
- package/dist/web/server/assets/routes-pUMIGzyy.js +0 -53
- package/dist/web/server/assets/services-Ba6tFlZz.js +0 -16
- package/dist/web/server/assets/skills-CGvPejPD.js +0 -11
- package/dist/web/server/assets/skills-cVlLDnvf.js +0 -399
- package/dist/web/server/assets/start-D4Wq9iTa.js +0 -70
- package/dist/web/server/assets/team-policy-vPG01onj.js +0 -180
- package/dist/web/server/assets/teams-6c5B9wnI.js +0 -11
- package/dist/web/server/assets/teams-BEIUG9fI.js +0 -112
- package/dist/web/server/assets/teams-Bi3CeEM5.js +0 -11
- package/dist/web/server/assets/teams-C9tfV3IC.js +0 -12
- package/dist/web/server/assets/teams-DKROLgw-.js +0 -36
- package/dist/web/server/assets/teams-DLt48Vxw.js +0 -284
- package/dist/web/server/assets/teams-DuhXk1M5.js +0 -14
- package/dist/web/server/assets/templates-CuqFhsiO.js +0 -11
- package/dist/web/server/assets/tokens-DDJYBy6R.js +0 -16
- package/dist/web/server/assets/tokens-qVijmBxr.js +0 -11
- package/dist/web/server/assets/tokens-zSK57Trr.js +0 -452
- package/dist/web/server/assets/triggers-B9CIl4Co.js +0 -27
- package/dist/web/server/assets/triggers-Cr9af7Xw.js +0 -367
- package/dist/web/server/assets/triggers-DIruOyMb.js +0 -18
- package/dist/web/server/assets/triggers-x_OA9u5f.js +0 -11
- package/dist/web/server/assets/utils-ySbqTi3g.js +0 -24
- package/dist/web/server/assets/verification-DBsJYadO.js +0 -97
- package/dist/web/server/assets/verifications-DjZsx65b.js +0 -12
- package/dist/web/server/assets/verifications-DvOyI3Mr.js +0 -28
- package/dist/web/server/assets/verifications-YrEdiZmk.js +0 -326
- package/dist/web/server/assets/web-search-dgw10fLn.js +0 -12
- package/dist/web/server/assets/wire-constants-C8nBJcU3.js +0 -16
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/dist/web/client/assets/{ProductionTeamPolicyEditor-DLioOiRN.css → TeamPolicyEditor-DLioOiRN.css} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { n as api } from "./api-WWxPqx67.js";
|
|
2
|
+
//#region src/lib/agent-actions.ts
|
|
3
|
+
var agentPath = (id) => `/api/agents/${encodeURIComponent(id)}`;
|
|
4
|
+
function archiveAgent(id) {
|
|
5
|
+
return api(`${agentPath(id)}/archive`, { method: "POST" });
|
|
6
|
+
}
|
|
7
|
+
function unarchiveAgent(id) {
|
|
8
|
+
return api(`${agentPath(id)}/unarchive`, { method: "POST" });
|
|
9
|
+
}
|
|
10
|
+
function deleteAgent(id) {
|
|
11
|
+
return api(agentPath(id), { method: "DELETE" });
|
|
12
|
+
}
|
|
13
|
+
function renameAgent(id, name) {
|
|
14
|
+
return api(agentPath(id), {
|
|
15
|
+
method: "PATCH",
|
|
16
|
+
body: { name }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { unarchiveAgent as i, deleteAgent as n, renameAgent as r, archiveAgent as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
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-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-DL2ik2Em.js";
|
|
4
|
+
import { t as AVAILABLE_MODELS_PATH } from "./ModelSelect-Vwro6OkL.js";
|
|
4
5
|
//#region src/routes/templates/agents/index.tsx?tss-serverfn-split
|
|
5
6
|
var fetchProfiles_createServerFn_handler = createServerRpc({
|
|
6
7
|
id: "bc31355f2be9889a616d03c35062d483ea77c3f967af9432d721626a81078ef3",
|
|
@@ -8,12 +9,12 @@ var fetchProfiles_createServerFn_handler = createServerRpc({
|
|
|
8
9
|
filename: "src/routes/templates/agents/index.tsx"
|
|
9
10
|
}, (opts) => fetchProfiles.__executeServer(opts));
|
|
10
11
|
var fetchProfiles = createServerFn({ method: "GET" }).handler(fetchProfiles_createServerFn_handler, async () => {
|
|
11
|
-
const
|
|
12
|
+
const client = daemonClient();
|
|
12
13
|
const [profiles, models, skills, templates] = await Promise.all([
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
client.get("/api/profiles"),
|
|
15
|
+
client.get(AVAILABLE_MODELS_PATH),
|
|
16
|
+
client.get("/api/skills"),
|
|
17
|
+
client.get("/api/profiles/_/templates")
|
|
17
18
|
]);
|
|
18
19
|
return {
|
|
19
20
|
profiles,
|
|
@@ -1,25 +1,23 @@
|
|
|
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-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-DL2ik2Em.js";
|
|
4
4
|
//#region src/routes/agents/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchAgents_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e",
|
|
7
7
|
name: "fetchAgents",
|
|
8
8
|
filename: "src/routes/agents/index.tsx"
|
|
9
9
|
}, (opts) => fetchAgents.__executeServer(opts));
|
|
10
|
-
var fetchAgents = createServerFn({ method: "
|
|
11
|
-
const
|
|
12
|
-
const [agents, profiles, teams
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
c.get("/api/config/available-models")
|
|
10
|
+
var fetchAgents = createServerFn({ method: "GET" }).validator((data) => data).handler(fetchAgents_createServerFn_handler, async ({ data }) => {
|
|
11
|
+
const client = daemonClient();
|
|
12
|
+
const [agents, profiles, teams] = await Promise.all([
|
|
13
|
+
client.get(`/api/agents?includeArchived=${data.all}`),
|
|
14
|
+
client.get("/api/profiles"),
|
|
15
|
+
client.get("/api/teams")
|
|
17
16
|
]);
|
|
18
17
|
return {
|
|
19
18
|
agents,
|
|
20
19
|
profiles,
|
|
21
|
-
teams
|
|
22
|
-
modelGroups: models.teams
|
|
20
|
+
teams
|
|
23
21
|
};
|
|
24
22
|
});
|
|
25
23
|
//#endregion
|
|
@@ -2,11 +2,9 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
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-
|
|
6
|
-
var $$splitErrorComponentImporter = () => import("./agents-BzJDqrC8.js");
|
|
5
|
+
var $$splitComponentImporter = () => import("./agents-DycxHDt8.js");
|
|
7
6
|
var fetchProfiles = createServerFn({ method: "GET" }).handler(createSsrRpc("bc31355f2be9889a616d03c35062d483ea77c3f967af9432d721626a81078ef3"));
|
|
8
7
|
var Route = createFileRoute("/templates/agents/")({
|
|
9
|
-
errorComponent: lazyRouteComponent($$splitErrorComponentImporter, "errorComponent"),
|
|
10
8
|
loader: () => fetchProfiles(),
|
|
11
9
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
12
10
|
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { i as errorMessage, o as Button } from "./api-WWxPqx67.js";
|
|
2
|
+
import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow, t as EmptyState } from "./Page-CMSYKXWJ.js";
|
|
3
|
+
import { t as Route } from "./agents-lOqc6VGd.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-LdVlEanK.js";
|
|
5
|
+
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
6
|
+
import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-BBdFVdoa.js";
|
|
7
|
+
import { t as SpawnDialog } from "./SpawnDialog-BGNaMfFb.js";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { useRouter } from "@tanstack/react-router";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region src/routes/agents/index.tsx?tsr-split=component
|
|
12
|
+
function AgentsPage() {
|
|
13
|
+
const { agents, profiles, teams } = Route.useLoaderData();
|
|
14
|
+
const showAll = Route.useSearch().all === 1;
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
const [spawning, setSpawning] = useState(false);
|
|
17
|
+
const [pending, setPending] = useState(null);
|
|
18
|
+
const [error, setError] = useState(null);
|
|
19
|
+
async function restore(agent) {
|
|
20
|
+
setError(null);
|
|
21
|
+
try {
|
|
22
|
+
await unarchiveAgent(agent.id);
|
|
23
|
+
await router.invalidate();
|
|
24
|
+
} catch (cause) {
|
|
25
|
+
setError(errorMessage(cause));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ jsxs(PageShell, {
|
|
29
|
+
size: "wide",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(PageHeader, {
|
|
32
|
+
eyebrow: "Workspace",
|
|
33
|
+
title: "Agents",
|
|
34
|
+
description: "Spawn, inspect, archive and restore the agents that work across your teams. Skills come from the Agent template at spawn; adjust them later on an Agent's settings.",
|
|
35
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("a", {
|
|
36
|
+
className: "ghost-btn",
|
|
37
|
+
href: showAll ? "/agents" : "/agents?all=1",
|
|
38
|
+
children: showAll ? "Hide archived" : "Show archived"
|
|
39
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
40
|
+
variant: "primary",
|
|
41
|
+
disabled: profiles.length === 0,
|
|
42
|
+
onClick: () => setSpawning(true),
|
|
43
|
+
children: "Spawn agent"
|
|
44
|
+
})] })
|
|
45
|
+
}),
|
|
46
|
+
error && /* @__PURE__ */ jsx("p", {
|
|
47
|
+
role: "alert",
|
|
48
|
+
className: "err",
|
|
49
|
+
children: error
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx(SectionCard, {
|
|
52
|
+
title: showAll ? "All agents" : "Current agents",
|
|
53
|
+
description: showAll ? "Active and archived agents are shown together." : "Archived agents stay hidden until you choose to show them.",
|
|
54
|
+
children: agents.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
55
|
+
title: showAll ? "No agents yet" : "No current agents",
|
|
56
|
+
description: "Spawn an agent to give a team its first working member."
|
|
57
|
+
}) : /* @__PURE__ */ jsx(ItemList, { children: agents.map((agent) => /* @__PURE__ */ jsx(ItemRow, {
|
|
58
|
+
title: /* @__PURE__ */ jsxs("span", {
|
|
59
|
+
className: "flex min-w-0 items-center gap-2",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(AgentAvatar, {
|
|
62
|
+
identity: agent.identity,
|
|
63
|
+
size: 26
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx("a", {
|
|
66
|
+
href: `/agents/${agent.id}`,
|
|
67
|
+
className: "truncate",
|
|
68
|
+
children: agent.name
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ jsx(StatusBadge, {
|
|
71
|
+
variant: agent.status === "archived" ? "warning" : "success",
|
|
72
|
+
children: agent.status
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
}),
|
|
76
|
+
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
77
|
+
(agent.identity?.creature || agent.identity?.vibe) && /* @__PURE__ */ jsx("span", { children: [agent.identity?.creature, agent.identity?.vibe].filter(Boolean).join(" · ") }),
|
|
78
|
+
/* @__PURE__ */ jsxs("span", { children: ["template ", /* @__PURE__ */ jsx("code", { children: agent.profileId })] }),
|
|
79
|
+
/* @__PURE__ */ jsxs("span", { children: ["team ", /* @__PURE__ */ jsx("code", { children: agent.teamId })] }),
|
|
80
|
+
/* @__PURE__ */ jsx("code", {
|
|
81
|
+
title: agent.id,
|
|
82
|
+
children: agent.id.slice(0, 8)
|
|
83
|
+
})
|
|
84
|
+
] }),
|
|
85
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [agent.status === "archived" ? /* @__PURE__ */ jsx(Button, {
|
|
86
|
+
variant: "ghost",
|
|
87
|
+
onClick: () => void restore(agent),
|
|
88
|
+
children: "Restore"
|
|
89
|
+
}) : /* @__PURE__ */ jsx(Button, {
|
|
90
|
+
variant: "ghost",
|
|
91
|
+
onClick: () => setPending({
|
|
92
|
+
kind: "archive",
|
|
93
|
+
agent
|
|
94
|
+
}),
|
|
95
|
+
children: "Archive"
|
|
96
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
97
|
+
variant: "danger",
|
|
98
|
+
onClick: () => setPending({
|
|
99
|
+
kind: "delete",
|
|
100
|
+
agent
|
|
101
|
+
}),
|
|
102
|
+
children: "Delete"
|
|
103
|
+
})] })
|
|
104
|
+
}, agent.id)) })
|
|
105
|
+
}),
|
|
106
|
+
spawning && /* @__PURE__ */ jsx(SpawnDialog, {
|
|
107
|
+
profiles,
|
|
108
|
+
teams,
|
|
109
|
+
onClose: () => setSpawning(false)
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ jsx(ConfirmDialog, {
|
|
112
|
+
open: pending !== null,
|
|
113
|
+
onOpenChange: (open) => {
|
|
114
|
+
if (!open) setPending(null);
|
|
115
|
+
},
|
|
116
|
+
title: pending?.kind === "delete" ? `Delete ${pending.agent.name} permanently?` : `Archive ${pending?.agent.name ?? "agent"}?`,
|
|
117
|
+
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”." }),
|
|
118
|
+
confirmLabel: pending?.kind === "delete" ? "Delete permanently" : "Archive agent",
|
|
119
|
+
confirmVariant: pending?.kind === "delete" ? "danger" : "primary",
|
|
120
|
+
onConfirm: async () => {
|
|
121
|
+
if (!pending) return;
|
|
122
|
+
if (pending.kind === "delete") await deleteAgent(pending.agent.id);
|
|
123
|
+
else await archiveAgent(pending.agent.id);
|
|
124
|
+
await router.invalidate();
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { AgentsPage as component };
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { i as errorMessage, n as api, o as Button } from "./api-WWxPqx67.js";
|
|
2
|
+
import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow } from "./Page-CMSYKXWJ.js";
|
|
3
|
+
import { t as Route } from "./agents-Cn9GkXFX.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-LdVlEanK.js";
|
|
5
|
+
import { a as TEMPLATE_TABS, r as SectionTabs } from "./SectionTabs-CqFg9Vwx.js";
|
|
6
|
+
import { n as ModelSelect } from "./ModelSelect-Vwro6OkL.js";
|
|
7
|
+
import { t as Tabs } from "./Tabs-BhF41MfQ.js";
|
|
8
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-Dm4a27_5.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, 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, { 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
|
+
"Enable a provider and curate its models 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 };
|
|
@@ -2,11 +2,11 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
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-
|
|
6
|
-
var fetchAgents = createServerFn({ method: "
|
|
5
|
+
var $$splitComponentImporter = () => import("./agents-D4tqK1kH.js");
|
|
6
|
+
var fetchAgents = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e"));
|
|
7
7
|
var Route = createFileRoute("/agents/")({
|
|
8
|
-
validateSearch: (
|
|
9
|
-
loaderDeps: ({ search }) => ({ all: search.all ===
|
|
8
|
+
validateSearch: (search) => ({ all: search.all === 1 ? 1 : void 0 }),
|
|
9
|
+
loaderDeps: ({ search }) => ({ all: search.all === 1 }),
|
|
10
10
|
loader: ({ deps }) => fetchAgents({ data: { all: deps.all } }),
|
|
11
11
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
12
12
|
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as readCookie, t as CSRF_COOKIES } from "./cookies-HnTYjKRp.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
|
+
//#region src/components/Button.tsx
|
|
6
|
+
var VARIANT_CLASS = {
|
|
7
|
+
primary: "btn-primary",
|
|
8
|
+
ghost: "ghost-btn",
|
|
9
|
+
danger: "danger-btn"
|
|
10
|
+
};
|
|
11
|
+
function Button({ variant, type, className, ...rest }) {
|
|
12
|
+
const cls = className ? `${VARIANT_CLASS[variant]} ${className}` : VARIANT_CLASS[variant];
|
|
13
|
+
return /* @__PURE__ */ jsx("button", {
|
|
14
|
+
type: type ?? "button",
|
|
15
|
+
className: cls,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/lib/utils.ts
|
|
21
|
+
function cn(...inputs) {
|
|
22
|
+
return twMerge(clsx(inputs));
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/lib/api.ts
|
|
26
|
+
var ApiError = class extends Error {
|
|
27
|
+
status;
|
|
28
|
+
/** The daemon's machine-readable `code`, when it sent one. */
|
|
29
|
+
code;
|
|
30
|
+
/** The parsed JSON error body, when there was one. */
|
|
31
|
+
body;
|
|
32
|
+
constructor(message, status, code, body) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.status = status;
|
|
35
|
+
this.code = code;
|
|
36
|
+
this.body = body;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
function csrfHeader() {
|
|
40
|
+
for (const name of CSRF_COOKIES) {
|
|
41
|
+
const value = readCookie(document.cookie, name);
|
|
42
|
+
if (value) return { "x-bazilion-csrf": value };
|
|
43
|
+
}
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
async function failure(response) {
|
|
47
|
+
const text = await response.text().catch(() => "");
|
|
48
|
+
let body = {};
|
|
49
|
+
try {
|
|
50
|
+
const parsed = JSON.parse(text);
|
|
51
|
+
if (parsed && typeof parsed === "object") body = parsed;
|
|
52
|
+
} catch {}
|
|
53
|
+
const message = typeof body.error === "string" ? body.error : text.slice(0, 300) || `HTTP ${response.status}`;
|
|
54
|
+
const code = typeof body.code === "string" ? body.code : void 0;
|
|
55
|
+
return new ApiError(message, response.status, code, body);
|
|
56
|
+
}
|
|
57
|
+
/** The raw response (streams, downloads, text); throws ApiError unless it is ok. */
|
|
58
|
+
async function apiFetch(path, init = {}) {
|
|
59
|
+
const method = init.method ?? (init.body === void 0 ? "GET" : "POST");
|
|
60
|
+
const headers = method === "GET" ? {} : csrfHeader();
|
|
61
|
+
let body;
|
|
62
|
+
if (init.body instanceof FormData) body = init.body;
|
|
63
|
+
else if (init.body !== void 0) {
|
|
64
|
+
headers["content-type"] = "application/json";
|
|
65
|
+
body = JSON.stringify(init.body);
|
|
66
|
+
}
|
|
67
|
+
const response = await fetch(path, {
|
|
68
|
+
method,
|
|
69
|
+
headers,
|
|
70
|
+
body,
|
|
71
|
+
signal: init.signal
|
|
72
|
+
});
|
|
73
|
+
if (!response.ok) throw await failure(response);
|
|
74
|
+
return response;
|
|
75
|
+
}
|
|
76
|
+
/** The daemon's JSON answer (undefined for an empty body); throws ApiError with its message. */
|
|
77
|
+
async function api(path, init = {}) {
|
|
78
|
+
const text = await (await apiFetch(path, init)).text();
|
|
79
|
+
return text ? JSON.parse(text) : void 0;
|
|
80
|
+
}
|
|
81
|
+
function errorMessage(error) {
|
|
82
|
+
return error instanceof Error ? error.message : String(error);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { cn as a, errorMessage as i, api as n, Button as o, apiFetch as r, ApiError as t };
|