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
|
@@ -1,291 +1,132 @@
|
|
|
1
|
-
import { n as Button } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { t as Route } from "./config-
|
|
4
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
5
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
6
|
-
import { t as FieldRow } from "./FieldRow-
|
|
1
|
+
import { i as errorMessage, n as api, o as Button } from "./api-WWxPqx67.js";
|
|
2
|
+
import { c as StatusBadge, s as Stat, t as EmptyState } from "./Page-CMSYKXWJ.js";
|
|
3
|
+
import { t as Route } from "./config-C1VB28se.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-LdVlEanK.js";
|
|
5
|
+
import { t as ConfigPage } from "./ConfigPage-CGld_wCK.js";
|
|
6
|
+
import { t as FieldRow } from "./FieldRow-Dah2KKqo.js";
|
|
7
7
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { useRouter } from "@tanstack/react-router";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { CheckCircle2, ChevronDown, ChevronRight, Search, Server
|
|
11
|
-
//#region src/components/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const protectedTurns = status.protectedUnattendedTurns;
|
|
10
|
+
import { CheckCircle2, ChevronDown, ChevronRight, Search, Server } from "lucide-react";
|
|
11
|
+
//#region src/components/BackupCard.tsx
|
|
12
|
+
/** The same archive as `bazilion backup create`, saved by the browser straight from the daemon. */
|
|
13
|
+
function BackupCard() {
|
|
15
14
|
return /* @__PURE__ */ jsxs("section", {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
children: "Operator HTTP requests keep their configured compatibility behavior. Unattended sources use a separate mandatory protected baseline."
|
|
25
|
-
})]
|
|
15
|
+
"aria-label": "Backup",
|
|
16
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
17
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
18
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
19
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
20
|
+
className: "text-base font-semibold",
|
|
21
|
+
children: "Backup"
|
|
22
|
+
})
|
|
26
23
|
}), /* @__PURE__ */ jsxs("div", {
|
|
27
|
-
className: "
|
|
28
|
-
children: [/* @__PURE__ */ jsxs("
|
|
29
|
-
className: "
|
|
24
|
+
className: "flex flex-wrap items-center justify-between gap-3 p-4 text-sm sm:px-5",
|
|
25
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
26
|
+
className: "m-0 max-w-prose text-muted-foreground",
|
|
30
27
|
children: [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}), /* @__PURE__ */ jsx(StatusBadge, {
|
|
37
|
-
ok: false,
|
|
38
|
-
children: configured.codingSurface === "host" ? "trusted host · unisolated" : configured.codingSurface === "native" ? "native coding · ordinary capabilities" : "ordinary capabilities"
|
|
39
|
-
})]
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsxs("dl", {
|
|
42
|
-
className: "space-y-2 text-sm",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
45
|
-
label: "Coding surface",
|
|
46
|
-
value: codingSurfaceLabel(configured.codingSurface)
|
|
47
|
-
}),
|
|
48
|
-
configured.dockerImage !== null && /* @__PURE__ */ jsx(StatusRow, {
|
|
49
|
-
label: "Docker image",
|
|
50
|
-
value: configured.dockerImage,
|
|
51
|
-
mono: true
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
54
|
-
label: "Browser",
|
|
55
|
-
value: configured.browser
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
58
|
-
label: "MCP",
|
|
59
|
-
value: configured.mcp
|
|
60
|
-
})
|
|
61
|
-
]
|
|
62
|
-
}),
|
|
63
|
-
/* @__PURE__ */ jsx("p", {
|
|
64
|
-
className: "mt-3 text-xs text-muted-foreground",
|
|
65
|
-
children: "Operator requests only; unattended sources never select this branch. Host execution is unisolated: shell commands use host filesystem and network permissions. Approvals and tool guards are not an OS sandbox."
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
}), /* @__PURE__ */ jsxs("section", {
|
|
69
|
-
className: `rounded-md border p-3 ${protectedTurns.baseRuntimeReady ? "border-success/25 bg-success/5" : "border-warning/25 bg-warning/10"}`,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("div", {
|
|
72
|
-
className: "mb-3 flex flex-wrap items-center justify-between gap-2",
|
|
73
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
74
|
-
className: "font-semibold",
|
|
75
|
-
children: "Protected unattended turns"
|
|
76
|
-
}), /* @__PURE__ */ jsx(StatusBadge, {
|
|
77
|
-
ok: protectedTurns.baseRuntimeReady,
|
|
78
|
-
children: protectedTurns.codingSurface === "native" ? "per-turn admission required" : protectedTurns.baseRuntimeReady ? "base runtime ready" : "base runtime unavailable"
|
|
79
|
-
})]
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ jsx("p", {
|
|
82
|
-
className: "mb-3 text-xs text-muted-foreground",
|
|
83
|
-
children: "Telegram, schedules, inbox wake-ups, and approval delivery cannot select the legacy surface."
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ jsxs("dl", {
|
|
86
|
-
className: "space-y-2 text-sm",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
89
|
-
label: "Coding surface",
|
|
90
|
-
value: protectedTurns.codingSurface === "unavailable" ? "Unavailable — no qualified isolation backend" : protectedTurns.codingSurface === "native" ? "Native OS sandbox" : "Docker only"
|
|
91
|
-
}),
|
|
92
|
-
protectedTurns.codingSurface === "native" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(StatusRow, {
|
|
93
|
-
label: "Native backend",
|
|
94
|
-
value: protectedTurns.native.backend ?? "Unsupported platform"
|
|
95
|
-
}), /* @__PURE__ */ jsx(StatusRow, {
|
|
96
|
-
label: "Native readiness",
|
|
97
|
-
value: "Not checked — requires per-turn admission"
|
|
98
|
-
})] }) : protectedTurns.codingSurface === "unavailable" ? /* @__PURE__ */ jsx(StatusRow, {
|
|
99
|
-
label: "Admission",
|
|
100
|
-
value: "Refuses — no trusted-host fallback"
|
|
101
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
102
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
103
|
-
label: "Docker",
|
|
104
|
-
value: protectedTurns.docker.ready ? "ready" : "unavailable",
|
|
105
|
-
ok: protectedTurns.docker.ready
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
108
|
-
label: "Docker image",
|
|
109
|
-
value: protectedTurns.docker.image,
|
|
110
|
-
mono: true
|
|
111
|
-
}),
|
|
112
|
-
protectedTurns.docker.reason && /* @__PURE__ */ jsx(StatusRow, {
|
|
113
|
-
label: "Docker reason",
|
|
114
|
-
value: protectedTurns.docker.reason
|
|
115
|
-
})
|
|
116
|
-
] }),
|
|
117
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
118
|
-
label: "OpenAI Codex enabled",
|
|
119
|
-
value: yesNo(protectedTurns.openaiCodex.enabled),
|
|
120
|
-
ok: protectedTurns.openaiCodex.enabled
|
|
121
|
-
}),
|
|
122
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
123
|
-
label: "ChatGPT connected",
|
|
124
|
-
value: yesNo(protectedTurns.openaiCodex.connected),
|
|
125
|
-
ok: protectedTurns.openaiCodex.connected
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
128
|
-
label: "OpenAI access",
|
|
129
|
-
value: openAIAccessLabel(protectedTurns.openaiCodex),
|
|
130
|
-
ok: protectedTurns.openaiCodex.accessCurrent || protectedTurns.openaiCodex.refreshOnNextTurn
|
|
131
|
-
}),
|
|
132
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
133
|
-
label: "OpenAI Codex baseline eligible",
|
|
134
|
-
value: yesNo(protectedTurns.openaiCodex.baselineEligible),
|
|
135
|
-
ok: protectedTurns.openaiCodex.baselineEligible
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
138
|
-
label: "Browser",
|
|
139
|
-
value: protectedTurns.browser,
|
|
140
|
-
ok: true
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ jsx(StatusRow, {
|
|
143
|
-
label: "MCP",
|
|
144
|
-
value: protectedTurns.mcp,
|
|
145
|
-
ok: true
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
}),
|
|
149
|
-
protectedTurns.remediation && /* @__PURE__ */ jsxs("p", {
|
|
150
|
-
className: "mt-3 rounded-md border border-warning/25 bg-background/60 px-3 py-2 text-xs text-warning",
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ jsx("strong", { children: "Remediation:" }),
|
|
153
|
-
" ",
|
|
154
|
-
protectedTurns.remediation
|
|
155
|
-
]
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ jsx("p", {
|
|
158
|
-
className: "mt-3 text-xs text-muted-foreground",
|
|
159
|
-
children: "Every turn separately validates its selected normal/review model, bound OAuth refresh, and Team/input/memory/skill mounts and paths before execution."
|
|
160
|
-
})
|
|
28
|
+
"A tar.gz of the Bazilion home. It is not encrypted and holds every stored credential; for an encrypted copy run ",
|
|
29
|
+
/* @__PURE__ */ jsx("code", { children: "bazilion backup create --recipient <age1…>" }),
|
|
30
|
+
". Restore with ",
|
|
31
|
+
/* @__PURE__ */ jsx("code", { children: "bazilion backup restore" }),
|
|
32
|
+
" while the daemon is stopped."
|
|
161
33
|
]
|
|
34
|
+
}), /* @__PURE__ */ jsx("a", {
|
|
35
|
+
href: "/api/backup",
|
|
36
|
+
download: true,
|
|
37
|
+
className: "btn-primary no-underline",
|
|
38
|
+
children: "Download backup"
|
|
162
39
|
})]
|
|
163
40
|
})]
|
|
164
41
|
});
|
|
165
42
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/InstallationReadinessCard.tsx
|
|
45
|
+
function InstallationReadinessCard({ report }) {
|
|
46
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
47
|
+
"aria-label": "Installation health",
|
|
48
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
49
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
50
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
51
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
52
|
+
className: "text-base font-semibold",
|
|
53
|
+
children: "Installation health"
|
|
54
|
+
})
|
|
55
|
+
}), /* @__PURE__ */ jsxs("dl", {
|
|
56
|
+
className: "p-4 sm:px-5",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx("dt", {
|
|
59
|
+
className: "text-xs text-muted-foreground",
|
|
60
|
+
children: "Installation health"
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx("dd", {
|
|
63
|
+
className: `mt-1 font-semibold ${report.ok ? "text-success" : "text-warning"}`,
|
|
64
|
+
children: report.ok ? "Healthy" : "Issues found"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx("dd", {
|
|
67
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
68
|
+
children: "Run bazilion doctor for the details."
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/RuntimeCard.tsx
|
|
76
|
+
/** Sandbox and approval apply the same way to every turn: chat, Telegram, schedules and inbox. */
|
|
77
|
+
function RuntimeCard({ shell }) {
|
|
78
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
79
|
+
"aria-label": "Agent runtime",
|
|
80
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
81
|
+
children: [/* @__PURE__ */ jsxs("header", {
|
|
82
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
83
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
84
|
+
className: "text-base font-semibold",
|
|
85
|
+
children: "Agent runtime"
|
|
86
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
87
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
88
|
+
children: "Applies to every turn: chat, Telegram, schedules and inbox. Unattended turns auto-deny dangerous commands."
|
|
89
|
+
})]
|
|
90
|
+
}), shell.ok ? /* @__PURE__ */ jsxs("dl", {
|
|
91
|
+
className: "divide-y divide-border px-4 text-sm sm:px-5",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsx(Row, {
|
|
94
|
+
label: "Sandbox",
|
|
95
|
+
value: shell.sandboxMode === "docker" ? `Docker (${shell.sandboxImage}) — bash in a network-disabled container` : "Off — bash and file tools run on the host, unisolated"
|
|
96
|
+
}),
|
|
97
|
+
shell.docker && /* @__PURE__ */ jsx(Row, {
|
|
98
|
+
label: "Docker",
|
|
99
|
+
value: shell.docker.ready ? "Ready" : `Unavailable — ${shell.docker.reason}`,
|
|
100
|
+
ok: shell.docker.ready
|
|
101
|
+
}),
|
|
102
|
+
shell.docker?.remediation && /* @__PURE__ */ jsx(Row, {
|
|
103
|
+
label: "Remediation",
|
|
104
|
+
value: shell.docker.remediation
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ jsx(Row, {
|
|
107
|
+
label: "Dangerous-command approval",
|
|
108
|
+
value: shell.approvalMode === "dangerous" ? "On — chat can allow once; unattended turns auto-deny" : "Off"
|
|
109
|
+
})
|
|
110
|
+
]
|
|
111
|
+
}) : /* @__PURE__ */ jsxs("p", {
|
|
112
|
+
role: "alert",
|
|
113
|
+
className: "px-4 py-3 text-sm text-warning sm:px-5",
|
|
114
|
+
children: ["Invalid shell-security configuration: ", shell.error]
|
|
115
|
+
})]
|
|
170
116
|
});
|
|
171
117
|
}
|
|
172
|
-
function
|
|
118
|
+
function Row({ label, value, ok }) {
|
|
173
119
|
return /* @__PURE__ */ jsxs("div", {
|
|
174
|
-
className: "
|
|
120
|
+
className: "grid gap-1 py-3 sm:grid-cols-[14rem_1fr] sm:gap-4",
|
|
175
121
|
children: [/* @__PURE__ */ jsx("dt", {
|
|
176
122
|
className: "text-muted-foreground",
|
|
177
123
|
children: label
|
|
178
124
|
}), /* @__PURE__ */ jsx("dd", {
|
|
179
|
-
className:
|
|
125
|
+
className: ok === void 0 ? "font-medium" : ok ? "text-success" : "text-warning",
|
|
180
126
|
children: value
|
|
181
127
|
})]
|
|
182
128
|
});
|
|
183
129
|
}
|
|
184
|
-
function codingSurfaceLabel(surface) {
|
|
185
|
-
if (surface === "host") return "Trusted host tools (unisolated)";
|
|
186
|
-
if (surface === "docker") return "Docker only";
|
|
187
|
-
if (surface === "native") return "Native OS sandbox";
|
|
188
|
-
return "Unavailable";
|
|
189
|
-
}
|
|
190
|
-
function yesNo(value) {
|
|
191
|
-
return value ? "yes" : "no";
|
|
192
|
-
}
|
|
193
|
-
function openAIAccessLabel(status) {
|
|
194
|
-
if (status.accessCurrent) return "current";
|
|
195
|
-
if (status.refreshOnNextTurn) return "refresh on next turn";
|
|
196
|
-
return "unavailable";
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/components/InstallationReadinessCard.tsx
|
|
200
|
-
function InstallationReadinessCard({ report, codingSurface }) {
|
|
201
|
-
return /* @__PURE__ */ jsxs("section", {
|
|
202
|
-
"aria-label": "Installation and platform support",
|
|
203
|
-
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
204
|
-
children: [
|
|
205
|
-
/* @__PURE__ */ jsxs("header", {
|
|
206
|
-
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
207
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
208
|
-
className: "text-base font-semibold",
|
|
209
|
-
children: "Installation and platform support"
|
|
210
|
-
}), /* @__PURE__ */ jsxs("p", {
|
|
211
|
-
className: "mt-1 text-xs text-muted-foreground",
|
|
212
|
-
children: [
|
|
213
|
-
"Daemon platform: ",
|
|
214
|
-
report.platformCapabilities.platform,
|
|
215
|
-
". ",
|
|
216
|
-
report.platformCapabilities.note
|
|
217
|
-
]
|
|
218
|
-
})]
|
|
219
|
-
}),
|
|
220
|
-
/* @__PURE__ */ jsxs("dl", {
|
|
221
|
-
className: "grid gap-4 border-b border-border p-4 sm:grid-cols-3 sm:px-5",
|
|
222
|
-
children: [
|
|
223
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
224
|
-
/* @__PURE__ */ jsx("dt", {
|
|
225
|
-
className: "text-xs text-muted-foreground",
|
|
226
|
-
children: "Installation health"
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ jsx("dd", {
|
|
229
|
-
className: `mt-1 font-semibold ${report.ok ? "text-success" : "text-warning"}`,
|
|
230
|
-
children: report.ok ? "Healthy" : "Issues found"
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ jsx("dd", {
|
|
233
|
-
className: "mt-1 text-xs text-muted-foreground",
|
|
234
|
-
children: "Structural checks only. Run bazilion doctor for details."
|
|
235
|
-
})
|
|
236
|
-
] }),
|
|
237
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
238
|
-
/* @__PURE__ */ jsx("dt", {
|
|
239
|
-
className: "text-xs text-muted-foreground",
|
|
240
|
-
children: "Ordinary chat execution"
|
|
241
|
-
}),
|
|
242
|
-
/* @__PURE__ */ jsx("dd", {
|
|
243
|
-
className: "mt-1 font-semibold",
|
|
244
|
-
children: "Not checked"
|
|
245
|
-
}),
|
|
246
|
-
/* @__PURE__ */ jsx("dd", {
|
|
247
|
-
className: "mt-1 text-xs text-muted-foreground",
|
|
248
|
-
children: "Test your selected provider, then try an Agent chat."
|
|
249
|
-
})
|
|
250
|
-
] }),
|
|
251
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
252
|
-
/* @__PURE__ */ jsx("dt", {
|
|
253
|
-
className: "text-xs text-muted-foreground",
|
|
254
|
-
children: "Protected unattended baseline"
|
|
255
|
-
}),
|
|
256
|
-
/* @__PURE__ */ jsx("dd", {
|
|
257
|
-
className: `mt-1 font-semibold ${report.protectedWorkBaselineReady ? "text-success" : "text-warning"}`,
|
|
258
|
-
children: codingSurface === "native" ? "Not checked · per-turn admission required" : report.protectedWorkBaselineReady ? "Ready · per-turn checks still apply" : "Unavailable"
|
|
259
|
-
}),
|
|
260
|
-
/* @__PURE__ */ jsx("dd", {
|
|
261
|
-
className: "mt-1 text-xs text-muted-foreground",
|
|
262
|
-
children: "See Execution security below for prerequisites and remediation. This is separate from installation health; protected turns never fall back to host execution."
|
|
263
|
-
})
|
|
264
|
-
] })
|
|
265
|
-
]
|
|
266
|
-
}),
|
|
267
|
-
/* @__PURE__ */ jsx("dl", {
|
|
268
|
-
className: "divide-y divide-border px-4 sm:px-5",
|
|
269
|
-
children: report.platformCapabilities.capabilities.map((capability) => /* @__PURE__ */ jsxs("div", {
|
|
270
|
-
className: "grid gap-1 py-3 sm:grid-cols-2 sm:gap-4",
|
|
271
|
-
children: [/* @__PURE__ */ jsx("dt", {
|
|
272
|
-
className: "text-sm font-medium",
|
|
273
|
-
children: capability.label
|
|
274
|
-
}), /* @__PURE__ */ jsxs("dd", {
|
|
275
|
-
className: "min-w-0 text-sm",
|
|
276
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
277
|
-
className: capability.support === "unsupported" ? "text-warning" : "",
|
|
278
|
-
children: [capability.support === "supported" ? "Supported" : "Unsupported", " on this platform"]
|
|
279
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
280
|
-
className: "mt-1 text-xs leading-5 text-muted-foreground",
|
|
281
|
-
children: capability.detail
|
|
282
|
-
})]
|
|
283
|
-
})]
|
|
284
|
-
}, capability.id))
|
|
285
|
-
})
|
|
286
|
-
]
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
130
|
//#endregion
|
|
290
131
|
//#region src/lib/provider-presentation.ts
|
|
291
132
|
var RECOMMENDED = new Set([
|
|
@@ -309,7 +150,6 @@ function providerMatches(provider, query) {
|
|
|
309
150
|
provider.id,
|
|
310
151
|
provider.displayName,
|
|
311
152
|
provider.hint ?? "",
|
|
312
|
-
provider.envHint,
|
|
313
153
|
...provider.fields.flatMap((field) => [field.label, field.envVar]),
|
|
314
154
|
...provider.curated,
|
|
315
155
|
...provider.catalog
|
|
@@ -360,14 +200,14 @@ function providerReadiness(provider) {
|
|
|
360
200
|
tone: "warning"
|
|
361
201
|
};
|
|
362
202
|
return {
|
|
363
|
-
label: "
|
|
364
|
-
tone: "
|
|
203
|
+
label: "Enabled",
|
|
204
|
+
tone: "neutral"
|
|
365
205
|
};
|
|
366
206
|
}
|
|
367
207
|
//#endregion
|
|
368
208
|
//#region src/routes/config/index.tsx?tsr-split=component
|
|
369
209
|
function ProvidersPage() {
|
|
370
|
-
const { providers, openaiCodex,
|
|
210
|
+
const { providers, openaiCodex, runtime, readiness } = Route.useLoaderData();
|
|
371
211
|
const setupComplete = providers.some((p) => p.enabled && p.curated.length > 0);
|
|
372
212
|
const startedComplete = useRef(setupComplete);
|
|
373
213
|
const [showCompletion, setShowCompletion] = useState(false);
|
|
@@ -379,59 +219,32 @@ function ProvidersPage() {
|
|
|
379
219
|
if (!startedComplete.current && setupComplete) setShowCompletion(true);
|
|
380
220
|
}, [setupComplete]);
|
|
381
221
|
return /* @__PURE__ */ jsxs(ConfigPage, {
|
|
382
|
-
active: "providers",
|
|
383
222
|
title: "Providers",
|
|
384
223
|
description: /* @__PURE__ */ jsx(Fragment, { children: "Connect the model services your agents may use. Credentials stay encrypted; advanced endpoint and environment names remain available inside each provider." }),
|
|
385
224
|
children: [
|
|
386
225
|
/* @__PURE__ */ jsxs("div", {
|
|
387
226
|
className: "grid gap-3 sm:grid-cols-3",
|
|
388
|
-
"aria-label": "Provider summary",
|
|
389
227
|
children: [
|
|
390
|
-
/* @__PURE__ */ jsx(
|
|
228
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
391
229
|
label: "Configured",
|
|
392
230
|
value: configured,
|
|
393
231
|
detail: "credentials, models, or toggle"
|
|
394
232
|
}),
|
|
395
|
-
/* @__PURE__ */ jsx(
|
|
233
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
396
234
|
label: "Enabled",
|
|
397
235
|
value: enabled,
|
|
398
|
-
detail: "available to
|
|
236
|
+
detail: "available to agents"
|
|
399
237
|
}),
|
|
400
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(Stat, {
|
|
401
239
|
label: "Selected models",
|
|
402
240
|
value: providers.reduce((count, provider) => count + (provider.enabled ? provider.curated.length : 0), 0),
|
|
403
|
-
detail: "
|
|
241
|
+
detail: "across enabled providers"
|
|
404
242
|
})
|
|
405
243
|
]
|
|
406
244
|
}),
|
|
407
|
-
/* @__PURE__ */ jsx(InstallationReadinessCard, {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}),
|
|
411
|
-
/* @__PURE__ */ jsxs("details", {
|
|
412
|
-
className: "rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
413
|
-
children: [/* @__PURE__ */ jsxs("summary", {
|
|
414
|
-
className: "flex min-h-12 cursor-pointer list-none items-center gap-3 px-4 py-3 text-sm font-semibold text-foreground marker:hidden sm:px-5",
|
|
415
|
-
children: [
|
|
416
|
-
/* @__PURE__ */ jsx(ShieldCheck, {
|
|
417
|
-
className: "size-4 text-primary",
|
|
418
|
-
"aria-hidden": "true"
|
|
419
|
-
}),
|
|
420
|
-
"Execution security",
|
|
421
|
-
/* @__PURE__ */ jsx("span", {
|
|
422
|
-
className: "ml-auto text-xs font-normal text-muted-foreground",
|
|
423
|
-
children: "Inspect host and protected-turn posture"
|
|
424
|
-
}),
|
|
425
|
-
/* @__PURE__ */ jsx(ChevronDown, {
|
|
426
|
-
className: "size-4 text-muted-foreground",
|
|
427
|
-
"aria-hidden": "true"
|
|
428
|
-
})
|
|
429
|
-
]
|
|
430
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
431
|
-
className: "border-t border-border p-3 sm:p-4",
|
|
432
|
-
children: /* @__PURE__ */ jsx(ExecutionSecurityCard, { status: executionSecurity })
|
|
433
|
-
})]
|
|
434
|
-
}),
|
|
245
|
+
/* @__PURE__ */ jsx(InstallationReadinessCard, { report: readiness }),
|
|
246
|
+
/* @__PURE__ */ jsx(BackupCard, {}),
|
|
247
|
+
/* @__PURE__ */ jsx(RuntimeCard, { shell: runtime }),
|
|
435
248
|
!setupComplete && /* @__PURE__ */ jsx(SetupBlockerBanner, {
|
|
436
249
|
providers,
|
|
437
250
|
openaiCodex
|
|
@@ -561,25 +374,6 @@ function ProvidersPage() {
|
|
|
561
374
|
]
|
|
562
375
|
});
|
|
563
376
|
}
|
|
564
|
-
function SummaryStat({ label, value, detail }) {
|
|
565
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
566
|
-
className: "min-w-0 rounded-2xl border border-border bg-card p-4 shadow-baziu-sm",
|
|
567
|
-
children: [
|
|
568
|
-
/* @__PURE__ */ jsx("div", {
|
|
569
|
-
className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
570
|
-
children: label
|
|
571
|
-
}),
|
|
572
|
-
/* @__PURE__ */ jsx("div", {
|
|
573
|
-
className: "mt-1 text-2xl font-semibold text-foreground",
|
|
574
|
-
children: value
|
|
575
|
-
}),
|
|
576
|
-
/* @__PURE__ */ jsx("div", {
|
|
577
|
-
className: "mt-0.5 text-xs leading-5 text-muted-foreground",
|
|
578
|
-
children: detail
|
|
579
|
-
})
|
|
580
|
-
]
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
377
|
function SetupBlockerBanner({ providers, openaiCodex }) {
|
|
584
378
|
const issues = [];
|
|
585
379
|
for (const p of providers) {
|
|
@@ -625,24 +419,20 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
625
419
|
...p,
|
|
626
420
|
enabled
|
|
627
421
|
});
|
|
422
|
+
const providerPath = `/api/config/providers/${encodeURIComponent(p.id)}`;
|
|
628
423
|
async function toggle(next) {
|
|
629
424
|
setEnabled(next);
|
|
630
425
|
setToggleError(null);
|
|
631
426
|
try {
|
|
632
|
-
|
|
427
|
+
await api(`${providerPath}/enabled`, {
|
|
633
428
|
method: "PUT",
|
|
634
|
-
|
|
635
|
-
body: JSON.stringify({ enabled: next })
|
|
429
|
+
body: { enabled: next }
|
|
636
430
|
});
|
|
637
|
-
if (!response.ok) {
|
|
638
|
-
const body = await response.json().catch(() => null);
|
|
639
|
-
throw new Error(body?.error ?? `Could not update provider (${response.status})`);
|
|
640
|
-
}
|
|
641
431
|
if (next) setExpanded(true);
|
|
642
432
|
await router.invalidate();
|
|
643
433
|
} catch (error) {
|
|
644
434
|
setEnabled(!next);
|
|
645
|
-
setToggleError(
|
|
435
|
+
setToggleError(errorMessage(error));
|
|
646
436
|
}
|
|
647
437
|
}
|
|
648
438
|
async function saveModels(e) {
|
|
@@ -651,18 +441,12 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
651
441
|
setModelStatus(null);
|
|
652
442
|
try {
|
|
653
443
|
const list = models.split(/\r?\n/).map((s) => s.trim()).filter(Boolean);
|
|
654
|
-
const res = await fetch(`/api/config/providers/${encodeURIComponent(p.id)}/models`, {
|
|
655
|
-
method: "PUT",
|
|
656
|
-
headers: { "content-type": "application/json" },
|
|
657
|
-
body: JSON.stringify({ models: list })
|
|
658
|
-
});
|
|
659
|
-
if (!res.ok) {
|
|
660
|
-
const j = await res.json().catch(() => ({}));
|
|
661
|
-
throw new Error(j.error ?? `${res.status} ${res.statusText}`);
|
|
662
|
-
}
|
|
663
444
|
setModelStatus({
|
|
664
445
|
kind: "success",
|
|
665
|
-
message: "Models saved.
|
|
446
|
+
message: ["Models saved.", ...(await api(`${providerPath}/models`, {
|
|
447
|
+
method: "PUT",
|
|
448
|
+
body: { models: list }
|
|
449
|
+
})).movedTemplates.map((t) => `Template ${t.name} now uses ${t.model}.`)].join(" ")
|
|
666
450
|
});
|
|
667
451
|
setTestModel(list[0] ?? "");
|
|
668
452
|
setTestResult(null);
|
|
@@ -670,7 +454,7 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
670
454
|
} catch (e) {
|
|
671
455
|
setModelStatus({
|
|
672
456
|
kind: "error",
|
|
673
|
-
message: e
|
|
457
|
+
message: errorMessage(e)
|
|
674
458
|
});
|
|
675
459
|
} finally {
|
|
676
460
|
setSavingModels(false);
|
|
@@ -681,16 +465,10 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
681
465
|
setTesting(true);
|
|
682
466
|
setTestResult(null);
|
|
683
467
|
try {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
model: `${p.id}:${testModel}`,
|
|
689
|
-
message: "Reply with exactly: Bazilion connection verified."
|
|
690
|
-
})
|
|
691
|
-
});
|
|
692
|
-
const body = await response.json().catch(() => null);
|
|
693
|
-
if (!response.ok) throw new Error(body?.error ?? `Connection test failed (${response.status})`);
|
|
468
|
+
await api("/api/providers/test", { body: {
|
|
469
|
+
model: `${p.id}:${testModel}`,
|
|
470
|
+
message: "Reply with exactly: Bazilion connection verified."
|
|
471
|
+
} });
|
|
694
472
|
setTestResult({
|
|
695
473
|
kind: "success",
|
|
696
474
|
message: `Verified ${p.displayName} with ${testModel}.`
|
|
@@ -699,7 +477,7 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
699
477
|
} catch (error) {
|
|
700
478
|
setTestResult({
|
|
701
479
|
kind: "error",
|
|
702
|
-
message:
|
|
480
|
+
message: errorMessage(error)
|
|
703
481
|
});
|
|
704
482
|
} finally {
|
|
705
483
|
setTesting(false);
|
|
@@ -731,8 +509,8 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
731
509
|
})]
|
|
732
510
|
})]
|
|
733
511
|
}),
|
|
734
|
-
/* @__PURE__ */ jsx(StatusBadge
|
|
735
|
-
variant: readiness.tone
|
|
512
|
+
/* @__PURE__ */ jsx(StatusBadge, {
|
|
513
|
+
variant: readiness.tone,
|
|
736
514
|
children: readiness.label
|
|
737
515
|
}),
|
|
738
516
|
/* @__PURE__ */ jsxs("label", {
|
|
@@ -780,13 +558,6 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
780
558
|
children: p.hint
|
|
781
559
|
}),
|
|
782
560
|
p.id === "openai-codex" && openaiCodexStatus && /* @__PURE__ */ jsx(OpenAICodexCard, { status: openaiCodexStatus }),
|
|
783
|
-
p.fields.length === 0 && p.envHint && p.id !== "openai-codex" && /* @__PURE__ */ jsxs("p", {
|
|
784
|
-
className: "text-xs text-muted-foreground",
|
|
785
|
-
children: ["Credentials come from the process env: ", /* @__PURE__ */ jsx("code", {
|
|
786
|
-
className: "font-mono",
|
|
787
|
-
children: p.envHint
|
|
788
|
-
})]
|
|
789
|
-
}),
|
|
790
561
|
p.fields.map((f) => /* @__PURE__ */ jsx(FieldRow, { field: f }, f.envVar)),
|
|
791
562
|
/* @__PURE__ */ jsx("h4", {
|
|
792
563
|
id: `provider-${p.id}-models-label`,
|
|
@@ -800,10 +571,9 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
800
571
|
" ",
|
|
801
572
|
/* @__PURE__ */ jsx("code", {
|
|
802
573
|
className: "font-mono",
|
|
803
|
-
children:
|
|
574
|
+
children: p.catalog[0] ?? p.live?.models[0] ?? "model-name"
|
|
804
575
|
}),
|
|
805
|
-
") and click",
|
|
806
|
-
" ",
|
|
576
|
+
") and click ",
|
|
807
577
|
/* @__PURE__ */ jsx("em", { children: "save models" }),
|
|
808
578
|
". Catalog chips below are the safest source when available."
|
|
809
579
|
]
|
|
@@ -894,55 +664,6 @@ function ProviderCard({ p, openaiCodexStatus, initiallyOpen }) {
|
|
|
894
664
|
]
|
|
895
665
|
});
|
|
896
666
|
}
|
|
897
|
-
function exampleModelFor(providerId) {
|
|
898
|
-
switch (providerId) {
|
|
899
|
-
case "openai-codex": return "gpt-6-astra";
|
|
900
|
-
case "openai": return "gpt-6-astra";
|
|
901
|
-
case "anthropic": return "claude-opus-5";
|
|
902
|
-
case "google": return "gemini-3.6-flash";
|
|
903
|
-
case "google-vertex": return "gemini-3.6-flash";
|
|
904
|
-
case "xai": return "grok-4.5";
|
|
905
|
-
case "groq": return "llama-3.3-70b-versatile";
|
|
906
|
-
case "cerebras": return "gpt-oss-120b";
|
|
907
|
-
case "mistral": return "mistral-large-latest";
|
|
908
|
-
case "zai": return "glm-5.2";
|
|
909
|
-
case "huggingface": return "Qwen/Qwen3.5-397B-A17B";
|
|
910
|
-
case "openrouter": return "anthropic/claude-opus-5";
|
|
911
|
-
case "vercel-ai-gateway": return "anthropic/claude-opus-5";
|
|
912
|
-
case "deepseek": return "deepseek-v4-pro";
|
|
913
|
-
case "fireworks": return "accounts/fireworks/models/kimi-k3";
|
|
914
|
-
case "together": return "moonshotai/Kimi-K3";
|
|
915
|
-
case "baseten": return "moonshotai/Kimi-K3";
|
|
916
|
-
case "moonshotai": return "kimi-k3";
|
|
917
|
-
case "moonshotai-cn": return "kimi-k3";
|
|
918
|
-
case "kimi-coding": return "kimi-for-coding";
|
|
919
|
-
case "minimax": return "MiniMax-M2.7";
|
|
920
|
-
case "minimax-cn": return "MiniMax-M3";
|
|
921
|
-
case "qwen-token-plan": return "qwen3.8-max";
|
|
922
|
-
case "qwen-token-plan-cn":
|
|
923
|
-
case "qwen-token-plan-individual": return "qwen3.8-max";
|
|
924
|
-
case "ant-ling": return "Ling-2.6-1T";
|
|
925
|
-
case "nvidia": return "nvidia/nemotron-3-super-120b-a12b";
|
|
926
|
-
case "cloudflare-workers-ai": return "@cf/moonshotai/kimi-k2.6";
|
|
927
|
-
case "cloudflare-ai-gateway": return "claude-opus-5";
|
|
928
|
-
case "github-copilot": return "claude-opus-5";
|
|
929
|
-
case "xiaomi": return "mimo-v2.5";
|
|
930
|
-
case "xiaomi-token-plan-ams":
|
|
931
|
-
case "xiaomi-token-plan-cn":
|
|
932
|
-
case "xiaomi-token-plan-sgp": return "mimo-v2.5-pro";
|
|
933
|
-
case "opencode": return "claude-opus-5";
|
|
934
|
-
case "opencode-go": return "kimi-k2.7-code";
|
|
935
|
-
case "zai-coding-cn": return "glm-5.3";
|
|
936
|
-
case "meta": return "muse-spark-1.3";
|
|
937
|
-
case "radius": return "claude-sonnet-5";
|
|
938
|
-
case "azure-openai": return "gpt-5.6-luna";
|
|
939
|
-
case "bedrock": return "global.anthropic.claude-opus-5";
|
|
940
|
-
case "ollama": return "llama3.3";
|
|
941
|
-
case "lmstudio": return "qwen3-coder-30b";
|
|
942
|
-
case "llamacpp": return "unsloth/Qwen3.6-35B-A3B-MTP-GGUF:MXFP4_MOE";
|
|
943
|
-
default: return "model-name";
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
667
|
function ChipList({ items, onPick }) {
|
|
947
668
|
return /* @__PURE__ */ jsx("div", {
|
|
948
669
|
className: "flex flex-wrap gap-1.5 max-h-40 overflow-y-auto rounded-md border bg-background p-1.5",
|
|
@@ -971,19 +692,15 @@ function OpenAICodexCard({ status }) {
|
|
|
971
692
|
setBusy(true);
|
|
972
693
|
setErr(null);
|
|
973
694
|
try {
|
|
974
|
-
|
|
695
|
+
await api("/api/auth/openai/login", {
|
|
975
696
|
method: "POST",
|
|
976
697
|
signal: controller.signal
|
|
977
698
|
});
|
|
978
|
-
if (!res.ok) {
|
|
979
|
-
const j = await res.json().catch(() => ({}));
|
|
980
|
-
throw new Error(j.error ?? `${res.status} ${res.statusText}`);
|
|
981
|
-
}
|
|
982
699
|
if (controller.signal.aborted) return;
|
|
983
700
|
await router.invalidate();
|
|
984
701
|
} catch (e) {
|
|
985
702
|
if (controller.signal.aborted) return;
|
|
986
|
-
setErr(e
|
|
703
|
+
setErr(errorMessage(e));
|
|
987
704
|
} finally {
|
|
988
705
|
if (loginRequest.current === controller) {
|
|
989
706
|
loginRequest.current = null;
|
|
@@ -995,14 +712,10 @@ function OpenAICodexCard({ status }) {
|
|
|
995
712
|
setBusy(true);
|
|
996
713
|
setErr(null);
|
|
997
714
|
try {
|
|
998
|
-
|
|
999
|
-
if (!response.ok && response.status !== 204) {
|
|
1000
|
-
const body = await response.json().catch(() => null);
|
|
1001
|
-
throw new Error(body?.error ?? `Could not disconnect ChatGPT (${response.status})`);
|
|
1002
|
-
}
|
|
715
|
+
await api("/api/auth/openai", { method: "DELETE" });
|
|
1003
716
|
await router.invalidate();
|
|
1004
717
|
} catch (e) {
|
|
1005
|
-
setErr(
|
|
718
|
+
setErr(errorMessage(e));
|
|
1006
719
|
throw e;
|
|
1007
720
|
} finally {
|
|
1008
721
|
setBusy(false);
|
|
@@ -1026,11 +739,7 @@ function OpenAICodexCard({ status }) {
|
|
|
1026
739
|
}),
|
|
1027
740
|
status.expiresAt && /* @__PURE__ */ jsxs("span", {
|
|
1028
741
|
className: "text-xs text-muted-foreground",
|
|
1029
|
-
children: [
|
|
1030
|
-
"token expires",
|
|
1031
|
-
" ",
|
|
1032
|
-
new Date(status.expiresAt).toISOString().replace(/\.\d+Z$/, "Z")
|
|
1033
|
-
]
|
|
742
|
+
children: ["token expires ", new Date(status.expiresAt).toISOString().replace(/\.\d+Z$/, "Z")]
|
|
1034
743
|
})
|
|
1035
744
|
]
|
|
1036
745
|
}), /* @__PURE__ */ jsx(Button, {
|