@camera.ui/server 2.2.5 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/dist/interface/assets/{404-CiOxoqnT.js → 404-BLVuKvLk.js} +1 -1
  2. package/dist/interface/assets/{About-DWOlfWEm.js → About-C-AJ0jfI.js} +1 -1
  3. package/dist/interface/assets/Assistant-BJKGIvVo.js +1 -0
  4. package/dist/interface/assets/{Assistant-CXx7EY1W.css → Assistant-BQ6Ld-bt.css} +1 -1
  5. package/dist/interface/assets/{Automation-BJgwUkUB.js → Automation-C95DzuZb.js} +3 -3
  6. package/dist/interface/assets/{AutomationImport-9GRAndAt.js → AutomationImport-C8VYjDzf.js} +2 -2
  7. package/dist/interface/assets/{AutomationStore-D_HR2Xby.js → AutomationStore-CE4PKRGd.js} +2 -2
  8. package/dist/interface/assets/{AutomationStoreDetail-B9MxV2py.js → AutomationStoreDetail-DavWfjLv.js} +2 -2
  9. package/dist/interface/assets/Automations-BOP_17Ri.js +2 -0
  10. package/dist/interface/assets/Camera-BW9ikKqh.css +1 -0
  11. package/dist/interface/assets/Camera-C5S7eI9a.js +2 -0
  12. package/dist/interface/assets/{CameraConsole-BKPTLSTO.js → CameraConsole-C4AmtcrM.js} +1 -1
  13. package/dist/interface/assets/{Cameras-DcrVCgLy.js → Cameras-DR577Bno.js} +2 -2
  14. package/dist/interface/assets/{Camview-DasO326h.css → Camview-Bri_T7Tq.css} +1 -1
  15. package/dist/interface/assets/Camview-CHxKB41T.js +1 -0
  16. package/dist/interface/assets/{Config-BmEL5EaW.js → Config-BrDDGWpr.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionAssistant-DM4tIhoa.js → ConfigActionAssistant-YtCVI8LZ.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionCameraControl-Deo0eDPS.js → ConfigActionCameraControl-Dg_1zOYt.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionHttp-BxJmoshF.js → ConfigActionHttp-BzwLv2tn.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionImageInput-KrzXFQDm.js → ConfigActionImageInput-CLdY2sV4.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionMqtt-BoYBomRC.js → ConfigActionMqtt-lGqYshl3.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotification-CSAOijDt.js → ConfigActionNotification-D5Dj3EoU.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionNotificationControl-BOdyKiOs.js → ConfigActionNotificationControl-Dy5fKamr.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionOutput-CwsPcnd_.js → ConfigActionOutput-DzsQ31L0.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionPlugin-D3wyULpp.js → ConfigActionPlugin-BFrBcXvL.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSensor-BmeaIxYY.js → ConfigActionSensor-CX8ePlan.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionSnapshot-DbyFKcYr.js → ConfigActionSnapshot-BATLRmh6.js} +1 -1
  28. package/dist/interface/assets/{ConfigActionVariable-cThGJ1Pc.js → ConfigActionVariable-Dgn5jvaR.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionIfElse-BugkJeXR.js → ConfigConditionIfElse-D5IIBjyk.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSensorState-Bf-mMf4E.js → ConfigConditionSensorState-C0JxBWdG.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionSwitch-DcpFoYET.js → ConfigConditionSwitch-Brlgd0XP.js} +1 -1
  32. package/dist/interface/assets/{ConfigSensorValueInput-CgAI34__.js → ConfigSensorValueInput-CtuH8dCa.js} +1 -1
  33. package/dist/interface/assets/{ConfigTriggerDetection-BWK6gfwM.js → ConfigTriggerDetection-DsL7lLQl.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerGeofence-Cm3CU7Tl.js → ConfigTriggerGeofence-CAGIk1_W.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerMqtt-BMFjTAso.js → ConfigTriggerMqtt-B_iFalAQ.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerSensor-DOdJkZRo.js → ConfigTriggerSensor-hYNbLXUu.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerSystem-BFDIbZsE.js → ConfigTriggerSystem-DR1EFpE9.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerWebhook-DDoUEVHb.js → ConfigTriggerWebhook-C-B5GGFH.js} +1 -1
  39. package/dist/interface/assets/{Console-BIj7cIqO.js → Console-cIr6lYux.js} +1 -1
  40. package/dist/interface/assets/CuiAssistantConversation-Bigl43Ph.js +5 -0
  41. package/dist/interface/assets/CuiAssistantConversation-BmshW6Vc.css +1 -0
  42. package/dist/interface/assets/{CuiAutomationRunsDialog-DMUfNcsf.js → CuiAutomationRunsDialog-Ci7SWAml.js} +1 -1
  43. package/dist/interface/assets/{CuiBottomSheet-FwsPnJ3n.js → CuiBottomSheet-C2sM2E3M.js} +1 -1
  44. package/dist/interface/assets/CuiBottomSheet-ViBOgklN.js +1 -0
  45. package/dist/interface/assets/CuiCameraPipCard-wdK7xir-.js +1 -0
  46. package/dist/interface/assets/{CuiCameraRecordings-BeciatDY.js → CuiCameraRecordings-BB7bF67B.js} +1 -1
  47. package/dist/interface/assets/{CuiCameraShares-CSFwIYsg.js → CuiCameraShares-B6jdUBVm.js} +1 -1
  48. package/dist/interface/assets/CuiCameraTable-CHnQFkce.js +1 -0
  49. package/dist/interface/assets/{CuiCameraTable-DBRfGX3I.js → CuiCameraTable-CpBo25Qc.js} +1 -1
  50. package/dist/interface/assets/{CuiChartTable-CtasoxMM.js → CuiChartTable-dIcxGtfl.js} +1 -1
  51. package/dist/interface/assets/{CuiConsole-DQbAafiz.js → CuiConsole-BGptpT6r.js} +1 -1
  52. package/dist/interface/assets/{CuiDataTable-JlD7Agky.js → CuiDataTable-CQmp5mAy.js} +1 -1
  53. package/dist/interface/assets/CuiLightControl-wbZi3fA1.js +1 -0
  54. package/dist/interface/assets/CuiPluginCard-BjIc7It9.js +2 -0
  55. package/dist/interface/assets/{CuiPluginCategoryChip-B2bR5LQa.js → CuiPluginCategoryChip-BtJ_6_gN.js} +1 -1
  56. package/dist/interface/assets/{CuiPluginOAuthButton-DfEjfcY-.js → CuiPluginOAuthButton-Duf35I8K.js} +2 -2
  57. package/dist/interface/assets/{CuiPluginTrustBadge-C6CW6Soh.js → CuiPluginTrustBadge-jxXeRTH2.js} +1 -1
  58. package/dist/interface/assets/{CuiQRCode-DGKBhDib.js → CuiQRCode-BNchrpoB.js} +1 -1
  59. package/dist/interface/assets/{CuiSchema-pAAVh28m.js → CuiSchema-DGTMkVSe.js} +1 -1
  60. package/dist/interface/assets/{CuiTopNavbarItem-ve-3Dsc3.js → CuiTopNavbarItem-CHtLvn53.js} +1 -1
  61. package/dist/interface/assets/Faces-p18jNfXl.js +1 -0
  62. package/dist/interface/assets/FirstSteps-HzaBMDbH.js +1 -0
  63. package/dist/interface/assets/Floorplan-DYyEx7WO.js +1 -0
  64. package/dist/interface/assets/Instances-Dl-6rL5O.js +1 -0
  65. package/dist/interface/assets/{Logs-BhRactvQ.js → Logs-DsJkuQFq.js} +2 -2
  66. package/dist/interface/assets/{Menu-DMCmUVDs.js → Menu-D_woMkjL.js} +1 -1
  67. package/dist/interface/assets/Metrics-l3UwykCM.js +12 -0
  68. package/dist/interface/assets/{OAuthDeviceFlow-BMEwVkIa.js → OAuthDeviceFlow-CXfILAE1.js} +1 -1
  69. package/dist/interface/assets/Plugin-Ldj3HygQ.js +1 -0
  70. package/dist/interface/assets/{PluginConsole-C4Ba_U_1.js → PluginConsole-C96m5zKy.js} +1 -1
  71. package/dist/interface/assets/{PluginDetail-13OWIzdd.js → PluginDetail-CnfaI1vh.js} +2 -2
  72. package/dist/interface/assets/{PluginSchema-DN0cSU8s.js → PluginSchema-u1bqXU29.js} +1 -1
  73. package/dist/interface/assets/{PluginSearch-sPkO8aH3.js → PluginSearch-BiXG3Xk2.js} +2 -2
  74. package/dist/interface/assets/PluginSearch-BuE7we1T.js +1 -0
  75. package/dist/interface/assets/{PluginUpdateProgress-CeWuRp3Z.js → PluginUpdateProgress-BT4lN9HT.js} +1 -1
  76. package/dist/interface/assets/{Plugins-C8yjhxnQ.js → Plugins-Csx6AXaW.js} +1 -1
  77. package/dist/interface/assets/Recordings-BEKAn6QK.css +1 -0
  78. package/dist/interface/assets/Recordings-D0KTY5cI.js +1 -0
  79. package/dist/interface/assets/{SensorEdit-C-yJdJuP.js → SensorEdit-zs-f_o1N.js} +1 -1
  80. package/dist/interface/assets/{SensorHistory-ClAcOgHj.js → SensorHistory-Cet35_RO.js} +1 -1
  81. package/dist/interface/assets/Sensors-BLAoalEt.js +2 -0
  82. package/dist/interface/assets/Settings-C-LCDIbK.js +1 -0
  83. package/dist/interface/assets/SettingsAccount-BsN7jGmo.js +1 -0
  84. package/dist/interface/assets/SettingsAccount-DuVyCSE-.js +1 -0
  85. package/dist/interface/assets/{SettingsAppearance-CJt4xJEW.js → SettingsAppearance-BS4EQNjH.js} +1 -1
  86. package/dist/interface/assets/SettingsAppearance-DQcGbYbV.js +1 -0
  87. package/dist/interface/assets/SettingsAssistant-B0PF3Rdg.css +1 -0
  88. package/dist/interface/assets/SettingsAssistant-DViJklFd.js +1 -0
  89. package/dist/interface/assets/{SettingsBackup-DIJmci05.js → SettingsBackup-DBlV1gej.js} +1 -1
  90. package/dist/interface/assets/{SettingsList-Cb_dLy5T.js → SettingsList-D8eSwbBY.js} +1 -1
  91. package/dist/interface/assets/{SettingsMqtt-LIuCRPT5.js → SettingsMqtt-JoszJJgV.js} +1 -1
  92. package/dist/interface/assets/{SettingsNotifications-CZxqqH_8.js → SettingsNotifications-3veSrxa_.js} +1 -1
  93. package/dist/interface/assets/{SettingsRecordings-BEpwMh-y.js → SettingsRecordings-CLz9Zp47.js} +1 -1
  94. package/dist/interface/assets/{SettingsRemote-DRt-N_yA.js → SettingsRemote-DUyl8k7I.js} +2 -2
  95. package/dist/interface/assets/{SettingsSystem-Cncdpx8T.js → SettingsSystem-txTFGomQ.js} +2 -2
  96. package/dist/interface/assets/{SettingsUsers-DZkz8WlI.js → SettingsUsers-CUp6vQPc.js} +1 -1
  97. package/dist/interface/assets/{Terminal-U4yfJN3O.js → Terminal-hln2UuSR.js} +2 -2
  98. package/dist/interface/assets/Training-D6lhvUf-.js +1 -0
  99. package/dist/interface/assets/Updates-BwSWt9w7.js +2 -0
  100. package/dist/interface/assets/{VariableInput-PVsqGYW0.js → VariableInput-183LygmK.js} +1 -1
  101. package/dist/interface/assets/{VersionsHandler-Df7dhddp.js → VersionsHandler-DkbkcypK.js} +1 -1
  102. package/dist/interface/assets/{VirtualSensorCreate-FTKANjd-.js → VirtualSensorCreate-Bn4tgdxA.js} +1 -1
  103. package/dist/interface/assets/Workers-B6b15izn.js +2 -0
  104. package/dist/interface/assets/api-C9mnOxie.js +4 -0
  105. package/dist/interface/assets/api-Cj9a6qPu.css +2 -0
  106. package/dist/interface/assets/{api-DpqXhwcx.js → api-h4HRB3ef.js} +1 -1
  107. package/dist/interface/assets/{assistant-Lz3mFLDo.js → assistant-4hYyIu6D.js} +1 -1
  108. package/dist/interface/assets/{auth-L7_5vsJs.js → auth-DFesRtwI.js} +1 -1
  109. package/dist/interface/assets/{automations-D1XFFSrm.js → automations-D2bnX8uw.js} +1 -1
  110. package/dist/interface/assets/{cameraSources-DEGJDtmK.js → cameraSources-DmVZWs4-.js} +1 -1
  111. package/dist/interface/assets/cloudHandoff-Ba98bzeq.js +1 -0
  112. package/dist/interface/assets/{config-CVqy37fG.js → config-DDaCrMSU.js} +1 -1
  113. package/dist/interface/assets/esm-Bn9gXwX4.js +1 -0
  114. package/dist/interface/assets/esm-BzM6y2-F.js +1 -0
  115. package/dist/interface/assets/esm-CP3JWrtj.js +1 -0
  116. package/dist/interface/assets/esm-CjAXkqCf.js +1 -0
  117. package/dist/interface/assets/esm-Cqxk-j1S.js +1 -0
  118. package/dist/interface/assets/esm-DFHd3JNU.js +1 -0
  119. package/dist/interface/assets/esm-DfMLJtug.js +1 -0
  120. package/dist/interface/assets/esm-DhDrpq7a.js +1 -0
  121. package/dist/interface/assets/esm-DvhM-SOd.js +1 -0
  122. package/dist/interface/assets/esm-G63bqygQ.js +1 -0
  123. package/dist/interface/assets/esm-Gn-Y59hU.js +1 -0
  124. package/dist/interface/assets/esm-KJSOz2vj.js +1 -0
  125. package/dist/interface/assets/esm-Ryfc94Tm.js +1 -0
  126. package/dist/interface/assets/esm-rSfI5Poy.js +1 -0
  127. package/dist/interface/assets/{flowSchema-CppNBDy1.js → flowSchema-YJtAu9gB.js} +1 -1
  128. package/dist/interface/assets/main-C796FmqQ.js +3 -0
  129. package/dist/interface/assets/{main-Bo0Lb1y2.css → main-DVa5U7UB.css} +1 -1
  130. package/dist/interface/assets/{mqtt-BENV9Fx4.js → mqtt-DGBPptzB.js} +1 -1
  131. package/dist/interface/assets/native-CZJE8bTs.js +1 -0
  132. package/dist/interface/assets/native-DKZwialB.js +1 -0
  133. package/dist/interface/assets/{notifications-By40oPng.js → notifications-5yeK345h.js} +1 -1
  134. package/dist/interface/assets/plugin-DSEMkqaK.js +1 -0
  135. package/dist/interface/assets/{plugins-09rEDbMz.js → plugins-BTOdE_zv.js} +1 -1
  136. package/dist/interface/assets/{rooms-LBxn-Uuu.js → rooms-BCdm6IAx.js} +1 -1
  137. package/dist/interface/assets/{sensorIcons-Csu5s0uk.js → sensorIcons-5Ynqwo3e.js} +1 -1
  138. package/dist/interface/assets/{sensorSlots-CtbKmsGG.js → sensorSlots-BF70tpV7.js} +1 -1
  139. package/dist/interface/assets/{sensors-CbzNs18A.js → sensors-CeFEEz8r.js} +1 -1
  140. package/dist/interface/assets/{server-Btp5KILd.js → server-bhW2Mw4D.js} +1 -1
  141. package/dist/interface/assets/{theme-GhzGwpqd.js → theme-DF_XA58O.js} +1 -1
  142. package/dist/interface/assets/{types-D8QWPhe-.js → types-ArGM5-5O.js} +1 -1
  143. package/dist/interface/assets/{types-BAwhu9iv.js → types-BcAxmlqC.js} +1 -1
  144. package/dist/interface/assets/{ungrouped-BMk56E3L.js → ungrouped-CkIlDUwl.js} +1 -1
  145. package/dist/interface/assets/{updates-CGo0T4sn.js → updates-D3x_kPMM.js} +1 -1
  146. package/dist/interface/assets/{useAppVersion-CJlexqyz.js → useAppVersion-Dcvu95bZ.js} +1 -1
  147. package/dist/interface/assets/{useBackupRestore-_s8vS5WF.js → useBackupRestore-xp5KhKVn.js} +1 -1
  148. package/dist/interface/assets/{useCameraOptions-CFISVNgk.js → useCameraOptions-8I4MTDgj.js} +1 -1
  149. package/dist/interface/assets/useKeyboardInset-C0Lp0UcX.js +1 -0
  150. package/dist/interface/assets/{useLogsSocket-D-ndWAg0.js → useLogsSocket-bpOiLgWT.js} +1 -1
  151. package/dist/interface/assets/{useNavLayout-CG0X_3kt.js → useNavLayout-Cjf6Da2u.js} +1 -1
  152. package/dist/interface/assets/{usePluginUpdates-nW_dt66E.js → usePluginUpdates-bOMj-IvL.js} +1 -1
  153. package/dist/interface/assets/{usePushRegistration-DCqOAxR4.js → usePushRegistration-HOvLuUVP.js} +2 -2
  154. package/dist/interface/assets/{useServerRestart-CxJGxAcU.js → useServerRestart-CQN4cdHJ.js} +1 -1
  155. package/dist/interface/assets/{useStreamStatus-CXb1HbAq.js → useStreamStatus-Da7c2Wme.js} +1 -1
  156. package/dist/interface/assets/{useTabSwipe-DHb8__wU.js → useTabSwipe-fFuyJJBQ.js} +1 -1
  157. package/dist/interface/assets/{useUpdateChannel-BR4PMh1R.js → useUpdateChannel-Ca1RX32u.js} +1 -1
  158. package/dist/interface/assets/{useUpdatesSocket-DKDRZhvc.js → useUpdatesSocket-DHZNpLQX.js} +1 -1
  159. package/dist/interface/assets/{useUserOptions-lyc4WJ4L.js → useUserOptions-BQdOB-Dp.js} +1 -1
  160. package/dist/interface/assets/{vendor-capacitor-f9ShAzys.js → vendor-capacitor-Bs_WzL0Q.js} +2 -2
  161. package/dist/interface/assets/web-BDNQnMmA.js +1 -0
  162. package/dist/interface/assets/web-BhJykCtq.js +1 -0
  163. package/dist/interface/assets/web-BjKL51lK-wWFeZlLg.js +1 -0
  164. package/dist/interface/assets/web-C7nJwIOa.js +1 -0
  165. package/dist/interface/assets/web-CGJsJQDb.js +1 -0
  166. package/dist/interface/assets/web-CJwASxrl.js +1 -0
  167. package/dist/interface/assets/web-CLe0L31Y.js +1 -0
  168. package/dist/interface/assets/web-DEv1hAn1.js +1 -0
  169. package/dist/interface/assets/web-DaeQvsXT.js +1 -0
  170. package/dist/interface/assets/web-H3-wNunW.js +1 -0
  171. package/dist/interface/assets/web-LCdyqJq1.js +1 -0
  172. package/dist/interface/assets/web-XZWYTK65.js +1 -0
  173. package/dist/interface/assets/web-rU5hlxxW.js +1 -0
  174. package/dist/interface/ha/{404-B2T8Gktj.js → 404-C0mWQGWl.js} +1 -1
  175. package/dist/interface/ha/{About-CrTKzU9_.js → About-ByE7XErJ.js} +3 -3
  176. package/dist/interface/ha/{Assistant-BDHJmYx_.js → Assistant-Z3FTR868.js} +2264 -2133
  177. package/dist/interface/ha/{Automation-Czo5EsAg.js → Automation-COQqTFNw.js} +170 -170
  178. package/dist/interface/ha/{AutomationImport-CuFAQbiX.js → AutomationImport-ueWqMBX9.js} +6 -6
  179. package/dist/interface/ha/{AutomationStore-D-6x0JIt.js → AutomationStore-DBO4aZqy.js} +73 -73
  180. package/dist/interface/ha/{AutomationStoreDetail-Dad4q1MN.js → AutomationStoreDetail-DMnYu7hf.js} +6 -6
  181. package/dist/interface/ha/{Automations-C-oGM5SR.js → Automations-CMdbidc0.js} +70 -70
  182. package/dist/interface/ha/Camera-C28q_3pu.js +657 -0
  183. package/dist/interface/ha/{CameraConsole-hRGwbjsD.js → CameraConsole-oMNZfKE6.js} +3 -3
  184. package/dist/interface/ha/{Cameras-Bk5TFXA8.js → Cameras-CsqrLx97.js} +182 -182
  185. package/dist/interface/ha/{Camview-CsKKqxxY.js → Camview-Br0LUakz.js} +542 -542
  186. package/dist/interface/ha/{Config-Vl4-K3A_.js → Config-Y5eUNSW7.js} +110 -110
  187. package/dist/interface/ha/{ConfigActionAssistant-OWUX8glZ.js → ConfigActionAssistant-hl-6ZACj.js} +4 -4
  188. package/dist/interface/ha/{ConfigActionCameraControl-DEaOot8w.js → ConfigActionCameraControl-DnXlVFWD.js} +3 -3
  189. package/dist/interface/ha/{ConfigActionHttp-CSr2BpKL.js → ConfigActionHttp-BkpkMmRd.js} +2 -2
  190. package/dist/interface/ha/{ConfigActionImageInput--O8Tyca-.js → ConfigActionImageInput-Dp78_QS_.js} +1 -1
  191. package/dist/interface/ha/{ConfigActionMqtt-DQJ4-gs2.js → ConfigActionMqtt-DA_UWb5j.js} +4 -4
  192. package/dist/interface/ha/{ConfigActionNotification-wR8CCA_T.js → ConfigActionNotification-CQ4Ses3a.js} +3 -3
  193. package/dist/interface/ha/{ConfigActionNotificationControl-DNMrHwPz.js → ConfigActionNotificationControl-Cb5PNGz-.js} +2 -2
  194. package/dist/interface/ha/{ConfigActionOutput-C-LVFxFP.js → ConfigActionOutput-DLuNHwRb.js} +1 -1
  195. package/dist/interface/ha/{ConfigActionPlugin-BCREAkNo.js → ConfigActionPlugin-ChKFCNaj.js} +4 -4
  196. package/dist/interface/ha/{ConfigActionSensor-D48CQ6qR.js → ConfigActionSensor-DOutFalW.js} +5 -5
  197. package/dist/interface/ha/{ConfigActionSnapshot-DpDy88Mg.js → ConfigActionSnapshot-GWgY6YIN.js} +2 -2
  198. package/dist/interface/ha/{ConfigActionVariable-D9BxmwvB.js → ConfigActionVariable-bu-9VYTG.js} +1 -1
  199. package/dist/interface/ha/{ConfigConditionIfElse-CW42tQFY.js → ConfigConditionIfElse-iNp8tlZV.js} +3 -3
  200. package/dist/interface/ha/{ConfigConditionSensorState-BZpij7kB.js → ConfigConditionSensorState-Dn7kcHpJ.js} +4 -4
  201. package/dist/interface/ha/{ConfigConditionSwitch-DlTuJ9Sf.js → ConfigConditionSwitch-DaUlDgo0.js} +4 -4
  202. package/dist/interface/ha/{ConfigSensorValueInput-2QLHESlE.js → ConfigSensorValueInput-D6m6suqJ.js} +7 -7
  203. package/dist/interface/ha/{ConfigTriggerDetection-DPmUkmUJ.js → ConfigTriggerDetection-C5B_DC_L.js} +11 -11
  204. package/dist/interface/ha/{ConfigTriggerGeofence--T9OXhGl.js → ConfigTriggerGeofence-B4WVNcK5.js} +5 -5
  205. package/dist/interface/ha/{ConfigTriggerMqtt-fZn_X6yY.js → ConfigTriggerMqtt-wnMfk_Un.js} +1 -1
  206. package/dist/interface/ha/{ConfigTriggerSensor-_3O6iBFX.js → ConfigTriggerSensor-xFpI5KPu.js} +1 -1
  207. package/dist/interface/ha/{ConfigTriggerSystem-CC9lqi8Q.js → ConfigTriggerSystem-YI9WYYVM.js} +2 -2
  208. package/dist/interface/ha/{ConfigTriggerWebhook-BuBcgXqf.js → ConfigTriggerWebhook-58c2KgUe.js} +2 -2
  209. package/dist/interface/ha/{Console-DNc49UEt.js → Console-Coiqh32K.js} +4 -4
  210. package/dist/interface/ha/{CuiAutomationRunsDialog-Dj_iiZht.js → CuiAutomationRunsDialog-CJ2MGfEY.js} +2 -2
  211. package/dist/interface/ha/{CuiBottomSheet-DG7wOV7m.js → CuiBottomSheet-BlG9Pl9j.js} +1 -1
  212. package/dist/interface/ha/{CuiCameraRecordings-BlOZTfQ4.js → CuiCameraRecordings-DLXEB4Q7.js} +12 -12
  213. package/dist/interface/ha/{CuiCameraShares-BOn-mobi.js → CuiCameraShares-BCIeaM6u.js} +6 -6
  214. package/dist/interface/ha/{CuiCameraTable-D50FLiK8.js → CuiCameraTable-PYYC7sOu.js} +2 -2
  215. package/dist/interface/ha/{CuiChartTable-CfcVRvdZ.js → CuiChartTable-FQ2iR5Hd.js} +4 -4
  216. package/dist/interface/ha/{CuiConsole-UpN0Wihm.js → CuiConsole-C77k5q_-.js} +1 -1
  217. package/dist/interface/ha/{CuiDataTable-CpADXKNF.js → CuiDataTable-CIKQLseG.js} +2 -2
  218. package/dist/interface/ha/{CuiPluginCard-CT6ZfL9o.js → CuiPluginCard-DZNXKP_P.js} +42 -42
  219. package/dist/interface/ha/{CuiPluginOAuthButton-BJVKd6Ac.js → CuiPluginOAuthButton-DVf52_Zc.js} +2 -2
  220. package/dist/interface/ha/{CuiPluginTrustBadge-gb9GI24w.js → CuiPluginTrustBadge-CPljYiM8.js} +1 -1
  221. package/dist/interface/ha/{CuiQRCode-DqKDx9zR.js → CuiQRCode-oe8PLnLj.js} +2 -2
  222. package/dist/interface/ha/{CuiSchema-CHeJkx0k.js → CuiSchema-CQy94ZTs.js} +152 -152
  223. package/dist/interface/ha/{CuiTopNavbarItem-CFeI6ZYU.js → CuiTopNavbarItem-D6OHZLQY.js} +1 -1
  224. package/dist/interface/ha/{Faces-CTfvhhCj.js → Faces-DxAPvemO.js} +15 -15
  225. package/dist/interface/ha/{FirstSteps-C-WXJ8IL.js → FirstSteps-ZINTSaeL.js} +30 -30
  226. package/dist/interface/ha/{Floorplan-CDKTYN7B.js → Floorplan-DkbL8ppT.js} +155 -155
  227. package/dist/interface/ha/{Instances-n23yvN3L.js → Instances-totWtqd7.js} +13 -13
  228. package/dist/interface/ha/{Logs-Dfm0BWOQ.js → Logs-CzabIFja.js} +12 -12
  229. package/dist/interface/ha/{Menu-76kvdAEF.js → Menu-DcVBOQfw.js} +15 -15
  230. package/dist/interface/ha/{Metrics-lnivlTWm.js → Metrics-B_SN5hbp.js} +407 -407
  231. package/dist/interface/ha/{OAuthDeviceFlow-4ChaymHu.js → OAuthDeviceFlow-B28TPsTQ.js} +2 -2
  232. package/dist/interface/ha/{Plugin-BV8YA8aN.js → Plugin-B2PbbB8d.js} +208 -208
  233. package/dist/interface/ha/{PluginConsole-csf1Km7f.js → PluginConsole-_KeG4FvO.js} +4 -4
  234. package/dist/interface/ha/{PluginDetail-DTff6cbA.js → PluginDetail-GK_Fx14e.js} +7 -7
  235. package/dist/interface/ha/{PluginSearch-CdjxmFPN.js → PluginSearch-qSy4aqAW.js} +96 -96
  236. package/dist/interface/ha/{PluginUpdateProgress-ClyF4pbA.js → PluginUpdateProgress-C4Q2j6VO.js} +3 -3
  237. package/dist/interface/ha/{Plugins-_xOrqP36.js → Plugins-D0tvZHie.js} +54 -54
  238. package/dist/interface/ha/{Recordings-dTZv0pkp.js → Recordings-CpxJYaAa.js} +303 -307
  239. package/dist/interface/ha/{SensorEdit-DDRkZjmm.js → SensorEdit-8KtqLXEu.js} +377 -377
  240. package/dist/interface/ha/{SensorHistory-DSGlRITr.js → SensorHistory-CPTTsdjM.js} +2 -2
  241. package/dist/interface/ha/{Sensors-DjhGRUzM.js → Sensors-DJt_Hnn2.js} +102 -102
  242. package/dist/interface/ha/{Settings-DYuvz4de.js → Settings-B-OdG5pG.js} +10 -10
  243. package/dist/interface/ha/{SettingsAccount-DQAo8SnK.js → SettingsAccount-Ba2-2Lbi.js} +233 -233
  244. package/dist/interface/ha/{SettingsAppearance-_tbhpUA0.js → SettingsAppearance-D56HjSuQ.js} +7 -7
  245. package/dist/interface/ha/{SettingsAssistant-DSf-dYuD.js → SettingsAssistant-DglU0auc.js} +666 -621
  246. package/dist/interface/ha/{SettingsBackup-wLOa7xtw.js → SettingsBackup-DZx4McDz.js} +8 -8
  247. package/dist/interface/ha/{SettingsList-CYujivw5.js → SettingsList-D9nIGkbE.js} +4 -4
  248. package/dist/interface/ha/{SettingsMqtt-DbxJ-h3J.js → SettingsMqtt-BOszh--k.js} +180 -180
  249. package/dist/interface/ha/{SettingsNotifications-DO2-KJvq.js → SettingsNotifications-DBVpZfp0.js} +3 -3
  250. package/dist/interface/ha/{SettingsRecordings-C47i1UhI.js → SettingsRecordings-D3oJnizu.js} +3 -3
  251. package/dist/interface/ha/{SettingsRemote-BPvb-KLI.js → SettingsRemote-BOotvcOT.js} +54 -54
  252. package/dist/interface/ha/{SettingsSystem-BJPrv9JE.js → SettingsSystem-Bg11qoQX.js} +9 -9
  253. package/dist/interface/ha/{SettingsUsers-CcpCz6Y1.js → SettingsUsers-KpLs9Jnh.js} +25 -25
  254. package/dist/interface/ha/{Terminal-DT7-WNH1.js → Terminal-D6opTHYI.js} +168 -173
  255. package/dist/interface/ha/{Training-CqGBf8k1.js → Training-OB2KOQ7L.js} +537 -537
  256. package/dist/interface/ha/{Updates-CgdrqX6R.js → Updates-C_OvXJjd.js} +14 -14
  257. package/dist/interface/ha/{VariableInput-DOzSFgxT.js → VariableInput-CfaDp67S.js} +1 -1
  258. package/dist/interface/ha/{VersionsHandler-ItklhE2t.js → VersionsHandler-D1FVeYUZ.js} +10 -10
  259. package/dist/interface/ha/{VirtualSensorCreate-DbS3VqHC.js → VirtualSensorCreate-DJIgMVrt.js} +7 -7
  260. package/dist/interface/ha/{Workers-6PU7yUv1.js → Workers-cJMI4mYX.js} +26 -26
  261. package/dist/interface/ha/{api-anWolhVj.js → api-CDawdL4p.js} +1 -1
  262. package/dist/interface/ha/{api-Dv3Lk_g5.js → api-D2VzV4is.js} +9257 -9084
  263. package/dist/interface/ha/{assistant-B3m0Kgev.js → assistant-BmDAfChm.js} +1 -1
  264. package/dist/interface/ha/{auth-CAkpM_7A.js → auth-CvLz9C4w.js} +1 -1
  265. package/dist/interface/ha/{automationBlueprint-DwVvbKbw.js → automationBlueprint-BhNaeOZ1.js} +2 -2
  266. package/dist/interface/ha/{base-C-TYDHjS.js → base-XgWmQghV.js} +14 -3
  267. package/dist/interface/ha/cameraui-cards.js +1 -1
  268. package/dist/interface/ha/{cards-B0qagpBw.js → cards-MQrnU0T8.js} +1334 -1334
  269. package/dist/interface/ha/{config-C20itAPE.js → config-t_oAKFkJ.js} +1 -1
  270. package/dist/interface/ha/{esm-i8Tigknm.js → esm-C9XVFkXu.js} +4 -4
  271. package/dist/interface/ha/{mqtt-C6JvkA5E.js → mqtt-C20h1uze.js} +1 -1
  272. package/dist/interface/ha/{native-DBH9ocSq.js → native-BVUxNLM1.js} +4 -4
  273. package/dist/interface/ha/{notifications-gLmNZxwZ.js → notifications-Cy9DKiEn.js} +1 -1
  274. package/dist/interface/ha/{pinia-Du8AM917.js → pinia-BokSpDzj.js} +1 -0
  275. package/dist/interface/ha/{plugins-6x0kBuQb.js → plugins-jozYyBhV.js} +1 -1
  276. package/dist/interface/ha/{rooms-C-mLT6mX.js → rooms-DyfT3cXp.js} +1 -1
  277. package/dist/interface/ha/{server-DuikIt69.js → server-hCCjQjZE.js} +1 -1
  278. package/dist/interface/ha/{types-C0NcQ4Cz.js → types-RG0SckNR.js} +1 -1
  279. package/dist/interface/ha/{ungrouped-ooCH0Izh.js → ungrouped-BbyfoCQp.js} +19 -19
  280. package/dist/interface/ha/{updates-H8MlOQLC.js → updates-hUgVDgoD.js} +6 -6
  281. package/dist/interface/ha/{useAppVersion-DAUCV_cn.js → useAppVersion-wNhZDuvR.js} +1 -1
  282. package/dist/interface/ha/useKeyboardInset-Cmbvb_W3.js +27 -0
  283. package/dist/interface/ha/{useLogsSocket-BOLAXPuD.js → useLogsSocket-y9Aex3tJ.js} +1 -1
  284. package/dist/interface/ha/{useNavLayout-B7VoHzM1.js → useNavLayout-Ehb0t34k.js} +2 -2
  285. package/dist/interface/ha/{useServerRestart-qSH0bqwY.js → useServerRestart-CRSVcz3z.js} +1 -1
  286. package/dist/interface/ha/{useTabSwipe-DYzG_gVG.js → useTabSwipe-B_bseZkI.js} +1 -1
  287. package/dist/interface/ha/{useUpdateChannel-CK7JiWbG.js → useUpdateChannel-C_GU6lj6.js} +2 -2
  288. package/dist/interface/ha/{useUpdatesSocket-DrqkGMuR.js → useUpdatesSocket-CYgHb7UX.js} +1 -1
  289. package/dist/interface/ha/{useUserOptions-BteVUdaT.js → useUserOptions-pVYr-s3O.js} +1 -1
  290. package/dist/interface/ha/{web-D_q41D0i.js → web-CLbVbnCW.js} +5 -5
  291. package/dist/interface/index.html +28 -28
  292. package/dist/interface/sw.js +1 -1
  293. package/dist/server/package.json +3 -3
  294. package/dist/server/requirements.txt +1 -1
  295. package/dist/server/src/api/controllers/rooms.controller.js +3 -1
  296. package/dist/server/src/api/controllers/rooms.controller.js.map +1 -1
  297. package/dist/server/src/api/database/types.d.ts +1 -0
  298. package/dist/server/src/api/schemas/assistant.schema.d.ts +2 -0
  299. package/dist/server/src/api/schemas/assistant.schema.js +1 -0
  300. package/dist/server/src/api/schemas/assistant.schema.js.map +1 -1
  301. package/dist/server/src/api/services/cameras.service.d.ts +1 -0
  302. package/dist/server/src/api/services/cameras.service.js +8 -0
  303. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  304. package/dist/server/src/assistant/manager.d.ts +1 -0
  305. package/dist/server/src/assistant/manager.js +1 -1
  306. package/dist/server/src/assistant/manager.js.map +1 -1
  307. package/dist/server/src/assistant/scheduler.js +8 -1
  308. package/dist/server/src/assistant/scheduler.js.map +1 -1
  309. package/dist/server/src/plugins/index.js +5 -4
  310. package/dist/server/src/plugins/index.js.map +1 -1
  311. package/npm-shrinkwrap.json +6 -6
  312. package/package.json +3 -3
  313. package/dist/interface/assets/Assistant-B1xdMAkA.js +0 -1
  314. package/dist/interface/assets/Automations-Bpw8olkc.js +0 -2
  315. package/dist/interface/assets/Camera-B4ojNnKb.css +0 -1
  316. package/dist/interface/assets/Camera-BpFfZDaS.js +0 -2
  317. package/dist/interface/assets/Camview-C16pyCZk.js +0 -1
  318. package/dist/interface/assets/CuiAssistantConversation-CRNCKRHz.js +0 -5
  319. package/dist/interface/assets/CuiAssistantConversation-DQ0wOJvV.css +0 -1
  320. package/dist/interface/assets/CuiBottomSheet-CYi5c3fP.js +0 -1
  321. package/dist/interface/assets/CuiCameraPipCard-Cb_Qbly6.js +0 -1
  322. package/dist/interface/assets/CuiCameraTable-BgL5FZso.js +0 -1
  323. package/dist/interface/assets/CuiLightControl-CLYl5pfN.js +0 -1
  324. package/dist/interface/assets/CuiPluginCard-CC1oXY16.js +0 -2
  325. package/dist/interface/assets/Faces-1xd5yGuO.js +0 -1
  326. package/dist/interface/assets/FirstSteps-E9cMqa0a.js +0 -1
  327. package/dist/interface/assets/Floorplan-BovV_ATh.js +0 -1
  328. package/dist/interface/assets/Instances-BbxyB7vR.js +0 -1
  329. package/dist/interface/assets/Metrics-BgXrNl38.js +0 -12
  330. package/dist/interface/assets/Plugin-CDNywaVE.js +0 -1
  331. package/dist/interface/assets/PluginSearch-xNIlfXk4.js +0 -1
  332. package/dist/interface/assets/Recordings-BHT8Vvv_.js +0 -1
  333. package/dist/interface/assets/Recordings-DwuojaAw.css +0 -1
  334. package/dist/interface/assets/Sensors-Cza4Et2c.js +0 -2
  335. package/dist/interface/assets/Settings-Cj0leoGd.js +0 -1
  336. package/dist/interface/assets/SettingsAccount-COkcBBSz.js +0 -1
  337. package/dist/interface/assets/SettingsAccount-DjrJdssy.js +0 -1
  338. package/dist/interface/assets/SettingsAppearance-D20YW7Vq.js +0 -1
  339. package/dist/interface/assets/SettingsAssistant-CDdbbG-c.css +0 -1
  340. package/dist/interface/assets/SettingsAssistant-DKWDp1AI.js +0 -1
  341. package/dist/interface/assets/Training-DfgE_dA8.js +0 -1
  342. package/dist/interface/assets/Updates-cCvbFq3w.js +0 -2
  343. package/dist/interface/assets/Workers-Ba37_3cY.js +0 -2
  344. package/dist/interface/assets/api-C1mraOYr.js +0 -4
  345. package/dist/interface/assets/api-z8ZVnoOl.css +0 -2
  346. package/dist/interface/assets/cloudHandoff-DkUx4m3P.js +0 -1
  347. package/dist/interface/assets/esm-0kxqa_1s.js +0 -1
  348. package/dist/interface/assets/esm-4p_M5mFV.js +0 -1
  349. package/dist/interface/assets/esm-8G-vO1KQ.js +0 -1
  350. package/dist/interface/assets/esm-8cB56ICb.js +0 -1
  351. package/dist/interface/assets/esm-B92csSEb.js +0 -1
  352. package/dist/interface/assets/esm-BHiNTIiN.js +0 -1
  353. package/dist/interface/assets/esm-Bu9PMLmw.js +0 -1
  354. package/dist/interface/assets/esm-CS6Ra46d.js +0 -1
  355. package/dist/interface/assets/esm-CWvQWALL.js +0 -1
  356. package/dist/interface/assets/esm-D2UDrwmt.js +0 -1
  357. package/dist/interface/assets/esm-D8OHF2X1.js +0 -1
  358. package/dist/interface/assets/esm-DrXkS8eG.js +0 -1
  359. package/dist/interface/assets/esm-pfoHiO1a.js +0 -1
  360. package/dist/interface/assets/esm-tJSCF7Vh.js +0 -1
  361. package/dist/interface/assets/main-BK3kmiG2.js +0 -3
  362. package/dist/interface/assets/native-BEkWOGyD.js +0 -1
  363. package/dist/interface/assets/native-ugMg173F.js +0 -1
  364. package/dist/interface/assets/plugin-eafNQWg2.js +0 -1
  365. package/dist/interface/assets/useKeyboardInset-DkUn62i7.js +0 -1
  366. package/dist/interface/assets/web-3OOGlctS.js +0 -1
  367. package/dist/interface/assets/web-5NFVd9gs.js +0 -1
  368. package/dist/interface/assets/web-A4yovlXr.js +0 -1
  369. package/dist/interface/assets/web-BBC3YoWX.js +0 -1
  370. package/dist/interface/assets/web-BjKL51lK-DUIsII0n.js +0 -1
  371. package/dist/interface/assets/web-C2-YAfsx.js +0 -1
  372. package/dist/interface/assets/web-CUL_MhvM.js +0 -1
  373. package/dist/interface/assets/web-CZVCXYLV.js +0 -1
  374. package/dist/interface/assets/web-DJ-LUxlV.js +0 -1
  375. package/dist/interface/assets/web-DNsEGLGS.js +0 -1
  376. package/dist/interface/assets/web-DZsU0QT_.js +0 -1
  377. package/dist/interface/assets/web-MoyOTbiU.js +0 -1
  378. package/dist/interface/assets/web-avRH_3t7.js +0 -1
  379. package/dist/interface/ha/Camera-CerkQGbZ.js +0 -654
@@ -3,110 +3,111 @@ import { t as w } from "./tooltip-BDrlgLof.js";
3
3
  import { t as ee } from "./message-D6dIy_hz.js";
4
4
  import { t as T } from "./chevron-down-BNj8w2js.js";
5
5
  import { t as E } from "./tag-mchuCAPR.js";
6
- import { $i as D, Dt as te, Er as O, On as ne, Ot as k, Si as re, V as A, _t as j, a as M, dt as ie, en as ae, jn as oe, kt as se, mn as ce, nn as N, p as P, pn as le, r as ue, tn as de, wr as fe } from "./api-Dv3Lk_g5.js";
7
- import { i as pe } from "./intercomService-B7HkLs6z.js";
8
- import { K as F } from "./pinia-Du8AM917.js";
9
- import { n as I } from "./vue-i18n-D5EAy78K.js";
10
- import { t as L } from "./button-BouAFgf5.js";
11
- import { t as me } from "./inputtext-C_ygnPrC.js";
12
- import { t as he } from "./select-DV7p2EDj.js";
13
- import { t as ge } from "./autocomplete-Cp3u2Ywa.js";
14
- import { i as _e, t as ve } from "./CuiDataTable-CpADXKNF.js";
15
- import { t as ye } from "./inputnumber-DZRwKgXr.js";
16
- import { t as R } from "./progressbar-CaUaM8Bt.js";
17
- import { t as be } from "./multiselect-BOb4ScAZ.js";
18
- import { t as xe } from "./textarea-ByXnzJzx.js";
19
- import { t as Se } from "./assistant-B3m0Kgev.js";
20
- import { t as Ce } from "./content-copy-CHPYjxRC.js";
21
- import { u as we } from "./cards-B0qagpBw.js";
22
- import { a as z, c as Te, d as Ee, i as De, l as Oe, o as ke, s as Ae, u as je } from "./types-wLECk3Ml.js";
23
- import { t as Me } from "./pause-BbFQ0FqK.js";
24
- import { t as Ne } from "./restore-BxzmXRET.js";
25
- import { t as Pe } from "./dots-vertical-B0dv1-jL.js";
26
- import { t as Fe } from "./pencil-outline-SN9ingm5.js";
6
+ import { $i as D, $t as te, An as ne, B as O, Dn as re, Dt as k, Er as A, Et as j, Ot as ie, Si as ae, a as M, en as N, fn as oe, gt as P, p as F, pn as I, r as se, tn as ce, ut as le, wr as ue } from "./api-D2VzV4is.js";
7
+ import { i as de } from "./intercomService-B7HkLs6z.js";
8
+ import { K as L } from "./pinia-BokSpDzj.js";
9
+ import { n as R } from "./vue-i18n-D5EAy78K.js";
10
+ import { t as fe } from "./button-BouAFgf5.js";
11
+ import { t as pe } from "./inputtext-C_ygnPrC.js";
12
+ import { t as me } from "./select-DV7p2EDj.js";
13
+ import { t as he } from "./autocomplete-Cp3u2Ywa.js";
14
+ import { i as ge, t as _e } from "./CuiDataTable-CIKQLseG.js";
15
+ import { t as ve } from "./inputnumber-DZRwKgXr.js";
16
+ import { t as z } from "./progressbar-CaUaM8Bt.js";
17
+ import { t as ye } from "./multiselect-BOb4ScAZ.js";
18
+ import { t as be } from "./textarea-ByXnzJzx.js";
19
+ import { t as xe } from "./assistant-BmDAfChm.js";
20
+ import { t as Se } from "./content-copy-CHPYjxRC.js";
21
+ import { t as B } from "./brain-BiKXGva0.js";
22
+ import { u as Ce } from "./cards-MQrnU0T8.js";
23
+ import { t as we } from "./restore-BxzmXRET.js";
24
+ import { t as Te } from "./dots-vertical-B0dv1-jL.js";
25
+ import { t as Ee } from "./pencil-outline-SN9ingm5.js";
26
+ import { t as De } from "./pause-BbFQ0FqK.js";
27
+ import { a as Oe, c as ke, d as Ae, i as je, l as Me, o as Ne, s as Pe, u as V } from "./types-wLECk3Ml.js";
27
28
  //#region ~icons/mdi/wrench-outline
28
- var B = {
29
+ var H = {
29
30
  viewBox: "0 0 24 24",
30
31
  width: "1.2em",
31
32
  height: "1.2em"
32
33
  };
33
- function V(e, t) {
34
- return n(), m("svg", B, [...t[0] ||= [v("path", {
34
+ function U(e, t) {
35
+ return n(), m("svg", H, [...t[0] ||= [v("path", {
35
36
  fill: "currentColor",
36
37
  d: "m22.61 19l-9.08-9.09c.93-2.34.47-5.1-1.44-7C9.79.61 6.21.4 3.66 2.26L7.5 6.11L6.08 7.5L2.25 3.69C.39 6.23.6 9.82 2.9 12.11c1.86 1.86 4.57 2.35 6.89 1.48l9.11 9.11c.39.39 1.02.39 1.41 0l2.3-2.3c.39-.4.39-1.01 0-1.4m-3 1.59l-9.46-9.46c-.61.45-1.29.72-2 .82c-1.36.2-2.79-.21-3.83-1.25C3.37 9.76 2.93 8.5 3 7.26l3.09 3.09l4.24-4.24L7.24 3c1.26-.05 2.49.39 3.44 1.33a4.47 4.47 0 0 1 1.24 3.96a4.35 4.35 0 0 1-.88 1.96l9.46 9.45z"
37
38
  }, null, -1)]]);
38
39
  }
39
- var Ie = o({
40
+ var Fe = o({
40
41
  name: "mdi-wrench-outline",
41
- render: V
42
- }), Le = {
42
+ render: U
43
+ }), Ie = {
43
44
  viewBox: "0 0 24 24",
44
45
  width: "1.2em",
45
46
  height: "1.2em"
46
47
  };
47
- function Re(e, t) {
48
- return n(), m("svg", Le, [...t[0] ||= [v("path", {
48
+ function Le(e, t) {
49
+ return n(), m("svg", Ie, [...t[0] ||= [v("path", {
49
50
  fill: "currentColor",
50
- d: "M11 9.47V11h3.76L13 14.53V13H9.24zM13 1L6 15h5v8l7-14h-5z"
51
+ d: "m12 15.39l-3.76 2.27l.99-4.28l-3.32-2.88l4.38-.37L12 6.09l1.71 4.04l4.38.37l-3.32 2.88l.99 4.28M22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.45 4.73L5.82 21L12 17.27L18.18 21l-1.64-7.03z"
51
52
  }, null, -1)]]);
52
53
  }
53
- var ze = o({
54
- name: "mdi-lightning-bolt-outline",
55
- render: Re
56
- }), H = {
54
+ var Re = o({
55
+ name: "mdi-star-outline",
56
+ render: Le
57
+ }), W = {
57
58
  viewBox: "0 0 24 24",
58
59
  width: "1.2em",
59
60
  height: "1.2em"
60
61
  };
61
- function U(e, t) {
62
- return n(), m("svg", H, [...t[0] ||= [v("path", {
62
+ function G(e, t) {
63
+ return n(), m("svg", W, [...t[0] ||= [v("path", {
63
64
  fill: "currentColor",
64
- d: "m12 15.39l-3.76 2.27l.99-4.28l-3.32-2.88l4.38-.37L12 6.09l1.71 4.04l4.38.37l-3.32 2.88l.99 4.28M22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.45 4.73L5.82 21L12 17.27L18.18 21l-1.64-7.03z"
65
+ d: "M11 9.47V11h3.76L13 14.53V13H9.24zM13 1L6 15h5v8l7-14h-5z"
65
66
  }, null, -1)]]);
66
67
  }
67
- var Be = o({
68
- name: "mdi-star-outline",
69
- render: U
70
- }), Ve = { class: "flex w-full flex-col gap-6" }, He = { class: "flex flex-col field-gap" }, Ue = {
68
+ var ze = o({
69
+ name: "mdi-lightning-bolt-outline",
70
+ render: G
71
+ }), Be = { class: "flex w-full flex-col gap-6" }, Ve = { class: "flex flex-col field-gap" }, He = {
71
72
  for: "assistantModelProvider",
72
73
  class: "cui-label"
73
- }, We = {
74
+ }, Ue = {
74
75
  key: 0,
75
76
  class: "flex flex-col field-gap"
76
- }, Ge = {
77
+ }, We = {
77
78
  for: "assistantModelBaseUrl",
78
79
  class: "cui-label"
79
- }, W = {
80
+ }, Ge = {
80
81
  key: 1,
81
82
  class: "flex flex-col field-gap"
82
- }, G = {
83
+ }, K = {
83
84
  for: "assistantModelKey",
84
85
  class: "cui-label"
85
- }, K = {
86
+ }, q = {
86
87
  key: 2,
87
88
  class: "flex flex-col field-gap"
88
- }, q = {
89
+ }, J = {
89
90
  for: "assistantModelPluginModel",
90
91
  class: "cui-label"
91
92
  }, Ke = {
92
93
  key: 3,
93
94
  class: "flex flex-col field-gap"
94
- }, J = {
95
+ }, Y = {
95
96
  for: "assistantModelModel",
96
97
  class: "cui-label"
97
- }, Y = {
98
+ }, X = {
98
99
  key: 4,
99
100
  class: "flex flex-col field-gap"
100
101
  }, qe = {
101
102
  for: "assistantModelContext",
102
103
  class: "cui-label"
103
- }, Je = { class: "flex flex-col field-gap" }, X = {
104
+ }, Je = { class: "flex flex-col field-gap" }, Z = {
104
105
  for: "assistantModelName",
105
106
  class: "cui-label"
106
107
  }, Ye = { class: "flex items-center gap-4 cui-toggle-switch" }, Xe = { class: "flex flex-col field-switch-gap" }, Ze = {
107
108
  for: "assistantModelUsers",
108
109
  class: "cui-label-switch"
109
- }, Qe = { class: "flex items-center gap-4 cui-toggle-switch" }, Z = { class: "flex flex-col field-switch-gap" }, $e = {
110
+ }, Qe = { class: "flex items-center gap-4 cui-toggle-switch" }, Q = { class: "flex flex-col field-switch-gap" }, $e = {
110
111
  for: "assistantModelRouting",
111
112
  class: "cui-label-switch"
112
113
  }, et = {
@@ -115,7 +116,7 @@ var Be = o({
115
116
  }, tt = { class: "flex flex-col field-switch-gap" }, nt = {
116
117
  for: "assistantModelImages",
117
118
  class: "cui-label-switch"
118
- }, Q = /* @__PURE__ */ x({
119
+ }, rt = /* @__PURE__ */ x({
119
120
  __name: "AssistantModel",
120
121
  props: {
121
122
  entry: {},
@@ -123,33 +124,33 @@ var Be = o({
123
124
  modelProviders: {}
124
125
  },
125
126
  setup(t, { expose: i }) {
126
- let a = new Se(), o = t, { t: h, locale: _ } = I(), y = re(), x = a.listAssistantModelsMutation(), w = S(o.entry?.provider ?? "ollama"), T = S(o.entry?.baseURL ?? ""), E = S(""), D = S(o.entry?.model ?? ""), te = S(o.entry && o.entry.name !== o.entry.model ? o.entry.name : ""), O = S(o.entry?.sendImages ?? !1), ne = S(o.entry?.contextTokens ?? null), k = S(o.entry?.toolRouting ?? !1), A = S(o.entry?.userAccess !== !1), j = S("new"), M = S([]), ae = S([]), se = S(!1), ce = d(() => [...Ae.map((e) => ({
127
+ let a = new xe(), o = t, { t: h, locale: _ } = R(), y = ae(), x = a.listAssistantModelsMutation(), w = S(o.entry?.provider ?? "ollama"), T = S(o.entry?.baseURL ?? ""), E = S(""), D = S(o.entry?.model ?? ""), te = S(o.entry && o.entry.name !== o.entry.model ? o.entry.name : ""), O = S(o.entry?.sendImages ?? !1), re = S(o.entry?.contextTokens ?? null), k = S(o.entry?.toolRouting ?? !1), A = S(o.entry?.userAccess !== !1), j = S("new"), ie = S([]), M = S([]), N = S(!1), oe = d(() => [...Pe.map((e) => ({
127
128
  label: e.label,
128
129
  value: e.value
129
130
  })), ...o.modelProviders.map((e) => ({
130
131
  label: h("views.settings.assistant_provider_plugin", { name: e.pluginName }),
131
132
  value: e.provider
132
- }))]), N = d(() => o.modelProviders.find((e) => e.provider === w.value)), P = d(() => N.value?.models ?? []), le = d(() => N.value?.status), ue = d(() => {
133
- let e = le.value?.ready === !1 ? le.value.progress : void 0;
133
+ }))]), P = d(() => o.modelProviders.find((e) => e.provider === w.value)), F = d(() => P.value?.models ?? []), I = d(() => P.value?.status), se = d(() => {
134
+ let e = I.value?.ready === !1 ? I.value.progress : void 0;
134
135
  return e === void 0 ? void 0 : Math.round(e * 100);
135
- }), de = d(() => {
136
- if (le.value?.ready === !1) return le.value.message || h("views.settings.assistant_model_plugin_loading");
137
- if (!P.value.length) return h("views.settings.assistant_model_plugin_none");
138
- let e = P.value.find((e) => e.id === D.value);
136
+ }), ce = d(() => {
137
+ if (I.value?.ready === !1) return I.value.message || h("views.settings.assistant_model_plugin_loading");
138
+ if (!F.value.length) return h("views.settings.assistant_model_plugin_none");
139
+ let e = F.value.find((e) => e.id === D.value);
139
140
  if (!e) return h("views.settings.assistant_model_plugin_info");
140
141
  let t = h("views.settings.assistant_model_context", { tokens: e.contextTokens.toLocaleString(_.value) });
141
142
  return e.note ? `${e.note} ${t}` : t;
142
- }), fe = d(() => N.value ? h("views.settings.assistant_provider_hint_plugin") : h(`views.settings.assistant_provider_hint_${w.value.replace("-", "_")}`)), pe = d(() => ke.includes(w.value) && !N.value), F = d(() => w.value === "ollama" || w.value === "openai-compatible"), L = d(() => o.entry?.apiKeySet === !0 && o.entry.provider === w.value), _e = d(() => o.models.filter((e) => e._id !== o.entry?._id && e.provider === w.value && e.apiKeySet)), ve = d(() => [{
143
+ }), ue = d(() => Ne.includes(w.value) && !P.value), de = d(() => w.value === "ollama" || w.value === "openai-compatible"), L = d(() => o.entry?.apiKeySet === !0 && o.entry.provider === w.value), fe = d(() => o.models.filter((e) => e._id !== o.entry?._id && e.provider === w.value && e.apiKeySet)), ge = d(() => [{
143
144
  label: L.value ? h("views.settings.assistant_api_key_stored") : h("views.settings.assistant_api_key_new"),
144
145
  value: "new"
145
- }, ..._e.value.map((e) => ({
146
+ }, ...fe.value.map((e) => ({
146
147
  label: h("views.settings.assistant_api_key_from", { name: e.name }),
147
148
  value: e._id
148
- }))]), be = d(() => pe.value && j.value === "new" && !E.value && !L.value);
149
- function xe() {
150
- return L.value ? "new" : _e.value[0]?._id ?? "new";
149
+ }))]), _e = d(() => ue.value && j.value === "new" && !E.value && !L.value);
150
+ function ye() {
151
+ return L.value ? "new" : fe.value[0]?._id ?? "new";
151
152
  }
152
- function Ce() {
153
+ function be() {
153
154
  let e = j.value === "new" ? E.value ? { apiKey: E.value } : o.entry && !L.value ? { apiKey: null } : {} : { copyKeyFrom: j.value };
154
155
  return {
155
156
  ...o.entry ? {
@@ -160,22 +161,22 @@ var Be = o({
160
161
  ...e,
161
162
  name: te.value,
162
163
  provider: w.value,
163
- baseURL: F.value && T.value ? T.value : null,
164
+ baseURL: de.value && T.value ? T.value : null,
164
165
  model: D.value.trim(),
165
166
  userAccess: A.value,
166
- contextTokens: N.value ? null : ne.value ?? null,
167
+ contextTokens: P.value ? null : re.value ?? null,
167
168
  toolRouting: k.value
168
169
  };
169
170
  }
170
- function we() {
171
- T.value = "", D.value = "", M.value = [], ae.value = [], j.value = xe();
171
+ function Se() {
172
+ T.value = "", D.value = "", ie.value = [], M.value = [], j.value = ye();
172
173
  }
173
- function Te(e) {
174
+ function B(e) {
174
175
  let t = e.query.toLowerCase();
175
- ae.value = M.value.filter((e) => e.toLowerCase().includes(t));
176
+ M.value = ie.value.filter((e) => e.toLowerCase().includes(t));
176
177
  }
177
- async function Ee() {
178
- let e = await x.mutateAsync(Ce());
178
+ async function Ce() {
179
+ let e = await x.mutateAsync(be());
179
180
  if (e.error) {
180
181
  y.add({
181
182
  severity: "warn",
@@ -184,26 +185,26 @@ var Be = o({
184
185
  });
185
186
  return;
186
187
  }
187
- M.value = e.models, ae.value = e.models;
188
+ ie.value = e.models, M.value = e.models;
188
189
  }
189
- return p(() => P.value.find((e) => e.id === D.value), (e) => {
190
+ return p(() => F.value.find((e) => e.id === D.value), (e) => {
190
191
  e && o.entry?.toolRouting == null && (k.value = e.toolRouting === !0);
191
192
  }, { immediate: !0 }), e(() => {
192
- j.value = xe();
193
- }), i({ onConfirm: async () => !D.value.trim() || be.value ? (se.value = !0, null) : Ce() }), (e, i) => {
194
- let a = he, o = ee, d = me, p = ie, h = R, _ = ge, y = ye, S = oe;
195
- return n(), m("div", Ve, [
196
- v("div", He, [
197
- v("label", Ue, r(e.$t("views.settings.assistant_provider_label")), 1),
193
+ j.value = ye();
194
+ }), i({ onConfirm: async () => !D.value.trim() || _e.value ? (N.value = !0, null) : be() }), (e, i) => {
195
+ let a = me, o = ee, d = pe, p = le, h = z, _ = he, y = ve, S = ne;
196
+ return n(), m("div", Be, [
197
+ v("div", Ve, [
198
+ v("label", He, r(e.$t("views.settings.assistant_provider_label")), 1),
198
199
  C(a, {
199
200
  modelValue: u(w),
200
201
  "onUpdate:modelValue": i[0] ||= (e) => l(w) ? w.value = e : null,
201
202
  "input-id": "assistantModelProvider",
202
- options: u(ce),
203
+ options: u(oe),
203
204
  "option-label": "label",
204
205
  "option-value": "value",
205
206
  fluid: "",
206
- onChange: we
207
+ onChange: Se
207
208
  }, null, 8, ["modelValue", "options"]),
208
209
  C(o, {
209
210
  severity: "secondary",
@@ -211,26 +212,26 @@ var Be = o({
211
212
  size: "small",
212
213
  class: "cui-input-hint"
213
214
  }, {
214
- default: f(() => [b(r(u(fe)), 1)]),
215
+ default: f(() => [b(r(e.$t("views.settings.assistant_provider_hint")), 1)]),
215
216
  _: 1
216
217
  })
217
218
  ]),
218
- u(F) ? (n(), m("div", We, [v("label", Ge, r(e.$t("views.settings.assistant_base_url_label")), 1), C(d, {
219
+ u(de) ? (n(), m("div", Ue, [v("label", We, r(e.$t("views.settings.assistant_base_url_label")), 1), C(d, {
219
220
  id: "assistantModelBaseUrl",
220
221
  modelValue: u(T),
221
222
  "onUpdate:modelValue": i[1] ||= (e) => l(T) ? T.value = e : null,
222
223
  modelModifiers: { trim: !0 },
223
- placeholder: u(z)[u(w)],
224
+ placeholder: u(Oe)[u(w)],
224
225
  fluid: "",
225
226
  autocomplete: "off"
226
227
  }, null, 8, ["modelValue", "placeholder"])])) : c("", !0),
227
- u(pe) || u(w) === "openai-compatible" ? (n(), m("div", W, [
228
- v("label", G, r(e.$t("views.settings.assistant_api_key_label")), 1),
229
- u(_e).length ? (n(), s(a, {
228
+ u(ue) || u(w) === "openai-compatible" ? (n(), m("div", Ge, [
229
+ v("label", K, r(e.$t("views.settings.assistant_api_key_label")), 1),
230
+ u(fe).length ? (n(), s(a, {
230
231
  key: 0,
231
232
  modelValue: u(j),
232
233
  "onUpdate:modelValue": i[2] ||= (e) => l(j) ? j.value = e : null,
233
- options: u(ve),
234
+ options: u(ge),
234
235
  "option-label": "label",
235
236
  "option-value": "value",
236
237
  fluid: ""
@@ -243,7 +244,7 @@ var Be = o({
243
244
  "toggle-mask": "",
244
245
  fluid: "",
245
246
  autocomplete: "new-password",
246
- invalid: u(se) && u(be),
247
+ invalid: u(N) && u(_e),
247
248
  placeholder: u(L) ? "••••••••" : ""
248
249
  }, null, 8, [
249
250
  "modelValue",
@@ -258,7 +259,7 @@ var Be = o({
258
259
  }, {
259
260
  default: f(() => [b(r(e.$t("views.settings.assistant_api_key_keep_hint")), 1)]),
260
261
  _: 1
261
- })) : u(pe) ? c("", !0) : (n(), s(o, {
262
+ })) : u(ue) ? c("", !0) : (n(), s(o, {
262
263
  key: 1,
263
264
  severity: "secondary",
264
265
  variant: "simple",
@@ -269,25 +270,25 @@ var Be = o({
269
270
  _: 1
270
271
  }))], 64)) : c("", !0)
271
272
  ])) : c("", !0),
272
- u(N) ? (n(), m("div", K, [
273
- v("label", q, r(e.$t("views.settings.assistant_model_label")), 1),
274
- u(P).length ? (n(), s(a, {
273
+ u(P) ? (n(), m("div", q, [
274
+ v("label", J, r(e.$t("views.settings.assistant_model_label")), 1),
275
+ u(F).length ? (n(), s(a, {
275
276
  key: 0,
276
277
  modelValue: u(D),
277
278
  "onUpdate:modelValue": i[4] ||= (e) => l(D) ? D.value = e : null,
278
279
  "input-id": "assistantModelPluginModel",
279
- options: u(P),
280
+ options: u(F),
280
281
  "option-label": "name",
281
282
  "option-value": "id",
282
283
  fluid: "",
283
- invalid: u(se) && !u(D).trim()
284
+ invalid: u(N) && !u(D).trim()
284
285
  }, null, 8, [
285
286
  "modelValue",
286
287
  "options",
287
288
  "invalid"
288
- ])) : u(ue) === void 0 ? c("", !0) : (n(), s(h, {
289
+ ])) : u(se) === void 0 ? c("", !0) : (n(), s(h, {
289
290
  key: 1,
290
- value: u(ue),
291
+ value: u(se),
291
292
  "show-value": !1,
292
293
  class: "!h-1"
293
294
  }, null, 8, ["value"])),
@@ -297,23 +298,23 @@ var Be = o({
297
298
  size: "small",
298
299
  class: "cui-input-hint"
299
300
  }, {
300
- default: f(() => [b(r(u(de)), 1)]),
301
+ default: f(() => [b(r(u(ce)), 1)]),
301
302
  _: 1
302
303
  })
303
304
  ])) : (n(), m("div", Ke, [
304
- v("label", J, r(e.$t("views.settings.assistant_model_label")), 1),
305
+ v("label", Y, r(e.$t("views.settings.assistant_model_label")), 1),
305
306
  C(_, {
306
307
  modelValue: u(D),
307
308
  "onUpdate:modelValue": i[5] ||= (e) => l(D) ? D.value = e : null,
308
309
  "input-id": "assistantModelModel",
309
- suggestions: u(ae),
310
+ suggestions: u(M),
310
311
  loading: u(x).isPending.value,
311
- invalid: u(se) && !u(D).trim(),
312
+ invalid: u(N) && !u(D).trim(),
312
313
  dropdown: "",
313
314
  fluid: "",
314
315
  placeholder: e.$t("views.settings.assistant_model_placeholder"),
315
- onComplete: Te,
316
- onDropdownClick: Ee
316
+ onComplete: B,
317
+ onDropdownClick: Ce
317
318
  }, null, 8, [
318
319
  "modelValue",
319
320
  "suggestions",
@@ -331,11 +332,11 @@ var Be = o({
331
332
  _: 1
332
333
  })
333
334
  ])),
334
- u(N) ? c("", !0) : (n(), m("div", Y, [
335
+ u(P) ? c("", !0) : (n(), m("div", X, [
335
336
  v("label", qe, r(e.$t("views.settings.assistant_model_context_label")), 1),
336
337
  C(y, {
337
- modelValue: u(ne),
338
- "onUpdate:modelValue": i[6] ||= (e) => l(ne) ? ne.value = e : null,
338
+ modelValue: u(re),
339
+ "onUpdate:modelValue": i[6] ||= (e) => l(re) ? re.value = e : null,
339
340
  "input-id": "assistantModelContext",
340
341
  min: 1e3,
341
342
  max: 4e5,
@@ -354,7 +355,7 @@ var Be = o({
354
355
  _: 1
355
356
  })
356
357
  ])),
357
- v("div", Je, [v("label", X, r(e.$t("views.settings.assistant_model_name_label")), 1), C(d, {
358
+ v("div", Je, [v("label", Z, r(e.$t("views.settings.assistant_model_name_label")), 1), C(d, {
358
359
  id: "assistantModelName",
359
360
  modelValue: u(te),
360
361
  "onUpdate:modelValue": i[7] ||= (e) => l(te) ? te.value = e : null,
@@ -377,7 +378,7 @@ var Be = o({
377
378
  "input-id": "assistantModelUsers",
378
379
  class: "ml-auto shrink-0"
379
380
  }, null, 8, ["modelValue"])]),
380
- v("div", Qe, [v("div", Z, [v("label", $e, r(e.$t("views.settings.assistant_model_routing")), 1), C(o, {
381
+ v("div", Qe, [v("div", Q, [v("label", $e, r(e.$t("views.settings.assistant_model_routing")), 1), C(o, {
381
382
  severity: "secondary",
382
383
  variant: "simple",
383
384
  size: "small",
@@ -408,122 +409,168 @@ var Be = o({
408
409
  ]);
409
410
  };
410
411
  }
411
- }), rt = { class: "w-full h-full" }, it = {
412
+ }), it = { class: "flex w-full flex-col field-gap" }, at = {
413
+ for: "assistantScheduleModel",
414
+ class: "cui-label"
415
+ }, ot = /* @__PURE__ */ x({
416
+ __name: "AssistantScheduleModel",
417
+ props: {
418
+ models: {},
419
+ modelId: {},
420
+ fallback: {}
421
+ },
422
+ setup(e, { expose: t }) {
423
+ let i = e, a = S(i.models.some((e) => e._id === i.modelId) ? i.modelId ?? null : null);
424
+ return t({ onConfirm: async () => ({ modelId: a.value ?? null }) }), (t, i) => {
425
+ let o = me, s = ee;
426
+ return n(), m("div", it, [
427
+ v("label", at, r(t.$t("views.settings.assistant_schedule_model_label")), 1),
428
+ C(o, {
429
+ modelValue: u(a),
430
+ "onUpdate:modelValue": i[0] ||= (e) => l(a) ? a.value = e : null,
431
+ "input-id": "assistantScheduleModel",
432
+ options: e.models,
433
+ "option-label": "name",
434
+ "option-value": "_id",
435
+ "show-clear": "",
436
+ fluid: "",
437
+ placeholder: e.fallback
438
+ }, null, 8, [
439
+ "modelValue",
440
+ "options",
441
+ "placeholder"
442
+ ]),
443
+ C(s, {
444
+ severity: "secondary",
445
+ variant: "simple",
446
+ size: "small",
447
+ class: "cui-input-hint"
448
+ }, {
449
+ default: f(() => [b(r(t.$t("views.settings.assistant_schedule_model_hint")), 1)]),
450
+ _: 1
451
+ })
452
+ ]);
453
+ };
454
+ }
455
+ }), st = { class: "w-full h-full" }, ct = {
412
456
  key: 0,
413
457
  class: "w-full h-full flex items-center justify-center"
414
- }, at = {
458
+ }, lt = {
415
459
  key: 1,
416
460
  class: "flex flex-col w-full gap-6"
417
- }, ot = { class: "card-title" }, st = { class: "flex items-center gap-4" }, ct = { class: "flex flex-col field-switch-gap min-w-0" }, lt = { class: "text-sm font-bold text-color" }, ut = { class: "card-title" }, dt = { class: "flex flex-col gap-6" }, ft = { class: "flex items-center gap-4 cui-toggle-switch" }, pt = { class: "flex flex-col field-switch-gap" }, mt = {
461
+ }, ut = { class: "card-title" }, dt = { class: "flex items-center gap-4" }, ft = { class: "flex flex-col field-switch-gap min-w-0" }, pt = { class: "text-sm font-bold text-color" }, mt = { class: "card-title" }, ht = { class: "flex flex-col gap-6" }, gt = { class: "flex items-center gap-4 cui-toggle-switch" }, _t = { class: "flex flex-col field-switch-gap" }, vt = {
418
462
  for: "enabled",
419
463
  class: "cui-label-switch"
420
- }, ht = {
464
+ }, yt = {
421
465
  key: 0,
422
466
  class: "flex flex-col divide-y divide-(--border-color)"
423
- }, gt = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1" }, _t = { class: "max-w-full basis-full truncate font-medium text-color md:basis-auto" }, vt = { class: "order-3 mt-1 flex flex-wrap items-center gap-1.5 md:order-2 md:mt-0" }, yt = { class: "order-2 basis-full truncate text-muted md:order-3" }, bt = {
467
+ }, bt = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1" }, xt = { class: "max-w-full basis-full truncate font-medium text-color md:basis-auto" }, St = { class: "order-3 mt-1 flex flex-wrap items-center gap-1.5 md:order-2 md:mt-0" }, Ct = { class: "order-2 basis-full truncate text-muted md:order-3" }, wt = {
424
468
  key: 0,
425
469
  class: "order-4 basis-full text-xs text-danger line-clamp-2"
426
- }, xt = {
470
+ }, Tt = {
427
471
  key: 1,
428
472
  class: "order-4 basis-full text-xs text-muted line-clamp-2"
429
- }, St = { class: "hidden shrink-0 items-center gap-1 md:flex" }, Ct = { class: "shrink-0 md:hidden" }, wt = {
473
+ }, Et = { class: "hidden shrink-0 items-center gap-1 md:flex" }, Dt = { class: "shrink-0 md:hidden" }, Ot = {
430
474
  key: 1,
431
475
  class: "text-sm text-muted"
432
- }, Tt = { class: "flex" }, Et = { class: "card-title" }, Dt = { class: "flex flex-col gap-6" }, Ot = { class: "flex min-w-0 items-center gap-2" }, kt = ["for"], At = {
476
+ }, kt = { class: "flex" }, At = { class: "card-title" }, jt = { class: "flex flex-col gap-6" }, Mt = { class: "flex min-w-0 items-center gap-2" }, Nt = ["for"], Pt = {
433
477
  key: 1,
434
478
  class: "text-sm text-muted"
435
- }, jt = { class: "flex" }, Mt = { class: "card-title" }, Nt = { class: "flex flex-col gap-6" }, Pt = { class: "flex items-center gap-4 cui-toggle-switch" }, Ft = { class: "flex flex-col field-switch-gap" }, It = {
479
+ }, Ft = { class: "flex" }, It = { class: "card-title" }, Lt = { class: "flex flex-col gap-6" }, Rt = { class: "flex items-center gap-4 cui-toggle-switch" }, zt = { class: "flex flex-col field-switch-gap" }, Bt = {
436
480
  for: "memoryEnabled",
437
481
  class: "cui-label-switch"
438
- }, Lt = { class: "flex items-center gap-4 cui-toggle-switch" }, Rt = { class: "flex flex-col field-switch-gap" }, zt = {
482
+ }, Vt = { class: "flex items-center gap-4 cui-toggle-switch" }, Ht = { class: "flex flex-col field-switch-gap" }, Ut = {
439
483
  for: "terminalEnabled",
440
484
  class: "cui-label-switch"
441
- }, Bt = { class: "flex flex-col field-gap" }, Vt = {
485
+ }, Wt = { class: "flex flex-col field-gap" }, Gt = {
442
486
  for: "language",
443
487
  class: "cui-label"
444
- }, Ht = { class: "flex flex-col field-gap" }, Ut = {
488
+ }, Kt = { class: "flex flex-col field-gap" }, qt = {
445
489
  for: "reasoning",
446
490
  class: "cui-label"
447
- }, Wt = { class: "flex flex-col md:flex-row gap-6" }, Gt = { class: "flex flex-col field-gap flex-1" }, Kt = {
491
+ }, Jt = { class: "flex flex-col md:flex-row gap-6" }, Yt = { class: "flex flex-col field-gap flex-1" }, Xt = {
448
492
  for: "maxIterations",
449
493
  class: "cui-label"
450
- }, qt = { class: "flex flex-col field-gap flex-1" }, Jt = {
494
+ }, Zt = { class: "flex flex-col field-gap flex-1" }, Qt = {
451
495
  for: "maxToolCalls",
452
496
  class: "cui-label"
453
- }, Yt = { class: "flex flex-col field-gap" }, Xt = {
497
+ }, $t = { class: "flex flex-col field-gap" }, en = {
454
498
  for: "contextTokens",
455
499
  class: "cui-label"
456
- }, Zt = { class: "flex flex-col md:flex-row gap-4" }, Qt = { class: "flex flex-col field-gap flex-1" }, $t = {
500
+ }, tn = { class: "flex flex-col md:flex-row gap-4" }, nn = { class: "flex flex-col field-gap flex-1" }, rn = {
457
501
  for: "historyThreads",
458
502
  class: "cui-label"
459
- }, en = { class: "flex flex-col field-gap flex-1" }, tn = {
503
+ }, an = { class: "flex flex-col field-gap flex-1" }, on = {
460
504
  for: "historyImages",
461
505
  class: "cui-label"
462
- }, nn = { class: "flex flex-col field-gap" }, rn = {
506
+ }, sn = { class: "flex flex-col field-gap" }, cn = {
463
507
  for: "systemPromptExtra",
464
508
  class: "cui-label"
465
- }, an = { class: "flex items-center gap-2" }, on = { class: "card-title" }, sn = { class: "flex flex-col gap-6" }, cn = { class: "flex flex-col gap-4" }, ln = { class: "flex items-center justify-between gap-4" }, un = { class: "flex flex-col" }, dn = { class: "text-sm font-medium text-color" }, fn = { class: "text-xs text-muted" }, pn = { class: "flex items-center justify-between gap-4" }, mn = { class: "flex flex-col" }, hn = { class: "text-sm font-medium text-color" }, gn = { class: "text-xs text-muted" }, _n = {
509
+ }, ln = { class: "flex items-center gap-2" }, un = { class: "card-title" }, dn = { class: "flex flex-col gap-6" }, fn = { class: "flex flex-col gap-4" }, pn = { class: "flex items-center justify-between gap-4" }, mn = { class: "flex flex-col" }, hn = { class: "text-sm font-medium text-color" }, gn = { class: "text-xs text-muted" }, _n = { class: "flex items-center justify-between gap-4" }, vn = { class: "flex flex-col" }, yn = { class: "text-sm font-medium text-color" }, bn = { class: "text-xs text-muted" }, xn = {
466
510
  key: 0,
467
511
  class: "flex flex-col gap-6"
468
- }, vn = { class: "flex flex-col field-gap" }, yn = {
512
+ }, Sn = { class: "flex flex-col field-gap" }, Cn = {
469
513
  for: "mcpEndpoint",
470
514
  class: "cui-label"
471
- }, bn = { class: "flex flex-col field-gap" }, xn = {
515
+ }, wn = { class: "flex flex-col field-gap" }, Tn = {
472
516
  for: "mcpClient",
473
517
  class: "cui-label"
474
- }, Sn = { class: "flex" }, Cn = { class: "card-title" }, wn = { class: "flex flex-col gap-6" }, Tn = ["aria-expanded", "onClick"], En = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, Dn = { class: "truncate text-sm font-medium text-color" }, On = ["inert"], kn = { class: "flex flex-col gap-4 px-4 pb-4" }, An = { class: "flex items-center gap-4 cui-toggle-switch" }, jn = { class: "flex flex-col field-switch-gap" }, Mn = ["for"], Nn = { class: "flex flex-col md:flex-row gap-4" }, Pn = { class: "flex flex-col field-gap md:w-56" }, Fn = ["for"], In = { class: "flex flex-col field-gap flex-1" }, Ln = ["for"], Rn = { class: "flex flex-col field-gap" }, zn = ["for"], Bn = { class: "flex items-center gap-4 cui-toggle-switch" }, Vn = { class: "flex flex-col field-switch-gap" }, Hn = ["for"], Un = { class: "flex" }, Wn = { class: "flex items-center gap-2" }, Gn = { class: "card-title" }, Kn = { class: "flex flex-col gap-6" }, qn = {
518
+ }, En = { class: "flex" }, Dn = { class: "card-title" }, On = { class: "flex flex-col gap-6" }, kn = ["aria-expanded", "onClick"], An = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, jn = { class: "truncate text-sm font-medium text-color" }, Mn = ["inert"], Nn = { class: "flex flex-col gap-4 px-4 pb-4" }, Pn = { class: "flex items-center gap-4 cui-toggle-switch" }, Fn = { class: "flex flex-col field-switch-gap" }, In = ["for"], Ln = { class: "flex flex-col md:flex-row gap-4" }, Rn = { class: "flex flex-col field-gap md:w-56" }, zn = ["for"], Bn = { class: "flex flex-col field-gap flex-1" }, Vn = ["for"], Hn = { class: "flex flex-col field-gap" }, Un = ["for"], Wn = { class: "flex items-center gap-4 cui-toggle-switch" }, Gn = { class: "flex flex-col field-switch-gap" }, Kn = ["for"], qn = { class: "flex" }, Jn = { class: "flex items-center gap-2" }, Yn = { class: "card-title" }, Xn = { class: "flex flex-col gap-6" }, Zn = {
475
519
  key: 0,
476
520
  class: "flex flex-col divide-y divide-(--border-color)"
477
- }, Jn = { class: "max-w-full basis-full truncate font-medium text-color md:basis-auto" }, Yn = { class: "flex flex-wrap items-center gap-1.5" }, Xn = { class: "basis-full text-muted line-clamp-2" }, Zn = { class: "basis-full text-xs text-muted" }, Qn = { key: 0 }, $n = { key: 1 }, er = {
521
+ }, Qn = { class: "max-w-full basis-full truncate font-medium text-color md:basis-auto" }, $n = { class: "flex flex-wrap items-center gap-1.5" }, er = { class: "basis-full text-muted line-clamp-2" }, tr = { class: "basis-full text-xs text-muted" }, nr = { key: 0 }, rr = { key: 1 }, ir = {
478
522
  key: 0,
479
523
  class: "basis-full text-xs text-danger line-clamp-2"
480
- }, tr = { class: "shrink-0" }, nr = { class: "hidden items-center gap-1 md:flex" }, rr = { class: "md:hidden" }, ir = { class: "flex flex-col md:flex-row gap-6" }, ar = { class: "flex flex-col field-gap flex-1" }, or = {
524
+ }, ar = { class: "shrink-0" }, or = { class: "flex flex-col md:flex-row gap-6" }, sr = { class: "flex flex-col field-gap flex-1" }, cr = {
481
525
  for: "scheduleTitle",
482
526
  class: "cui-label"
483
- }, sr = { class: "flex flex-col field-gap w-full md:w-52 shrink-0" }, cr = {
527
+ }, lr = { class: "flex flex-col field-gap w-full md:w-52 shrink-0" }, ur = {
484
528
  for: "scheduleDeliver",
485
529
  class: "cui-label"
486
- }, lr = { class: "flex flex-col field-gap" }, ur = {
530
+ }, dr = { class: "flex flex-col field-gap" }, fr = {
487
531
  for: "schedulePrompt",
488
532
  class: "cui-label"
489
- }, dr = {
533
+ }, pr = { class: "flex flex-col md:flex-row gap-6" }, mr = {
490
534
  key: 0,
491
- class: "flex flex-col field-gap"
492
- }, fr = {
535
+ class: "flex flex-col field-gap flex-1"
536
+ }, hr = {
493
537
  for: "scheduleProfile",
494
538
  class: "cui-label"
495
- }, pr = { class: "flex flex-col md:flex-row gap-6" }, mr = { class: "flex flex-col field-gap flex-1" }, hr = {
539
+ }, gr = { class: "flex flex-col field-gap flex-1" }, _r = {
540
+ for: "scheduleModel",
541
+ class: "cui-label"
542
+ }, vr = { class: "flex flex-col md:flex-row gap-6" }, yr = { class: "flex flex-col field-gap flex-1" }, br = {
496
543
  for: "schedulePreset",
497
544
  class: "cui-label"
498
- }, gr = {
545
+ }, xr = {
499
546
  key: 0,
500
547
  class: "flex flex-col field-gap w-full md:w-40 shrink-0"
501
- }, _r = {
548
+ }, Sr = {
502
549
  for: "scheduleTime",
503
550
  class: "cui-label"
504
- }, vr = {
551
+ }, Cr = {
505
552
  key: 1,
506
553
  class: "flex flex-col field-gap flex-1"
507
- }, yr = {
554
+ }, wr = {
508
555
  for: "scheduleCron",
509
556
  class: "cui-label"
510
- }, br = { class: "flex" }, xr = { class: "card-title" }, Sr = { class: "flex flex-col gap-3" }, Cr = { class: "text-sm text-muted" }, wr = { class: "truncate" }, Tr = { class: "truncate" }, Er = { class: "card-title" }, Dr = {
557
+ }, Tr = { class: "flex" }, Er = { class: "card-title" }, Dr = { class: "flex flex-col gap-3" }, Or = { class: "text-sm text-muted" }, kr = { class: "truncate" }, Ar = { class: "truncate" }, jr = { class: "card-title" }, Mr = {
511
558
  key: 0,
512
559
  class: "text-sm text-muted"
513
- }, Or = {
560
+ }, Nr = {
514
561
  key: 1,
515
562
  class: "flex flex-col gap-6"
516
- }, kr = {
563
+ }, Pr = {
517
564
  key: 0,
518
565
  class: "mb-4 flex flex-col field-gap"
519
- }, Ar = ["for"], jr = { class: "flex max-h-96 flex-col divide-y divide-(--border-color) overflow-y-auto pr-2" }, Mr = { class: "min-w-0 flex-1" }, Nr = { class: "flex flex-wrap items-center gap-2" }, Pr = { class: "font-medium text-color" }, Fr = { class: "text-muted" }, Ir = {
566
+ }, Fr = ["for"], Ir = { class: "flex max-h-96 flex-col divide-y divide-(--border-color) overflow-y-auto pr-2" }, Lr = { class: "min-w-0 flex-1" }, Rr = { class: "flex flex-wrap items-center gap-2" }, zr = { class: "font-medium text-color" }, Br = { class: "text-muted" }, Vr = {
520
567
  key: 0,
521
568
  class: "flex"
522
- }, Lr = "none", Rr = /*#__PURE__*/ O(/* @__PURE__ */ x({
569
+ }, Hr = "none", Ur = /*#__PURE__*/ A(/* @__PURE__ */ x({
523
570
  __name: "SettingsAssistant",
524
571
  setup(e) {
525
572
  let o = {
526
- icon: A,
573
+ icon: O,
527
574
  iconProps: { class: "text-red-500" },
528
575
  labelProps: { class: "text-red-500" },
529
576
  buttonProps: { severity: "danger" }
@@ -537,26 +584,27 @@ var Be = o({
537
584
  contextTokens: 48e3,
538
585
  historyThreads: 50,
539
586
  historyImages: 24
540
- }, O = { columnHeaderContent: { class: "justify-end" } }, ge = {
587
+ }, A = { columnHeaderContent: { class: "justify-end" } }, he = {
541
588
  bodyRow: { class: "text-sm text-secondary" },
542
589
  column: { columnTitle: { class: "text-sm" } }
543
- }, R = new Se(), z = re(), ke = j(), { t: B, locale: V } = I(), { data: Le, isLoading: Re } = R.usageAllQuery(), { data: H } = R.getAssistantInfoQuery(), U = R.patchAssistantInfoMutation(), { data: Ve } = R.listProfilesQuery(), { data: He } = R.listSchedulesQuery(), Ue = R.createScheduleMutation(), We = R.patchScheduleMutation(), Ge = R.deleteScheduleMutation(), W = R.runScheduleMutation(), G = S(null), K = S({
590
+ }, z = new xe(), Oe = ae(), Ne = P(), { t: H, locale: U } = R(), { data: Ie, isLoading: Le } = z.usageAllQuery(), { data: W } = z.getAssistantInfoQuery(), G = z.patchAssistantInfoMutation(), { data: Be } = z.listProfilesQuery(), { data: Ve } = z.listSchedulesQuery(), He = z.createScheduleMutation(), Ue = z.patchScheduleMutation(), We = z.deleteScheduleMutation(), Ge = z.runScheduleMutation(), K = S(null), q = S({
544
591
  title: "",
545
592
  prompt: "",
546
593
  preset: "daily",
547
594
  time: "20:00",
548
595
  cron: "",
549
596
  deliver: "push",
550
- profileId: null
551
- }), q = S({}), Ke = S([]), J = S([]), Y = S("claude-code"), qe = S("core"), Je = _("rowMenuRef"), X = d(() => H.value?.settings.models ?? []), Ye = d(() => H.value ? Oe(H.value.settings) : void 0), Xe = d(() => [{
552
- label: B("views.settings.assistant_plugin_no_access"),
553
- value: Lr
554
- }, ...X.value.map((e) => ({
597
+ profileId: null,
598
+ modelId: null
599
+ }), J = S({}), Ke = S([]), Y = S([]), X = S("claude-code"), qe = S("core"), Je = _("rowMenuRef"), Z = d(() => W.value?.settings.models ?? []), Ye = d(() => W.value ? Me(W.value.settings) : void 0), Xe = d(() => [{
600
+ label: H("views.settings.assistant_plugin_no_access"),
601
+ value: Hr
602
+ }, ...Z.value.map((e) => ({
555
603
  label: e.name,
556
604
  value: e._id
557
605
  }))]), Ze = d(() => {
558
606
  let e = /* @__PURE__ */ new Map();
559
- for (let t of H.value?.tools ?? []) {
607
+ for (let t of W.value?.tools ?? []) {
560
608
  let n = t.source.kind === "plugin" ? t.source.pluginId : t.source.kind === "external" ? t.source.serverId : "core", r = t.source.kind === "plugin" ? t.source.pluginName : t.source.kind === "external" ? t.source.serverName : "camera.ui", i = e.get(n) ?? {
561
609
  key: n,
562
610
  label: r,
@@ -566,16 +614,16 @@ var Be = o({
566
614
  i.tools.push(t), e.set(n, i);
567
615
  }
568
616
  return Array.from(e.values());
569
- }), Qe = d(() => Le.value?.map((e) => ({
617
+ }), Qe = d(() => Ie.value?.map((e) => ({
570
618
  ...e,
571
619
  key: `${e.userId}-${e.month}-${e.provider}-${e.model}`
572
- }))), Z = d(() => H.value?.status), $e = d(() => {
573
- let e = new Intl.DisplayNames([V.value], { type: "language" }), t = F.map((t) => ({
620
+ }))), Q = d(() => W.value?.status), $e = d(() => {
621
+ let e = new Intl.DisplayNames([U.value], { type: "language" }), t = L.map((t) => ({
574
622
  label: e.of(t) ?? t,
575
623
  value: t
576
- })).sort((e, t) => e.label.localeCompare(t.label, V.value));
624
+ })).sort((e, t) => e.label.localeCompare(t.label, U.value));
577
625
  return [{
578
- label: B("views.settings.assistant_language_auto"),
626
+ label: H("views.settings.assistant_language_auto"),
579
627
  value: null
580
628
  }, ...t];
581
629
  }), et = d(() => [
@@ -584,7 +632,7 @@ var Be = o({
584
632
  "low",
585
633
  "high"
586
634
  ].map((e) => ({
587
- label: B(`views.settings.assistant_reasoning_${e}`),
635
+ label: H(`views.settings.assistant_reasoning_${e}`),
588
636
  value: e
589
637
  }))), tt = d(() => new URL(`${D.defaults.baseURL ?? "/api"}/assistant/mcp`.replace(/\/{2,}/g, "/"), window.location.origin).toString()), nt = d(() => [
590
638
  {
@@ -599,9 +647,9 @@ var Be = o({
599
647
  label: "Claude Desktop",
600
648
  value: "claude-desktop"
601
649
  }
602
- ]), Rr = d(() => {
650
+ ]), it = d(() => {
603
651
  let e = tt.value;
604
- return Y.value === "claude-code" ? `claude mcp add --transport http camera-ui ${e} --header "Authorization: Bearer <api token>"` : Y.value === "cursor" ? JSON.stringify({ mcpServers: { "camera-ui": {
652
+ return X.value === "claude-code" ? `claude mcp add --transport http camera-ui ${e} --header "Authorization: Bearer <api token>"` : X.value === "cursor" ? JSON.stringify({ mcpServers: { "camera-ui": {
605
653
  url: e,
606
654
  headers: { Authorization: "Bearer <api token>" }
607
655
  } } }, null, 2) : JSON.stringify({ mcpServers: { "camera-ui": {
@@ -614,14 +662,14 @@ var Be = o({
614
662
  "Authorization: Bearer <api token>"
615
663
  ]
616
664
  } } }, null, 2);
617
- }), zr = d(() => [
665
+ }), at = d(() => [
618
666
  "push",
619
667
  "thread",
620
668
  "both"
621
669
  ].map((e) => ({
622
- label: B(`views.settings.assistant_schedule_deliver_${e}`),
670
+ label: H(`views.settings.assistant_schedule_deliver_${e}`),
623
671
  value: e
624
- }))), Br = d(() => [
672
+ }))), Ur = d(() => [
625
673
  "daily",
626
674
  "weekdays",
627
675
  "weekends",
@@ -629,92 +677,94 @@ var Be = o({
629
677
  "hourly",
630
678
  "custom"
631
679
  ].map((e) => ({
632
- label: B(`views.settings.assistant_schedule_preset_${e}`),
680
+ label: H(`views.settings.assistant_schedule_preset_${e}`),
633
681
  value: e
634
- }))), Vr = d(() => {
635
- let { preset: e, time: t, cron: n } = K.value, [r, i] = t.split(":").map((e) => Number.parseInt(e, 10));
682
+ }))), Wr = d(() => {
683
+ let { preset: e, time: t, cron: n } = q.value, [r, i] = t.split(":").map((e) => Number.parseInt(e, 10));
636
684
  return e === "custom" ? n.trim() : e === "hourly" ? "0 * * * *" : Number.isNaN(r) || Number.isNaN(i) ? "" : `${i} ${r} * * ${e === "weekdays" ? "1-5" : e === "weekends" ? "0,6" : e === "weekly" ? "0" : "*"}`;
637
- }), Hr = d(() => {
638
- switch (Z.value?.state) {
685
+ }), Gr = d(() => {
686
+ switch (Q.value?.state) {
639
687
  case "ready": return "success";
640
688
  case "unconfigured": return "warn";
641
689
  default: return "secondary";
642
690
  }
643
- }), Ur = d(() => B(`views.settings.assistant_state_${Z.value?.state ?? "disabled"}`)), Wr = d(() => Z.value ? Z.value.state === "ready" ? B("views.settings.assistant_status_ready", { model: Z.value.model }) : B("views.settings.assistant_status_info") : "");
644
- function Gr(e) {
691
+ }), Kr = d(() => H(`views.settings.assistant_state_${Q.value?.state ?? "disabled"}`)), qr = d(() => Q.value ? Q.value.state === "ready" ? H("views.settings.assistant_status_ready", { model: Q.value.model }) : H("views.settings.assistant_status_info") : "");
692
+ function Jr(e) {
645
693
  let t = /^(\d+) (\d+) \* \* (\*|1-5|0,6|0)$/.exec(e);
646
694
  if (!t) return e;
647
695
  let n = `${t[2].padStart(2, "0")}:${t[1].padStart(2, "0")}`, r = t[3] === "*" ? "daily" : t[3] === "1-5" ? "weekdays" : t[3] === "0" ? "weekly" : "weekends";
648
- return `${B(`views.settings.assistant_schedule_preset_${r}`)} ${n}`;
696
+ return `${H(`views.settings.assistant_schedule_preset_${r}`)} ${n}`;
649
697
  }
650
- function Kr(e) {
698
+ function Yr(e) {
651
699
  return e === "push" ? "info" : e === "thread" ? "secondary" : "success";
652
700
  }
653
- function qr(e) {
654
- return new Date(e).toLocaleString(V.value, {
701
+ function Xr(e) {
702
+ return new Date(e).toLocaleString(U.value, {
655
703
  day: "2-digit",
656
704
  month: "2-digit",
657
705
  hour: "2-digit",
658
706
  minute: "2-digit"
659
707
  });
660
708
  }
661
- async function Jr() {
662
- await Ue.mutateAsync({
663
- title: K.value.title,
664
- prompt: K.value.prompt,
665
- cron: Vr.value,
709
+ async function Zr() {
710
+ await He.mutateAsync({
711
+ title: q.value.title,
712
+ prompt: q.value.prompt,
713
+ cron: Wr.value,
666
714
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
667
- language: V.value,
668
- deliver: K.value.deliver,
669
- profileId: K.value.profileId,
715
+ language: U.value,
716
+ deliver: q.value.deliver,
717
+ profileId: q.value.profileId,
718
+ modelId: q.value.modelId,
670
719
  enabled: !0
671
- }), K.value = {
672
- ...K.value,
720
+ }), q.value = {
721
+ ...q.value,
673
722
  title: "",
674
723
  prompt: "",
675
724
  cron: "",
676
- profileId: null
725
+ profileId: null,
726
+ modelId: null
677
727
  };
678
728
  }
679
- function Yr(e) {
729
+ function Qr(e) {
680
730
  return e.replace(/^\[[^\]]+\]\s*/, "");
681
731
  }
682
- function Xr(e) {
732
+ function $r(e) {
683
733
  if (e.source.kind !== "external") return e.approval;
684
734
  let { serverId: t, toolName: n } = e.source;
685
- return G.value?.mcpServers.find((e) => e.id === t)?.toolApproval[n] ?? e.approval;
735
+ return K.value?.mcpServers.find((e) => e.id === t)?.toolApproval[n] ?? e.approval;
686
736
  }
687
- function Zr(e) {
737
+ function ei(e) {
688
738
  return e.tools.flatMap((e) => e.source.kind === "external" ? [{
689
- label: De(e.name),
739
+ label: je(e.name),
690
740
  value: e.source.toolName
691
741
  }] : []);
692
742
  }
693
- function Qr(e) {
694
- return e.tools.flatMap((e) => e.source.kind === "external" && !Xr(e) ? [e.source.toolName] : []);
743
+ function ti(e) {
744
+ return e.tools.flatMap((e) => e.source.kind === "external" && !$r(e) ? [e.source.toolName] : []);
695
745
  }
696
- function $r(e, t) {
697
- let n = G.value?.mcpServers.find((t) => t.id === e.serverId);
698
- n && (n.toolApproval = Object.fromEntries(Zr(e).map((e) => [e.value, !t.includes(e.value)])));
746
+ function ni(e, t) {
747
+ let n = K.value?.mcpServers.find((t) => t.id === e.serverId);
748
+ n && (n.toolApproval = Object.fromEntries(ei(e).map((e) => [e.value, !t.includes(e.value)])));
699
749
  }
700
- function ei(e) {
750
+ function ri(e) {
701
751
  return e < 1e3 ? String(e) : e < 1e6 ? `${(e / 1e3).toFixed(+(e < 1e4))}k` : `${(e / 1e6).toFixed(2)}M`;
702
752
  }
703
- function ti(e) {
704
- return H.value?.external.find((t) => t.id === e);
753
+ function ii(e) {
754
+ return W.value?.external.find((t) => t.id === e);
705
755
  }
706
- function ni(e) {
707
- let t = ti(e);
708
- return t ? t.state === "connected" ? B("views.settings.assistant_external_state_connected", { n: t.toolCount }) : t.state === "error" ? B("views.settings.assistant_external_state_error", { message: t.error ?? "" }) : B(`views.settings.assistant_external_state_${t.state}`) : "";
756
+ function ai(e) {
757
+ let t = ii(e);
758
+ return t ? t.state === "connected" ? H("views.settings.assistant_external_state_connected", { n: t.toolCount }) : t.state === "error" ? H("views.settings.assistant_external_state_error", { message: t.error ?? "" }) : H(`views.settings.assistant_external_state_${t.state}`) : "";
709
759
  }
710
- function ri(e) {
711
- let t = ti(e)?.state;
760
+ function oi(e) {
761
+ let t = ii(e)?.state;
712
762
  return t === "connected" ? "text-success" : t === "error" ? "text-danger" : "text-muted";
713
763
  }
714
- function ii() {
715
- if (!G.value) return;
716
- let e = P();
717
- G.value.mcpServers.push({
764
+ function si() {
765
+ if (!K.value) return;
766
+ let e = F();
767
+ K.value.mcpServers.push({
718
768
  id: e,
719
769
  name: "",
720
770
  url: "",
@@ -722,16 +772,16 @@ var Be = o({
722
772
  insecure: !1,
723
773
  tokenSet: !1,
724
774
  toolApproval: {}
725
- }), J.value.push(e);
775
+ }), Y.value.push(e);
726
776
  }
727
- function ai(e) {
728
- J.value = J.value.includes(e) ? J.value.filter((t) => t !== e) : [...J.value, e];
777
+ function ci(e) {
778
+ Y.value = Y.value.includes(e) ? Y.value.filter((t) => t !== e) : [...Y.value, e];
729
779
  }
730
- function oi(e) {
731
- G.value && (G.value.mcpServers = G.value.mcpServers.filter((t) => t.id !== e), J.value = J.value.filter((t) => t !== e), delete q.value[e]);
780
+ function li(e) {
781
+ K.value && (K.value.mcpServers = K.value.mcpServers.filter((t) => t.id !== e), Y.value = Y.value.filter((t) => t !== e), delete J.value[e]);
732
782
  }
733
- function si() {
734
- let e = M(G.value);
783
+ function ui() {
784
+ let e = M(K.value);
735
785
  return {
736
786
  language: e.language,
737
787
  maxIterations: e.maxIterations,
@@ -756,170 +806,204 @@ var Be = o({
756
806
  enabled: e.enabled,
757
807
  insecure: e.insecure,
758
808
  toolApproval: e.toolApproval,
759
- ...q.value[e.id] ? { token: q.value[e.id] } : {}
809
+ ...J.value[e.id] ? { token: J.value[e.id] } : {}
760
810
  }))
761
811
  };
762
812
  }
763
- function ci() {
764
- G.value && Object.assign(G.value, x);
813
+ function di() {
814
+ K.value && Object.assign(K.value, x);
765
815
  }
766
- async function li() {
767
- G.value && (await U.mutateAsync(si()), q.value = {});
816
+ async function $() {
817
+ K.value && (await G.mutateAsync(ui()), J.value = {});
768
818
  }
769
- function ui(e) {
770
- let t = H.value?.modelProviders.find((t) => t.provider === e);
771
- return t ? B("views.settings.assistant_provider_plugin", { name: t.pluginName }) : Ae.find((t) => t.value === e)?.label ?? e;
819
+ function fi(e) {
820
+ let t = W.value?.modelProviders.find((t) => t.provider === e);
821
+ return t ? H("views.settings.assistant_provider_plugin", { name: t.pluginName }) : Pe.find((t) => t.value === e)?.label ?? e;
772
822
  }
773
- function di(e) {
774
- return H.value?.modelProviders.find((t) => t.provider === e.provider)?.models.find((t) => t.id === e.model)?.name ?? e.model;
823
+ function pi(e) {
824
+ return W.value?.modelProviders.find((t) => t.provider === e.provider)?.models.find((t) => t.id === e.model)?.name ?? e.model;
775
825
  }
776
- function fi(e) {
777
- let t = H.value?.modelProviders.find((t) => t.provider === e)?.status;
826
+ function mi(e) {
827
+ let t = W.value?.modelProviders.find((t) => t.provider === e)?.status;
778
828
  if (!t || t.ready) return;
779
829
  let n = typeof t.progress == "number" ? ` (${Math.round(t.progress * 100)}%)` : "";
780
- return `${t.message || B("views.settings.assistant_model_plugin_loading")}${n}`;
830
+ return `${t.message || H("views.settings.assistant_model_plugin_loading")}${n}`;
781
831
  }
782
- async function pi(e) {
783
- return U.mutateAsync({ models: e });
832
+ async function hi(e) {
833
+ return G.mutateAsync({ models: e });
784
834
  }
785
- function mi(e, t) {
835
+ function gi(e, t) {
786
836
  Ke.value = [
787
837
  {
788
- label: B("views.settings.assistant_model_make_default"),
789
- icon: Be,
838
+ label: H("views.settings.assistant_model_make_default"),
839
+ icon: Re,
790
840
  hide: t._id === Ye.value?._id,
791
- disabled: U.isPending.value,
792
- onClick: () => bi(t)
841
+ disabled: G.isPending.value,
842
+ onClick: () => Si(t)
793
843
  },
794
844
  {
795
- label: B("views.settings.assistant_model_edit"),
796
- icon: Fe,
797
- onClick: () => _i(t)
845
+ label: H("views.settings.assistant_model_edit"),
846
+ icon: Ee,
847
+ onClick: () => yi(t)
798
848
  },
799
849
  {
800
850
  ...o,
801
- label: B("views.settings.assistant_model_delete"),
802
- onClick: () => yi(t)
851
+ label: H("views.settings.assistant_model_delete"),
852
+ onClick: () => xi(t)
803
853
  }
804
854
  ], Je.value?.toggleMenu(e);
805
855
  }
806
- function hi(e) {
807
- We.mutate({
856
+ function _i(e) {
857
+ Ue.mutate({
808
858
  scheduleId: e._id,
809
859
  patch: { enabled: !e.enabled }
810
860
  });
811
861
  }
812
- function gi(e, t) {
862
+ function vi(e, t) {
813
863
  Ke.value = [
814
864
  {
815
- label: B("views.settings.assistant_schedule_run"),
865
+ label: H("views.settings.assistant_schedule_run"),
816
866
  icon: ze,
817
- onClick: () => W.mutate(t._id)
867
+ onClick: () => Ge.mutate(t._id)
818
868
  },
819
869
  t.enabled ? {
820
- label: B("views.settings.assistant_schedule_pause"),
821
- icon: Me,
822
- onClick: () => hi(t)
870
+ label: H("views.settings.assistant_schedule_pause"),
871
+ icon: De,
872
+ onClick: () => _i(t)
823
873
  } : {
824
- label: B("views.settings.assistant_schedule_resume"),
825
- icon: Ee,
826
- onClick: () => hi(t)
874
+ label: H("views.settings.assistant_schedule_resume"),
875
+ icon: Ae,
876
+ onClick: () => _i(t)
877
+ },
878
+ {
879
+ label: H("views.settings.assistant_schedule_model_change"),
880
+ icon: B,
881
+ onClick: () => ki(t)
827
882
  },
828
883
  {
829
884
  ...o,
830
- label: B("views.settings.assistant_schedule_delete"),
831
- onClick: () => Ge.mutate(t._id)
885
+ label: H("views.settings.assistant_schedule_delete"),
886
+ onClick: () => We.mutate(t._id)
832
887
  }
833
888
  ], Je.value?.toggleMenu(e);
834
889
  }
835
- function _i(e) {
836
- let t = new Set(X.value.map((e) => e._id));
837
- ke.openComponentDialog(Q, {
890
+ function yi(e) {
891
+ let t = new Set(Z.value.map((e) => e._id));
892
+ Ne.openComponentDialog(rt, {
838
893
  data: {
839
- title: B(e ? "views.settings.assistant_model_edit" : "views.settings.assistant_model_add"),
840
- confirmText: B("components.form.button.save"),
894
+ title: H(e ? "views.settings.assistant_model_edit" : "views.settings.assistant_model_add"),
895
+ confirmText: H("components.form.button.save"),
841
896
  awaitConfirm: !0,
842
897
  contentProps: {
843
898
  entry: e ? i(e) : void 0,
844
- models: i(X.value),
845
- modelProviders: i(H.value?.modelProviders ?? [])
899
+ models: i(Z.value),
900
+ modelProviders: i(W.value?.modelProviders ?? [])
846
901
  }
847
902
  },
848
903
  onConfirm: async (n) => {
849
- vi((await pi(e ? X.value.map((t) => t._id === e._id ? n : je(t)) : [...X.value.map(je), n])).settings.models.find((n) => e ? n._id === e._id : !t.has(n._id)));
904
+ bi((await hi(e ? Z.value.map((t) => t._id === e._id ? n : V(t)) : [...Z.value.map(V), n])).settings.models.find((n) => e ? n._id === e._id : !t.has(n._id)));
850
905
  }
851
906
  });
852
907
  }
853
- function vi(e) {
908
+ function bi(e) {
854
909
  let t = e?.capabilities;
855
910
  if (!t) return;
856
- let n = H.value?.modelProviders.find((t) => t.provider === e.provider)?.models.find((t) => t.id === e.model), r = t.error ? B("views.settings.assistant_test_failed", { message: t.error }) : t.toolCalling ? t.vision === !1 ? B("views.settings.assistant_test_vision_missing") : "" : B(n?.toolCalling === !1 ? "views.settings.assistant_test_tools_declared" : "views.settings.assistant_test_tools_missing");
857
- r && z.add({
911
+ let n = W.value?.modelProviders.find((t) => t.provider === e.provider)?.models.find((t) => t.id === e.model), r = t.error ? H("views.settings.assistant_test_failed", { message: t.error }) : t.toolCalling ? t.vision === !1 ? H("views.settings.assistant_test_vision_missing") : "" : H(n?.toolCalling === !1 ? "views.settings.assistant_test_tools_declared" : "views.settings.assistant_test_tools_missing");
912
+ r && Oe.add({
858
913
  severity: t.error ? "error" : "warn",
859
914
  detail: r,
860
915
  life: 8e3
861
916
  });
862
917
  }
863
- function yi(e) {
864
- ke.openTextDialog({
918
+ function xi(e) {
919
+ Ne.openTextDialog({
865
920
  data: {
866
- title: B("views.settings.assistant_model_delete"),
867
- contentText: B("views.settings.assistant_model_delete_confirm", { name: e.name }),
868
- confirmText: B("views.settings.assistant_model_delete"),
921
+ title: H("views.settings.assistant_model_delete"),
922
+ contentText: H("views.settings.assistant_model_delete_confirm", { name: e.name }),
923
+ confirmText: H("views.settings.assistant_model_delete"),
869
924
  confirmButtonProps: { severity: "danger" }
870
925
  },
871
926
  onConfirm: async () => {
872
- await pi(X.value.filter((t) => t._id !== e._id).map(je));
927
+ await hi(Z.value.filter((t) => t._id !== e._id).map(V));
873
928
  }
874
929
  });
875
930
  }
876
- async function bi(e) {
877
- await U.mutateAsync({ defaultModelId: e._id });
931
+ async function Si(e) {
932
+ await G.mutateAsync({ defaultModelId: e._id });
878
933
  }
879
- function xi(e) {
880
- return G.value?.plugins.find((t) => t.pluginId === e)?.modelId ?? Lr;
934
+ function Ci(e) {
935
+ return K.value?.plugins.find((t) => t.pluginId === e)?.modelId ?? Hr;
881
936
  }
882
- function Si(e) {
883
- return X.value.find((t) => t._id === xi(e));
937
+ function wi(e) {
938
+ return Z.value.find((t) => t._id === Ci(e));
884
939
  }
885
- function Ci(e, t) {
886
- if (!G.value) return;
887
- let n = G.value.plugins.filter((t) => t.pluginId !== e);
888
- G.value.plugins = t === Lr ? n : [...n, {
940
+ function Ti(e, t) {
941
+ if (!K.value) return;
942
+ let n = K.value.plugins.filter((t) => t.pluginId !== e);
943
+ K.value.plugins = t === Hr ? n : [...n, {
889
944
  pluginId: e,
890
945
  modelId: t
891
946
  }];
892
947
  }
893
- function wi(e) {
894
- return X.value.find((t) => t.provider === e.provider && t.model === e.model)?.name ?? e.model;
948
+ function Ei(e) {
949
+ return Z.value.find((t) => t.provider === e.provider && t.model === e.model)?.name ?? e.model;
950
+ }
951
+ function Di(e) {
952
+ return Z.value.some((t) => t._id === e.modelId) ? e.modelId ?? null : null;
953
+ }
954
+ function Oi(e) {
955
+ let t = Be.value?.find((t) => t._id === e), n = (Z.value.find((e) => e._id === t?.modelId) ?? Ye.value)?.name;
956
+ return n ? H("views.settings.assistant_schedule_model_default", { name: n }) : void 0;
957
+ }
958
+ function ki(e) {
959
+ Ne.openComponentDialog(ot, {
960
+ data: {
961
+ title: e.title,
962
+ confirmText: H("components.form.button.save"),
963
+ contentProps: {
964
+ models: i(Z.value),
965
+ modelId: e.modelId,
966
+ fallback: Oi(e.profileId)
967
+ }
968
+ },
969
+ onConfirm: ({ modelId: t }) => {
970
+ Ue.mutate({
971
+ scheduleId: e._id,
972
+ patch: { modelId: t }
973
+ });
974
+ }
975
+ });
976
+ }
977
+ function Ai(e) {
978
+ return Z.value.find((t) => t._id === e)?.name;
895
979
  }
896
- function Ti(e) {
897
- return Ve.value?.find((t) => t._id === e)?.name;
980
+ function ji(e) {
981
+ return Be.value?.find((t) => t._id === e)?.name;
898
982
  }
899
- return p(H, (e) => {
900
- e && !G.value && (G.value = M(e.settings));
983
+ return p(W, (e) => {
984
+ e && !K.value && (K.value = M(e.settings));
901
985
  }, { immediate: !0 }), (e, i) => {
902
- let o = fe, d = ee, p = E, _ = pe, x = oe, S = Be, D = L, re = Fe, j = A, M = Pe, P = we, F = he, I = ye, R = xe, Se = Ne, z = me, Oe = te, ke = k, Ae = se, je = h("RouterLink"), B = T, V = ie, Le = ze, We = Me, Z = Ee, Q = _e, Lr = ve, ti = ae, si = de, pi = be, vi = Ie, Ei = N, Di = le, Oi = ce, $ = w;
903
- return n(), m("div", rt, [u(G) ? (n(), m("div", at, [
904
- v("div", null, [v("span", ot, r(e.$t("views.settings.status")), 1), C(_, { class: "cui-card" }, {
905
- content: f(() => [v("div", st, [v("div", ct, [v("span", lt, r(e.$t("views.settings.assistant_title")), 1), C(d, {
986
+ let o = ue, d = ee, p = E, _ = de, x = ne, S = Re, D = fe, ae = Ee, M = O, P = Te, F = Ce, L = me, R = ve, z = be, xe = we, B = pe, De = j, Oe = k, Ae = ie, Me = h("RouterLink"), Ne = T, Pe = le, V = ge, H = _e, U = te, Ie = N, ze = ye, Ue = Fe, We = ce, Q = oe, rt = I, ot = w;
987
+ return n(), m("div", st, [u(K) ? (n(), m("div", lt, [
988
+ v("div", null, [v("span", ut, r(e.$t("views.settings.status")), 1), C(_, { class: "cui-card" }, {
989
+ content: f(() => [v("div", dt, [v("div", ft, [v("span", pt, r(e.$t("views.settings.assistant_title")), 1), C(d, {
906
990
  severity: "secondary",
907
991
  variant: "simple",
908
992
  size: "small",
909
993
  class: "cui-input-switch-hint truncate"
910
994
  }, {
911
- default: f(() => [b(r(u(Wr)), 1)]),
995
+ default: f(() => [b(r(u(qr)), 1)]),
912
996
  _: 1
913
997
  })]), C(p, {
914
998
  class: "ml-auto shrink-0",
915
- severity: u(Hr),
916
- value: u(Ur)
999
+ severity: u(Gr),
1000
+ value: u(Kr)
917
1001
  }, null, 8, ["severity", "value"])])]),
918
1002
  _: 1
919
1003
  })]),
920
- v("div", null, [v("span", ut, r(e.$t("views.settings.assistant_model")), 1), C(_, { class: "cui-card" }, {
921
- content: f(() => [v("div", dt, [
922
- v("div", ft, [v("div", pt, [v("label", mt, r(e.$t("components.form.label.enabled")), 1), C(d, {
1004
+ v("div", null, [v("span", mt, r(e.$t("views.settings.assistant_model")), 1), C(_, { class: "cui-card" }, {
1005
+ content: f(() => [v("div", ht, [
1006
+ v("div", gt, [v("div", _t, [v("label", vt, r(e.$t("components.form.label.enabled")), 1), C(d, {
923
1007
  severity: "secondary",
924
1008
  variant: "simple",
925
1009
  size: "small",
@@ -928,11 +1012,11 @@ var Be = o({
928
1012
  default: f(() => [b(r(e.$t("views.settings.assistant_enabled_info")), 1)]),
929
1013
  _: 1
930
1014
  })]), C(x, {
931
- "model-value": u(H)?.settings.enabled ?? !1,
1015
+ "model-value": u(W)?.settings.enabled ?? !1,
932
1016
  "input-id": "enabled",
933
- disabled: u(U).isPending.value,
1017
+ disabled: u(G).isPending.value,
934
1018
  class: "ml-auto shrink-0",
935
- "onUpdate:modelValue": i[0] ||= (e) => u(U).mutate({ enabled: e })
1019
+ "onUpdate:modelValue": i[0] ||= (e) => u(G).mutate({ enabled: e })
936
1020
  }, null, 8, ["model-value", "disabled"])]),
937
1021
  C(d, {
938
1022
  severity: "secondary",
@@ -943,13 +1027,13 @@ var Be = o({
943
1027
  default: f(() => [b(r(e.$t("views.settings.assistant_models_info")), 1)]),
944
1028
  _: 1
945
1029
  }),
946
- u(X).length ? (n(), m("div", ht, [(n(!0), m(g, null, t(u(X), (i) => (n(), m("div", {
1030
+ u(Z).length ? (n(), m("div", yt, [(n(!0), m(g, null, t(u(Z), (i) => (n(), m("div", {
947
1031
  key: i._id,
948
1032
  class: "flex items-start gap-3 py-3 text-sm"
949
1033
  }, [
950
- v("div", gt, [
951
- v("span", _t, r(i.name), 1),
952
- v("div", vt, [
1034
+ v("div", bt, [
1035
+ v("span", xt, r(i.name), 1),
1036
+ v("div", St, [
953
1037
  i._id === u(Ye)?._id ? (n(), s(p, {
954
1038
  key: 0,
955
1039
  severity: "info",
@@ -962,18 +1046,18 @@ var Be = o({
962
1046
  value: e.$t("views.settings.assistant_model_admins_only"),
963
1047
  class: "text-[10px]"
964
1048
  }, null, 8, ["value"])) : c("", !0),
965
- (n(!0), m(g, null, t(u(Te)(i), (t) => (n(), s(p, {
1049
+ (n(!0), m(g, null, t(u(ke)(i), (t) => (n(), s(p, {
966
1050
  key: t.key,
967
1051
  severity: t.severity,
968
1052
  value: e.$t(`views.settings.assistant_capability_${t.key}`),
969
1053
  class: "text-[10px]"
970
1054
  }, null, 8, ["severity", "value"]))), 128))
971
1055
  ]),
972
- v("div", yt, r(ui(i.provider)) + " · " + r(di(i)), 1),
973
- i.capabilities?.error ? (n(), m("div", bt, r(i.capabilities.error), 1)) : c("", !0),
974
- fi(i.provider) ? (n(), m("div", xt, r(fi(i.provider)), 1)) : c("", !0)
1056
+ v("div", Ct, r(fi(i.provider)) + " · " + r(pi(i)), 1),
1057
+ i.capabilities?.error ? (n(), m("div", wt, r(i.capabilities.error), 1)) : c("", !0),
1058
+ mi(i.provider) ? (n(), m("div", Tt, r(mi(i.provider)), 1)) : c("", !0)
975
1059
  ]),
976
- v("div", St, [
1060
+ v("div", Et, [
977
1061
  i._id === u(Ye)?._id ? c("", !0) : y((n(), s(D, {
978
1062
  key: 0,
979
1063
  type: "button",
@@ -981,8 +1065,8 @@ var Be = o({
981
1065
  text: "",
982
1066
  rounded: "",
983
1067
  class: "cui-icon-md",
984
- disabled: u(U).isPending.value,
985
- onClick: (e) => bi(i)
1068
+ disabled: u(G).isPending.value,
1069
+ onClick: (e) => Si(i)
986
1070
  }, {
987
1071
  icon: f(() => [C(S, {
988
1072
  width: "100%",
@@ -990,7 +1074,7 @@ var Be = o({
990
1074
  })]),
991
1075
  _: 1
992
1076
  }, 8, ["disabled", "onClick"])), [[
993
- $,
1077
+ ot,
994
1078
  { value: e.$t("views.settings.assistant_model_make_default") },
995
1079
  void 0,
996
1080
  { top: !0 }
@@ -1001,15 +1085,15 @@ var Be = o({
1001
1085
  text: "",
1002
1086
  rounded: "",
1003
1087
  class: "cui-icon-md",
1004
- onClick: (e) => _i(i)
1088
+ onClick: (e) => yi(i)
1005
1089
  }, {
1006
- icon: f(() => [C(re, {
1090
+ icon: f(() => [C(ae, {
1007
1091
  width: "100%",
1008
1092
  height: "100%"
1009
1093
  })]),
1010
1094
  _: 1
1011
1095
  }, 8, ["onClick"])), [[
1012
- $,
1096
+ ot,
1013
1097
  { value: e.$t("views.settings.assistant_model_edit") },
1014
1098
  void 0,
1015
1099
  { top: !0 }
@@ -1020,52 +1104,52 @@ var Be = o({
1020
1104
  text: "",
1021
1105
  rounded: "",
1022
1106
  class: "cui-icon-md",
1023
- onClick: (e) => yi(i)
1107
+ onClick: (e) => xi(i)
1024
1108
  }, {
1025
- icon: f(() => [C(j, {
1109
+ icon: f(() => [C(M, {
1026
1110
  width: "100%",
1027
1111
  height: "100%"
1028
1112
  })]),
1029
1113
  _: 1
1030
1114
  }, 8, ["onClick"])), [[
1031
- $,
1115
+ ot,
1032
1116
  { value: e.$t("views.settings.assistant_model_delete") },
1033
1117
  void 0,
1034
1118
  { top: !0 }
1035
1119
  ]])
1036
1120
  ]),
1037
- v("div", Ct, [C(D, {
1121
+ v("div", Dt, [C(D, {
1038
1122
  type: "button",
1039
1123
  severity: "secondary",
1040
1124
  text: "",
1041
1125
  rounded: "",
1042
1126
  class: "cui-icon-md",
1043
- onClick: (e) => mi(e, i)
1127
+ onClick: (e) => gi(e, i)
1044
1128
  }, {
1045
- icon: f(() => [C(M, {
1129
+ icon: f(() => [C(P, {
1046
1130
  width: "100%",
1047
1131
  height: "100%"
1048
1132
  })]),
1049
1133
  _: 1
1050
1134
  }, 8, ["onClick"])])
1051
- ]))), 128))])) : (n(), m("div", wt, r(e.$t("views.settings.assistant_models_empty")), 1)),
1052
- v("div", Tt, [C(D, {
1135
+ ]))), 128))])) : (n(), m("div", Ot, r(e.$t("views.settings.assistant_models_empty")), 1)),
1136
+ v("div", kt, [C(D, {
1053
1137
  type: "button",
1054
1138
  severity: "secondary",
1055
1139
  outlined: "",
1056
1140
  class: "cui-button-medium ml-auto",
1057
1141
  label: e.$t("views.settings.assistant_model_add"),
1058
- disabled: u(X).length >= 20,
1059
- onClick: i[1] ||= (e) => _i()
1142
+ disabled: u(Z).length >= 20,
1143
+ onClick: i[1] ||= (e) => yi()
1060
1144
  }, {
1061
- icon: f(() => [C(P, { class: "w-4 h-4" })]),
1145
+ icon: f(() => [C(F, { class: "w-4 h-4" })]),
1062
1146
  _: 1
1063
1147
  }, 8, ["label", "disabled"])])
1064
1148
  ])]),
1065
1149
  _: 1
1066
1150
  })]),
1067
- v("div", null, [v("span", Et, r(e.$t("views.settings.assistant_plugins")), 1), C(_, { class: "cui-card" }, {
1068
- content: f(() => [v("div", Dt, [
1151
+ v("div", null, [v("span", At, r(e.$t("views.settings.assistant_plugins")), 1), C(_, { class: "cui-card" }, {
1152
+ content: f(() => [v("div", jt, [
1069
1153
  C(d, {
1070
1154
  severity: "secondary",
1071
1155
  variant: "simple",
@@ -1075,44 +1159,44 @@ var Be = o({
1075
1159
  default: f(() => [b(r(e.$t("views.settings.assistant_plugins_info")), 1)]),
1076
1160
  _: 1
1077
1161
  }),
1078
- u(H)?.plugins.length ? (n(!0), m(g, { key: 0 }, t(u(H).plugins, (t) => (n(), m("div", {
1162
+ u(W)?.plugins.length ? (n(!0), m(g, { key: 0 }, t(u(W).plugins, (t) => (n(), m("div", {
1079
1163
  key: t.id,
1080
1164
  class: "flex flex-col field-gap"
1081
- }, [v("div", Ot, [v("label", {
1165
+ }, [v("div", Mt, [v("label", {
1082
1166
  for: `plugin-${t.id}`,
1083
1167
  class: "cui-label truncate"
1084
- }, r(t.name), 9, kt), Si(t.id)?.capabilities?.vision === !1 ? (n(), s(p, {
1168
+ }, r(t.name), 9, Nt), wi(t.id)?.capabilities?.vision === !1 ? (n(), s(p, {
1085
1169
  key: 0,
1086
1170
  severity: "warn",
1087
1171
  value: e.$t("views.settings.assistant_capability_no_vision"),
1088
1172
  class: "shrink-0 text-[10px]"
1089
- }, null, 8, ["value"])) : c("", !0)]), C(F, {
1090
- "model-value": xi(t.id),
1173
+ }, null, 8, ["value"])) : c("", !0)]), C(L, {
1174
+ "model-value": Ci(t.id),
1091
1175
  "input-id": `plugin-${t.id}`,
1092
1176
  options: u(Xe),
1093
1177
  "option-label": "label",
1094
1178
  "option-value": "value",
1095
1179
  fluid: "",
1096
- "onUpdate:modelValue": (e) => Ci(t.id, e)
1180
+ "onUpdate:modelValue": (e) => Ti(t.id, e)
1097
1181
  }, null, 8, [
1098
1182
  "model-value",
1099
1183
  "input-id",
1100
1184
  "options",
1101
1185
  "onUpdate:modelValue"
1102
- ])]))), 128)) : (n(), m("div", At, r(e.$t("views.settings.assistant_plugins_empty")), 1)),
1103
- v("div", jt, [C(D, {
1186
+ ])]))), 128)) : (n(), m("div", Pt, r(e.$t("views.settings.assistant_plugins_empty")), 1)),
1187
+ v("div", Ft, [C(D, {
1104
1188
  type: "button",
1105
- loading: u(U).isPending.value,
1189
+ loading: u(G).isPending.value,
1106
1190
  class: "cui-button-medium ml-auto",
1107
1191
  label: e.$t("components.form.button.save"),
1108
- onClick: li
1192
+ onClick: $
1109
1193
  }, null, 8, ["loading", "label"])])
1110
1194
  ])]),
1111
1195
  _: 1
1112
1196
  })]),
1113
- v("div", null, [v("span", Mt, r(e.$t("views.settings.assistant_behavior")), 1), C(_, { class: "cui-card" }, {
1114
- content: f(() => [v("div", Nt, [
1115
- v("div", Pt, [v("div", Ft, [v("label", It, r(e.$t("views.settings.assistant_memory")), 1), C(d, {
1197
+ v("div", null, [v("span", It, r(e.$t("views.settings.assistant_behavior")), 1), C(_, { class: "cui-card" }, {
1198
+ content: f(() => [v("div", Lt, [
1199
+ v("div", Rt, [v("div", zt, [v("label", Bt, r(e.$t("views.settings.assistant_memory")), 1), C(d, {
1116
1200
  severity: "secondary",
1117
1201
  variant: "simple",
1118
1202
  size: "small",
@@ -1121,12 +1205,12 @@ var Be = o({
1121
1205
  default: f(() => [b(r(e.$t("views.settings.assistant_memory_info")), 1)]),
1122
1206
  _: 1
1123
1207
  })]), C(x, {
1124
- modelValue: u(G).memoryEnabled,
1125
- "onUpdate:modelValue": i[2] ||= (e) => u(G).memoryEnabled = e,
1208
+ modelValue: u(K).memoryEnabled,
1209
+ "onUpdate:modelValue": i[2] ||= (e) => u(K).memoryEnabled = e,
1126
1210
  "input-id": "memoryEnabled",
1127
1211
  class: "ml-auto shrink-0"
1128
1212
  }, null, 8, ["modelValue"])]),
1129
- v("div", Lt, [v("div", Rt, [v("label", zt, r(e.$t("views.settings.assistant_terminal")), 1), C(d, {
1213
+ v("div", Vt, [v("div", Ht, [v("label", Ut, r(e.$t("views.settings.assistant_terminal")), 1), C(d, {
1130
1214
  severity: "secondary",
1131
1215
  variant: "simple",
1132
1216
  size: "small",
@@ -1135,16 +1219,16 @@ var Be = o({
1135
1219
  default: f(() => [b(r(e.$t("views.settings.assistant_terminal_info")), 1)]),
1136
1220
  _: 1
1137
1221
  })]), C(x, {
1138
- modelValue: u(G).terminalEnabled,
1139
- "onUpdate:modelValue": i[3] ||= (e) => u(G).terminalEnabled = e,
1222
+ modelValue: u(K).terminalEnabled,
1223
+ "onUpdate:modelValue": i[3] ||= (e) => u(K).terminalEnabled = e,
1140
1224
  "input-id": "terminalEnabled",
1141
1225
  class: "ml-auto shrink-0"
1142
1226
  }, null, 8, ["modelValue"])]),
1143
- v("div", Bt, [
1144
- v("label", Vt, r(e.$t("views.settings.assistant_language_label")), 1),
1145
- C(F, {
1146
- modelValue: u(G).language,
1147
- "onUpdate:modelValue": i[4] ||= (e) => u(G).language = e,
1227
+ v("div", Wt, [
1228
+ v("label", Gt, r(e.$t("views.settings.assistant_language_label")), 1),
1229
+ C(L, {
1230
+ modelValue: u(K).language,
1231
+ "onUpdate:modelValue": i[4] ||= (e) => u(K).language = e,
1148
1232
  "input-id": "language",
1149
1233
  options: u($e),
1150
1234
  "option-label": "label",
@@ -1162,11 +1246,11 @@ var Be = o({
1162
1246
  _: 1
1163
1247
  })
1164
1248
  ]),
1165
- v("div", Ht, [
1166
- v("label", Ut, r(e.$t("views.settings.assistant_reasoning_label")), 1),
1167
- C(F, {
1168
- modelValue: u(G).reasoning,
1169
- "onUpdate:modelValue": i[5] ||= (e) => u(G).reasoning = e,
1249
+ v("div", Kt, [
1250
+ v("label", qt, r(e.$t("views.settings.assistant_reasoning_label")), 1),
1251
+ C(L, {
1252
+ modelValue: u(K).reasoning,
1253
+ "onUpdate:modelValue": i[5] ||= (e) => u(K).reasoning = e,
1170
1254
  "input-id": "reasoning",
1171
1255
  options: u(et),
1172
1256
  "option-label": "label",
@@ -1183,11 +1267,11 @@ var Be = o({
1183
1267
  _: 1
1184
1268
  })
1185
1269
  ]),
1186
- v("div", Wt, [v("div", Gt, [
1187
- v("label", Kt, r(e.$t("views.settings.assistant_max_iterations_label")), 1),
1188
- C(I, {
1189
- modelValue: u(G).maxIterations,
1190
- "onUpdate:modelValue": i[6] ||= (e) => u(G).maxIterations = e,
1270
+ v("div", Jt, [v("div", Yt, [
1271
+ v("label", Xt, r(e.$t("views.settings.assistant_max_iterations_label")), 1),
1272
+ C(R, {
1273
+ modelValue: u(K).maxIterations,
1274
+ "onUpdate:modelValue": i[6] ||= (e) => u(K).maxIterations = e,
1191
1275
  min: 1,
1192
1276
  max: 30,
1193
1277
  "use-grouping": !1,
@@ -1202,11 +1286,11 @@ var Be = o({
1202
1286
  default: f(() => [b(r(e.$t("views.settings.assistant_max_iterations_info")), 1)]),
1203
1287
  _: 1
1204
1288
  })
1205
- ]), v("div", qt, [
1206
- v("label", Jt, r(e.$t("views.settings.assistant_max_tool_calls_label")), 1),
1207
- C(I, {
1208
- modelValue: u(G).maxToolCalls,
1209
- "onUpdate:modelValue": i[7] ||= (e) => u(G).maxToolCalls = e,
1289
+ ]), v("div", Zt, [
1290
+ v("label", Qt, r(e.$t("views.settings.assistant_max_tool_calls_label")), 1),
1291
+ C(R, {
1292
+ modelValue: u(K).maxToolCalls,
1293
+ "onUpdate:modelValue": i[7] ||= (e) => u(K).maxToolCalls = e,
1210
1294
  min: 1,
1211
1295
  max: 100,
1212
1296
  "use-grouping": !1,
@@ -1222,12 +1306,12 @@ var Be = o({
1222
1306
  _: 1
1223
1307
  })
1224
1308
  ])]),
1225
- v("div", Yt, [
1226
- v("label", Xt, r(e.$t("views.settings.assistant_context_tokens_label")), 1),
1227
- C(I, {
1309
+ v("div", $t, [
1310
+ v("label", en, r(e.$t("views.settings.assistant_context_tokens_label")), 1),
1311
+ C(R, {
1228
1312
  id: "contextTokens",
1229
- modelValue: u(G).contextTokens,
1230
- "onUpdate:modelValue": i[8] ||= (e) => u(G).contextTokens = e,
1313
+ modelValue: u(K).contextTokens,
1314
+ "onUpdate:modelValue": i[8] ||= (e) => u(K).contextTokens = e,
1231
1315
  min: 8e3,
1232
1316
  max: 4e5,
1233
1317
  step: 1e3,
@@ -1244,12 +1328,12 @@ var Be = o({
1244
1328
  _: 1
1245
1329
  })
1246
1330
  ]),
1247
- v("div", Zt, [v("div", Qt, [
1248
- v("label", $t, r(e.$t("views.settings.assistant_history_threads_label")), 1),
1249
- C(I, {
1331
+ v("div", tn, [v("div", nn, [
1332
+ v("label", rn, r(e.$t("views.settings.assistant_history_threads_label")), 1),
1333
+ C(R, {
1250
1334
  id: "historyThreads",
1251
- modelValue: u(G).historyThreads,
1252
- "onUpdate:modelValue": i[9] ||= (e) => u(G).historyThreads = e,
1335
+ modelValue: u(K).historyThreads,
1336
+ "onUpdate:modelValue": i[9] ||= (e) => u(K).historyThreads = e,
1253
1337
  min: 5,
1254
1338
  max: 500,
1255
1339
  "use-grouping": !1,
@@ -1264,12 +1348,12 @@ var Be = o({
1264
1348
  default: f(() => [b(r(e.$t("views.settings.assistant_history_threads_info")), 1)]),
1265
1349
  _: 1
1266
1350
  })
1267
- ]), v("div", en, [
1268
- v("label", tn, r(e.$t("views.settings.assistant_history_images_label")), 1),
1269
- C(I, {
1351
+ ]), v("div", an, [
1352
+ v("label", on, r(e.$t("views.settings.assistant_history_images_label")), 1),
1353
+ C(R, {
1270
1354
  id: "historyImages",
1271
- modelValue: u(G).historyImages,
1272
- "onUpdate:modelValue": i[10] ||= (e) => u(G).historyImages = e,
1355
+ modelValue: u(K).historyImages,
1356
+ "onUpdate:modelValue": i[10] ||= (e) => u(K).historyImages = e,
1273
1357
  min: 0,
1274
1358
  max: 200,
1275
1359
  "use-grouping": !1,
@@ -1285,11 +1369,11 @@ var Be = o({
1285
1369
  _: 1
1286
1370
  })
1287
1371
  ])]),
1288
- v("div", nn, [
1289
- v("label", rn, r(e.$t("views.settings.assistant_extra_prompt_label")), 1),
1290
- C(R, {
1291
- modelValue: u(G).systemPromptExtra,
1292
- "onUpdate:modelValue": i[11] ||= (e) => u(G).systemPromptExtra = e,
1372
+ v("div", sn, [
1373
+ v("label", cn, r(e.$t("views.settings.assistant_extra_prompt_label")), 1),
1374
+ C(z, {
1375
+ modelValue: u(K).systemPromptExtra,
1376
+ "onUpdate:modelValue": i[11] ||= (e) => u(K).systemPromptExtra = e,
1293
1377
  rows: "3",
1294
1378
  "auto-resize": "",
1295
1379
  placeholder: e.$t("views.settings.assistant_extra_prompt_placeholder")
@@ -1304,28 +1388,28 @@ var Be = o({
1304
1388
  _: 1
1305
1389
  })
1306
1390
  ]),
1307
- v("div", an, [C(D, {
1391
+ v("div", ln, [C(D, {
1308
1392
  type: "button",
1309
1393
  severity: "secondary",
1310
1394
  outlined: "",
1311
1395
  class: "cui-button-medium ml-auto",
1312
1396
  label: e.$t("components.form.button.reset_defaults"),
1313
- onClick: ci
1397
+ onClick: di
1314
1398
  }, {
1315
- icon: f(() => [C(Se, { class: "w-4 h-4" })]),
1399
+ icon: f(() => [C(xe, { class: "w-4 h-4" })]),
1316
1400
  _: 1
1317
1401
  }, 8, ["label"]), C(D, {
1318
1402
  type: "button",
1319
- loading: u(U).isPending.value,
1403
+ loading: u(G).isPending.value,
1320
1404
  class: "cui-button-medium",
1321
1405
  label: e.$t("components.form.button.save"),
1322
- onClick: li
1406
+ onClick: $
1323
1407
  }, null, 8, ["loading", "label"])])
1324
1408
  ])]),
1325
1409
  _: 1
1326
1410
  })]),
1327
- v("div", null, [v("span", on, r(e.$t("views.settings.assistant_mcp")), 1), C(_, { class: "cui-card" }, {
1328
- content: f(() => [v("div", sn, [
1411
+ v("div", null, [v("span", un, r(e.$t("views.settings.assistant_mcp")), 1), C(_, { class: "cui-card" }, {
1412
+ content: f(() => [v("div", dn, [
1329
1413
  C(d, {
1330
1414
  severity: "secondary",
1331
1415
  variant: "simple",
@@ -1335,31 +1419,31 @@ var Be = o({
1335
1419
  default: f(() => [b(r(e.$t("views.settings.assistant_mcp_info")), 1)]),
1336
1420
  _: 1
1337
1421
  }),
1338
- v("div", cn, [v("div", ln, [v("div", un, [v("span", dn, r(e.$t("views.settings.assistant_mcp_enabled_label")), 1), v("span", fn, r(e.$t("views.settings.assistant_mcp_enabled_info")), 1)]), C(x, {
1339
- modelValue: u(G).mcpEnabled,
1340
- "onUpdate:modelValue": i[12] ||= (e) => u(G).mcpEnabled = e
1341
- }, null, 8, ["modelValue"])]), v("div", pn, [v("div", mn, [v("span", hn, r(e.$t("views.settings.assistant_mcp_writes_label")), 1), v("span", gn, r(e.$t("views.settings.assistant_mcp_writes_info")), 1)]), C(x, {
1342
- modelValue: u(G).mcpWrites,
1343
- "onUpdate:modelValue": i[13] ||= (e) => u(G).mcpWrites = e,
1344
- disabled: !u(G).mcpEnabled
1422
+ v("div", fn, [v("div", pn, [v("div", mn, [v("span", hn, r(e.$t("views.settings.assistant_mcp_enabled_label")), 1), v("span", gn, r(e.$t("views.settings.assistant_mcp_enabled_info")), 1)]), C(x, {
1423
+ modelValue: u(K).mcpEnabled,
1424
+ "onUpdate:modelValue": i[12] ||= (e) => u(K).mcpEnabled = e
1425
+ }, null, 8, ["modelValue"])]), v("div", _n, [v("div", vn, [v("span", yn, r(e.$t("views.settings.assistant_mcp_writes_label")), 1), v("span", bn, r(e.$t("views.settings.assistant_mcp_writes_info")), 1)]), C(x, {
1426
+ modelValue: u(K).mcpWrites,
1427
+ "onUpdate:modelValue": i[13] ||= (e) => u(K).mcpWrites = e,
1428
+ disabled: !u(K).mcpEnabled
1345
1429
  }, null, 8, ["modelValue", "disabled"])])]),
1346
- u(G).mcpEnabled ? (n(), m("div", _n, [v("div", vn, [
1347
- v("label", yn, r(e.$t("views.settings.assistant_mcp_endpoint_label")), 1),
1430
+ u(K).mcpEnabled ? (n(), m("div", xn, [v("div", Sn, [
1431
+ v("label", Cn, r(e.$t("views.settings.assistant_mcp_endpoint_label")), 1),
1348
1432
  C(Ae, null, {
1349
- default: f(() => [C(z, {
1433
+ default: f(() => [C(B, {
1350
1434
  id: "mcpEndpoint",
1351
1435
  "model-value": u(tt),
1352
1436
  readonly: "",
1353
1437
  class: "font-mono text-sm"
1354
- }, null, 8, ["model-value"]), C(ke, null, {
1355
- default: f(() => [C(Oe, {
1438
+ }, null, 8, ["model-value"]), C(Oe, null, {
1439
+ default: f(() => [C(De, {
1356
1440
  "action-text": e.$t("components.form.tooltip.copied"),
1357
- icon: u(Ce),
1441
+ icon: u(Se),
1358
1442
  "button-props": {
1359
1443
  severity: "secondary",
1360
1444
  text: !0
1361
1445
  },
1362
- onAction: i[14] ||= (e) => u(ue)(u(tt))
1446
+ onAction: i[14] ||= (e) => u(se)(u(tt))
1363
1447
  }, null, 8, ["action-text", "icon"])]),
1364
1448
  _: 1
1365
1449
  })]),
@@ -1371,7 +1455,7 @@ var Be = o({
1371
1455
  size: "small",
1372
1456
  class: "cui-input-hint"
1373
1457
  }, {
1374
- default: f(() => [b(r(e.$t("views.settings.assistant_mcp_token_info")) + " ", 1), C(je, {
1458
+ default: f(() => [b(r(e.$t("views.settings.assistant_mcp_token_info")) + " ", 1), C(Me, {
1375
1459
  to: { name: "SettingsAccount" },
1376
1460
  class: "underline"
1377
1461
  }, {
@@ -1380,11 +1464,11 @@ var Be = o({
1380
1464
  })]),
1381
1465
  _: 1
1382
1466
  })
1383
- ]), v("div", bn, [
1384
- v("label", xn, r(e.$t("views.settings.assistant_mcp_client_label")), 1),
1385
- C(F, {
1386
- modelValue: u(Y),
1387
- "onUpdate:modelValue": i[15] ||= (e) => l(Y) ? Y.value = e : null,
1467
+ ]), v("div", wn, [
1468
+ v("label", Tn, r(e.$t("views.settings.assistant_mcp_client_label")), 1),
1469
+ C(L, {
1470
+ modelValue: u(X),
1471
+ "onUpdate:modelValue": i[15] ||= (e) => l(X) ? X.value = e : null,
1388
1472
  "input-id": "mcpClient",
1389
1473
  options: u(nt),
1390
1474
  "option-label": "label",
@@ -1392,22 +1476,22 @@ var Be = o({
1392
1476
  class: "w-full"
1393
1477
  }, null, 8, ["modelValue", "options"]),
1394
1478
  C(Ae, null, {
1395
- default: f(() => [C(R, {
1479
+ default: f(() => [C(z, {
1396
1480
  id: "mcpSnippet",
1397
- "model-value": u(Rr),
1481
+ "model-value": u(it),
1398
1482
  readonly: "",
1399
1483
  "auto-resize": "",
1400
1484
  rows: "3",
1401
1485
  class: "font-mono text-xs"
1402
- }, null, 8, ["model-value"]), C(ke, null, {
1403
- default: f(() => [C(Oe, {
1486
+ }, null, 8, ["model-value"]), C(Oe, null, {
1487
+ default: f(() => [C(De, {
1404
1488
  "action-text": e.$t("components.form.tooltip.copied"),
1405
- icon: u(Ce),
1489
+ icon: u(Se),
1406
1490
  "button-props": {
1407
1491
  severity: "secondary",
1408
1492
  text: !0
1409
1493
  },
1410
- onAction: i[16] ||= (e) => u(ue)(u(Rr))
1494
+ onAction: i[16] ||= (e) => u(se)(u(it))
1411
1495
  }, null, 8, ["action-text", "icon"])]),
1412
1496
  _: 1
1413
1497
  })]),
@@ -1423,18 +1507,18 @@ var Be = o({
1423
1507
  _: 1
1424
1508
  })
1425
1509
  ])])) : c("", !0),
1426
- v("div", Sn, [C(D, {
1510
+ v("div", En, [C(D, {
1427
1511
  type: "button",
1428
- loading: u(U).isPending.value,
1512
+ loading: u(G).isPending.value,
1429
1513
  class: "cui-button-medium ml-auto",
1430
1514
  label: e.$t("components.form.button.save"),
1431
- onClick: li
1515
+ onClick: $
1432
1516
  }, null, 8, ["loading", "label"])])
1433
1517
  ])]),
1434
1518
  _: 1
1435
1519
  })]),
1436
- v("div", null, [v("span", Cn, r(e.$t("views.settings.assistant_external")), 1), C(_, { class: "cui-card" }, {
1437
- content: f(() => [v("div", wn, [
1520
+ v("div", null, [v("span", Dn, r(e.$t("views.settings.assistant_external")), 1), C(_, { class: "cui-card" }, {
1521
+ content: f(() => [v("div", On, [
1438
1522
  C(d, {
1439
1523
  severity: "secondary",
1440
1524
  variant: "simple",
@@ -1444,25 +1528,25 @@ var Be = o({
1444
1528
  default: f(() => [b(r(e.$t("views.settings.assistant_external_info")), 1)]),
1445
1529
  _: 1
1446
1530
  }),
1447
- (n(!0), m(g, null, t(u(G).mcpServers, (t) => (n(), m("div", {
1531
+ (n(!0), m(g, null, t(u(K).mcpServers, (t) => (n(), m("div", {
1448
1532
  key: t.id,
1449
1533
  class: "cui-assistant-server overflow-hidden rounded-xl"
1450
1534
  }, [v("button", {
1451
1535
  type: "button",
1452
1536
  class: "flex w-full cursor-pointer items-center gap-3 p-4 text-left",
1453
- "aria-expanded": u(J).includes(t.id),
1454
- onClick: (e) => ai(t.id)
1455
- }, [v("div", En, [v("span", Dn, r(t.name || e.$t("views.settings.assistant_external_new")), 1), ni(t.id) ? (n(), m("span", {
1537
+ "aria-expanded": u(Y).includes(t.id),
1538
+ onClick: (e) => ci(t.id)
1539
+ }, [v("div", An, [v("span", jn, r(t.name || e.$t("views.settings.assistant_external_new")), 1), ai(t.id) ? (n(), m("span", {
1456
1540
  key: 0,
1457
- class: a(["truncate text-xs", ri(t.id)])
1458
- }, r(ni(t.id)), 3)) : c("", !0)]), C(B, { class: a(["h-5 w-5 shrink-0 text-muted transition-transform duration-200", { "rotate-180": u(J).includes(t.id) }]) }, null, 8, ["class"])], 8, Tn), v("div", { class: a(["cui-assistant-server-body grid", { "cui-assistant-server-open": u(J).includes(t.id) }]) }, [v("div", {
1541
+ class: a(["truncate text-xs", oi(t.id)])
1542
+ }, r(ai(t.id)), 3)) : c("", !0)]), C(Ne, { class: a(["h-5 w-5 shrink-0 text-muted transition-transform duration-200", { "rotate-180": u(Y).includes(t.id) }]) }, null, 8, ["class"])], 8, kn), v("div", { class: a(["cui-assistant-server-body grid", { "cui-assistant-server-open": u(Y).includes(t.id) }]) }, [v("div", {
1459
1543
  class: "min-h-0 overflow-hidden",
1460
- inert: !u(J).includes(t.id)
1461
- }, [v("div", kn, [
1462
- v("div", An, [v("div", jn, [v("label", {
1544
+ inert: !u(Y).includes(t.id)
1545
+ }, [v("div", Nn, [
1546
+ v("div", Pn, [v("div", Fn, [v("label", {
1463
1547
  for: `server-enabled-${t.id}`,
1464
1548
  class: "cui-label-switch"
1465
- }, r(e.$t("components.form.label.enabled")), 9, Mn), C(d, {
1549
+ }, r(e.$t("components.form.label.enabled")), 9, In), C(d, {
1466
1550
  severity: "secondary",
1467
1551
  variant: "simple",
1468
1552
  size: "small",
@@ -1480,10 +1564,10 @@ var Be = o({
1480
1564
  "onUpdate:modelValue",
1481
1565
  "input-id"
1482
1566
  ])]),
1483
- v("div", Nn, [v("div", Pn, [v("label", {
1567
+ v("div", Ln, [v("div", Rn, [v("label", {
1484
1568
  for: `server-name-${t.id}`,
1485
1569
  class: "cui-label"
1486
- }, r(e.$t("views.settings.assistant_external_name")), 9, Fn), C(z, {
1570
+ }, r(e.$t("views.settings.assistant_external_name")), 9, zn), C(B, {
1487
1571
  id: `server-name-${t.id}`,
1488
1572
  modelValue: t.name,
1489
1573
  "onUpdate:modelValue": (e) => t.name = e,
@@ -1493,10 +1577,10 @@ var Be = o({
1493
1577
  "id",
1494
1578
  "modelValue",
1495
1579
  "onUpdate:modelValue"
1496
- ])]), v("div", In, [v("label", {
1580
+ ])]), v("div", Bn, [v("label", {
1497
1581
  for: `server-url-${t.id}`,
1498
1582
  class: "cui-label"
1499
- }, r(e.$t("views.settings.assistant_external_url")), 9, Ln), C(z, {
1583
+ }, r(e.$t("views.settings.assistant_external_url")), 9, Vn), C(B, {
1500
1584
  id: `server-url-${t.id}`,
1501
1585
  modelValue: t.url,
1502
1586
  "onUpdate:modelValue": (e) => t.url = e,
@@ -1507,15 +1591,15 @@ var Be = o({
1507
1591
  "modelValue",
1508
1592
  "onUpdate:modelValue"
1509
1593
  ])])]),
1510
- v("div", Rn, [
1594
+ v("div", Hn, [
1511
1595
  v("label", {
1512
1596
  for: `server-token-${t.id}`,
1513
1597
  class: "cui-label"
1514
- }, r(e.$t("views.settings.assistant_external_token")), 9, zn),
1515
- C(V, {
1598
+ }, r(e.$t("views.settings.assistant_external_token")), 9, Un),
1599
+ C(Pe, {
1516
1600
  id: `server-token-${t.id}`,
1517
- modelValue: u(q)[t.id],
1518
- "onUpdate:modelValue": (e) => u(q)[t.id] = e,
1601
+ modelValue: u(J)[t.id],
1602
+ "onUpdate:modelValue": (e) => u(J)[t.id] = e,
1519
1603
  feedback: !1,
1520
1604
  "toggle-mask": "",
1521
1605
  fluid: "",
@@ -1537,10 +1621,10 @@ var Be = o({
1537
1621
  _: 2
1538
1622
  }, 1024)
1539
1623
  ]),
1540
- v("div", Bn, [v("div", Vn, [v("label", {
1624
+ v("div", Wn, [v("div", Gn, [v("label", {
1541
1625
  for: `server-insecure-${t.id}`,
1542
1626
  class: "cui-label-switch"
1543
- }, r(e.$t("views.settings.assistant_external_insecure")), 9, Hn), C(d, {
1627
+ }, r(e.$t("views.settings.assistant_external_insecure")), 9, Kn), C(d, {
1544
1628
  severity: "secondary",
1545
1629
  variant: "simple",
1546
1630
  size: "small",
@@ -1558,41 +1642,41 @@ var Be = o({
1558
1642
  "modelValue",
1559
1643
  "onUpdate:modelValue"
1560
1644
  ])]),
1561
- v("div", Un, [C(D, {
1645
+ v("div", qn, [C(D, {
1562
1646
  type: "button",
1563
1647
  severity: "danger",
1564
1648
  outlined: "",
1565
1649
  class: "cui-button-medium ml-auto",
1566
1650
  label: e.$t("views.settings.assistant_external_remove"),
1567
- onClick: (e) => oi(t.id)
1651
+ onClick: (e) => li(t.id)
1568
1652
  }, {
1569
- icon: f(() => [C(j, { class: "w-4 h-4" })]),
1653
+ icon: f(() => [C(M, { class: "w-4 h-4" })]),
1570
1654
  _: 1
1571
1655
  }, 8, ["label", "onClick"])])
1572
- ])], 8, On)], 2)]))), 128)),
1573
- v("div", Wn, [C(D, {
1656
+ ])], 8, Mn)], 2)]))), 128)),
1657
+ v("div", Jn, [C(D, {
1574
1658
  type: "button",
1575
1659
  severity: "secondary",
1576
1660
  outlined: "",
1577
1661
  class: "cui-button-medium",
1578
1662
  label: e.$t("views.settings.assistant_external_add"),
1579
- disabled: u(G).mcpServers.length >= 10,
1580
- onClick: ii
1663
+ disabled: u(K).mcpServers.length >= 10,
1664
+ onClick: si
1581
1665
  }, {
1582
- icon: f(() => [C(P, { class: "w-4 h-4" })]),
1666
+ icon: f(() => [C(F, { class: "w-4 h-4" })]),
1583
1667
  _: 1
1584
1668
  }, 8, ["label", "disabled"]), C(D, {
1585
1669
  type: "button",
1586
- loading: u(U).isPending.value,
1670
+ loading: u(G).isPending.value,
1587
1671
  class: "cui-button-medium ml-auto",
1588
1672
  label: e.$t("components.form.button.save"),
1589
- onClick: li
1673
+ onClick: $
1590
1674
  }, null, 8, ["loading", "label"])])
1591
1675
  ])]),
1592
1676
  _: 1
1593
1677
  })]),
1594
- v("div", null, [v("span", Gn, r(e.$t("views.settings.assistant_schedules")), 1), C(_, { class: "cui-card" }, {
1595
- content: f(() => [v("div", Kn, [
1678
+ v("div", null, [v("span", Yn, r(e.$t("views.settings.assistant_schedules")), 1), C(_, { class: "cui-card" }, {
1679
+ content: f(() => [v("div", Xn, [
1596
1680
  C(d, {
1597
1681
  severity: "secondary",
1598
1682
  variant: "simple",
@@ -1602,142 +1686,89 @@ var Be = o({
1602
1686
  default: f(() => [b(r(e.$t("views.settings.assistant_schedules_info")), 1)]),
1603
1687
  _: 1
1604
1688
  }),
1605
- u(He)?.length ? (n(), m("div", qn, [(n(!0), m(g, null, t(u(He), (t) => (n(), m("div", {
1689
+ u(Ve)?.length ? (n(), m("div", Zn, [(n(!0), m(g, null, t(u(Ve), (t) => (n(), m("div", {
1606
1690
  key: t._id,
1607
1691
  class: "flex items-start gap-3 py-3 text-sm"
1608
1692
  }, [v("div", { class: a(["flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1", { "opacity-60": !t.enabled }]) }, [
1609
- v("span", Jn, r(t.title), 1),
1610
- v("div", Yn, [
1693
+ v("span", Qn, r(t.title), 1),
1694
+ v("div", $n, [
1611
1695
  C(p, {
1612
1696
  severity: "secondary",
1613
- value: Gr(t.cron),
1697
+ value: Jr(t.cron),
1614
1698
  class: "text-[10px]"
1615
1699
  }, null, 8, ["value"]),
1616
1700
  C(p, {
1617
- severity: Kr(t.deliver),
1701
+ severity: Yr(t.deliver),
1618
1702
  value: e.$t(`views.settings.assistant_schedule_deliver_${t.deliver}`),
1619
1703
  class: "text-[10px]"
1620
1704
  }, null, 8, ["severity", "value"]),
1621
1705
  t.profileId ? (n(), s(p, {
1622
1706
  key: 0,
1623
- severity: Ti(t.profileId) ? "secondary" : "warn",
1624
- value: Ti(t.profileId) ?? e.$t("views.settings.assistant_schedule_profile_missing"),
1707
+ severity: ji(t.profileId) ? "secondary" : "warn",
1708
+ value: ji(t.profileId) ?? e.$t("views.settings.assistant_schedule_profile_missing"),
1709
+ class: "text-[10px]"
1710
+ }, null, 8, ["severity", "value"])) : c("", !0),
1711
+ Di(t) ? (n(), s(p, {
1712
+ key: 1,
1713
+ severity: "secondary",
1714
+ value: Ai(Di(t)),
1625
1715
  class: "text-[10px]"
1626
- }, null, 8, ["severity", "value"])) : c("", !0)
1716
+ }, null, 8, ["value"])) : c("", !0)
1627
1717
  ]),
1628
- v("div", Xn, r(t.prompt), 1),
1629
- v("div", Zn, [t.enabled && t.nextRun ? (n(), m("span", Qn, r(e.$t("views.settings.assistant_schedule_next", { time: qr(t.nextRun) })), 1)) : t.enabled ? c("", !0) : (n(), m("span", $n, r(e.$t("views.settings.assistant_schedule_paused")), 1)), t.lastRun ? (n(), m("span", {
1718
+ v("div", er, r(t.prompt), 1),
1719
+ v("div", tr, [t.enabled && t.nextRun ? (n(), m("span", nr, r(e.$t("views.settings.assistant_schedule_next", { time: Xr(t.nextRun) })), 1)) : t.enabled ? c("", !0) : (n(), m("span", rr, r(e.$t("views.settings.assistant_schedule_paused")), 1)), t.lastRun ? (n(), m("span", {
1630
1720
  key: 2,
1631
1721
  class: a({ "text-danger": t.lastRun.status === "error" })
1632
- }, " · " + r(e.$t(`views.settings.assistant_schedule_last_${t.lastRun.status}`, { time: qr(t.lastRun.at) })), 3)) : c("", !0)]),
1633
- t.lastRun?.status === "error" && t.lastRun.message ? (n(), m("div", er, r(t.lastRun.message), 1)) : c("", !0)
1634
- ], 2), v("div", tr, [v("div", nr, [
1635
- y((n(), s(D, {
1636
- type: "button",
1637
- severity: "secondary",
1638
- text: "",
1639
- rounded: "",
1640
- class: "cui-icon-md",
1641
- loading: u(W).isPending.value && u(W).variables.value === t._id,
1642
- onClick: (e) => u(W).mutate(t._id)
1643
- }, {
1644
- icon: f(() => [C(Le, {
1645
- width: "100%",
1646
- height: "100%"
1647
- })]),
1648
- _: 1
1649
- }, 8, ["loading", "onClick"])), [[
1650
- $,
1651
- { value: e.$t("views.settings.assistant_schedule_run") },
1652
- void 0,
1653
- { top: !0 }
1654
- ]]),
1655
- y((n(), s(D, {
1656
- type: "button",
1657
- severity: "secondary",
1658
- text: "",
1659
- rounded: "",
1660
- class: "cui-icon-md",
1661
- onClick: (e) => hi(t)
1662
- }, {
1663
- icon: f(() => [t.enabled ? (n(), s(We, {
1664
- key: 0,
1665
- width: "100%",
1666
- height: "100%"
1667
- })) : (n(), s(Z, {
1668
- key: 1,
1669
- width: "100%",
1670
- height: "100%"
1671
- }))]),
1672
- _: 2
1673
- }, 1032, ["onClick"])), [[
1674
- $,
1675
- { value: t.enabled ? e.$t("views.settings.assistant_schedule_pause") : e.$t("views.settings.assistant_schedule_resume") },
1676
- void 0,
1677
- { top: !0 }
1678
- ]]),
1679
- y((n(), s(D, {
1680
- type: "button",
1681
- severity: "danger",
1682
- text: "",
1683
- rounded: "",
1684
- class: "cui-icon-md",
1685
- onClick: (e) => u(Ge).mutate(t._id)
1686
- }, {
1687
- icon: f(() => [C(j, {
1688
- width: "100%",
1689
- height: "100%"
1690
- })]),
1691
- _: 1
1692
- }, 8, ["onClick"])), [[
1693
- $,
1694
- { value: e.$t("views.settings.assistant_schedule_delete") },
1695
- void 0,
1696
- { top: !0 }
1697
- ]])
1698
- ]), v("div", rr, [C(D, {
1722
+ }, " · " + r(e.$t(`views.settings.assistant_schedule_last_${t.lastRun.status}`, { time: Xr(t.lastRun.at) })), 3)) : c("", !0)]),
1723
+ t.lastRun?.status === "error" && t.lastRun.message ? (n(), m("div", ir, r(t.lastRun.message), 1)) : c("", !0)
1724
+ ], 2), v("div", ar, [v("div", null, [y((n(), s(D, {
1699
1725
  type: "button",
1700
1726
  severity: "secondary",
1701
1727
  text: "",
1702
1728
  rounded: "",
1703
1729
  class: "cui-icon-md",
1704
- loading: u(W).isPending.value && u(W).variables.value === t._id,
1705
- onClick: (e) => gi(e, t)
1730
+ loading: u(Ge).isPending.value && u(Ge).variables.value === t._id,
1731
+ onClick: (e) => vi(e, t)
1706
1732
  }, {
1707
- icon: f(() => [C(M, {
1733
+ icon: f(() => [C(P, {
1708
1734
  width: "100%",
1709
1735
  height: "100%"
1710
1736
  })]),
1711
1737
  _: 1
1712
- }, 8, ["loading", "onClick"])])])]))), 128))])) : c("", !0),
1713
- v("div", { class: a(["flex flex-col gap-6", { "cui-assistant-schedule-form": u(He)?.length }]) }, [
1714
- v("div", ir, [v("div", ar, [v("label", or, r(e.$t("views.settings.assistant_schedule_title_label")), 1), C(z, {
1715
- modelValue: u(K).title,
1716
- "onUpdate:modelValue": i[17] ||= (e) => u(K).title = e,
1738
+ }, 8, ["loading", "onClick"])), [[
1739
+ ot,
1740
+ { value: e.$t("views.settings.assistant_schedule_actions") },
1741
+ void 0,
1742
+ { top: !0 }
1743
+ ]])])])]))), 128))])) : c("", !0),
1744
+ v("div", { class: a(["flex flex-col gap-6", { "cui-assistant-schedule-form": u(Ve)?.length }]) }, [
1745
+ v("div", or, [v("div", sr, [v("label", cr, r(e.$t("views.settings.assistant_schedule_title_label")), 1), C(B, {
1746
+ modelValue: u(q).title,
1747
+ "onUpdate:modelValue": i[17] ||= (e) => u(q).title = e,
1717
1748
  modelModifiers: { trim: !0 },
1718
1749
  type: "text",
1719
1750
  placeholder: e.$t("views.settings.assistant_schedule_title_placeholder"),
1720
1751
  class: "w-full"
1721
- }, null, 8, ["modelValue", "placeholder"])]), v("div", sr, [v("label", cr, r(e.$t("views.settings.assistant_schedule_deliver_label")), 1), C(F, {
1722
- modelValue: u(K).deliver,
1723
- "onUpdate:modelValue": i[18] ||= (e) => u(K).deliver = e,
1724
- options: u(zr),
1752
+ }, null, 8, ["modelValue", "placeholder"])]), v("div", lr, [v("label", ur, r(e.$t("views.settings.assistant_schedule_deliver_label")), 1), C(L, {
1753
+ modelValue: u(q).deliver,
1754
+ "onUpdate:modelValue": i[18] ||= (e) => u(q).deliver = e,
1755
+ options: u(at),
1725
1756
  "option-label": "label",
1726
1757
  "option-value": "value",
1727
1758
  fluid: ""
1728
1759
  }, null, 8, ["modelValue", "options"])])]),
1729
- v("div", lr, [v("label", ur, r(e.$t("views.settings.assistant_schedule_prompt_label")), 1), C(R, {
1730
- modelValue: u(K).prompt,
1731
- "onUpdate:modelValue": i[19] ||= (e) => u(K).prompt = e,
1760
+ v("div", dr, [v("label", fr, r(e.$t("views.settings.assistant_schedule_prompt_label")), 1), C(z, {
1761
+ modelValue: u(q).prompt,
1762
+ "onUpdate:modelValue": i[19] ||= (e) => u(q).prompt = e,
1732
1763
  rows: "2",
1733
1764
  "auto-resize": "",
1734
1765
  placeholder: e.$t("views.settings.assistant_schedule_prompt_placeholder")
1735
1766
  }, null, 8, ["modelValue", "placeholder"])]),
1736
- u(Ve)?.length ? (n(), m("div", dr, [v("label", fr, r(e.$t("views.settings.assistant_schedule_profile_label")), 1), C(F, {
1737
- modelValue: u(K).profileId,
1738
- "onUpdate:modelValue": i[20] ||= (e) => u(K).profileId = e,
1767
+ v("div", pr, [u(Be)?.length ? (n(), m("div", mr, [v("label", hr, r(e.$t("views.settings.assistant_schedule_profile_label")), 1), C(L, {
1768
+ modelValue: u(q).profileId,
1769
+ "onUpdate:modelValue": i[20] ||= (e) => u(q).profileId = e,
1739
1770
  "input-id": "scheduleProfile",
1740
- options: u(Ve),
1771
+ options: u(Be),
1741
1772
  "option-label": "name",
1742
1773
  "option-value": "_id",
1743
1774
  "show-clear": "",
@@ -1747,38 +1778,52 @@ var Be = o({
1747
1778
  "modelValue",
1748
1779
  "options",
1749
1780
  "placeholder"
1750
- ])])) : c("", !0),
1751
- v("div", pr, [
1752
- v("div", mr, [v("label", hr, r(e.$t("views.settings.assistant_schedule_when_label")), 1), C(F, {
1753
- modelValue: u(K).preset,
1754
- "onUpdate:modelValue": i[21] ||= (e) => u(K).preset = e,
1755
- options: u(Br),
1781
+ ])])) : c("", !0), v("div", gr, [v("label", _r, r(e.$t("views.settings.assistant_schedule_model_label")), 1), C(L, {
1782
+ modelValue: u(q).modelId,
1783
+ "onUpdate:modelValue": i[21] ||= (e) => u(q).modelId = e,
1784
+ "input-id": "scheduleModel",
1785
+ options: u(Z),
1786
+ "option-label": "name",
1787
+ "option-value": "_id",
1788
+ "show-clear": "",
1789
+ fluid: "",
1790
+ placeholder: Oi(u(q).profileId)
1791
+ }, null, 8, [
1792
+ "modelValue",
1793
+ "options",
1794
+ "placeholder"
1795
+ ])])]),
1796
+ v("div", vr, [
1797
+ v("div", yr, [v("label", br, r(e.$t("views.settings.assistant_schedule_when_label")), 1), C(L, {
1798
+ modelValue: u(q).preset,
1799
+ "onUpdate:modelValue": i[22] ||= (e) => u(q).preset = e,
1800
+ options: u(Ur),
1756
1801
  "option-label": "label",
1757
1802
  "option-value": "value",
1758
1803
  fluid: ""
1759
1804
  }, null, 8, ["modelValue", "options"])]),
1760
- u(K).preset !== "hourly" && u(K).preset !== "custom" ? (n(), m("div", gr, [v("label", _r, r(e.$t("views.settings.assistant_schedule_time_label")), 1), C(z, {
1761
- modelValue: u(K).time,
1762
- "onUpdate:modelValue": i[22] ||= (e) => u(K).time = e,
1805
+ u(q).preset !== "hourly" && u(q).preset !== "custom" ? (n(), m("div", xr, [v("label", Sr, r(e.$t("views.settings.assistant_schedule_time_label")), 1), C(B, {
1806
+ modelValue: u(q).time,
1807
+ "onUpdate:modelValue": i[23] ||= (e) => u(q).time = e,
1763
1808
  type: "time",
1764
1809
  class: "cui-time-input w-full"
1765
1810
  }, null, 8, ["modelValue"])])) : c("", !0),
1766
- u(K).preset === "custom" ? (n(), m("div", vr, [v("label", yr, r(e.$t("views.settings.assistant_schedule_cron_label")), 1), C(z, {
1767
- modelValue: u(K).cron,
1768
- "onUpdate:modelValue": i[23] ||= (e) => u(K).cron = e,
1811
+ u(q).preset === "custom" ? (n(), m("div", Cr, [v("label", wr, r(e.$t("views.settings.assistant_schedule_cron_label")), 1), C(B, {
1812
+ modelValue: u(q).cron,
1813
+ "onUpdate:modelValue": i[24] ||= (e) => u(q).cron = e,
1769
1814
  modelModifiers: { trim: !0 },
1770
1815
  type: "text",
1771
1816
  placeholder: "0 20 * * *",
1772
1817
  class: "w-full font-mono text-sm"
1773
1818
  }, null, 8, ["modelValue"])])) : c("", !0)
1774
1819
  ]),
1775
- v("div", br, [C(D, {
1820
+ v("div", Tr, [C(D, {
1776
1821
  type: "button",
1777
- loading: u(Ue).isPending.value,
1778
- disabled: !u(K).title || !u(K).prompt || !u(Vr),
1822
+ loading: u(He).isPending.value,
1823
+ disabled: !u(q).title || !u(q).prompt || !u(Wr),
1779
1824
  class: "cui-button-medium ml-auto",
1780
1825
  label: e.$t("views.settings.assistant_schedule_add"),
1781
- onClick: Jr
1826
+ onClick: Zr
1782
1827
  }, null, 8, [
1783
1828
  "loading",
1784
1829
  "disabled",
@@ -1788,8 +1833,8 @@ var Be = o({
1788
1833
  ])]),
1789
1834
  _: 1
1790
1835
  })]),
1791
- v("div", null, [v("span", xr, r(e.$t("views.settings.assistant_usage")), 1), C(_, { class: "cui-card" }, {
1792
- content: f(() => [v("div", Sr, [C(d, {
1836
+ v("div", null, [v("span", Er, r(e.$t("views.settings.assistant_usage")), 1), C(_, { class: "cui-card" }, {
1837
+ content: f(() => [v("div", Dr, [C(d, {
1793
1838
  severity: "secondary",
1794
1839
  variant: "simple",
1795
1840
  size: "small",
@@ -1797,11 +1842,11 @@ var Be = o({
1797
1842
  }, {
1798
1843
  default: f(() => [b(r(e.$t("views.settings.assistant_usage_info")), 1)]),
1799
1844
  _: 1
1800
- }), C(Lr, {
1845
+ }), C(H, {
1801
1846
  value: u(Qe) ?? [],
1802
1847
  "data-key": "key",
1803
- loading: u(Re),
1804
- pt: ge,
1848
+ loading: u(Le),
1849
+ pt: he,
1805
1850
  "striped-rows": "",
1806
1851
  scrollable: ""
1807
1852
  }, {
@@ -1809,65 +1854,65 @@ var Be = o({
1809
1854
  class: "w-[30px] h-[30px] m-0",
1810
1855
  "stroke-width": "5"
1811
1856
  })]),
1812
- empty: f(() => [v("span", Cr, r(e.$t("views.settings.assistant_usage_empty")), 1)]),
1857
+ empty: f(() => [v("span", Or, r(e.$t("views.settings.assistant_usage_empty")), 1)]),
1813
1858
  default: f(() => [
1814
- C(Q, {
1859
+ C(V, {
1815
1860
  field: "month",
1816
1861
  header: e.$t("views.settings.assistant_usage_month"),
1817
1862
  "header-class": "p-2",
1818
1863
  class: "p-2 tabular-nums"
1819
1864
  }, null, 8, ["header"]),
1820
- C(Q, {
1865
+ C(V, {
1821
1866
  field: "username",
1822
1867
  header: e.$t("views.settings.assistant_usage_user"),
1823
1868
  "header-class": "p-2",
1824
1869
  class: "p-2"
1825
1870
  }, {
1826
- body: f(({ data: e }) => [v("span", wr, r(e.pluginName ?? e.username ?? e.userId), 1)]),
1871
+ body: f(({ data: e }) => [v("span", kr, r(e.pluginName ?? e.username ?? e.userId), 1)]),
1827
1872
  _: 1
1828
1873
  }, 8, ["header"]),
1829
- C(Q, {
1874
+ C(V, {
1830
1875
  field: "model",
1831
1876
  header: e.$t("views.settings.assistant_usage_model"),
1832
1877
  "header-class": "p-2",
1833
1878
  class: "p-2"
1834
1879
  }, {
1835
- body: f(({ data: e }) => [v("span", Tr, r(wi(e)), 1)]),
1880
+ body: f(({ data: e }) => [v("span", Ar, r(Ei(e)), 1)]),
1836
1881
  _: 1
1837
1882
  }, 8, ["header"]),
1838
- C(Q, {
1883
+ C(V, {
1839
1884
  field: "runs",
1840
1885
  header: e.$t("views.settings.assistant_usage_runs"),
1841
1886
  "header-class": "p-2",
1842
1887
  class: "p-2 text-right tabular-nums",
1843
- pt: O
1888
+ pt: A
1844
1889
  }, null, 8, ["header"]),
1845
- C(Q, {
1890
+ C(V, {
1846
1891
  field: "promptTokens",
1847
1892
  header: e.$t("views.settings.assistant_usage_in"),
1848
1893
  "header-class": "p-2",
1849
1894
  class: "p-2 text-right tabular-nums",
1850
- pt: O
1895
+ pt: A
1851
1896
  }, {
1852
- body: f(({ data: e }) => [b(r(ei(e.promptTokens)), 1)]),
1897
+ body: f(({ data: e }) => [b(r(ri(e.promptTokens)), 1)]),
1853
1898
  _: 1
1854
1899
  }, 8, ["header"]),
1855
- C(Q, {
1900
+ C(V, {
1856
1901
  field: "completionTokens",
1857
1902
  header: e.$t("views.settings.assistant_usage_out"),
1858
1903
  "header-class": "p-2",
1859
1904
  class: "p-2 text-right tabular-nums",
1860
- pt: O
1905
+ pt: A
1861
1906
  }, {
1862
- body: f(({ data: e }) => [b(r(ei(e.completionTokens)), 1)]),
1907
+ body: f(({ data: e }) => [b(r(ri(e.completionTokens)), 1)]),
1863
1908
  _: 1
1864
1909
  }, 8, ["header"]),
1865
- C(Q, {
1910
+ C(V, {
1866
1911
  field: "costUsd",
1867
1912
  header: e.$t("views.settings.assistant_usage_cost"),
1868
1913
  "header-class": "p-2",
1869
1914
  class: "p-2 text-right tabular-nums",
1870
- pt: O
1915
+ pt: A
1871
1916
  }, {
1872
1917
  body: f(({ data: e }) => [b(r(e.costUsd ? `$${e.costUsd.toFixed(e.costUsd < 1 ? 3 : 2)}` : "–"), 1)]),
1873
1918
  _: 1
@@ -1877,14 +1922,14 @@ var Be = o({
1877
1922
  }, 8, ["value", "loading"])])]),
1878
1923
  _: 1
1879
1924
  })]),
1880
- v("div", null, [v("span", Er, r(e.$t("views.settings.assistant_tools")), 1), C(_, { class: "cui-card" }, {
1881
- content: f(() => [u(Ze).length ? (n(), m("div", Or, [C(Oi, {
1925
+ v("div", null, [v("span", jr, r(e.$t("views.settings.assistant_tools")), 1), C(_, { class: "cui-card" }, {
1926
+ content: f(() => [u(Ze).length ? (n(), m("div", Nr, [C(rt, {
1882
1927
  value: u(qe),
1883
- "onUpdate:value": i[24] ||= (e) => l(qe) ? qe.value = e : null,
1928
+ "onUpdate:value": i[25] ||= (e) => l(qe) ? qe.value = e : null,
1884
1929
  scrollable: ""
1885
1930
  }, {
1886
- default: f(() => [C(si, { class: "mb-3" }, {
1887
- default: f(() => [(n(!0), m(g, null, t(u(Ze), (e) => (n(), s(ti, {
1931
+ default: f(() => [C(Ie, { class: "mb-3" }, {
1932
+ default: f(() => [(n(!0), m(g, null, t(u(Ze), (e) => (n(), s(U, {
1888
1933
  key: e.key,
1889
1934
  value: e.key,
1890
1935
  class: "text-sm"
@@ -1893,28 +1938,28 @@ var Be = o({
1893
1938
  _: 2
1894
1939
  }, 1032, ["value"]))), 128))]),
1895
1940
  _: 1
1896
- }), C(Di, { class: "!p-0 !bg-transparent" }, {
1897
- default: f(() => [(n(!0), m(g, null, t(u(Ze), (i) => (n(), s(Ei, {
1941
+ }), C(Q, { class: "!p-0 !bg-transparent" }, {
1942
+ default: f(() => [(n(!0), m(g, null, t(u(Ze), (i) => (n(), s(We, {
1898
1943
  key: i.key,
1899
1944
  value: i.key
1900
1945
  }, {
1901
- default: f(() => [i.serverId ? (n(), m("div", kr, [
1946
+ default: f(() => [i.serverId ? (n(), m("div", Pr, [
1902
1947
  v("label", {
1903
1948
  for: `trusted-${i.key}`,
1904
1949
  class: "cui-label"
1905
- }, r(e.$t("views.settings.assistant_tools_trusted_label")), 9, Ar),
1906
- C(pi, {
1907
- "model-value": Qr(i),
1950
+ }, r(e.$t("views.settings.assistant_tools_trusted_label")), 9, Fr),
1951
+ C(ze, {
1952
+ "model-value": ti(i),
1908
1953
  "input-id": `trusted-${i.key}`,
1909
- options: Zr(i),
1954
+ options: ei(i),
1910
1955
  "option-label": "label",
1911
1956
  "option-value": "value",
1912
1957
  "max-selected-labels": 3,
1913
- "selected-items-label": e.$t("views.settings.assistant_tools_trusted_selected", { n: Qr(i).length }),
1958
+ "selected-items-label": e.$t("views.settings.assistant_tools_trusted_selected", { n: ti(i).length }),
1914
1959
  placeholder: e.$t("views.settings.assistant_tools_trusted_none"),
1915
1960
  filter: "",
1916
1961
  fluid: "",
1917
- "onUpdate:modelValue": (e) => $r(i, e)
1962
+ "onUpdate:modelValue": (e) => ni(i, e)
1918
1963
  }, null, 8, [
1919
1964
  "model-value",
1920
1965
  "input-id",
@@ -1932,12 +1977,12 @@ var Be = o({
1932
1977
  default: f(() => [b(r(e.$t("views.settings.assistant_tools_trusted_info")), 1)]),
1933
1978
  _: 1
1934
1979
  })
1935
- ])) : c("", !0), v("div", jr, [(n(!0), m(g, null, t(i.tools, (t) => (n(), m("div", {
1980
+ ])) : c("", !0), v("div", Ir, [(n(!0), m(g, null, t(i.tools, (t) => (n(), m("div", {
1936
1981
  key: t.name,
1937
1982
  class: "flex items-start gap-3 py-2 text-sm"
1938
- }, [C(vi, { class: "w-4 h-4 mt-0.5 shrink-0 text-muted" }), v("div", Mr, [v("div", Nr, [
1939
- v("span", Pr, r(u(De)(t.name)), 1),
1940
- Xr(t) ? (n(), s(p, {
1983
+ }, [C(Ue, { class: "w-4 h-4 mt-0.5 shrink-0 text-muted" }), v("div", Lr, [v("div", Rr, [
1984
+ v("span", zr, r(u(je)(t.name)), 1),
1985
+ $r(t) ? (n(), s(p, {
1941
1986
  key: 0,
1942
1987
  severity: "warn",
1943
1988
  value: e.$t("views.settings.assistant_tool_approval"),
@@ -1949,25 +1994,25 @@ var Be = o({
1949
1994
  value: e.$t("views.settings.assistant_tool_admin"),
1950
1995
  class: "text-[10px]"
1951
1996
  }, null, 8, ["value"])) : c("", !0)
1952
- ]), v("div", Fr, r(Yr(t.description)), 1)])]))), 128))])]),
1997
+ ]), v("div", Br, r(Qr(t.description)), 1)])]))), 128))])]),
1953
1998
  _: 2
1954
1999
  }, 1032, ["value"]))), 128))]),
1955
2000
  _: 1
1956
2001
  })]),
1957
2002
  _: 1
1958
- }, 8, ["value"]), u(Ze).some((e) => e.serverId) ? (n(), m("div", Ir, [C(D, {
2003
+ }, 8, ["value"]), u(Ze).some((e) => e.serverId) ? (n(), m("div", Vr, [C(D, {
1959
2004
  type: "button",
1960
- loading: u(U).isPending.value,
2005
+ loading: u(G).isPending.value,
1961
2006
  class: "cui-button-medium ml-auto",
1962
2007
  label: e.$t("components.form.button.save"),
1963
- onClick: li
1964
- }, null, 8, ["loading", "label"])])) : c("", !0)])) : (n(), m("div", Dr, r(e.$t("views.settings.assistant_tools_empty")), 1))]),
2008
+ onClick: $
2009
+ }, null, 8, ["loading", "label"])])) : c("", !0)])) : (n(), m("div", Mr, r(e.$t("views.settings.assistant_tools_empty")), 1))]),
1965
2010
  _: 1
1966
2011
  })])
1967
- ])) : (n(), m("div", it, [C(o, {
2012
+ ])) : (n(), m("div", ct, [C(o, {
1968
2013
  class: "w-[30px] h-[30px] m-0",
1969
2014
  "stroke-width": "5"
1970
- })])), C(ne, {
2015
+ })])), C(re, {
1971
2016
  ref_key: "rowMenuRef",
1972
2017
  ref: Je,
1973
2018
  items: u(Ke),
@@ -1975,6 +2020,6 @@ var Be = o({
1975
2020
  }, null, 8, ["items"])]);
1976
2021
  };
1977
2022
  }
1978
- }), [["__scopeId", "data-v-353cba4e"]]);
2023
+ }), [["__scopeId", "data-v-e1fc7b04"]]);
1979
2024
  //#endregion
1980
- export { Rr as default };
2025
+ export { Ur as default };