bazilion 0.24.0 → 0.26.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.
- package/README.md +41 -128
- package/dist/cli.js +5000 -2
- package/dist/cli.js.map +1 -0
- package/dist/daemon.js +17803 -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-BgW59Bvn.js +72 -0
- package/dist/web/client/assets/ConfigPage-BcjKer-E.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-B5BLql5H.js +1 -0
- package/dist/web/client/assets/FieldRow-Dr1dDiQ6.js +1 -0
- package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +1 -0
- package/dist/web/client/assets/ResultCard-CDLhGze2.js +1 -0
- package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +1 -0
- package/dist/web/client/assets/SkillFindings-BPmVzjOa.js +1 -0
- package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +1 -0
- package/dist/web/client/assets/SpawnDialog-CWvaYWBr.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-DxU7QH0e.js +1 -0
- package/dist/web/client/assets/Tabs-D0LgBNIk.js +1 -0
- package/dist/web/client/assets/TeamForm-Bxl3s8yF.js +1 -0
- package/dist/web/client/assets/TeamPolicyEditor-B-ikYl3V.js +7 -0
- package/dist/web/client/assets/UnsavedChangesGuard-CmeIPiXp.js +1 -0
- package/dist/web/client/assets/_id-B-Vo1VkF.js +1 -0
- package/dist/web/client/assets/_id-CNN1ila9.js +1 -0
- package/dist/web/client/assets/_id-CrGDqaFa.js +1 -0
- package/dist/web/client/assets/_id-iXED17f-.js +1 -0
- package/dist/web/client/assets/agent-actions-CmkRSxQg.js +1 -0
- package/dist/web/client/assets/agents-DwDcKOif.js +1 -0
- package/dist/web/client/assets/agents-KnMSeucP.js +1 -0
- package/dist/web/client/assets/attention-CLQIHUF6.js +1 -0
- package/dist/web/client/assets/chevron-right-DZFmP-cr.js +1 -0
- package/dist/web/client/assets/config-B483VUYj.js +3 -0
- package/dist/web/client/assets/entities-xVoB-p2j.js +1 -0
- package/dist/web/client/assets/inbox-DIXsxGV8.js +1 -0
- package/dist/web/client/assets/index-CKJ3uVR4.js +52 -0
- package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +1 -0
- package/dist/web/client/assets/learning-DDTz_N6N.js +1 -0
- package/dist/web/client/assets/login-6S3kA9Yb.js +1 -0
- package/dist/web/client/assets/mcp-Dm4DfYI9.js +1 -0
- package/dist/web/client/assets/members-CD93Kya7.js +1 -0
- package/dist/web/client/assets/memory-M28_uFOH.js +1 -0
- package/dist/web/client/assets/plus-xCBcVxeD.js +1 -0
- package/dist/web/client/assets/policy-IKYNTvWX.js +1 -0
- package/dist/web/client/assets/preload-helper-eUUcpe2S.js +1 -0
- package/dist/web/client/assets/results-CGNpUJ11.js +1 -0
- package/dist/web/client/assets/review-BN6V988m.js +1 -0
- package/dist/web/client/assets/route-DUIeAVZz.js +1 -0
- package/dist/web/client/assets/route-V5VM1ufA.js +1 -0
- package/dist/web/client/assets/routes-CInZFLoI.js +1 -0
- package/dist/web/client/assets/services-CeB7gfY5.js +1 -0
- package/dist/web/client/assets/settings-BWonPTKi.js +1 -0
- package/dist/web/client/assets/skills-CgrXwmh8.js +1 -0
- package/dist/web/client/assets/styles-d9JiV6N4.css +2 -0
- package/dist/web/client/assets/teams-C98Ww6Xu.js +1 -0
- package/dist/web/client/assets/teams-D-g74z8r.js +1 -0
- package/dist/web/client/assets/telegram-Cc8NJ4Tc.js +1 -0
- package/dist/web/client/assets/tokens-ZTSxCsD_.js +1 -0
- package/dist/web/client/assets/triggers-Br8Wk4Yk.js +1 -0
- package/dist/web/client/assets/welcome-C-hJvXWG.js +1 -0
- 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-BUFDfU9j.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-CMxeC2Bd.js → config-C0lOmAcs.js} +139 -414
- package/dist/web/server/assets/{config-CbioK6nX.js → config-D7Z2wgbk.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-CLWr5_0I.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-vAv1HkV1.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 +1654 -5842
- package/dist/worker.js.map +1 -1
- package/package.json +6 -15
- package/dist/cli-main.js +0 -9180
- package/dist/cli-main.js.map +0 -1
- package/dist/daemon-main.js +0 -43074
- package/dist/daemon-main.js.map +0 -1
- package/dist/migrations/0001_init.sql +0 -1101
- 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/runtime-version.js +0 -28
- package/dist/runtime-version.js.map +0 -1
- package/dist/web/client/assets/AgentTabs-0mMqUuts.js +0 -1
- package/dist/web/client/assets/ChatPane-C4ZAMSqQ.js +0 -76
- package/dist/web/client/assets/ConfigPage-CbALCsl0.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-CB1a-szq.js +0 -1
- package/dist/web/client/assets/FieldRow-BHGq10hz.js +0 -1
- package/dist/web/client/assets/ProductionTeamPolicyEditor-B4Ysob7y.js +0 -7
- package/dist/web/client/assets/ProfileCommunicationEditor-Bi1SwX0T.js +0 -1
- package/dist/web/client/assets/RecoveryState-CDWhoT3x.js +0 -1
- package/dist/web/client/assets/ResultCard-Crmt8j95.js +0 -1
- package/dist/web/client/assets/ResultSourceConversation-CqwZKlKb.js +0 -1
- package/dist/web/client/assets/SectionTabs-mghnc98b.js +0 -1
- package/dist/web/client/assets/TeamTabs-BuZ3DvCw.js +0 -1
- package/dist/web/client/assets/TemplatesTabs-D71oTTXM.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-CiCtGDIH.js +0 -1
- package/dist/web/client/assets/_id-B-8ssJLW.js +0 -1
- package/dist/web/client/assets/_id-BVY0iUYM.js +0 -1
- package/dist/web/client/assets/_id-C7A_A3eM.js +0 -1
- package/dist/web/client/assets/_id-CQlUNjzV.js +0 -1
- package/dist/web/client/assets/_id-CeALz6bj.js +0 -1
- package/dist/web/client/assets/_id-DQqcn57I.js +0 -1
- package/dist/web/client/assets/_id-DRiwwqZL.js +0 -1
- package/dist/web/client/assets/_id-DaqX-WEB.js +0 -1
- package/dist/web/client/assets/activity-C5aaqPEN.js +0 -1
- package/dist/web/client/assets/activity-D4Nt8GQM.js +0 -1
- package/dist/web/client/assets/agents-BPLszpKx.js +0 -1
- package/dist/web/client/assets/agents-BUqq1VBQ.js +0 -1
- package/dist/web/client/assets/agents-DFOLPsgX.js +0 -1
- package/dist/web/client/assets/approvals-8PPXdZxV.js +0 -1
- package/dist/web/client/assets/approvals-MVCITL8Q.js +0 -1
- package/dist/web/client/assets/attention-DiyHVOcZ.js +0 -1
- package/dist/web/client/assets/attention-e273gZ8d.js +0 -1
- package/dist/web/client/assets/chevron-right-DgJy0QeF.js +0 -1
- package/dist/web/client/assets/config-Dm6OgnLh.js +0 -3
- package/dist/web/client/assets/context-DhgSlMk5.js +0 -1
- package/dist/web/client/assets/git-review-presentation-CzHQulDk.js +0 -1
- package/dist/web/client/assets/inbox-B3To3KpL.js +0 -1
- package/dist/web/client/assets/inbox-C1_vHPb8.js +0 -1
- package/dist/web/client/assets/index-DtEE9JX2.js +0 -52
- package/dist/web/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
- package/dist/web/client/assets/learning-B7wX_mkT.js +0 -1
- package/dist/web/client/assets/learning-DDwUAKmq.js +0 -1
- package/dist/web/client/assets/login-CWaSGdgc.js +0 -1
- package/dist/web/client/assets/mcp-CO5iBKHD.js +0 -1
- package/dist/web/client/assets/mcp-DO8sSn5c.js +0 -1
- package/dist/web/client/assets/members-Bd3z1Mbb.js +0 -1
- package/dist/web/client/assets/members-Dx9OcdY1.js +0 -1
- package/dist/web/client/assets/memory-BIZi6bBM.js +0 -1
- package/dist/web/client/assets/memory-DrYbH0we.js +0 -1
- package/dist/web/client/assets/policy-CcnTn0qG.js +0 -1
- package/dist/web/client/assets/policy-Dsj-SWqE.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-GeOLM5Cw.js +0 -1
- package/dist/web/client/assets/results-t7jAchgU.js +0 -1
- package/dist/web/client/assets/review-CQaZNlyx.js +0 -1
- package/dist/web/client/assets/review-CYvx-3K2.js +0 -1
- package/dist/web/client/assets/routes-DoK4DMdi.js +0 -1
- package/dist/web/client/assets/services-BI7iyTHh.js +0 -1
- package/dist/web/client/assets/services-c9HkxKEP.js +0 -1
- package/dist/web/client/assets/skills-B0O0zwg1.js +0 -1
- package/dist/web/client/assets/skills-Ddf5PBNn.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-BDbkurIa.js +0 -1
- package/dist/web/client/assets/teams-BNQ4z_k3.js +0 -1
- package/dist/web/client/assets/teams-Wvr8-LhE.js +0 -1
- package/dist/web/client/assets/teams-kRB5hV3h.js +0 -1
- package/dist/web/client/assets/telegram-Dx9tzt9d.js +0 -1
- package/dist/web/client/assets/templates-CGQ93r-m.js +0 -1
- package/dist/web/client/assets/tokens-CsOJULk9.js +0 -1
- package/dist/web/client/assets/tokens-zqJy3CQD.js +0 -1
- package/dist/web/client/assets/triggers-9UUKTR6l.js +0 -1
- package/dist/web/client/assets/triggers-BiXb1VFy.js +0 -1
- package/dist/web/client/assets/verifications-BKoHhRqF.js +0 -1
- package/dist/web/client/assets/verifications-CElk4UQp.js +0 -2
- package/dist/web/client/assets/welcome-BdcpBETx.js +0 -1
- package/dist/web/client/assets/wire-constants-CBD-lTaa.js +0 -1
- package/dist/web/client/assets/x-DtPVZP1O.js +0 -1
- package/dist/web/server/assets/AgentTabs-DVVkxBks.js +0 -49
- package/dist/web/server/assets/ChatPane-3CIVTz7o.js +0 -2954
- 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-DwuGuTa-.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-BS4MnPa3.js +0 -18
- package/dist/web/server/assets/_id-BSkg6FJC.js +0 -45
- package/dist/web/server/assets/_id-BXOT74Jd.js +0 -900
- 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-C1-ygfez.js +0 -1183
- package/dist/web/server/assets/_id-CAxK6pln.js +0 -6
- package/dist/web/server/assets/_id-CI33J2xv.js +0 -11
- package/dist/web/server/assets/_id-CWlZT9kI.js +0 -26
- 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/_tanstack-start-manifest_v-LR-ldomm.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-DmzP8n2G.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-C6edENBF.js +0 -362
- package/dist/web/server/assets/results-DjTerNLY.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-Doy5hj6V.js +0 -921
- package/dist/web/server/assets/routes-B6TnJyQ8.js +0 -57
- package/dist/web/server/assets/routes-ByEYvEFv.js +0 -53
- package/dist/web/server/assets/routes-Bz-Gprcp.js +0 -14
- 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-BVR0OK7x.js +0 -323
- package/dist/web/server/assets/verifications-DjZsx65b.js +0 -12
- package/dist/web/server/assets/verifications-EIw3Xh61.js +0 -28
- 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
|
@@ -1,921 +0,0 @@
|
|
|
1
|
-
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as DAEMON_BASE_URL } from "./daemon-client-C-RlJHYO.js";
|
|
3
|
-
import { t as webOriginConfig } from "./public-origin-xV0lm0Ty.js";
|
|
4
|
-
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
5
|
-
import { r as PageShell } from "./Page-DJNoI4Gn.js";
|
|
6
|
-
import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$5 } from "./login-rDox7PRD.js";
|
|
7
|
-
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
8
|
-
import { t as Route$6 } from "./routes-Bz-Gprcp.js";
|
|
9
|
-
import { t as Route$7 } from "./teams-DuhXk1M5.js";
|
|
10
|
-
import { t as Route$8 } from "./skills-D1oy3JAH.js";
|
|
11
|
-
import { t as Route$9 } from "./config-CbioK6nX.js";
|
|
12
|
-
import { t as Route$10 } from "./attention-Cy3Xu-Su.js";
|
|
13
|
-
import { t as Route$11 } from "./approvals-CpDs6ASO.js";
|
|
14
|
-
import { t as Route$12 } from "./agents-DmmuOHw8.js";
|
|
15
|
-
import { t as Route$13 } from "./_id-CAxK6pln.js";
|
|
16
|
-
import { t as Route$14 } from "./tokens-DDJYBy6R.js";
|
|
17
|
-
import { t as Route$15 } from "./services-UL_2b8PP.js";
|
|
18
|
-
import { t as Route$16 } from "./mcp-CLWr5_0I.js";
|
|
19
|
-
import { t as Route$17 } from "./teams-BW2ARIvk.js";
|
|
20
|
-
import { t as Route$18 } from "./agents-BitDk_C5.js";
|
|
21
|
-
import { t as Route$19 } from "./_id-BS4MnPa3.js";
|
|
22
|
-
import { t as Route$20 } from "./_id-CWlZT9kI.js";
|
|
23
|
-
import { t as Route$21 } from "./verifications-EIw3Xh61.js";
|
|
24
|
-
import { t as Route$22 } from "./review-Bs6AbrSn.js";
|
|
25
|
-
import { t as Route$23 } from "./results-DjTerNLY.js";
|
|
26
|
-
import { t as Route$24 } from "./policy-DDi8AjcD.js";
|
|
27
|
-
import { t as Route$25 } from "./memory-Bq0s1fr7.js";
|
|
28
|
-
import { t as Route$26 } from "./members-Cjpysp35.js";
|
|
29
|
-
import { t as Route$27 } from "./activity-lf7L7wiL.js";
|
|
30
|
-
import { t as Route$28 } from "./telegram-U9UAdUEx.js";
|
|
31
|
-
import { t as Route$29 } from "./triggers-DIruOyMb.js";
|
|
32
|
-
import { t as Route$30 } from "./learning-BYCwIOzZ.js";
|
|
33
|
-
import { t as Route$31 } from "./inbox-qKMkeprB.js";
|
|
34
|
-
import { t as Route$32 } from "./_id-BfT3umhN.js";
|
|
35
|
-
import { t as Route$33 } from "./_id-BhJCnRR1.js";
|
|
36
|
-
import { useEffect, useState } from "react";
|
|
37
|
-
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, redirect, useRouterState } from "@tanstack/react-router";
|
|
38
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
-
import { BellRing, Bot, ChevronDown, LayoutTemplate, LogOut, MessageCircle, Settings2, ShieldCheck, Sparkles, UsersRound } from "lucide-react";
|
|
40
|
-
import { DropdownMenu } from "radix-ui";
|
|
41
|
-
//#region src/components/RouteStates.tsx
|
|
42
|
-
/**
|
|
43
|
-
* Router-level fallbacks (BAZ-050). Every route without its own `errorComponent`
|
|
44
|
-
* or `pendingComponent` degrades to these, so a loader failure or a slow
|
|
45
|
-
* navigation never renders TanStack's developer-grade default or a blank content
|
|
46
|
-
* area. Route-specific `errorComponent`s (RecoveryState) remain the better
|
|
47
|
-
* fallback where a surface's title and safe exit are worth naming.
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* Loader/segment error: the server function threw and nothing more specific
|
|
51
|
-
* caught it. Names what happened, offers retry, and keeps navigation possible —
|
|
52
|
-
* the layout (sidebar, top nav) is outside the route component, so it survives.
|
|
53
|
-
*/
|
|
54
|
-
function RouteErrorState({ error, reset }) {
|
|
55
|
-
return /* @__PURE__ */ jsx(PageShell, { children: /* @__PURE__ */ jsxs("section", {
|
|
56
|
-
role: "alert",
|
|
57
|
-
className: "mx-auto my-10 w-full max-w-2xl rounded-md border border-rose-baziu bg-snow p-6",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ jsx("h1", {
|
|
60
|
-
className: "text-2xl",
|
|
61
|
-
children: "This page could not be loaded"
|
|
62
|
-
}),
|
|
63
|
-
/* @__PURE__ */ jsx("p", {
|
|
64
|
-
className: "mt-2 text-sm text-mocha",
|
|
65
|
-
children: "The authoritative daemon projection could not be loaded. Nothing has been changed; no local or stale data has been substituted."
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ jsx("pre", {
|
|
68
|
-
className: "mt-4 overflow-auto rounded-md bg-ivory p-3 text-xs",
|
|
69
|
-
children: error.message
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ jsxs("div", {
|
|
72
|
-
className: "mt-4 flex flex-wrap gap-2",
|
|
73
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
74
|
-
variant: "primary",
|
|
75
|
-
onClick: reset,
|
|
76
|
-
children: "retry"
|
|
77
|
-
}), /* @__PURE__ */ jsx("a", {
|
|
78
|
-
className: "ghost-btn",
|
|
79
|
-
href: "/",
|
|
80
|
-
children: "go to the overview"
|
|
81
|
-
})]
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
}) });
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Loader in flight. Deliberately small: the sidebar and previous content stay
|
|
88
|
-
* put, this only marks the content area as working. aria-busy is the
|
|
89
|
-
* accessibility contract; the label is for everyone else.
|
|
90
|
-
*/
|
|
91
|
-
function RoutePendingState() {
|
|
92
|
-
return /* @__PURE__ */ jsx(PageShell, { children: /* @__PURE__ */ jsxs("div", {
|
|
93
|
-
"aria-busy": "true",
|
|
94
|
-
className: "my-10 flex items-center justify-center gap-3",
|
|
95
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
96
|
-
"aria-hidden": "true",
|
|
97
|
-
className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-fawn border-t-transparent"
|
|
98
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
99
|
-
className: "text-sm text-mocha",
|
|
100
|
-
children: "Loading…"
|
|
101
|
-
})]
|
|
102
|
-
}) });
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/components/Footer.tsx
|
|
106
|
-
function Footer() {
|
|
107
|
-
return /* @__PURE__ */ jsxs("footer", {
|
|
108
|
-
className: "mx-auto mt-14 flex w-full max-w-[1500px] shrink-0 flex-col items-center justify-between gap-3 border-t border-frost py-5 text-xs text-mocha-light sm:flex-row",
|
|
109
|
-
children: [/* @__PURE__ */ jsxs(Link, {
|
|
110
|
-
to: "/",
|
|
111
|
-
className: "team inline-flex items-center gap-2 rounded-lg text-charcoal transition-opacity hover:text-charcoal hover:opacity-80",
|
|
112
|
-
children: [/* @__PURE__ */ jsx(BaziuLogo, { className: "h-6 w-6 transition-transform duration-300 team-hover:rotate-[-8deg]" }), /* @__PURE__ */ jsx("span", {
|
|
113
|
-
className: "font-display text-sm tracking-[-0.01em]",
|
|
114
|
-
children: "bazilion"
|
|
115
|
-
})]
|
|
116
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
117
|
-
className: "inline-flex items-center gap-1.5",
|
|
118
|
-
children: ["dedicated to Baziu", /* @__PURE__ */ jsx(PawIcon, {
|
|
119
|
-
className: "h-3 w-3 text-rose-baziu opacity-60",
|
|
120
|
-
"aria-hidden": "true"
|
|
121
|
-
})]
|
|
122
|
-
})]
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/components/TopNav.tsx
|
|
127
|
-
var PRIMARY_LINKS = [
|
|
128
|
-
{
|
|
129
|
-
to: "/",
|
|
130
|
-
label: "Chat",
|
|
131
|
-
icon: MessageCircle
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
to: "/agents",
|
|
135
|
-
label: "Agents",
|
|
136
|
-
icon: Bot
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
to: "/teams",
|
|
140
|
-
label: "Teams",
|
|
141
|
-
icon: UsersRound
|
|
142
|
-
}
|
|
143
|
-
];
|
|
144
|
-
var OPERATIONS_LINKS = [{
|
|
145
|
-
href: "/approvals",
|
|
146
|
-
label: "Approvals",
|
|
147
|
-
description: "Decide whether one captured action may proceed.",
|
|
148
|
-
icon: ShieldCheck
|
|
149
|
-
}, {
|
|
150
|
-
href: "/attention",
|
|
151
|
-
label: "Attention",
|
|
152
|
-
description: "Inspect failures, warnings, lessons, and open signals.",
|
|
153
|
-
icon: BellRing
|
|
154
|
-
}];
|
|
155
|
-
var MANAGE_LINKS = [
|
|
156
|
-
{
|
|
157
|
-
href: "/templates",
|
|
158
|
-
label: "Templates",
|
|
159
|
-
description: "Reusable Agent behavior and Team rosters.",
|
|
160
|
-
icon: LayoutTemplate
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
href: "/skills",
|
|
164
|
-
label: "Skills",
|
|
165
|
-
description: "Prompt skills available to your agents.",
|
|
166
|
-
icon: Sparkles
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
href: "/config",
|
|
170
|
-
label: "Setup",
|
|
171
|
-
description: "Providers, integrations, access, and services.",
|
|
172
|
-
icon: Settings2
|
|
173
|
-
}
|
|
174
|
-
];
|
|
175
|
-
function TopNav() {
|
|
176
|
-
const pathname = useRouterState({ select: (state) => state.location.pathname });
|
|
177
|
-
const [attention, setAttention] = useState(null);
|
|
178
|
-
const [logoutError, setLogoutError] = useState(null);
|
|
179
|
-
useEffect(() => {
|
|
180
|
-
if (pathname === "/login" || pathname === "/welcome") return;
|
|
181
|
-
const controller = new AbortController();
|
|
182
|
-
fetch("/api/attention/summary", { signal: controller.signal }).then((response) => response.ok ? response.json() : null).then((body) => setAttention(body)).catch((error) => {
|
|
183
|
-
if (error instanceof DOMException && error.name === "AbortError") return;
|
|
184
|
-
});
|
|
185
|
-
return () => controller.abort();
|
|
186
|
-
}, [pathname]);
|
|
187
|
-
async function logout() {
|
|
188
|
-
setLogoutError(null);
|
|
189
|
-
try {
|
|
190
|
-
const response = await fetch("/api/logout", { method: "POST" });
|
|
191
|
-
if (!response.ok) throw new Error(`Log out failed (${response.status})`);
|
|
192
|
-
window.location.assign("/login");
|
|
193
|
-
} catch (error) {
|
|
194
|
-
setLogoutError(error instanceof Error ? error.message : String(error));
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return /* @__PURE__ */ jsxs("nav", {
|
|
198
|
-
"aria-label": "Primary navigation",
|
|
199
|
-
className: "relative mx-auto grid w-full max-w-[1500px] shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 border-b border-frost py-3 md:flex md:gap-2 md:py-4",
|
|
200
|
-
children: [
|
|
201
|
-
/* @__PURE__ */ jsxs(Link, {
|
|
202
|
-
to: "/",
|
|
203
|
-
"aria-label": "Bazilion home",
|
|
204
|
-
className: "logo team flex min-w-0 items-center gap-2 rounded-lg text-charcoal transition-opacity hover:text-charcoal hover:opacity-80",
|
|
205
|
-
children: [/* @__PURE__ */ jsx(BaziuLogo, { className: "logo-paw h-8 w-8 shrink-0 transition-transform duration-300 team-hover:rotate-[-8deg] team-hover:scale-[1.08]" }), /* @__PURE__ */ jsx("span", {
|
|
206
|
-
className: "truncate font-display text-[1.35rem] tracking-[-0.02em]",
|
|
207
|
-
children: "bazilion"
|
|
208
|
-
})]
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ jsxs("div", {
|
|
211
|
-
className: "col-span-2 row-start-2 flex min-w-0 items-center gap-1 overflow-x-auto pb-0.5 md:col-auto md:row-auto md:ml-4 md:flex-1 md:overflow-visible md:pb-0",
|
|
212
|
-
children: [
|
|
213
|
-
PRIMARY_LINKS.map((link) => {
|
|
214
|
-
const active = link.to === "/" ? pathname === "/" : pathname === link.to || pathname.startsWith(`${link.to}/`);
|
|
215
|
-
const Icon = link.icon;
|
|
216
|
-
return /* @__PURE__ */ jsxs(Link, {
|
|
217
|
-
to: link.to,
|
|
218
|
-
"aria-current": active ? "page" : void 0,
|
|
219
|
-
className: navButtonClass(active),
|
|
220
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
221
|
-
className: "hidden size-4 shrink-0 sm:block",
|
|
222
|
-
"aria-hidden": "true"
|
|
223
|
-
}), /* @__PURE__ */ jsx("span", { children: link.label })]
|
|
224
|
-
}, link.to);
|
|
225
|
-
}),
|
|
226
|
-
/* @__PURE__ */ jsx(NavMenu, {
|
|
227
|
-
label: "Operations",
|
|
228
|
-
compactLabel: "Ops",
|
|
229
|
-
icon: BellRing,
|
|
230
|
-
links: OPERATIONS_LINKS,
|
|
231
|
-
pathname,
|
|
232
|
-
badge: attention?.openTotal ?? 0,
|
|
233
|
-
itemBadges: {
|
|
234
|
-
"/approvals": attention?.byKind.communication_approval ?? 0,
|
|
235
|
-
"/attention": attention?.openTotal ?? 0
|
|
236
|
-
}
|
|
237
|
-
}),
|
|
238
|
-
/* @__PURE__ */ jsx(NavMenu, {
|
|
239
|
-
label: "Manage",
|
|
240
|
-
icon: Settings2,
|
|
241
|
-
links: MANAGE_LINKS,
|
|
242
|
-
pathname,
|
|
243
|
-
align: "end"
|
|
244
|
-
})
|
|
245
|
-
]
|
|
246
|
-
}),
|
|
247
|
-
/* @__PURE__ */ jsxs("div", {
|
|
248
|
-
className: "col-start-2 row-start-1 flex items-center gap-1 md:col-auto md:row-auto md:ml-auto",
|
|
249
|
-
children: [/* @__PURE__ */ jsx(ThemeToggle, {}), /* @__PURE__ */ jsx("button", {
|
|
250
|
-
type: "button",
|
|
251
|
-
onClick: () => void logout(),
|
|
252
|
-
"aria-label": "Log out",
|
|
253
|
-
title: "Log out",
|
|
254
|
-
className: "unstyled inline-flex h-9 w-9 items-center justify-center rounded-lg text-mocha hover:bg-ivory hover:text-sapphire",
|
|
255
|
-
children: /* @__PURE__ */ jsx(LogOut, {
|
|
256
|
-
className: "h-4 w-4",
|
|
257
|
-
"aria-hidden": "true"
|
|
258
|
-
})
|
|
259
|
-
})]
|
|
260
|
-
}),
|
|
261
|
-
logoutError && /* @__PURE__ */ jsx("p", {
|
|
262
|
-
role: "alert",
|
|
263
|
-
className: "col-span-2 m-0 rounded-lg bg-danger/10 px-3 py-2 text-sm text-danger md:absolute md:right-0 md:top-[calc(100%+0.35rem)] md:z-50 md:shadow-baziu-md",
|
|
264
|
-
children: logoutError
|
|
265
|
-
})
|
|
266
|
-
]
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
function NavMenu({ label, compactLabel, icon: Icon, links, pathname, badge = 0, itemBadges = {}, align = "start" }) {
|
|
270
|
-
const active = links.some((link) => pathname === link.href || pathname.startsWith(`${link.href}/`));
|
|
271
|
-
return /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
|
|
272
|
-
asChild: true,
|
|
273
|
-
children: /* @__PURE__ */ jsxs("button", {
|
|
274
|
-
type: "button",
|
|
275
|
-
className: navButtonClass(active),
|
|
276
|
-
"aria-label": `${label} menu`,
|
|
277
|
-
children: [
|
|
278
|
-
/* @__PURE__ */ jsx(Icon, {
|
|
279
|
-
className: "hidden size-4 shrink-0 sm:block",
|
|
280
|
-
"aria-hidden": "true"
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ jsx("span", {
|
|
283
|
-
className: compactLabel ? "sm:hidden" : void 0,
|
|
284
|
-
children: compactLabel ?? label
|
|
285
|
-
}),
|
|
286
|
-
compactLabel && /* @__PURE__ */ jsx("span", {
|
|
287
|
-
className: "hidden sm:inline",
|
|
288
|
-
children: label
|
|
289
|
-
}),
|
|
290
|
-
badge > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
291
|
-
className: "size-2 shrink-0 rounded-full bg-danger sm:hidden",
|
|
292
|
-
"aria-label": `${badge} open items`
|
|
293
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
294
|
-
className: "hidden sm:inline-flex",
|
|
295
|
-
children: /* @__PURE__ */ jsx(CountBadge, {
|
|
296
|
-
value: badge,
|
|
297
|
-
label: `${badge} open items`
|
|
298
|
-
})
|
|
299
|
-
})] }),
|
|
300
|
-
/* @__PURE__ */ jsx(ChevronDown, {
|
|
301
|
-
className: "size-3 shrink-0 text-muted-foreground",
|
|
302
|
-
"aria-hidden": "true"
|
|
303
|
-
})
|
|
304
|
-
]
|
|
305
|
-
})
|
|
306
|
-
}), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsxs(DropdownMenu.Content, {
|
|
307
|
-
align,
|
|
308
|
-
sideOffset: 8,
|
|
309
|
-
collisionPadding: 12,
|
|
310
|
-
className: "z-50 w-[min(21rem,calc(100vw-1.5rem))] rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-baziu-lg outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
311
|
-
children: [/* @__PURE__ */ jsx(DropdownMenu.Label, {
|
|
312
|
-
className: "px-2.5 pb-1 pt-1 text-xs font-semibold uppercase tracking-[0.1em] text-muted-foreground",
|
|
313
|
-
children: label
|
|
314
|
-
}), links.map((link) => {
|
|
315
|
-
const ItemIcon = link.icon;
|
|
316
|
-
const itemActive = pathname === link.href || pathname.startsWith(`${link.href}/`);
|
|
317
|
-
return /* @__PURE__ */ jsx(DropdownMenu.Item, {
|
|
318
|
-
asChild: true,
|
|
319
|
-
children: /* @__PURE__ */ jsxs("a", {
|
|
320
|
-
href: link.href,
|
|
321
|
-
"aria-current": itemActive ? "page" : void 0,
|
|
322
|
-
className: `flex cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground ${itemActive ? "bg-accent/70 text-accent-foreground" : "text-foreground"}`,
|
|
323
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
324
|
-
className: "mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
325
|
-
children: /* @__PURE__ */ jsx(ItemIcon, {
|
|
326
|
-
className: "size-3.5",
|
|
327
|
-
"aria-hidden": "true"
|
|
328
|
-
})
|
|
329
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
330
|
-
className: "min-w-0 flex-1",
|
|
331
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
332
|
-
className: "flex items-center gap-2 text-sm font-semibold",
|
|
333
|
-
children: [link.label, (itemBadges[link.href] ?? 0) > 0 && /* @__PURE__ */ jsx(CountBadge, {
|
|
334
|
-
value: itemBadges[link.href] ?? 0,
|
|
335
|
-
label: `${itemBadges[link.href]} open ${link.label.toLowerCase()} items`
|
|
336
|
-
})]
|
|
337
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
338
|
-
className: "mt-0.5 block text-xs leading-5 text-muted-foreground",
|
|
339
|
-
children: link.description
|
|
340
|
-
})]
|
|
341
|
-
})]
|
|
342
|
-
})
|
|
343
|
-
}, link.href);
|
|
344
|
-
})]
|
|
345
|
-
}) })] });
|
|
346
|
-
}
|
|
347
|
-
function CountBadge({ value, label }) {
|
|
348
|
-
return /* @__PURE__ */ jsx("span", {
|
|
349
|
-
className: "inline-flex min-w-5 items-center justify-center rounded-full bg-danger px-1.5 py-0.5 text-xs font-semibold leading-4 text-primary-foreground",
|
|
350
|
-
"aria-label": label,
|
|
351
|
-
children: value > 99 ? "99+" : value
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
function navButtonClass(active) {
|
|
355
|
-
return `unstyled inline-flex h-9 shrink-0 items-center justify-center gap-1.5 rounded-lg border px-2 text-sm font-semibold transition-colors sm:px-2.5 ${active ? "border-sapphire-light bg-sapphire-glow text-sapphire shadow-baziu-sm" : "border-transparent text-mocha hover:border-frost hover:bg-ivory hover:text-sapphire"}`;
|
|
356
|
-
}
|
|
357
|
-
//#endregion
|
|
358
|
-
//#region src/lib/auth.ts
|
|
359
|
-
var fetchAuthState = createServerFn({ method: "GET" }).handler(createSsrRpc("a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2"));
|
|
360
|
-
var PUBLIC_PATHS = new Set(["/login"]);
|
|
361
|
-
var SETUP_OPEN_PREFIXES = ["/welcome", "/config"];
|
|
362
|
-
function isSetupOpen(path) {
|
|
363
|
-
for (const prefix of SETUP_OPEN_PREFIXES) if (path === prefix || path.startsWith(`${prefix}/`)) return true;
|
|
364
|
-
return false;
|
|
365
|
-
}
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/lib/csrf-fetch.ts
|
|
368
|
-
function cookie(name) {
|
|
369
|
-
const prefix = `${encodeURIComponent(name)}=`;
|
|
370
|
-
for (const part of document.cookie.split(";")) {
|
|
371
|
-
const value = part.trim();
|
|
372
|
-
if (value.startsWith(prefix)) return decodeURIComponent(value.slice(prefix.length));
|
|
373
|
-
}
|
|
374
|
-
return null;
|
|
375
|
-
}
|
|
376
|
-
function installCsrfFetch() {
|
|
377
|
-
if (typeof window === "undefined") return;
|
|
378
|
-
const marker = "__bazilionCsrfFetchInstalled";
|
|
379
|
-
const state = window;
|
|
380
|
-
if (state[marker]) return;
|
|
381
|
-
state[marker] = true;
|
|
382
|
-
const original = window.fetch.bind(window);
|
|
383
|
-
window.fetch = (input, init) => {
|
|
384
|
-
const request = input instanceof Request ? input : null;
|
|
385
|
-
const method = (init?.method ?? request?.method ?? "GET").toUpperCase();
|
|
386
|
-
if (new URL(request?.url ?? String(input), window.location.href).origin !== window.location.origin || [
|
|
387
|
-
"GET",
|
|
388
|
-
"HEAD",
|
|
389
|
-
"OPTIONS"
|
|
390
|
-
].includes(method)) return original(input, init);
|
|
391
|
-
const csrf = cookie("__Host-bz_csrf") ?? cookie("bz_csrf_dev");
|
|
392
|
-
if (!csrf) return original(input, init);
|
|
393
|
-
const headers = new Headers(request?.headers ?? void 0);
|
|
394
|
-
for (const [key, value] of new Headers(init?.headers)) headers.set(key, value);
|
|
395
|
-
headers.set("x-bazilion-csrf", csrf);
|
|
396
|
-
return original(input, {
|
|
397
|
-
...init,
|
|
398
|
-
headers
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
//#endregion
|
|
403
|
-
//#region src/styles.css?url
|
|
404
|
-
var styles_default = "/assets/styles-e_ADuRbs.css";
|
|
405
|
-
//#endregion
|
|
406
|
-
//#region src/routes/__root.tsx
|
|
407
|
-
var THEME_INIT_SCRIPT = `(function(){try{var t=localStorage.getItem('baziu-theme');var sd=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var d=t==='dark'||((t===null||t==='system')&&sd);document.documentElement.classList.toggle('dark',d);}catch(e){}})();`;
|
|
408
|
-
installCsrfFetch();
|
|
409
|
-
var Route$4 = createRootRoute({
|
|
410
|
-
beforeLoad: async ({ location }) => {
|
|
411
|
-
const path = location.pathname;
|
|
412
|
-
if (PUBLIC_PATHS.has(path)) return;
|
|
413
|
-
if (path.startsWith("/api/")) return;
|
|
414
|
-
const auth = await fetchAuthState();
|
|
415
|
-
if (!auth.authed) {
|
|
416
|
-
const resultId = /^\/results\/([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})$/.exec(path)?.[1];
|
|
417
|
-
throw redirect({
|
|
418
|
-
to: "/login",
|
|
419
|
-
search: { resultId }
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
if (!isSetupOpen(path) && !auth.setupComplete) throw redirect({ to: "/welcome" });
|
|
423
|
-
},
|
|
424
|
-
head: () => ({
|
|
425
|
-
meta: [
|
|
426
|
-
{ charSet: "utf-8" },
|
|
427
|
-
{
|
|
428
|
-
name: "viewport",
|
|
429
|
-
content: "width=device-width, initial-scale=1"
|
|
430
|
-
},
|
|
431
|
-
{ title: "bazilion" }
|
|
432
|
-
],
|
|
433
|
-
links: [{
|
|
434
|
-
rel: "icon",
|
|
435
|
-
type: "image/svg+xml",
|
|
436
|
-
href: "/baziu.svg"
|
|
437
|
-
}, {
|
|
438
|
-
rel: "stylesheet",
|
|
439
|
-
href: styles_default
|
|
440
|
-
}]
|
|
441
|
-
}),
|
|
442
|
-
component: RootComponent,
|
|
443
|
-
notFoundComponent: NotFound
|
|
444
|
-
});
|
|
445
|
-
function NotFound() {
|
|
446
|
-
const pathname = useRouterState({ select: (s) => s.location.pathname });
|
|
447
|
-
return /* @__PURE__ */ jsx("div", {
|
|
448
|
-
className: "mx-auto max-w-2xl",
|
|
449
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
450
|
-
className: "card",
|
|
451
|
-
children: [
|
|
452
|
-
/* @__PURE__ */ jsx("h1", { children: "Not found" }),
|
|
453
|
-
/* @__PURE__ */ jsxs("p", {
|
|
454
|
-
className: "muted my-3",
|
|
455
|
-
children: [
|
|
456
|
-
"Nothing lives at ",
|
|
457
|
-
/* @__PURE__ */ jsx("code", { children: pathname }),
|
|
458
|
-
"."
|
|
459
|
-
]
|
|
460
|
-
}),
|
|
461
|
-
/* @__PURE__ */ jsx(Link, {
|
|
462
|
-
to: "/",
|
|
463
|
-
children: "Back to home"
|
|
464
|
-
})
|
|
465
|
-
]
|
|
466
|
-
})
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
function RootComponent() {
|
|
470
|
-
const pathname = useRouterState({ select: (s) => s.location.pathname });
|
|
471
|
-
const isLogin = pathname === "/login";
|
|
472
|
-
const isWorkspace = pathname === "/";
|
|
473
|
-
return /* @__PURE__ */ jsxs("html", {
|
|
474
|
-
lang: "en",
|
|
475
|
-
"data-layout": isWorkspace ? "workspace" : "page",
|
|
476
|
-
suppressHydrationWarning: true,
|
|
477
|
-
children: [/* @__PURE__ */ jsxs("head", { children: [/* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: THEME_INIT_SCRIPT } }), /* @__PURE__ */ jsx(HeadContent, {})] }), /* @__PURE__ */ jsxs("body", {
|
|
478
|
-
"data-layout": isWorkspace ? "workspace" : "page",
|
|
479
|
-
children: [
|
|
480
|
-
!isLogin && /* @__PURE__ */ jsx("a", {
|
|
481
|
-
href: "#main-content",
|
|
482
|
-
className: "sr-only z-[100] rounded-lg bg-primary px-4 py-2 font-semibold text-primary-foreground focus:not-sr-only focus:fixed focus:left-3 focus:top-3",
|
|
483
|
-
children: "Skip to main content"
|
|
484
|
-
}),
|
|
485
|
-
isLogin ? /* @__PURE__ */ jsx(Outlet, {}) : isWorkspace ? /* @__PURE__ */ jsxs("div", {
|
|
486
|
-
className: "flex h-dvh flex-col",
|
|
487
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
488
|
-
className: "px-3 sm:px-5",
|
|
489
|
-
children: /* @__PURE__ */ jsx(TopNav, {})
|
|
490
|
-
}), /* @__PURE__ */ jsx("main", {
|
|
491
|
-
id: "main-content",
|
|
492
|
-
tabIndex: -1,
|
|
493
|
-
className: "mx-auto min-h-0 w-full max-w-[1600px] flex-1 overflow-hidden px-3 pb-3 sm:px-5 sm:pb-5",
|
|
494
|
-
children: /* @__PURE__ */ jsx(Outlet, {})
|
|
495
|
-
})]
|
|
496
|
-
}) : /* @__PURE__ */ jsxs("div", {
|
|
497
|
-
className: "flex min-h-dvh flex-col",
|
|
498
|
-
children: [
|
|
499
|
-
/* @__PURE__ */ jsx("div", {
|
|
500
|
-
className: "px-3 sm:px-5",
|
|
501
|
-
children: /* @__PURE__ */ jsx(TopNav, {})
|
|
502
|
-
}),
|
|
503
|
-
/* @__PURE__ */ jsx("main", {
|
|
504
|
-
id: "main-content",
|
|
505
|
-
tabIndex: -1,
|
|
506
|
-
className: "mx-auto w-full max-w-[1500px] flex-1 px-4 py-9 sm:px-6 sm:py-12",
|
|
507
|
-
children: /* @__PURE__ */ jsx(Outlet, {})
|
|
508
|
-
}),
|
|
509
|
-
/* @__PURE__ */ jsx("div", {
|
|
510
|
-
className: "px-4 sm:px-6",
|
|
511
|
-
children: /* @__PURE__ */ jsx(Footer, {})
|
|
512
|
-
})
|
|
513
|
-
]
|
|
514
|
-
}),
|
|
515
|
-
/* @__PURE__ */ jsx(Scripts, {})
|
|
516
|
-
]
|
|
517
|
-
})]
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
//#endregion
|
|
521
|
-
//#region src/routes/welcome.tsx
|
|
522
|
-
var $$splitComponentImporter = () => import("./welcome-BFWKx138.js");
|
|
523
|
-
var Route$3 = createFileRoute("/welcome")({
|
|
524
|
-
beforeLoad: async () => {
|
|
525
|
-
if ((await fetchAuthState()).setupComplete) throw redirect({ to: "/" });
|
|
526
|
-
},
|
|
527
|
-
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
528
|
-
});
|
|
529
|
-
//#endregion
|
|
530
|
-
//#region src/routes/templates/index.tsx
|
|
531
|
-
var $$splitErrorComponentImporter$1 = () => import("./templates-CuqFhsiO.js");
|
|
532
|
-
var Route$2 = createFileRoute("/templates/")({
|
|
533
|
-
errorComponent: lazyRouteComponent($$splitErrorComponentImporter$1, "errorComponent"),
|
|
534
|
-
beforeLoad: () => {
|
|
535
|
-
throw redirect({ to: "/templates/agents" });
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
//#endregion
|
|
539
|
-
//#region src/routes/api/$.ts
|
|
540
|
-
var STRIP_REQUEST_HEADERS = new Set([
|
|
541
|
-
"host",
|
|
542
|
-
"connection",
|
|
543
|
-
"keep-alive",
|
|
544
|
-
"proxy-authenticate",
|
|
545
|
-
"proxy-authorization",
|
|
546
|
-
"te",
|
|
547
|
-
"trailer",
|
|
548
|
-
"transfer-encoding",
|
|
549
|
-
"upgrade",
|
|
550
|
-
"cookie",
|
|
551
|
-
"forwarded",
|
|
552
|
-
"x-forwarded-for",
|
|
553
|
-
"x-forwarded-host",
|
|
554
|
-
"x-forwarded-proto",
|
|
555
|
-
"x-real-ip"
|
|
556
|
-
]);
|
|
557
|
-
var MAX_JSON_BODY = 2 * 1024 * 1024;
|
|
558
|
-
var MAX_UPLOAD_BODY = 25 * 1024 * 1024;
|
|
559
|
-
function isLoopback(hostname) {
|
|
560
|
-
return [
|
|
561
|
-
"127.0.0.1",
|
|
562
|
-
"localhost",
|
|
563
|
-
"[::1]",
|
|
564
|
-
"::1"
|
|
565
|
-
].includes(hostname);
|
|
566
|
-
}
|
|
567
|
-
function hasDuplicateCookie(header, name) {
|
|
568
|
-
if (!header) return false;
|
|
569
|
-
return header.split(";").map((part) => part.trim()).map((part) => part.slice(0, part.indexOf("="))).filter((cookieName) => cookieName === name).length > 1;
|
|
570
|
-
}
|
|
571
|
-
async function readBoundedBody(body, limit) {
|
|
572
|
-
let seen = 0;
|
|
573
|
-
const reader = body.getReader();
|
|
574
|
-
const chunks = [];
|
|
575
|
-
try {
|
|
576
|
-
while (true) {
|
|
577
|
-
const { done, value } = await reader.read();
|
|
578
|
-
if (done) break;
|
|
579
|
-
seen += value.byteLength;
|
|
580
|
-
if (seen > limit) {
|
|
581
|
-
await reader.cancel("request body exceeds gateway limit");
|
|
582
|
-
return null;
|
|
583
|
-
}
|
|
584
|
-
chunks.push(value);
|
|
585
|
-
}
|
|
586
|
-
} finally {
|
|
587
|
-
reader.releaseLock();
|
|
588
|
-
}
|
|
589
|
-
const result = new Uint8Array(new ArrayBuffer(seen));
|
|
590
|
-
let offset = 0;
|
|
591
|
-
for (const chunk of chunks) {
|
|
592
|
-
result.set(chunk, offset);
|
|
593
|
-
offset += chunk.byteLength;
|
|
594
|
-
}
|
|
595
|
-
return result.buffer;
|
|
596
|
-
}
|
|
597
|
-
function addSecurityHeaders(headers, production) {
|
|
598
|
-
headers.set("x-content-type-options", "nosniff");
|
|
599
|
-
headers.set("referrer-policy", "same-origin");
|
|
600
|
-
headers.set("permissions-policy", "camera=(), microphone=(), geolocation=()");
|
|
601
|
-
headers.set("x-frame-options", "DENY");
|
|
602
|
-
headers.set("content-security-policy", "default-src 'self'; base-uri 'self'; connect-src 'self'; font-src 'self'; frame-ancestors 'none'; img-src 'self' data:; object-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'");
|
|
603
|
-
if (production) headers.set("strict-transport-security", "max-age=31536000; includeSubDomains");
|
|
604
|
-
}
|
|
605
|
-
var STRIP_RESPONSE_HEADERS = new Set([
|
|
606
|
-
"connection",
|
|
607
|
-
"keep-alive",
|
|
608
|
-
"proxy-authenticate",
|
|
609
|
-
"proxy-authorization",
|
|
610
|
-
"te",
|
|
611
|
-
"trailer",
|
|
612
|
-
"transfer-encoding",
|
|
613
|
-
"upgrade"
|
|
614
|
-
]);
|
|
615
|
-
async function proxy(request) {
|
|
616
|
-
const incoming = new URL(request.url);
|
|
617
|
-
const originConfig = webOriginConfig();
|
|
618
|
-
const expectedOrigin = originConfig.origin ?? incoming.origin;
|
|
619
|
-
const expected = new URL(expectedOrigin);
|
|
620
|
-
if (originConfig.production) {
|
|
621
|
-
if (request.headers.get("host") !== expected.host) return new Response("not found", { status: 404 });
|
|
622
|
-
const forwardedHost = request.headers.get("x-forwarded-host");
|
|
623
|
-
const forwardedProto = request.headers.get("x-forwarded-proto");
|
|
624
|
-
if (forwardedHost && forwardedHost !== expected.host || forwardedProto && forwardedProto !== "https") return new Response("invalid forwarding headers", { status: 400 });
|
|
625
|
-
} else if (!isLoopback(incoming.hostname)) return new Response("loopback development only", { status: 403 });
|
|
626
|
-
if (request.headers.has("forwarded")) return new Response("invalid forwarding headers", { status: 400 });
|
|
627
|
-
const unsafe = ![
|
|
628
|
-
"GET",
|
|
629
|
-
"HEAD",
|
|
630
|
-
"OPTIONS"
|
|
631
|
-
].includes(request.method);
|
|
632
|
-
const incomingCookies = request.headers.get("cookie");
|
|
633
|
-
if (hasDuplicateCookie(incomingCookies, originConfig.sessionCookie) || hasDuplicateCookie(incomingCookies, originConfig.csrfCookie)) return new Response("ambiguous cookies", { status: 400 });
|
|
634
|
-
const session = getCookie(originConfig.sessionCookie);
|
|
635
|
-
const csrf = getCookie(originConfig.csrfCookie);
|
|
636
|
-
if (unsafe && (session || incoming.pathname === "/api/login")) {
|
|
637
|
-
if (request.headers.get("origin") !== expectedOrigin) {
|
|
638
|
-
const contentType = request.headers.get("content-type") ?? "";
|
|
639
|
-
const acceptsHtml = request.headers.get("accept")?.includes("text/html") ?? false;
|
|
640
|
-
if (incoming.pathname === "/api/login" && contentType.startsWith("application/x-www-form-urlencoded") && acceptsHtml) return new Response(null, {
|
|
641
|
-
status: 303,
|
|
642
|
-
headers: { location: "/login?error=origin" }
|
|
643
|
-
});
|
|
644
|
-
return new Response("origin validation failed", { status: 403 });
|
|
645
|
-
}
|
|
646
|
-
if (session && (!csrf || request.headers.get("x-bazilion-csrf") !== csrf)) return new Response("csrf validation failed", { status: 403 });
|
|
647
|
-
}
|
|
648
|
-
const target = `${DAEMON_BASE_URL}${incoming.pathname}${incoming.search}`;
|
|
649
|
-
const headers = new Headers();
|
|
650
|
-
for (const [k, v] of request.headers) if (!STRIP_REQUEST_HEADERS.has(k.toLowerCase())) headers.set(k, v);
|
|
651
|
-
if (session) {
|
|
652
|
-
const cookieParts = [`${originConfig.sessionCookie}=${session}`];
|
|
653
|
-
if (csrf) cookieParts.push(`${originConfig.csrfCookie}=${csrf}`);
|
|
654
|
-
headers.set("cookie", cookieParts.join("; "));
|
|
655
|
-
}
|
|
656
|
-
headers.set("origin", DAEMON_BASE_URL);
|
|
657
|
-
const init = {
|
|
658
|
-
method: request.method,
|
|
659
|
-
headers,
|
|
660
|
-
redirect: "manual",
|
|
661
|
-
signal: request.signal
|
|
662
|
-
};
|
|
663
|
-
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
664
|
-
const limit = (request.headers.get("content-type") ?? "").startsWith("multipart/form-data") ? MAX_UPLOAD_BODY : MAX_JSON_BODY;
|
|
665
|
-
const contentLength = Number(request.headers.get("content-length") ?? 0);
|
|
666
|
-
if (Number.isFinite(contentLength) && contentLength > limit) return new Response("request body too large", { status: 413 });
|
|
667
|
-
if (request.body) {
|
|
668
|
-
const body = await readBoundedBody(request.body, limit);
|
|
669
|
-
if (!body) return new Response("request body too large", { status: 413 });
|
|
670
|
-
init.body = body;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
const upstream = await fetch(target, init);
|
|
674
|
-
const respHeaders = new Headers();
|
|
675
|
-
for (const [k, v] of upstream.headers) {
|
|
676
|
-
const lower = k.toLowerCase();
|
|
677
|
-
if (lower !== "set-cookie" && !STRIP_RESPONSE_HEADERS.has(lower)) respHeaders.set(k, v);
|
|
678
|
-
}
|
|
679
|
-
const getSetCookie = upstream.headers.getSetCookie;
|
|
680
|
-
for (const value of getSetCookie?.call(upstream.headers) ?? []) respHeaders.append("set-cookie", value);
|
|
681
|
-
addSecurityHeaders(respHeaders, originConfig.production);
|
|
682
|
-
return new Response(upstream.body, {
|
|
683
|
-
status: upstream.status,
|
|
684
|
-
statusText: upstream.statusText,
|
|
685
|
-
headers: respHeaders
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
var Route$1 = createFileRoute("/api/$")({ server: { handlers: {
|
|
689
|
-
GET: ({ request }) => proxy(request),
|
|
690
|
-
POST: ({ request }) => proxy(request),
|
|
691
|
-
PUT: ({ request }) => proxy(request),
|
|
692
|
-
PATCH: ({ request }) => proxy(request),
|
|
693
|
-
DELETE: ({ request }) => proxy(request)
|
|
694
|
-
} } });
|
|
695
|
-
//#endregion
|
|
696
|
-
//#region src/routes/teams/$id/context.tsx
|
|
697
|
-
var $$splitErrorComponentImporter = () => import("./context-DuxjdpaW.js");
|
|
698
|
-
var Route = createFileRoute("/teams/$id/context")({
|
|
699
|
-
errorComponent: lazyRouteComponent($$splitErrorComponentImporter, "errorComponent"),
|
|
700
|
-
beforeLoad: ({ params }) => {
|
|
701
|
-
throw redirect({
|
|
702
|
-
to: "/teams/$id",
|
|
703
|
-
params: { id: params.id }
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
});
|
|
707
|
-
//#endregion
|
|
708
|
-
//#region src/routeTree.gen.ts
|
|
709
|
-
var WelcomeRoute = Route$3.update({
|
|
710
|
-
id: "/welcome",
|
|
711
|
-
path: "/welcome",
|
|
712
|
-
getParentRoute: () => Route$4
|
|
713
|
-
});
|
|
714
|
-
var LoginRoute = Route$5.update({
|
|
715
|
-
id: "/login",
|
|
716
|
-
path: "/login",
|
|
717
|
-
getParentRoute: () => Route$4
|
|
718
|
-
});
|
|
719
|
-
var IndexRoute = Route$6.update({
|
|
720
|
-
id: "/",
|
|
721
|
-
path: "/",
|
|
722
|
-
getParentRoute: () => Route$4
|
|
723
|
-
});
|
|
724
|
-
var TemplatesIndexRoute = Route$2.update({
|
|
725
|
-
id: "/templates/",
|
|
726
|
-
path: "/templates/",
|
|
727
|
-
getParentRoute: () => Route$4
|
|
728
|
-
});
|
|
729
|
-
var TeamsIndexRoute = Route$7.update({
|
|
730
|
-
id: "/teams/",
|
|
731
|
-
path: "/teams/",
|
|
732
|
-
getParentRoute: () => Route$4
|
|
733
|
-
});
|
|
734
|
-
var SkillsIndexRoute = Route$8.update({
|
|
735
|
-
id: "/skills/",
|
|
736
|
-
path: "/skills/",
|
|
737
|
-
getParentRoute: () => Route$4
|
|
738
|
-
});
|
|
739
|
-
var ConfigIndexRoute = Route$9.update({
|
|
740
|
-
id: "/config/",
|
|
741
|
-
path: "/config/",
|
|
742
|
-
getParentRoute: () => Route$4
|
|
743
|
-
});
|
|
744
|
-
var AttentionIndexRoute = Route$10.update({
|
|
745
|
-
id: "/attention/",
|
|
746
|
-
path: "/attention/",
|
|
747
|
-
getParentRoute: () => Route$4
|
|
748
|
-
});
|
|
749
|
-
var ApprovalsIndexRoute = Route$11.update({
|
|
750
|
-
id: "/approvals/",
|
|
751
|
-
path: "/approvals/",
|
|
752
|
-
getParentRoute: () => Route$4
|
|
753
|
-
});
|
|
754
|
-
var AgentsIndexRoute = Route$12.update({
|
|
755
|
-
id: "/agents/",
|
|
756
|
-
path: "/agents/",
|
|
757
|
-
getParentRoute: () => Route$4
|
|
758
|
-
});
|
|
759
|
-
var ResultsIdRoute = Route$13.update({
|
|
760
|
-
id: "/results/$id",
|
|
761
|
-
path: "/results/$id",
|
|
762
|
-
getParentRoute: () => Route$4
|
|
763
|
-
});
|
|
764
|
-
var ConfigTokensRoute = Route$14.update({
|
|
765
|
-
id: "/config/tokens",
|
|
766
|
-
path: "/config/tokens",
|
|
767
|
-
getParentRoute: () => Route$4
|
|
768
|
-
});
|
|
769
|
-
var ConfigServicesRoute = Route$15.update({
|
|
770
|
-
id: "/config/services",
|
|
771
|
-
path: "/config/services",
|
|
772
|
-
getParentRoute: () => Route$4
|
|
773
|
-
});
|
|
774
|
-
var ConfigMcpRoute = Route$16.update({
|
|
775
|
-
id: "/config/mcp",
|
|
776
|
-
path: "/config/mcp",
|
|
777
|
-
getParentRoute: () => Route$4
|
|
778
|
-
});
|
|
779
|
-
var ApiSplatRoute = Route$1.update({
|
|
780
|
-
id: "/api/$",
|
|
781
|
-
path: "/api/$",
|
|
782
|
-
getParentRoute: () => Route$4
|
|
783
|
-
});
|
|
784
|
-
var TemplatesTeamsIndexRoute = Route$17.update({
|
|
785
|
-
id: "/templates/teams/",
|
|
786
|
-
path: "/templates/teams/",
|
|
787
|
-
getParentRoute: () => Route$4
|
|
788
|
-
});
|
|
789
|
-
var TemplatesAgentsIndexRoute = Route$18.update({
|
|
790
|
-
id: "/templates/agents/",
|
|
791
|
-
path: "/templates/agents/",
|
|
792
|
-
getParentRoute: () => Route$4
|
|
793
|
-
});
|
|
794
|
-
var TeamsIdIndexRoute = Route$19.update({
|
|
795
|
-
id: "/teams/$id/",
|
|
796
|
-
path: "/teams/$id/",
|
|
797
|
-
getParentRoute: () => Route$4
|
|
798
|
-
});
|
|
799
|
-
var AgentsIdIndexRoute = Route$20.update({
|
|
800
|
-
id: "/agents/$id/",
|
|
801
|
-
path: "/agents/$id/",
|
|
802
|
-
getParentRoute: () => Route$4
|
|
803
|
-
});
|
|
804
|
-
var TeamsIdVerificationsRoute = Route$21.update({
|
|
805
|
-
id: "/teams/$id/verifications",
|
|
806
|
-
path: "/teams/$id/verifications",
|
|
807
|
-
getParentRoute: () => Route$4
|
|
808
|
-
});
|
|
809
|
-
var TeamsIdReviewRoute = Route$22.update({
|
|
810
|
-
id: "/teams/$id/review",
|
|
811
|
-
path: "/teams/$id/review",
|
|
812
|
-
getParentRoute: () => Route$4
|
|
813
|
-
});
|
|
814
|
-
var TeamsIdResultsRoute = Route$23.update({
|
|
815
|
-
id: "/teams/$id/results",
|
|
816
|
-
path: "/teams/$id/results",
|
|
817
|
-
getParentRoute: () => Route$4
|
|
818
|
-
});
|
|
819
|
-
var TeamsIdPolicyRoute = Route$24.update({
|
|
820
|
-
id: "/teams/$id/policy",
|
|
821
|
-
path: "/teams/$id/policy",
|
|
822
|
-
getParentRoute: () => Route$4
|
|
823
|
-
});
|
|
824
|
-
var TeamsIdMemoryRoute = Route$25.update({
|
|
825
|
-
id: "/teams/$id/memory",
|
|
826
|
-
path: "/teams/$id/memory",
|
|
827
|
-
getParentRoute: () => Route$4
|
|
828
|
-
});
|
|
829
|
-
var TeamsIdMembersRoute = Route$26.update({
|
|
830
|
-
id: "/teams/$id/members",
|
|
831
|
-
path: "/teams/$id/members",
|
|
832
|
-
getParentRoute: () => Route$4
|
|
833
|
-
});
|
|
834
|
-
var TeamsIdContextRoute = Route.update({
|
|
835
|
-
id: "/teams/$id/context",
|
|
836
|
-
path: "/teams/$id/context",
|
|
837
|
-
getParentRoute: () => Route$4
|
|
838
|
-
});
|
|
839
|
-
var TeamsIdActivityRoute = Route$27.update({
|
|
840
|
-
id: "/teams/$id/activity",
|
|
841
|
-
path: "/teams/$id/activity",
|
|
842
|
-
getParentRoute: () => Route$4
|
|
843
|
-
});
|
|
844
|
-
var ConfigIntegrationsTelegramRoute = Route$28.update({
|
|
845
|
-
id: "/config/integrations/telegram",
|
|
846
|
-
path: "/config/integrations/telegram",
|
|
847
|
-
getParentRoute: () => Route$4
|
|
848
|
-
});
|
|
849
|
-
var AgentsIdTriggersRoute = Route$29.update({
|
|
850
|
-
id: "/agents/$id/triggers",
|
|
851
|
-
path: "/agents/$id/triggers",
|
|
852
|
-
getParentRoute: () => Route$4
|
|
853
|
-
});
|
|
854
|
-
var AgentsIdLearningRoute = Route$30.update({
|
|
855
|
-
id: "/agents/$id/learning",
|
|
856
|
-
path: "/agents/$id/learning",
|
|
857
|
-
getParentRoute: () => Route$4
|
|
858
|
-
});
|
|
859
|
-
var AgentsIdInboxRoute = Route$31.update({
|
|
860
|
-
id: "/agents/$id/inbox",
|
|
861
|
-
path: "/agents/$id/inbox",
|
|
862
|
-
getParentRoute: () => Route$4
|
|
863
|
-
});
|
|
864
|
-
var TemplatesTeamsIdIndexRoute = Route$32.update({
|
|
865
|
-
id: "/templates/teams/$id/",
|
|
866
|
-
path: "/templates/teams/$id/",
|
|
867
|
-
getParentRoute: () => Route$4
|
|
868
|
-
});
|
|
869
|
-
var rootRouteChildren = {
|
|
870
|
-
IndexRoute,
|
|
871
|
-
LoginRoute,
|
|
872
|
-
WelcomeRoute,
|
|
873
|
-
ApiSplatRoute,
|
|
874
|
-
ConfigMcpRoute,
|
|
875
|
-
ConfigServicesRoute,
|
|
876
|
-
ConfigTokensRoute,
|
|
877
|
-
ResultsIdRoute,
|
|
878
|
-
AgentsIndexRoute,
|
|
879
|
-
ApprovalsIndexRoute,
|
|
880
|
-
AttentionIndexRoute,
|
|
881
|
-
ConfigIndexRoute,
|
|
882
|
-
SkillsIndexRoute,
|
|
883
|
-
TeamsIndexRoute,
|
|
884
|
-
TemplatesIndexRoute,
|
|
885
|
-
AgentsIdInboxRoute,
|
|
886
|
-
AgentsIdLearningRoute,
|
|
887
|
-
AgentsIdTriggersRoute,
|
|
888
|
-
ConfigIntegrationsTelegramRoute,
|
|
889
|
-
TeamsIdActivityRoute,
|
|
890
|
-
TeamsIdContextRoute,
|
|
891
|
-
TeamsIdMembersRoute,
|
|
892
|
-
TeamsIdMemoryRoute,
|
|
893
|
-
TeamsIdPolicyRoute,
|
|
894
|
-
TeamsIdResultsRoute,
|
|
895
|
-
TeamsIdReviewRoute,
|
|
896
|
-
TeamsIdVerificationsRoute,
|
|
897
|
-
AgentsIdIndexRoute,
|
|
898
|
-
TeamsIdIndexRoute,
|
|
899
|
-
TemplatesAgentsIndexRoute,
|
|
900
|
-
TemplatesTeamsIndexRoute,
|
|
901
|
-
TemplatesAgentsIdIndexRoute: Route$33.update({
|
|
902
|
-
id: "/templates/agents/$id/",
|
|
903
|
-
path: "/templates/agents/$id/",
|
|
904
|
-
getParentRoute: () => Route$4
|
|
905
|
-
}),
|
|
906
|
-
TemplatesTeamsIdIndexRoute
|
|
907
|
-
};
|
|
908
|
-
var routeTree = Route$4._addFileChildren(rootRouteChildren)._addFileTypes();
|
|
909
|
-
//#endregion
|
|
910
|
-
//#region src/router.tsx
|
|
911
|
-
function getRouter() {
|
|
912
|
-
return createRouter({
|
|
913
|
-
routeTree,
|
|
914
|
-
scrollRestoration: true,
|
|
915
|
-
defaultPreload: "intent",
|
|
916
|
-
defaultErrorComponent: RouteErrorState,
|
|
917
|
-
defaultPendingComponent: RoutePendingState
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
//#endregion
|
|
921
|
-
export { getRouter };
|