@camera.ui/server 2.2.3 → 2.2.4

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 (336) hide show
  1. package/dist/interface/assets/{404-D0S6IGok.js → 404-Bdbp69ox.js} +1 -1
  2. package/dist/interface/assets/{About-DAw9u8ZY.js → About-DmtCok-y.js} +1 -1
  3. package/dist/interface/assets/{Assistant-Gi6_YkEY.js → Assistant-D-Lv6JtY.js} +1 -1
  4. package/dist/interface/assets/{Automation-6eFKPJPu.js → Automation-LQ3TssrU.js} +3 -3
  5. package/dist/interface/assets/{AutomationImport-95PfbPvG.js → AutomationImport-B_ra3G3_.js} +2 -2
  6. package/dist/interface/assets/{AutomationStore-BHxzzx7a.js → AutomationStore-DSXSaQjp.js} +2 -2
  7. package/dist/interface/assets/{AutomationStoreDetail-DEVlRllt.js → AutomationStoreDetail-B5_Meb6R.js} +2 -2
  8. package/dist/interface/assets/{Automations-DEivoiS1.js → Automations-DHfPRe8W.js} +2 -2
  9. package/dist/interface/assets/Camera-B4ojNnKb.css +1 -0
  10. package/dist/interface/assets/Camera-CDbfvtJv.js +2 -0
  11. package/dist/interface/assets/{CameraConsole-B8bBYQzk.js → CameraConsole-DX-IRmd_.js} +1 -1
  12. package/dist/interface/assets/{Cameras-HblWPGCv.js → Cameras-D9m2bxWj.js} +1 -1
  13. package/dist/interface/assets/{Camview-DEKrbg5R.js → Camview-DKOYY6TI.js} +1 -1
  14. package/dist/interface/assets/{CertificateUpload-CC6YtX7h.js → CertificateUpload-B8ccb3n-.js} +1 -1
  15. package/dist/interface/assets/{Config-DQEaOnaN.js → Config-DCIUUWCv.js} +1 -1
  16. package/dist/interface/assets/{ConfigActionAssistant-C_XRnBzo.js → ConfigActionAssistant-6IUzZeNW.js} +1 -1
  17. package/dist/interface/assets/{ConfigActionCameraControl-oRzM9rjX.js → ConfigActionCameraControl-EXuiNMuG.js} +1 -1
  18. package/dist/interface/assets/{ConfigActionDelay-Dc-NZS5L.js → ConfigActionDelay-Cs4sYEk-.js} +1 -1
  19. package/dist/interface/assets/{ConfigActionHttp-Nw0wt-JZ.js → ConfigActionHttp-gUM6RQ6Y.js} +1 -1
  20. package/dist/interface/assets/{ConfigActionImageInput-Do60Upqm.js → ConfigActionImageInput-CPl5kVgO.js} +1 -1
  21. package/dist/interface/assets/{ConfigActionMqtt-BeQVgaGX.js → ConfigActionMqtt-BeBMCOJ-.js} +1 -1
  22. package/dist/interface/assets/{ConfigActionNotification-BA0FjOWs.js → ConfigActionNotification-DJFHdFDN.js} +1 -1
  23. package/dist/interface/assets/{ConfigActionNotificationControl-Ce3Kd_Xv.js → ConfigActionNotificationControl-BXoztPTs.js} +1 -1
  24. package/dist/interface/assets/{ConfigActionOutput-ChiOMWDy.js → ConfigActionOutput-BGrFWqZ1.js} +1 -1
  25. package/dist/interface/assets/{ConfigActionPlugin-Cn3r0glk.js → ConfigActionPlugin-CdIIMcJZ.js} +1 -1
  26. package/dist/interface/assets/{ConfigActionSensor-DkdBCu-6.js → ConfigActionSensor-MRVGJ22A.js} +1 -1
  27. package/dist/interface/assets/{ConfigActionSnapshot-CLlaDFUV.js → ConfigActionSnapshot-CxA4f5ag.js} +1 -1
  28. package/dist/interface/assets/{ConfigActionVariable-D4x3Luxl.js → ConfigActionVariable-DmU4seLh.js} +1 -1
  29. package/dist/interface/assets/{ConfigConditionIfElse-BpL8KZ5X.js → ConfigConditionIfElse-Tgdrk7lo.js} +1 -1
  30. package/dist/interface/assets/{ConfigConditionSensorState-CSQexUF_.js → ConfigConditionSensorState-CyyzoL6Q.js} +1 -1
  31. package/dist/interface/assets/{ConfigConditionSwitch-CB2J_5kr.js → ConfigConditionSwitch-DprK5AbR.js} +1 -1
  32. package/dist/interface/assets/{ConfigConditionTime-X9fsNsYu.js → ConfigConditionTime-CDruEvBp.js} +1 -1
  33. package/dist/interface/assets/{ConfigSensorValueInput-VPhPxrQl.js → ConfigSensorValueInput-BhlgTOW9.js} +1 -1
  34. package/dist/interface/assets/{ConfigTriggerDetection-Dhzng4X5.js → ConfigTriggerDetection-4vdEST9Y.js} +1 -1
  35. package/dist/interface/assets/{ConfigTriggerGeofence-Cm0CLNf5.js → ConfigTriggerGeofence-1B0BdCOw.js} +1 -1
  36. package/dist/interface/assets/{ConfigTriggerManual-CRi3rsgG.js → ConfigTriggerManual-BQLDqwZh.js} +1 -1
  37. package/dist/interface/assets/{ConfigTriggerMqtt-Ck__CWck.js → ConfigTriggerMqtt-B3YNOB6U.js} +1 -1
  38. package/dist/interface/assets/{ConfigTriggerSchedule-C1PZrHEu.js → ConfigTriggerSchedule-DhbJGOT7.js} +1 -1
  39. package/dist/interface/assets/{ConfigTriggerSensor-9xVgCtkn.js → ConfigTriggerSensor-iMPg_Pmb.js} +1 -1
  40. package/dist/interface/assets/{ConfigTriggerSystem-Denf1gkO.js → ConfigTriggerSystem-MaNZTO3h.js} +1 -1
  41. package/dist/interface/assets/{ConfigTriggerWebhook-im24LkCn.js → ConfigTriggerWebhook-B3WfXjPv.js} +1 -1
  42. package/dist/interface/assets/{Console-Q1HpmyO_.js → Console-BQLINPCG.js} +1 -1
  43. package/dist/interface/assets/{CuiAssistantConversation-BxJf9sdu.js → CuiAssistantConversation-yCRlgjtr.js} +1 -1
  44. package/dist/interface/assets/{CuiAutomationRunsDialog-B3tJ-Cma.js → CuiAutomationRunsDialog-CJ0mzDLL.js} +1 -1
  45. package/dist/interface/assets/{CuiBottomSheet-kvvLw1MQ.js → CuiBottomSheet-BbP0T2v3.js} +1 -1
  46. package/dist/interface/assets/CuiBottomSheet-BpMMQhmJ.js +1 -0
  47. package/dist/interface/assets/CuiCameraPipCard-1EhYM5kQ.js +1 -0
  48. package/dist/interface/assets/CuiCameraRecordings-CkkHbNyY.css +1 -0
  49. package/dist/interface/assets/CuiCameraRecordings-D2jG47AV.js +1 -0
  50. package/dist/interface/assets/{CuiCameraShares-B5ghuJS-.js → CuiCameraShares-IpkomKkl.js} +1 -1
  51. package/dist/interface/assets/CuiCameraTable-CNclH1KS.js +1 -0
  52. package/dist/interface/assets/{CuiCameraTable-Y5XUkU7w.js → CuiCameraTable-DlL-z_na.js} +1 -1
  53. package/dist/interface/assets/{CuiChartTable-CXdupaj5.js → CuiChartTable-B0EPcrgv.js} +1 -1
  54. package/dist/interface/assets/{CuiConsole-5KgXSOS5.js → CuiConsole-D8Xk2LXY.js} +1 -1
  55. package/dist/interface/assets/{CuiDataTable-hArZWV9B.js → CuiDataTable-DtRTB560.js} +1 -1
  56. package/dist/interface/assets/{CuiLightControl-MRpR0XIZ.js → CuiLightControl-CtL3sA8k.js} +1 -1
  57. package/dist/interface/assets/{CuiList-D-l4HrBP.js → CuiList-Bn7DT_Ao.js} +1 -1
  58. package/dist/interface/assets/{CuiPluginCard-whoQ5YHn.js → CuiPluginCard-B-4x6Mno.js} +2 -2
  59. package/dist/interface/assets/{CuiPluginCategoryChip-CH53zk2o.js → CuiPluginCategoryChip-Dih4zKtO.js} +1 -1
  60. package/dist/interface/assets/{CuiPluginOAuthButton-BBA0AzVO.js → CuiPluginOAuthButton-D-Y9KYJz.js} +2 -2
  61. package/dist/interface/assets/{CuiPluginTrustBadge-C0EX5aCI.js → CuiPluginTrustBadge-_g3Ctrg4.js} +1 -1
  62. package/dist/interface/assets/{CuiQRCode-BRT0NO5c.js → CuiQRCode-D6hzmPzV.js} +1 -1
  63. package/dist/interface/assets/{CuiSchema-DBY1x1BT.js → CuiSchema-Dh8Mu4BK.js} +1 -1
  64. package/dist/interface/assets/{CuiTopNavbarItem-CpMT8_0r.js → CuiTopNavbarItem-CgX21E5K.js} +1 -1
  65. package/dist/interface/assets/Faces-CgDoKVkp.js +1 -0
  66. package/dist/interface/assets/{FirstSteps-B8n4fGK3.js → FirstSteps-CZSTX7Ot.js} +1 -1
  67. package/dist/interface/assets/{Floorplan-ZHXNaZA8.js → Floorplan-CRvmaf45.js} +1 -1
  68. package/dist/interface/assets/{Instances-DEj3gs6H.js → Instances-DRkhTQKC.js} +1 -1
  69. package/dist/interface/assets/{Logs-CwHvSKd6.js → Logs-CIDJSpdH.js} +1 -1
  70. package/dist/interface/assets/{Menu-C4BxUV0P.js → Menu-CM_F1jfd.js} +1 -1
  71. package/dist/interface/assets/{Metrics-BCOE-rcw.js → Metrics-DgJEg-ZK.js} +3 -3
  72. package/dist/interface/assets/Metrics-Ebv4qK2a.css +1 -0
  73. package/dist/interface/assets/{OAuthDeviceFlow-D6bjZOYS.js → OAuthDeviceFlow-BZ9LcgmJ.js} +1 -1
  74. package/dist/interface/assets/{Plugin-ppCvxkl4.js → Plugin-BBDpg6U_.js} +1 -1
  75. package/dist/interface/assets/{PluginConsole-BP42Qpee.js → PluginConsole-DxVlTuNy.js} +1 -1
  76. package/dist/interface/assets/{PluginDetail-BnX5lZGz.js → PluginDetail-fLGD3R-u.js} +2 -2
  77. package/dist/interface/assets/PluginSchema-CewD2H-K.js +1 -0
  78. package/dist/interface/assets/{PluginSearch-no79fTuf.js → PluginSearch-5wX7WEcz.js} +2 -2
  79. package/dist/interface/assets/PluginSearch-rDbuXm2z.js +1 -0
  80. package/dist/interface/assets/{PluginUpdateProgress-73jprYHA.js → PluginUpdateProgress-B7Lj0ttd.js} +1 -1
  81. package/dist/interface/assets/{Plugins-DtEqS6_j.js → Plugins-DVQ476iL.js} +1 -1
  82. package/dist/interface/assets/{RecentEventsFilter-CtyCbt6Z.js → RecentEventsFilter-CWNBI2Ge.js} +1 -1
  83. package/dist/interface/assets/Recordings-DSRgRVhN.js +1 -0
  84. package/dist/interface/assets/{SensorEdit-D4-mMg8S.js → SensorEdit-B1mYmxDV.js} +1 -1
  85. package/dist/interface/assets/{SensorHistory-C-X7VI-f.js → SensorHistory-D1kKroxp.js} +1 -1
  86. package/dist/interface/assets/{Sensors-BJh8BkCR.js → Sensors-yAc1M-oO.js} +2 -2
  87. package/dist/interface/assets/{Settings-B9CZvA-d.js → Settings-DBKgECRK.js} +1 -1
  88. package/dist/interface/assets/{SettingsAccount-D3zF2kLc.js → SettingsAccount-CM3XGNL6.js} +1 -1
  89. package/dist/interface/assets/SettingsAccount-i2nzGFdV.js +1 -0
  90. package/dist/interface/assets/{SettingsAppearance-CbG8M38w.js → SettingsAppearance-C-nllv3m.js} +1 -1
  91. package/dist/interface/assets/SettingsAppearance-DCgu01FJ.js +1 -0
  92. package/dist/interface/assets/{SettingsAssistant-DxYPnbms.js → SettingsAssistant-ClRO04fv.js} +1 -1
  93. package/dist/interface/assets/{SettingsBackup-DZBzUyQm.js → SettingsBackup-Cq_eLVCR.js} +1 -1
  94. package/dist/interface/assets/{SettingsList-DFg8g7IM.js → SettingsList-Bklt3TQO.js} +1 -1
  95. package/dist/interface/assets/{SettingsMqtt-BeujOZkh.js → SettingsMqtt-BLkP0en6.js} +1 -1
  96. package/dist/interface/assets/{SettingsNotifications-DtSTE76r.js → SettingsNotifications-CeUKfEnH.js} +1 -1
  97. package/dist/interface/assets/{SettingsPermissions-CPOAefv0.js → SettingsPermissions-Cpka-k3Q.js} +1 -1
  98. package/dist/interface/assets/{SettingsRecordings-ClAtT4Bh.js → SettingsRecordings-k20qTe7K.js} +1 -1
  99. package/dist/interface/assets/{SettingsRemote-58S4Thfp.js → SettingsRemote-CdUj0nZ1.js} +1 -1
  100. package/dist/interface/assets/{SettingsSystem-tTGpuiRW.js → SettingsSystem-6OChvWL7.js} +2 -2
  101. package/dist/interface/assets/{SettingsUsers-D8b7I5c2.js → SettingsUsers-B57uZ8jn.js} +1 -1
  102. package/dist/interface/assets/{Terminal-1_Fi0VW-.js → Terminal-WMgVSORW.js} +1 -1
  103. package/dist/interface/assets/Training-BkWlywj_.js +1 -0
  104. package/dist/interface/assets/{Training-CQHfQjUP.css → Training-Dwf5rXyC.css} +1 -1
  105. package/dist/interface/assets/{Updates-BW0p7Wc5.js → Updates-Dwrd6PQl.js} +1 -1
  106. package/dist/interface/assets/{VariableInput-sqnLuk6S.js → VariableInput-CDJXnzEV.js} +1 -1
  107. package/dist/interface/assets/{VariableSuggestions-3pbnxhyT.js → VariableSuggestions-CNq7O1o-.js} +1 -1
  108. package/dist/interface/assets/{VersionsHandler-CWmjDygB.js → VersionsHandler-C0A8Ryhn.js} +1 -1
  109. package/dist/interface/assets/{VirtualSensorCreate-BzmFlvYD.js → VirtualSensorCreate-zEehu8Fg.js} +1 -1
  110. package/dist/interface/assets/{Workers-Dm9o2wMo.js → Workers-Be7q2vOK.js} +1 -1
  111. package/dist/interface/assets/{api-CQ-3I3-i.js → api-CSl3-BNZ.js} +1 -1
  112. package/dist/interface/assets/api-DcaDMCnj.css +2 -0
  113. package/dist/interface/assets/api-vegsDz6n.js +4 -0
  114. package/dist/interface/assets/{assistant-0UymvpMy.js → assistant-jARIkvB1.js} +1 -1
  115. package/dist/interface/assets/{auth-C0jhqNaz.js → auth-Bov4B1jy.js} +1 -1
  116. package/dist/interface/assets/{automations-Bj30nb8s.js → automations-CJe7TvLk.js} +1 -1
  117. package/dist/interface/assets/{cameraSources-CiMjIjsh.js → cameraSources-CDiYtBzG.js} +1 -1
  118. package/dist/interface/assets/cloudHandoff-BoV37fDI.js +1 -0
  119. package/dist/interface/assets/{config-D-uVfwYp.js → config-iO2vrtak.js} +1 -1
  120. package/dist/interface/assets/{flowSchema-D3nNJVLL.js → flowSchema-B0vIoy4y.js} +1 -1
  121. package/dist/interface/assets/{intercomService-BeoNs-09.js → intercomService-IAAXcRPG.js} +1 -1
  122. package/dist/interface/assets/main-DQgH1fon.js +3 -0
  123. package/dist/interface/assets/{mqtt-D7jRwifB.js → mqtt-DfpSLxes.js} +1 -1
  124. package/dist/interface/assets/{notifications-BpRVoerg.js → notifications-jTSwwN1i.js} +1 -1
  125. package/dist/interface/assets/{plugins-wZ4RDxCb.js → plugins-ChyJXprl.js} +1 -1
  126. package/dist/interface/assets/{rooms-CFcu2dU1.js → rooms-BMWJpAXC.js} +1 -1
  127. package/dist/interface/assets/{sensorIcons-B117n8l2.js → sensorIcons-dUp8Tone.js} +1 -1
  128. package/dist/interface/assets/{sensorSlots-CAr3prFc.js → sensorSlots-CosoVMys.js} +1 -1
  129. package/dist/interface/assets/{sensors-oriEG3KR.js → sensors-DLdbNuoj.js} +1 -1
  130. package/dist/interface/assets/{server-Ce6ou2NV.js → server-D-qkU2-U.js} +1 -1
  131. package/dist/interface/assets/{theme-CBTC6-Lp.js → theme-DhneHMji.js} +1 -1
  132. package/dist/interface/assets/{types-CzjppLwt.js → types-CngwbyEy.js} +1 -1
  133. package/dist/interface/assets/{types-C-amdBz6.js → types-DDpq8alD.js} +1 -1
  134. package/dist/interface/assets/{types-CjU6-JvD.js → types-DdyAGRju.js} +1 -1
  135. package/dist/interface/assets/{ungrouped-AYNBKz52.css → ungrouped-DBRZ-Ori.css} +1 -1
  136. package/dist/interface/assets/ungrouped-e2tQIZD2.js +1 -0
  137. package/dist/interface/assets/{updates-Cohtc6vb.js → updates-DnVisGT3.js} +1 -1
  138. package/dist/interface/assets/{useAppVersion-xxi6fR7J.js → useAppVersion-gtzMlM4b.js} +1 -1
  139. package/dist/interface/assets/{useAssistantActions-BkRK1FBg.js → useAssistantActions-BIHVky9T.js} +1 -1
  140. package/dist/interface/assets/{useBackupRestore-BGvhSqJB.js → useBackupRestore-DfgufKp3.js} +1 -1
  141. package/dist/interface/assets/{useCameraOptions-ophs2V4p.js → useCameraOptions-B9yEPgGd.js} +1 -1
  142. package/dist/interface/assets/{useKeyboardInset-Cpz6Hs5c.js → useKeyboardInset-1sUlRSeV.js} +1 -1
  143. package/dist/interface/assets/{useLogsSocket-CB07yhv4.js → useLogsSocket-C2QUQqkZ.js} +1 -1
  144. package/dist/interface/assets/{useNavLayout-BYEejBpb.js → useNavLayout-Br4MtSjQ.js} +1 -1
  145. package/dist/interface/assets/{usePermissions-yWhjYMcr.js → usePermissions-B8pw9jk1.js} +1 -1
  146. package/dist/interface/assets/{usePluginUpdates-9rvsWfdJ.js → usePluginUpdates-Cx9PwENn.js} +1 -1
  147. package/dist/interface/assets/{usePushRegistration-b5owOzjH.js → usePushRegistration-CLEyagJM.js} +1 -1
  148. package/dist/interface/assets/{useServerRestart-yRXDWnH_.js → useServerRestart-BBp4cko_.js} +1 -1
  149. package/dist/interface/assets/{useStreamStatus-BHyWrAHu.js → useStreamStatus-BrPjpyzs.js} +1 -1
  150. package/dist/interface/assets/{useTabSwipe-Dr9HYP1J.js → useTabSwipe-B4edrv6o.js} +1 -1
  151. package/dist/interface/assets/{useUpdateChannel-IVj0XKlN.js → useUpdateChannel-DugwYo8J.js} +1 -1
  152. package/dist/interface/assets/{useUpdatesSocket-CuPHbSF7.js → useUpdatesSocket-CgCXGGVg.js} +1 -1
  153. package/dist/interface/assets/{useUserOptions-zIfrMDiG.js → useUserOptions-DTlKtp_u.js} +1 -1
  154. package/dist/interface/assets/vendor-cameraui-D0VXSxSF.js +2326 -0
  155. package/dist/interface/assets/{vendor-core-CQ2HVu0L.js → vendor-core-Ba81bBNM.js} +1 -1
  156. package/dist/interface/assets/{vendor-primevue-CeWNZxSE.js → vendor-primevue-LZEE4d1W.js} +1 -1
  157. package/dist/interface/ha/{404-B70KNhsW.js → 404-CkAIe5nc.js} +1 -1
  158. package/dist/interface/ha/{About-DLNqqctZ.js → About-C7HxP7hM.js} +3 -3
  159. package/dist/interface/ha/{Assistant-Duvvoz2B.js → Assistant-DJYxiCOY.js} +278 -278
  160. package/dist/interface/ha/{Automation-DZ8zvsvo.js → Automation-CfNHCeIm.js} +41 -41
  161. package/dist/interface/ha/{AutomationImport-DOCdim5O.js → AutomationImport-Dn3C1604.js} +6 -6
  162. package/dist/interface/ha/{AutomationStore-Bjoubp-m.js → AutomationStore-D63G9w2Y.js} +7 -7
  163. package/dist/interface/ha/{AutomationStoreDetail-H-RWNpwm.js → AutomationStoreDetail-HoUC8cSY.js} +6 -6
  164. package/dist/interface/ha/{Automations-GyofQfo7.js → Automations-BOlE1Evb.js} +43 -43
  165. package/dist/interface/ha/{Camera-Bo5nMQaU.js → Camera-6Vvo7nee.js} +225 -213
  166. package/dist/interface/ha/{CameraConsole-BmDQ3rcS.js → CameraConsole-DYSNDW4P.js} +3 -3
  167. package/dist/interface/ha/{Cameras-BfHoFjpC.js → Cameras-CxgwXUaG.js} +306 -306
  168. package/dist/interface/ha/{Camview-DVoIdM3o.js → Camview-DPjoUMSP.js} +227 -227
  169. package/dist/interface/ha/{Config-CC8tQiOy.js → Config-BzBFIWVF.js} +7 -7
  170. package/dist/interface/ha/{ConfigActionAssistant-hfsz38an.js → ConfigActionAssistant-BpHf4Pdi.js} +4 -4
  171. package/dist/interface/ha/{ConfigActionCameraControl-C0-wxlAS.js → ConfigActionCameraControl-CmbCTwZ8.js} +3 -3
  172. package/dist/interface/ha/{ConfigActionHttp-CM_3bIUq.js → ConfigActionHttp-BxN2KOA6.js} +2 -2
  173. package/dist/interface/ha/{ConfigActionImageInput-B5306Z_7.js → ConfigActionImageInput-CrXUZ-cM.js} +1 -1
  174. package/dist/interface/ha/{ConfigActionMqtt-DLiM83Kz.js → ConfigActionMqtt-DYq-6_S6.js} +4 -4
  175. package/dist/interface/ha/{ConfigActionNotification-36VBlfim.js → ConfigActionNotification-DPUSAVLI.js} +3 -3
  176. package/dist/interface/ha/{ConfigActionNotificationControl-DRjDvA1H.js → ConfigActionNotificationControl-h4zta4Db.js} +2 -2
  177. package/dist/interface/ha/{ConfigActionOutput-BkGHERoJ.js → ConfigActionOutput-Dwa0-7cq.js} +1 -1
  178. package/dist/interface/ha/{ConfigActionPlugin-Ds1_Pow7.js → ConfigActionPlugin-DXx1a-Hr.js} +5 -5
  179. package/dist/interface/ha/{ConfigActionSensor-22uKE0d0.js → ConfigActionSensor-CfLIHqS8.js} +5 -5
  180. package/dist/interface/ha/{ConfigActionSnapshot-uTTsTfo2.js → ConfigActionSnapshot-O0OBVq-R.js} +2 -2
  181. package/dist/interface/ha/{ConfigActionVariable-DNMJBiQV.js → ConfigActionVariable-CbaIxRRe.js} +1 -1
  182. package/dist/interface/ha/{ConfigConditionIfElse-BVzmIDKK.js → ConfigConditionIfElse-B7ax92bG.js} +3 -3
  183. package/dist/interface/ha/{ConfigConditionSensorState-Di7Ic1xI.js → ConfigConditionSensorState-B5XIrEGU.js} +4 -4
  184. package/dist/interface/ha/{ConfigConditionSwitch-D8CcTHJ1.js → ConfigConditionSwitch-DJSz6bI5.js} +5 -5
  185. package/dist/interface/ha/{ConfigSensorValueInput-DthsOthT.js → ConfigSensorValueInput-fE2SBn1B.js} +4 -4
  186. package/dist/interface/ha/{ConfigTriggerDetection-BDYanDEV.js → ConfigTriggerDetection-BuShu78G.js} +2 -2
  187. package/dist/interface/ha/{ConfigTriggerGeofence-Binp0lYx.js → ConfigTriggerGeofence-pBgXBkb6.js} +6 -6
  188. package/dist/interface/ha/{ConfigTriggerMqtt-BaPzSHbK.js → ConfigTriggerMqtt-Dyf_TLfU.js} +1 -1
  189. package/dist/interface/ha/{ConfigTriggerSensor-DiTaTZXm.js → ConfigTriggerSensor-C5YUm9ff.js} +1 -1
  190. package/dist/interface/ha/{ConfigTriggerSystem-CsdWiz-S.js → ConfigTriggerSystem-CylHWw4i.js} +2 -2
  191. package/dist/interface/ha/{ConfigTriggerWebhook-Ca0PsUmU.js → ConfigTriggerWebhook-ZlHsaLu4.js} +1 -1
  192. package/dist/interface/ha/{Console-0amlIoZR.js → Console-PNAQjW_1.js} +98 -98
  193. package/dist/interface/ha/{CuiAutomationRunsDialog-DNBuwkgL.js → CuiAutomationRunsDialog-D_q8K7QO.js} +2 -2
  194. package/dist/interface/ha/{CuiBottomSheet-CdXBYz4P.js → CuiBottomSheet-BbJG-998.js} +1 -1
  195. package/dist/interface/ha/{CuiCameraRecordings-D4ZB56nd.js → CuiCameraRecordings-BSI8Yn3v.js} +11 -11
  196. package/dist/interface/ha/{CuiCameraShares-YmzZusZR.js → CuiCameraShares-DKHZJT-z.js} +4 -4
  197. package/dist/interface/ha/{CuiCameraTable-DFzhCO3J.js → CuiCameraTable-BTdP1pEP.js} +2 -2
  198. package/dist/interface/ha/{CuiChartTable-BvfJbFNS.js → CuiChartTable-aFRfsewt.js} +4 -4
  199. package/dist/interface/ha/{CuiConsole-DtxyD6Sd.js → CuiConsole-BD9jYvrD.js} +4 -4
  200. package/dist/interface/ha/{CuiDataTable-CHvx6ALQ.js → CuiDataTable-C2lOduPV.js} +2 -2
  201. package/dist/interface/ha/{CuiPluginCard-B3vU57eD.js → CuiPluginCard-C-gpcLCH.js} +18 -18
  202. package/dist/interface/ha/{CuiPluginOAuthButton-DgOFfP5e.js → CuiPluginOAuthButton-B763Rz1n.js} +3 -3
  203. package/dist/interface/ha/{CuiPluginTrustBadge-udmtgGHt.js → CuiPluginTrustBadge-j5PKYI-V.js} +1 -1
  204. package/dist/interface/ha/{CuiQRCode-8yDZMC3o.js → CuiQRCode-D7WV4czh.js} +2 -2
  205. package/dist/interface/ha/{CuiSchema-0Hikg2mm.js → CuiSchema-BfsT0mAh.js} +96 -96
  206. package/dist/interface/ha/{CuiTopNavbarItem-B139fVxP.js → CuiTopNavbarItem-BwpXgGJ-.js} +1 -1
  207. package/dist/interface/ha/{Faces-YdAf9USr.js → Faces-C0e-m9EY.js} +48 -48
  208. package/dist/interface/ha/{FirstSteps-Dts6TJ6O.js → FirstSteps-DsDmM44G.js} +7 -7
  209. package/dist/interface/ha/{Floorplan-D6XXe8ni.js → Floorplan-Bei9kIhS.js} +206 -206
  210. package/dist/interface/ha/{Instances-DsIsonqp.js → Instances-BY5G1zFD.js} +66 -66
  211. package/dist/interface/ha/{Logs-Cyo3LC94.js → Logs-DDycObDv.js} +9 -9
  212. package/dist/interface/ha/{Menu-yh_sI9d9.js → Menu-9r_oFG_-.js} +3 -3
  213. package/dist/interface/ha/{Metrics-VehQmsmN.js → Metrics-BMTIXqn6.js} +283 -279
  214. package/dist/interface/ha/{OAuthDeviceFlow-CXp9NvbY.js → OAuthDeviceFlow-Dee5fynX.js} +3 -3
  215. package/dist/interface/ha/{Plugin-BqvlXx43.js → Plugin-B5o4pLyu.js} +41 -41
  216. package/dist/interface/ha/{PluginConsole-Dx84BNoO.js → PluginConsole-REtxP1Wi.js} +4 -4
  217. package/dist/interface/ha/{PluginDetail-DUpDS2nD.js → PluginDetail-BHrKifvP.js} +5 -5
  218. package/dist/interface/ha/{PluginSearch-Cvh0P9VB.js → PluginSearch-oNHMMeJD.js} +124 -124
  219. package/dist/interface/ha/{PluginUpdateProgress-CfyI2Qdp.js → PluginUpdateProgress-CqllA4eR.js} +3 -3
  220. package/dist/interface/ha/{Plugins-DXreIUwr.js → Plugins-B6y7z5yD.js} +173 -173
  221. package/dist/interface/ha/{Recordings-Cb8ifRcB.js → Recordings-CyhOVNoM.js} +168 -191
  222. package/dist/interface/ha/{SensorEdit-CsNXxcdj.js → SensorEdit-CnUU2PEv.js} +3 -3
  223. package/dist/interface/ha/{SensorHistory-DToDalOm.js → SensorHistory-z5hDuybW.js} +2 -2
  224. package/dist/interface/ha/{Sensors-B6giaowJ.js → Sensors-wpoB-X4r.js} +372 -372
  225. package/dist/interface/ha/{Settings-CVed7MM_.js → Settings-C6wTksxb.js} +3 -3
  226. package/dist/interface/ha/{SettingsAccount-CvvsLPoT.js → SettingsAccount-DByg5uzj.js} +178 -178
  227. package/dist/interface/ha/{SettingsAppearance-BDJeNGTd.js → SettingsAppearance-QgPo4M8O.js} +4 -4
  228. package/dist/interface/ha/{SettingsAssistant-B168p5HB.js → SettingsAssistant-Bg4BhUgb.js} +78 -78
  229. package/dist/interface/ha/{SettingsBackup-Bz_9xJ61.js → SettingsBackup-BgtZSRub.js} +39 -39
  230. package/dist/interface/ha/{SettingsList-B42rajJc.js → SettingsList-DB3j7buh.js} +1 -1
  231. package/dist/interface/ha/{SettingsMqtt-B5Qy6bxD.js → SettingsMqtt-DVx0z8vf.js} +14 -14
  232. package/dist/interface/ha/SettingsNotifications-osO2kMMO.js +529 -0
  233. package/dist/interface/ha/{SettingsRecordings-CkJGOiyQ.js → SettingsRecordings-BFEp160g.js} +7 -7
  234. package/dist/interface/ha/{SettingsRemote-Cc-qt3si.js → SettingsRemote-DQW4FhFn.js} +403 -403
  235. package/dist/interface/ha/{SettingsSystem-Cco2XXsS.js → SettingsSystem-Cs1MHOTi.js} +9 -9
  236. package/dist/interface/ha/{SettingsUsers-BDh-3saR.js → SettingsUsers-BtbuHlRZ.js} +23 -23
  237. package/dist/interface/ha/{Terminal-D2U-kFPW.js → Terminal-BuXCoMle.js} +4 -4
  238. package/dist/interface/ha/Training-CnsWyeaJ.js +1505 -0
  239. package/dist/interface/ha/{Updates-DGHNcvO9.js → Updates-BxU1Jpru.js} +5 -5
  240. package/dist/interface/ha/{VariableInput-Bujz1T1I.js → VariableInput-DgENnHvk.js} +1 -1
  241. package/dist/interface/ha/{VersionsHandler-CXvbeKbl.js → VersionsHandler-DQTSSqti.js} +10 -10
  242. package/dist/interface/ha/{VirtualSensorCreate-DOYONbgu.js → VirtualSensorCreate-Bsr6zTQp.js} +2 -2
  243. package/dist/interface/ha/{Workers-tQbC3WS6.js → Workers-0jZDuLbP.js} +14 -14
  244. package/dist/interface/ha/{api-DfJZj7ht.js → api-B8xb-N_g.js} +1 -1
  245. package/dist/interface/ha/{api-BI6_Fcag.js → api-VnpXqKYj.js} +7769 -7443
  246. package/dist/interface/ha/{assistant-BqSg4N8v.js → assistant-DDwonneA.js} +25 -25
  247. package/dist/interface/ha/{auth-BFoSqfzS.js → auth-CXX7ago-.js} +22 -22
  248. package/dist/interface/ha/{automationBlueprint-Q0yt2MdH.js → automationBlueprint-BUkXOKb1.js} +3 -3
  249. package/dist/interface/ha/cameraui-cards.js +1 -1
  250. package/dist/interface/ha/{cards-BW9I5B5Z.js → cards-CMel6uVq.js} +639 -637
  251. package/dist/interface/ha/{config-CeNHEP9A.js → config-9vwosYC8.js} +9 -9
  252. package/dist/interface/ha/{dist-BV3OfApt.js → dist-jxJIsKjm.js} +306 -282
  253. package/dist/interface/ha/{mqtt-BkYa2CXH.js → mqtt-Fm_GzbBi.js} +7 -7
  254. package/dist/interface/ha/{notifications-E3WSCGpc.js → notifications-CwSeoLx0.js} +12 -12
  255. package/dist/interface/ha/{pinia-DoDLbPZ3.js → pinia-D2fpp6nV.js} +150 -143
  256. package/dist/interface/ha/{plugins-2jjU7TfW.js → plugins-CgqO91Hg.js} +30 -30
  257. package/dist/interface/ha/{rooms-BkEw1ev-.js → rooms-DGnhPCGr.js} +1 -1
  258. package/dist/interface/ha/{server-CuK4o2fS.js → server-BqNJbXKJ.js} +15 -15
  259. package/dist/interface/ha/{types-BRHWeX0a.js → types-Ca-1kOA9.js} +18 -18
  260. package/dist/interface/ha/{ungrouped-BDwep3kg.js → ungrouped-B1RIFH36.js} +192 -192
  261. package/dist/interface/ha/{updates-R4xTxour.js → updates-Dn9WR43I.js} +26 -26
  262. package/dist/interface/ha/{useAppVersion-uaFjqUpx.js → useAppVersion-FMZfQhEd.js} +1 -1
  263. package/dist/interface/ha/{useLogsSocket-BZq9GXfy.js → useLogsSocket-Ch8C8inE.js} +1 -1
  264. package/dist/interface/ha/{useNavLayout-BJdDE__R.js → useNavLayout-DPjjtXVR.js} +2 -2
  265. package/dist/interface/ha/{useServerRestart-DDCKnE6c.js → useServerRestart-DoozgL8o.js} +1 -1
  266. package/dist/interface/ha/{useTabSwipe-CEH6ltIZ.js → useTabSwipe-CxXAmZNc.js} +1 -1
  267. package/dist/interface/ha/{useUpdateChannel-CHt1il2V.js → useUpdateChannel-CBwS4cI2.js} +2 -2
  268. package/dist/interface/ha/{useUpdatesSocket-BnVaNioY.js → useUpdatesSocket-GrlBqyU4.js} +1 -1
  269. package/dist/interface/ha/{useUserOptions-C7cQ1P3Q.js → useUserOptions-54hnf6hX.js} +1 -1
  270. package/dist/interface/index.html +31 -31
  271. package/dist/interface/sw.js +1 -1
  272. package/dist/server/package.json +5 -5
  273. package/dist/server/src/api/database/record-schemas.d.ts +10 -10
  274. package/dist/server/src/api/schemas/cameras.schema.d.ts +22 -22
  275. package/dist/server/src/api/schemas/users.schema.d.ts +70 -70
  276. package/dist/server/src/api/websocket/nsp/metrics.d.ts +0 -1
  277. package/dist/server/src/api/websocket/nsp/metrics.js +2 -48
  278. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  279. package/dist/server/src/api/websocket/nsp/worker-perf.d.ts +3 -0
  280. package/dist/server/src/api/websocket/nsp/worker-perf.js +58 -0
  281. package/dist/server/src/api/websocket/nsp/worker-perf.js.map +1 -0
  282. package/dist/server/src/api/websocket/types.d.ts +1 -0
  283. package/dist/server/src/assistant/search.d.ts +11 -11
  284. package/dist/server/src/camera/decoder/detection-coordinator.d.ts +6 -0
  285. package/dist/server/src/camera/decoder/detection-coordinator.js +117 -20
  286. package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
  287. package/dist/server/src/camera/decoder/detection-pipeline.d.ts +3 -1
  288. package/dist/server/src/camera/decoder/detection-pipeline.js +4 -0
  289. package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
  290. package/dist/server/src/camera/decoder/event-manager.d.ts +1 -0
  291. package/dist/server/src/camera/decoder/event-manager.js +5 -2
  292. package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
  293. package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +4 -0
  294. package/dist/server/src/camera/decoder/event-thumbnailer.js +3 -0
  295. package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -1
  296. package/dist/server/src/camera/decoder/event-trace.d.ts +2 -0
  297. package/dist/server/src/camera/decoder/event-trace.js +9 -5
  298. package/dist/server/src/camera/decoder/event-trace.js.map +1 -1
  299. package/dist/server/src/camera/decoder/perf-tracker.d.ts +5 -1
  300. package/dist/server/src/camera/decoder/perf-tracker.js +10 -2
  301. package/dist/server/src/camera/decoder/perf-tracker.js.map +1 -1
  302. package/dist/server/src/camera/decoder/types.d.ts +5 -1
  303. package/dist/server/src/camera/decoder/types.js.map +1 -1
  304. package/dist/server/src/rpc/interfaces/detection.d.ts +1 -0
  305. package/dist/server/src/sensors/registry.d.ts +1 -0
  306. package/dist/server/src/sensors/registry.js +9 -3
  307. package/dist/server/src/sensors/registry.js.map +1 -1
  308. package/dist/server/src/sensors/sensor.js +2 -3
  309. package/dist/server/src/sensors/sensor.js.map +1 -1
  310. package/dist/server/src/sensors/types.d.ts +2 -1
  311. package/dist/server/src/sensors/types.js +7 -1
  312. package/dist/server/src/sensors/types.js.map +1 -1
  313. package/package.json +5 -5
  314. package/dist/interface/assets/Camera-B5l_gv7t.js +0 -2
  315. package/dist/interface/assets/Camera-gYRy6ECP.css +0 -1
  316. package/dist/interface/assets/CuiBottomSheet-C37blNu-.js +0 -1
  317. package/dist/interface/assets/CuiCameraPipCard-TVAf5ZYQ.js +0 -1
  318. package/dist/interface/assets/CuiCameraRecordings-C26rX8dh.css +0 -1
  319. package/dist/interface/assets/CuiCameraRecordings-IHg1dNf4.js +0 -1
  320. package/dist/interface/assets/CuiCameraTable-xDZz7Wpe.js +0 -1
  321. package/dist/interface/assets/Faces-Dqi30qs9.js +0 -1
  322. package/dist/interface/assets/Metrics-DX59XXDc.css +0 -1
  323. package/dist/interface/assets/PluginSchema-uVKXzfo6.js +0 -1
  324. package/dist/interface/assets/PluginSearch-C4MvWyLb.js +0 -1
  325. package/dist/interface/assets/Recordings-DrcOsRLn.js +0 -1
  326. package/dist/interface/assets/SettingsAccount-CkvScQmF.js +0 -1
  327. package/dist/interface/assets/SettingsAppearance-ZHqNXXIL.js +0 -1
  328. package/dist/interface/assets/Training-DfOqDTHJ.js +0 -1
  329. package/dist/interface/assets/api-B6TtU9Ew.css +0 -2
  330. package/dist/interface/assets/api-DPgKdIQZ.js +0 -4
  331. package/dist/interface/assets/cloudHandoff-Cxljjl7N.js +0 -1
  332. package/dist/interface/assets/main-BrNGfemk.js +0 -3
  333. package/dist/interface/assets/ungrouped-BQzKp2PT.js +0 -1
  334. package/dist/interface/assets/vendor-cameraui-Dhg7MEnt.js +0 -2326
  335. package/dist/interface/ha/SettingsNotifications-C59UxYic.js +0 -529
  336. package/dist/interface/ha/Training-DWcaCI-3.js +0 -1499
@@ -6,27 +6,27 @@ import { t as N } from "./message-BExXUXHN.js";
6
6
  import { t as ne } from "./chevron-down-CN3LNAsG.js";
7
7
  import { t as P } from "./tag-Bko2QYOK.js";
8
8
  import { t as F } from "./history-Bm6QaZ6b.js";
9
- import { Br as I, Dt as re, Et as L, J as R, On as z, Or as ie, Q as B, Qi as V, Tt as ae, V as oe, Vn as se, Xt as H, at as ce, br as U, g as W, gr as le, hr as G, ht as ue, ir as de, kr as K, or as fe, p as q, r as pe, ui as me, yi as he, yr as J, zr as ge } from "./api-BI6_Fcag.js";
10
- import { A as _e, b as ve, u as ye } from "./intercomService-Dwd0bhSN.js";
11
- import { G as be, U as xe, W as Se, r as Ce } from "./pinia-DoDLbPZ3.js";
12
- import { n as we } from "./vue-i18n-BBObX4QY.js";
13
- import { i as Te } from "./alert-outline-BssBb-kV.js";
14
- import { p as Ee, s as De } from "./eventIcons-DrjNuTS2.js";
15
- import { t as Oe } from "./button-DJDZxmKj.js";
16
- import { n as ke, t as Ae } from "./inputicon-BPVltPdr.js";
17
- import { t as je } from "./inputtext-vdcrNX6K.js";
18
- import { t as Me } from "./close-C_ajB9j7.js";
19
- import { t as Ne } from "./select-CaVzuLaS.js";
20
- import { t as Pe } from "./multiselect-B0fAnW75.js";
21
- import { t as Fe } from "./textarea-DrKQ6YMZ.js";
22
- import { t as Ie } from "./clock-outline-CLOrwuhP.js";
23
- import { t as Le } from "./source-branch-CimaS9J1.js";
24
- import { a as Re, i as ze, n as Be, o as Ve, r as He, t as Y } from "./assistant-BqSg4N8v.js";
9
+ import { $i as I, Br as re, Dt as L, Et as R, Hn as z, J as ie, On as B, Or as ae, Q as oe, Tt as V, V as se, Xt as H, at as ce, bi as le, br as U, g as W, gr as G, hr as K, ht as ue, ir as de, kr as fe, or as q, p as J, r as pe, ui as me, yr as Y, zr as he } from "./api-VnpXqKYj.js";
10
+ import { A as ge, b as _e, u as ve } from "./intercomService-Dwd0bhSN.js";
11
+ import { G as ye, U as be, W as xe, r as Se } from "./pinia-D2fpp6nV.js";
12
+ import { n as Ce } from "./vue-i18n-BBObX4QY.js";
13
+ import { i as we } from "./alert-outline-BssBb-kV.js";
14
+ import { p as Te, s as Ee } from "./eventIcons-DrjNuTS2.js";
15
+ import { t as De } from "./button-DJDZxmKj.js";
16
+ import { n as Oe, t as ke } from "./inputicon-BPVltPdr.js";
17
+ import { t as Ae } from "./inputtext-vdcrNX6K.js";
18
+ import { t as je } from "./close-C_ajB9j7.js";
19
+ import { t as Me } from "./select-CaVzuLaS.js";
20
+ import { t as Ne } from "./multiselect-B0fAnW75.js";
21
+ import { t as Pe } from "./textarea-DrKQ6YMZ.js";
22
+ import { t as Fe } from "./clock-outline-CLOrwuhP.js";
23
+ import { t as Ie } from "./source-branch-CimaS9J1.js";
24
+ import { a as Le, i as Re, n as ze, o as Be, r as Ve, t as He } from "./assistant-DDwonneA.js";
25
25
  import { t as Ue } from "./search-DMJuYUDF.js";
26
26
  import { t as We } from "./content-copy-ChfuNPUb.js";
27
27
  import { t as Ge } from "./CuiMarkdownContent-CU4eGw6l.js";
28
28
  import { t as Ke } from "./brain-DBagansp.js";
29
- import { u as qe } from "./cards-BW9I5B5Z.js";
29
+ import { u as qe } from "./cards-CMel6uVq.js";
30
30
  import { c as Je, d as Ye, i as Xe, l as Ze, n as Qe, r as $e, t as et, u as tt } from "./types-B9Rna2FN.js";
31
31
  import { t as nt } from "./pencil-outline-3AYc7WXi.js";
32
32
  import { t as rt } from "./back-filled-B-jI6Dqb.js";
@@ -60,7 +60,7 @@ var ft = d({
60
60
  }, vt = { class: "flex flex-1 flex-col gap-1" }, yt = ["for"], bt = { class: "flex flex-1 flex-col gap-1" }, xt = ["for"], St = { class: "flex items-center gap-2" }, Ct = {
61
61
  key: 1,
62
62
  class: "flex-1"
63
- }, wt = /*#__PURE__*/ J(/* @__PURE__ */ A({
63
+ }, wt = /*#__PURE__*/ Y(/* @__PURE__ */ A({
64
64
  __name: "CuiAssistantQuestion",
65
65
  props: {
66
66
  question: {},
@@ -78,7 +78,7 @@ var ft = d({
78
78
  v.value && c("answer", v.value);
79
79
  }
80
80
  return (a, s) => {
81
- let _ = it, y = Oe, S = je;
81
+ let _ = it, y = De, S = Ae;
82
82
  return i(), x("div", pt, [
83
83
  T("div", mt, [M(_, { class: "w-5 h-5 shrink-0 text-muted mt-0.5" }), T("div", ht, o(e.question.question), 1)]),
84
84
  g(f).length ? (i(), x("div", gt, [(i(!0), x(C, null, r(g(f), (t) => (i(), p(y, {
@@ -161,7 +161,7 @@ var ft = d({
161
161
  }, jt = {
162
162
  key: 1,
163
163
  class: "mt-2 flex flex-col gap-1"
164
- }, Mt = { class: "flex justify-end gap-2" }, Nt = /*#__PURE__*/ J(/* @__PURE__ */ A({
164
+ }, Mt = { class: "flex justify-end gap-2" }, Nt = /*#__PURE__*/ Y(/* @__PURE__ */ A({
165
165
  __name: "CuiAssistantApproval",
166
166
  props: {
167
167
  toolName: {},
@@ -200,7 +200,7 @@ var ft = d({
200
200
  r("approve", l.value === s.value ? void 0 : e);
201
201
  }
202
202
  return (t, n) => {
203
- let _ = De, y = Fe, b = N, S = Oe;
203
+ let _ = Ee, y = Pe, b = N, S = De;
204
204
  return i(), x("div", Tt, [T("div", Et, [M(_, { class: "w-5 h-5 shrink-0 text-warning mt-0.5" }), T("div", Dt, [
205
205
  T("div", Ot, o(t.$t("views.assistant.approval_title", { tool: g(c) })), 1),
206
206
  T("div", kt, o(t.$t("views.assistant.approval_hint")), 1),
@@ -309,7 +309,7 @@ var Ht = d({
309
309
  //#endregion
310
310
  //#region src/composables/useAssistantReferences.ts
311
311
  function Ut() {
312
- let e = I(), { t } = we(), n = he(), r = ue(), { openEpisodePlayer: i } = B(), a = se("@camera.ui/camera-ui-nvr"), { download: o } = G(), s = j(null);
312
+ let e = re(), { t } = Ce(), n = le(), r = ue(), { openEpisodePlayer: i } = oe(), a = z("@camera.ui/camera-ui-nvr"), { download: o } = K(), s = j(null);
313
313
  async function c() {
314
314
  let e = await H({
315
315
  parameter: {
@@ -390,11 +390,11 @@ function Ut() {
390
390
  }
391
391
  //#endregion
392
392
  //#region src/components/CuiAssistantReferences/CuiAssistantReferences.vue?vue&type=script&setup=true&lang.ts
393
- var Wt = { class: "flex flex-wrap gap-1.5" }, Gt = ["disabled", "onClick"], Kt = { class: "truncate max-w-[16rem]" }, qt = /*#__PURE__*/ J(/* @__PURE__ */ A({
393
+ var Wt = { class: "flex flex-wrap gap-1.5" }, Gt = ["disabled", "onClick"], Kt = { class: "truncate max-w-[16rem]" }, qt = /*#__PURE__*/ Y(/* @__PURE__ */ A({
394
394
  __name: "CuiAssistantReferences",
395
395
  props: { references: {} },
396
396
  setup(e) {
397
- let { t } = we(), { busy: n, open: a } = Ut();
397
+ let { t } = Ce(), { busy: n, open: a } = Ut();
398
398
  function s(e) {
399
399
  return e.kind === "camera" ? t("views.assistant.open_camera") : e.kind === "episode" ? t("views.assistant.open_episode") : e.kind === "download" ? t("views.assistant.download_clip") : t("views.assistant.open_recording");
400
400
  }
@@ -418,7 +418,7 @@ var Wt = { class: "flex flex-wrap gap-1.5" }, Gt = ["disabled", "onClick"], Kt =
418
418
  })), T("span", Kt, o(e.label || s(e)), 1)], 8, Gt))), 128))]);
419
419
  };
420
420
  }
421
- }), [["__scopeId", "data-v-aae1a6dd"]]), Jt = { class: "flex items-center gap-3" }, Yt = { class: "flex min-w-0 flex-1 flex-col" }, Xt = { class: "text-sm font-medium" }, Zt = { class: "text-xs" }, Qt = /*#__PURE__*/ J(/* @__PURE__ */ A({
421
+ }), [["__scopeId", "data-v-aae1a6dd"]]), Jt = { class: "flex items-center gap-3" }, Yt = { class: "flex min-w-0 flex-1 flex-col" }, Xt = { class: "text-sm font-medium" }, Zt = { class: "text-xs" }, Qt = /*#__PURE__*/ Y(/* @__PURE__ */ A({
422
422
  __name: "CuiAssistantNotice",
423
423
  props: {
424
424
  title: {},
@@ -445,7 +445,7 @@ var Wt = { class: "flex flex-wrap gap-1.5" }, Gt = ["disabled", "onClick"], Kt =
445
445
  modelId: {}
446
446
  },
447
447
  setup(e) {
448
- let t = new Y(), n = e, r = W(), { user: a } = Ce(r), { data: o } = t.getAssistantInfoQuery(), s = t.patchAssistantInfoMutation(), c = _(() => a.value?.role === "admin" || a.value?.role === "master"), l = _(() => o.value?.settings.models ?? []), u = _(() => l.value.find((e) => e._id === n.modelId) ?? (o.value ? Ze(o.value.settings) : void 0)), d = _(() => n.setting === "sendImages" ? u.value?.sendImages === !0 : o.value?.settings[n.setting] === !0);
448
+ let t = new He(), n = e, r = W(), { user: a } = Se(r), { data: o } = t.getAssistantInfoQuery(), s = t.patchAssistantInfoMutation(), c = _(() => a.value?.role === "admin" || a.value?.role === "master"), l = _(() => o.value?.settings.models ?? []), u = _(() => l.value.find((e) => e._id === n.modelId) ?? (o.value ? Ze(o.value.settings) : void 0)), d = _(() => n.setting === "sendImages" ? u.value?.sendImages === !0 : o.value?.settings[n.setting] === !0);
449
449
  async function f(e) {
450
450
  if (n.setting !== "sendImages") {
451
451
  await s.mutateAsync({ [n.setting]: e });
@@ -458,7 +458,7 @@ var Wt = { class: "flex flex-wrap gap-1.5" }, Gt = ["disabled", "onClick"], Kt =
458
458
  })) });
459
459
  }
460
460
  return (t, n) => {
461
- let r = z, a = Qt;
461
+ let r = B, a = Qt;
462
462
  return i(), p(a, {
463
463
  severity: g(d) ? "success" : "warn",
464
464
  title: t.$t(`views.assistant.setting_${e.setting}_title`),
@@ -536,7 +536,7 @@ var ln = d({
536
536
  }, bn = {
537
537
  key: 0,
538
538
  class: "mt-3 text-xs text-muted"
539
- }, xn = /*#__PURE__*/ J(/* @__PURE__ */ A({
539
+ }, xn = /*#__PURE__*/ Y(/* @__PURE__ */ A({
540
540
  __name: "CuiAssistantCard",
541
541
  props: {
542
542
  card: {},
@@ -555,7 +555,7 @@ var ln = d({
555
555
  return e === "ok" ? "bg-success" : e === "warn" ? "bg-warning" : e === "error" ? "bg-danger" : "cui-assistant-card-dot-plain";
556
556
  }
557
557
  return (t, d) => {
558
- let f = ln, h = on, _ = nn, y = fe;
558
+ let f = ln, h = on, _ = nn, y = q;
559
559
  return i(), x("div", un, [
560
560
  T("div", dn, [e.card.kind === "system_health" ? (i(), p(f, {
561
561
  key: 0,
@@ -632,7 +632,7 @@ var wn = d({
632
632
  }, Fn = {
633
633
  key: 4,
634
634
  class: "cui-assistant-tool-details px-3 py-2 flex flex-col gap-2"
635
- }, In = { key: 0 }, Ln = { class: "text-xs uppercase tracking-wide text-muted" }, Rn = { class: "cui-assistant-pre mt-1 max-h-64 overflow-auto rounded-lg p-2 text-xs whitespace-pre-wrap break-words font-mono" }, zn = { key: 1 }, Bn = { class: "text-xs uppercase tracking-wide text-muted" }, Vn = { class: "cui-assistant-pre mt-1 max-h-64 overflow-auto rounded-lg p-2 text-xs whitespace-pre-wrap break-words font-mono" }, Hn = /*#__PURE__*/ J(/* @__PURE__ */ A({
635
+ }, In = { key: 0 }, Ln = { class: "text-xs uppercase tracking-wide text-muted" }, Rn = { class: "cui-assistant-pre mt-1 max-h-64 overflow-auto rounded-lg p-2 text-xs whitespace-pre-wrap break-words font-mono" }, zn = { key: 1 }, Bn = { class: "text-xs uppercase tracking-wide text-muted" }, Vn = { class: "cui-assistant-pre mt-1 max-h-64 overflow-auto rounded-lg p-2 text-xs whitespace-pre-wrap break-words font-mono" }, Hn = /*#__PURE__*/ Y(/* @__PURE__ */ A({
636
636
  __name: "CuiAssistantToolCall",
637
637
  props: {
638
638
  part: {},
@@ -653,7 +653,7 @@ var wn = d({
653
653
  }
654
654
  },
655
655
  setup(e) {
656
- let t = e, { t: n } = we(), { openImageDialog: a } = ue(), s = j(!1), c = _(() => Xe(t.part.name)), l = _(() => [
656
+ let t = e, { t: n } = Ce(), { openImageDialog: a } = ue(), s = j(!1), c = _(() => Xe(t.part.name)), l = _(() => [
657
657
  "awaiting-input",
658
658
  "input-streaming",
659
659
  "input-complete",
@@ -683,7 +683,7 @@ var wn = d({
683
683
  } });
684
684
  }
685
685
  return (t, n) => {
686
- let a = U, l = Ee, _ = De, S = wn, D = ot, k = st, A = ne, j = xn, ee = $t, te = Qt, N = qt;
686
+ let a = U, l = Te, _ = Ee, S = wn, D = ot, k = st, A = ne, j = xn, ee = $t, te = Qt, N = qt;
687
687
  return i(), x("div", Tn, [
688
688
  T("button", {
689
689
  type: "button",
@@ -821,7 +821,7 @@ var Yn = {
821
821
  }, Cr = {
822
822
  key: 0,
823
823
  class: "cui-assistant-usage text-[11px] tabular-nums text-muted"
824
- }, wr = { class: "flex gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100" }, Tr = 6, Er = /*#__PURE__*/ J(/* @__PURE__ */ A({
824
+ }, wr = { class: "flex gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100" }, Tr = 6, Er = /*#__PURE__*/ Y(/* @__PURE__ */ A({
825
825
  __name: "CuiAssistantMessage",
826
826
  props: {
827
827
  message: {},
@@ -846,7 +846,7 @@ var Yn = {
846
846
  "continue"
847
847
  ],
848
848
  setup(e, { emit: a }) {
849
- let s = e, u = a, { t: d } = we(), { openImageDialog: f } = ue(), y = [
849
+ let s = e, u = a, { t: d } = Ce(), { openImageDialog: f } = ue(), y = [
850
850
  "awaiting-input",
851
851
  "input-streaming",
852
852
  "input-complete",
@@ -937,11 +937,11 @@ var Yn = {
937
937
  async function B() {
938
938
  O.value = k.value, S.value = !0, await c(), b.value?.$el.focus();
939
939
  }
940
- function V() {
940
+ function ae() {
941
941
  let e = O.value.trim();
942
942
  e && (S.value = !1, e !== k.value && u("edit", e));
943
943
  }
944
- function se(e) {
944
+ function oe(e) {
945
945
  f({ data: {
946
946
  title: e.alt,
947
947
  src: e.src,
@@ -953,7 +953,7 @@ var Yn = {
953
953
  await pe(P.value);
954
954
  }
955
955
  return (a, s) => {
956
- let c = Fe, d = Oe, f = Gn, _ = Ht, y = nt, w = Le, j = oe, N = Ge, R = Hn, z = U, ce = ot, W = xn, le = $t, G = Qt, ue = qt, de = Ye, K = ae, fe = at, q = te;
956
+ let c = Pe, d = De, f = Gn, _ = Ht, y = nt, w = Ie, j = se, N = Ge, R = Hn, z = U, ce = ot, le = xn, W = $t, G = Qt, K = qt, ue = Ye, de = V, fe = at, q = te;
957
957
  return e.message.role === "user" ? (i(), x("div", Yn, [g(S) ? (i(), x("div", Xn, [M(c, {
958
958
  ref_key: "editRef",
959
959
  ref: b,
@@ -962,7 +962,7 @@ var Yn = {
962
962
  "auto-resize": "",
963
963
  rows: "2",
964
964
  class: "w-full text-[15px] leading-relaxed",
965
- onKeydown: [n(t(V, ["exact", "prevent"]), ["enter"]), s[1] ||= n(t((e) => S.value = !1, ["prevent"]), ["esc"])]
965
+ onKeydown: [n(t(ae, ["exact", "prevent"]), ["enter"]), s[1] ||= n(t((e) => S.value = !1, ["prevent"]), ["esc"])]
966
966
  }, null, 8, ["modelValue", "onKeydown"]), T("div", Zn, [M(d, {
967
967
  type: "button",
968
968
  size: "small",
@@ -975,7 +975,7 @@ var Yn = {
975
975
  size: "small",
976
976
  label: a.$t("views.assistant.edit_send"),
977
977
  disabled: !g(O).trim(),
978
- onClick: V
978
+ onClick: ae
979
979
  }, null, 8, ["label", "disabled"])])])) : (i(), x("div", Qn, [
980
980
  D(o(g(k)) + " ", 1),
981
981
  g(A).length ? (i(), x("div", $n, [(i(!0), x(C, null, r(g(A), (e) => (i(), x("img", {
@@ -1120,19 +1120,19 @@ var Yn = {
1120
1120
  key: e.src,
1121
1121
  type: "button",
1122
1122
  class: "cui-assistant-thumb cursor-pointer overflow-hidden rounded-lg",
1123
- onClick: (t) => se(e)
1123
+ onClick: (t) => oe(e)
1124
1124
  }, [T("img", {
1125
1125
  src: e.src,
1126
1126
  alt: e.alt,
1127
1127
  class: "h-32 w-auto object-cover",
1128
1128
  loading: "lazy"
1129
1129
  }, null, 8, br)], 8, yr))), 128))])) : m("", !0),
1130
- (i(!0), x(C, null, r(g(F).cards, (e, t) => (i(), p(W, {
1130
+ (i(!0), x(C, null, r(g(F).cards, (e, t) => (i(), p(le, {
1131
1131
  key: t,
1132
1132
  card: e,
1133
1133
  references: g(F).all
1134
1134
  }, null, 8, ["card", "references"]))), 128)),
1135
- (i(!0), x(C, null, r(g(F).settings, (t) => (i(), p(le, {
1135
+ (i(!0), x(C, null, r(g(F).settings, (t) => (i(), p(W, {
1136
1136
  key: t,
1137
1137
  setting: t,
1138
1138
  "model-id": e.modelId
@@ -1142,7 +1142,7 @@ var Yn = {
1142
1142
  title: a.$t(`views.assistant.notice_${e.capability}_title`, { model: e.model }),
1143
1143
  text: a.$t(`views.assistant.notice_${e.capability}_text`)
1144
1144
  }, null, 8, ["title", "text"]))), 128)),
1145
- g(F).references.length ? (i(), p(ue, {
1145
+ g(F).references.length ? (i(), p(K, {
1146
1146
  key: 1,
1147
1147
  references: g(F).references
1148
1148
  }, null, 8, ["references"])) : m("", !0)
@@ -1157,7 +1157,7 @@ var Yn = {
1157
1157
  disabled: e.busy,
1158
1158
  onClick: s[5] ||= (e) => u("continue")
1159
1159
  }, {
1160
- icon: v(() => [M(de, { class: "w-3.5 h-3.5" })]),
1160
+ icon: v(() => [M(ue, { class: "w-3.5 h-3.5" })]),
1161
1161
  _: 1
1162
1162
  }, 8, ["label", "disabled"])])) : m("", !0),
1163
1163
  !e.streaming && (g(P) || e.stopped) ? (i(), x("div", Sr, [g(re) ? E((i(), x("span", Cr, [D(o(g(re)), 1)])), [[
@@ -1166,7 +1166,7 @@ var Yn = {
1166
1166
  void 0,
1167
1167
  { top: !0 }
1168
1168
  ]]) : m("", !0), T("div", wr, [
1169
- g(P) ? E((i(), p(K, {
1169
+ g(P) ? E((i(), p(de, {
1170
1170
  key: 0,
1171
1171
  "action-text": a.$t("views.assistant.copied"),
1172
1172
  icon: g(We),
@@ -1313,7 +1313,7 @@ var Fr = d({
1313
1313
  }, Jr = {
1314
1314
  key: 2,
1315
1315
  class: "ml-auto"
1316
- }, Yr = /*#__PURE__*/ J(/* @__PURE__ */ A({
1316
+ }, Yr = /*#__PURE__*/ Y(/* @__PURE__ */ A({
1317
1317
  __name: "CuiAssistantComposer",
1318
1318
  props: {
1319
1319
  busy: {
@@ -1333,26 +1333,26 @@ var Fr = d({
1333
1333
  },
1334
1334
  emits: ["send", "stop"],
1335
1335
  setup(e, { expose: u, emit: d }) {
1336
- let f = e, _ = d, { smBreakpoint: y } = ie(), { t: S, locale: O } = we(), k = window.SpeechRecognition ?? window.webkitSpeechRecognition, A = !!k && window.isSecureContext, ee = w("inputRef"), ne = w("fileInput"), P = j(""), F = j(!1), I = j([]), re = j(""), L = null, R;
1336
+ let f = e, _ = d, { smBreakpoint: y } = ae(), { t: S, locale: O } = Ce(), k = window.SpeechRecognition ?? window.webkitSpeechRecognition, A = !!k && window.isSecureContext, ee = w("inputRef"), ne = w("fileInput"), P = j(""), F = j(!1), I = j([]), re = j(""), L = null, R;
1337
1337
  function z() {
1338
1338
  let e = ee.value?.$el;
1339
1339
  return e?.tagName === "TEXTAREA" ? e : e?.querySelector("textarea");
1340
1340
  }
1341
- function B() {
1341
+ function ie() {
1342
1342
  z()?.focus();
1343
1343
  }
1344
- function V() {
1344
+ function B() {
1345
1345
  let e = z();
1346
1346
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
1347
1347
  }
1348
- function ae() {
1348
+ function oe() {
1349
1349
  let e = P.value.trim();
1350
1350
  !e && !I.value.length || f.disabled || (_("send", {
1351
1351
  text: e,
1352
1352
  attachments: I.value
1353
1353
  }), P.value = "", I.value = []);
1354
1354
  }
1355
- function oe(e) {
1355
+ function V(e) {
1356
1356
  re.value = e, clearTimeout(R), R = setTimeout(() => re.value = "", 4e3);
1357
1357
  }
1358
1358
  function se(e) {
@@ -1368,24 +1368,24 @@ var Fr = d({
1368
1368
  r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
1369
1369
  });
1370
1370
  }
1371
- async function U(e) {
1371
+ async function le(e) {
1372
1372
  for (let t of e) {
1373
1373
  let e = se(t);
1374
1374
  if (!e) {
1375
- oe(S("views.assistant.attach_unsupported"));
1375
+ V(S("views.assistant.attach_unsupported"));
1376
1376
  continue;
1377
1377
  }
1378
1378
  if (t.size > Ir[e]) {
1379
- oe(S("views.assistant.attach_too_large", { max: Math.round(Ir[e] / 1024 / 1024) }));
1379
+ V(S("views.assistant.attach_too_large", { max: Math.round(Ir[e] / 1024 / 1024) }));
1380
1380
  continue;
1381
1381
  }
1382
1382
  if (I.value.length >= 8) {
1383
- oe(S("views.assistant.attach_too_many", { max: 8 }));
1383
+ V(S("views.assistant.attach_too_many", { max: 8 }));
1384
1384
  break;
1385
1385
  }
1386
1386
  let n = await ce(t);
1387
1387
  I.value.push({
1388
- id: q(),
1388
+ id: J(),
1389
1389
  name: t.name || e,
1390
1390
  kind: e,
1391
1391
  mimeType: t.type,
@@ -1395,18 +1395,18 @@ var Fr = d({
1395
1395
  });
1396
1396
  }
1397
1397
  }
1398
- async function W(e) {
1398
+ async function U(e) {
1399
1399
  let t = e.target;
1400
- t.files?.length && await U(Array.from(t.files)), t.value = "";
1400
+ t.files?.length && await le(Array.from(t.files)), t.value = "";
1401
1401
  }
1402
- async function le(e) {
1402
+ async function W(e) {
1403
1403
  let t = Array.from(e.clipboardData?.files ?? []);
1404
- t.length && (e.preventDefault(), await U(t));
1404
+ t.length && (e.preventDefault(), await le(t));
1405
1405
  }
1406
1406
  function G(e) {
1407
1407
  I.value = I.value.filter((t) => t.id !== e);
1408
1408
  }
1409
- function ue() {
1409
+ function K() {
1410
1410
  if (F.value) {
1411
1411
  L?.stop();
1412
1412
  return;
@@ -1418,15 +1418,15 @@ var Fr = d({
1418
1418
  for (let e = 0; e < t.results.length; e += 1) n += t.results[e][0]?.transcript ?? "";
1419
1419
  P.value = e ? `${e} ${n.trim()}` : n.trim();
1420
1420
  }, t.onend = () => {
1421
- F.value = !1, L = null, B();
1421
+ F.value = !1, L = null, ie();
1422
1422
  }, t.onerror = (e) => {
1423
- F.value = !1, L = null, e.error !== "no-speech" && e.error !== "aborted" && oe(e.error === "not-allowed" || e.error === "service-not-allowed" ? S("views.assistant.voice_denied") : S("views.assistant.voice_failed", { error: e.error }));
1423
+ F.value = !1, L = null, e.error !== "no-speech" && e.error !== "aborted" && V(e.error === "not-allowed" || e.error === "service-not-allowed" ? S("views.assistant.voice_denied") : S("views.assistant.voice_failed", { error: e.error }));
1424
1424
  }, L = t, F.value = !0, t.start();
1425
1425
  }
1426
- return b(P, () => c(V)), a(() => {
1426
+ return b(P, () => c(B)), a(() => {
1427
1427
  L?.abort(), clearTimeout(R);
1428
- }), u({ focus: B }), (a, c) => {
1429
- let u = Fe, d = Qt, f = Gn, b = Ht, S = Me, w = Oe, O = N, k = Fr, j = ct, L = Mr, R = kr, z = te;
1428
+ }), u({ focus: ie }), (a, c) => {
1429
+ let u = Pe, d = Qt, f = Gn, b = Ht, S = je, w = De, O = N, k = Fr, j = ct, L = Mr, R = kr, z = te;
1430
1430
  return i(), x("div", zr, [
1431
1431
  M(u, {
1432
1432
  ref_key: "inputRef",
@@ -1438,8 +1438,8 @@ var Fr = d({
1438
1438
  "auto-resize": "",
1439
1439
  rows: "1",
1440
1440
  class: "cui-assistant-input block w-full max-h-52 resize-none px-4 pt-3.5 pb-1 text-[15px] leading-relaxed",
1441
- onKeydown: n(t(ae, ["exact", "prevent"]), ["enter"]),
1442
- onPaste: le
1441
+ onKeydown: n(t(oe, ["exact", "prevent"]), ["enter"]),
1442
+ onPaste: W
1443
1443
  }, null, 8, [
1444
1444
  "modelValue",
1445
1445
  "placeholder",
@@ -1519,7 +1519,7 @@ var Fr = d({
1519
1519
  class: "hidden",
1520
1520
  multiple: "",
1521
1521
  accept: g(Lr),
1522
- onChange: W
1522
+ onChange: U
1523
1523
  }, null, 40, Kr),
1524
1524
  g(A) ? E((i(), p(w, {
1525
1525
  key: 0,
@@ -1529,7 +1529,7 @@ var Fr = d({
1529
1529
  rounded: "",
1530
1530
  class: l(["cui-assistant-voice shrink-0", { "cui-assistant-voice-active": g(F) }]),
1531
1531
  disabled: e.disabled || e.busy,
1532
- onClick: ue
1532
+ onClick: K
1533
1533
  }, {
1534
1534
  icon: v(() => [M(j, { class: "w-4 h-4" })]),
1535
1535
  _: 1
@@ -1565,7 +1565,7 @@ var Fr = d({
1565
1565
  type: "button",
1566
1566
  class: "cui-assistant-send shrink-0",
1567
1567
  disabled: e.disabled || !g(P).trim() && !g(I).length,
1568
- onClick: ae
1568
+ onClick: oe
1569
1569
  }, {
1570
1570
  icon: v(() => [M(R, { class: "w-4 h-4" })]),
1571
1571
  _: 1
@@ -7694,14 +7694,14 @@ function Jc(e) {
7694
7694
  }
7695
7695
  async function Yc(e, t) {
7696
7696
  let n = new Headers(t?.headers ?? {});
7697
- for (let [e, t] of Object.entries(await le())) n.set(e, t);
7697
+ for (let [e, t] of Object.entries(await G())) n.set(e, t);
7698
7698
  return n.set("X-Cui-Timezone", Intl.DateTimeFormat().resolvedOptions().timeZone), fetch(e, {
7699
7699
  ...t,
7700
7700
  headers: n
7701
7701
  });
7702
7702
  }
7703
7703
  function Xc() {
7704
- return `${(V().target.value?.endpoint.url ?? window.location.origin).replace(/\/+$/, "")}/api/assistant/chat`;
7704
+ return `${(I().target.value?.endpoint.url ?? window.location.origin).replace(/\/+$/, "")}/api/assistant/chat`;
7705
7705
  }
7706
7706
  function Zc(e, t) {
7707
7707
  try {
@@ -7738,7 +7738,7 @@ async function Qc(e, t, n, r) {
7738
7738
  }
7739
7739
  case "open_camview": return Zc(e, "/camview");
7740
7740
  case "open_page": {
7741
- let t = be[String(r.page ?? "")];
7741
+ let t = ye[String(r.page ?? "")];
7742
7742
  return t ? Zc(e, t.path) : {
7743
7743
  ok: !1,
7744
7744
  message: "unknown page"
@@ -7780,12 +7780,12 @@ async function Qc(e, t, n, r) {
7780
7780
  }
7781
7781
  }
7782
7782
  function $c(e) {
7783
- let t = I(), n = lt(), r = [...(e.approvalTools ?? []).filter((e) => e.approval && e.inputSchema).map((e) => uo({
7783
+ let t = re(), n = lt(), r = [...(e.approvalTools ?? []).filter((e) => e.approval && e.inputSchema).map((e) => uo({
7784
7784
  name: e.name,
7785
7785
  description: e.description,
7786
7786
  inputSchema: e.inputSchema,
7787
7787
  needsApproval: !0
7788
- })), ...Se.map((e) => uo({
7788
+ })), ...xe.map((e) => uo({
7789
7789
  name: e.name,
7790
7790
  description: e.description,
7791
7791
  inputSchema: e.inputSchema
@@ -7808,13 +7808,13 @@ function $c(e) {
7808
7808
  connection: {
7809
7809
  ...Ss(Xc, { fetchClient: Yc }),
7810
7810
  hydrate: async (e) => {
7811
- let t = await Re(e);
7811
+ let t = await Le(e);
7812
7812
  return p(t.attachments), t;
7813
7813
  }
7814
7814
  },
7815
7815
  persistence: !0,
7816
7816
  tools: r,
7817
- interrupts: [xe],
7817
+ interrupts: [be],
7818
7818
  queue: {
7819
7819
  whenBusy: "queue",
7820
7820
  maxSize: 5
@@ -7887,7 +7887,7 @@ function $c(e) {
7887
7887
  }
7888
7888
  function S() {
7889
7889
  let e = m.runId.value;
7890
- e && He(e).catch(() => void 0), m.stop();
7890
+ e && Ve(e).catch(() => void 0), m.stop();
7891
7891
  let t = m.messages.value.at(-1);
7892
7892
  d.value = t?.role === "assistant" ? t.id : null;
7893
7893
  }
@@ -7976,7 +7976,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
7976
7976
  }, Yl = {
7977
7977
  key: 1,
7978
7978
  class: "flex max-h-64 flex-col overflow-y-auto"
7979
- }, Xl = { class: "min-w-0 flex-1 leading-snug" }, Zl = /*#__PURE__*/ J(/* @__PURE__ */ A({
7979
+ }, Xl = { class: "min-w-0 flex-1 leading-snug" }, Zl = /*#__PURE__*/ Y(/* @__PURE__ */ A({
7980
7980
  __name: "CuiAssistantConversation",
7981
7981
  props: {
7982
7982
  threadId: {},
@@ -7997,19 +7997,19 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
7997
7997
  "emptied"
7998
7998
  ],
7999
7999
  setup(e, { expose: a, emit: s }) {
8000
- let u = new Y(), d = e, f = s, { t: y, locale: S } = we(), O = he(), { data: k } = u.listProfilesQuery(), A = u.createProfileMutation(), N = u.patchProfileMutation(), F = u.deleteProfileMutation(), { data: I, refetch: R } = u.memoryQuery(), z = u.deleteMemoryFactMutation(), ie = u.deleteMemoryMutation(), { data: B } = u.getAssistantInfoQuery(), V = w("scrollRef"), ae = w("contentRef"), se = w("composerRef"), H = w("toolsPopover"), ce = w("memoryPopover"), U = j(!0), W = j([]), le = j(""), G = j(null), ue = j(!1), K = j(""), fe = j(null), q = $c({
8000
+ let u = new He(), d = e, f = s, { t: y, locale: S } = Ce(), O = le(), { data: k } = u.listProfilesQuery(), A = u.createProfileMutation(), N = u.patchProfileMutation(), F = u.deleteProfileMutation(), { data: I, refetch: re } = u.memoryQuery(), z = u.deleteMemoryFactMutation(), ie = u.deleteMemoryMutation(), { data: B } = u.getAssistantInfoQuery(), ae = w("scrollRef"), oe = w("contentRef"), V = w("composerRef"), H = w("toolsPopover"), ce = w("memoryPopover"), U = j(!0), W = j([]), G = j(""), K = j(null), ue = j(!1), fe = j(""), q = j(null), J = $c({
8001
8001
  threadId: _(() => d.threadId),
8002
8002
  initialMessages: d.initialMessages,
8003
8003
  initialAttachments: d.initialAttachments,
8004
8004
  language: S,
8005
8005
  disabledGroups: W,
8006
- instructions: le,
8007
- modelId: fe,
8006
+ instructions: G,
8007
+ modelId: q,
8008
8008
  approvalTools: d.approvalTools,
8009
8009
  onFinish: () => f("finished"),
8010
8010
  onError: ot
8011
- }), pe = _(() => q.messages.value.length === 0), me = _(() => B.value?.settings.models ?? []), J = _(() => B.value ? Ze(B.value.settings) : void 0), ge = _(() => me.value.find((e) => e._id === fe.value) ?? J.value), ye = _(() => ge.value?.capabilities?.vision === !1 ? ge.value.name : void 0), be = _(() => q.busy.value && !q.approvals.value.length && !q.questions.value.length && !q.pausedElsewhere.value), xe = _(() => be.value && q.messages.value.at(-1)?.role !== "assistant"), Se = _(() => {
8012
- let e = q.messages.value, t = [];
8011
+ }), pe = _(() => J.messages.value.length === 0), me = _(() => B.value?.settings.models ?? []), Y = _(() => B.value ? Ze(B.value.settings) : void 0), he = _(() => me.value.find((e) => e._id === q.value) ?? Y.value), ve = _(() => he.value?.capabilities?.vision === !1 ? he.value.name : void 0), ye = _(() => J.busy.value && !J.approvals.value.length && !J.questions.value.length && !J.pausedElsewhere.value), be = _(() => ye.value && J.messages.value.at(-1)?.role !== "assistant"), xe = _(() => {
8012
+ let e = J.messages.value, t = [];
8013
8013
  return e.forEach((n, r) => {
8014
8014
  if (Jn(n)) return;
8015
8015
  let i = n.role === "assistant" && Jn(e[r - 1]), a = t[t.length - 1];
@@ -8028,7 +8028,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8028
8028
  continuation: i
8029
8029
  });
8030
8030
  }), t;
8031
- }), Ce = _(() => {
8031
+ }), Se = _(() => {
8032
8032
  let e = /* @__PURE__ */ new Map();
8033
8033
  for (let t of d.tools) {
8034
8034
  let n = t.group === "core" ? y("views.assistant.tool_group_core") : t.group === "docs" ? y("views.assistant.tool_group_docs") : t.group === "terminal" ? y("views.assistant.tool_group_terminal") : t.source.kind === "plugin" ? t.source.pluginName : t.source.kind === "external" ? t.source.serverName : t.group, r = e.get(t.group) ?? {
@@ -8040,98 +8040,98 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8040
8040
  }
8041
8041
  let t = (e) => e === "core" ? 0 : e === "docs" ? 1 : e.startsWith("plugin:") ? 2 : 3;
8042
8042
  return Array.from(e.values()).sort((e, n) => t(e.id) - t(n.id) || e.label.localeCompare(n.label));
8043
- }), Ee = _({
8044
- get: () => Ce.value.filter((e) => !W.value.includes(e.id)).map((e) => e.id),
8043
+ }), Te = _({
8044
+ get: () => Se.value.filter((e) => !W.value.includes(e.id)).map((e) => e.id),
8045
8045
  set: (e) => {
8046
- W.value = Ce.value.filter((t) => !e.includes(t.id)).map((e) => e.id);
8046
+ W.value = Se.value.filter((t) => !e.includes(t.id)).map((e) => e.id);
8047
8047
  }
8048
- }), De = _(() => {
8048
+ }), Ee = _(() => {
8049
8049
  let e = (/* @__PURE__ */ new Date()).getHours();
8050
8050
  return y(e < 5 ? "views.assistant.greeting_night" : e < 11 ? "views.assistant.greeting_morning" : e < 18 ? "views.assistant.greeting_day" : "views.assistant.greeting_evening");
8051
8051
  });
8052
- function ke(e) {
8053
- for (let t of e.ids) if (q.usage.value[t]) return q.usage.value[t];
8052
+ function Oe(e) {
8053
+ for (let t of e.ids) if (J.usage.value[t]) return J.usage.value[t];
8054
8054
  }
8055
- function Ae() {
8056
- let e = V.value;
8055
+ function ke() {
8056
+ let e = ae.value;
8057
8057
  e && (U.value = e.scrollHeight - e.scrollTop - e.clientHeight < 120);
8058
8058
  }
8059
- function Le() {
8060
- U.value = !0, Re();
8059
+ function Ie() {
8060
+ U.value = !0, Le();
8061
8061
  }
8062
- function Re() {
8063
- let e = V.value;
8062
+ function Le() {
8063
+ let e = ae.value;
8064
8064
  e && (e.scrollTop = e.scrollHeight);
8065
8065
  }
8066
- function He(e) {
8067
- ce.value?.toggle(e), R();
8066
+ function Ve(e) {
8067
+ ce.value?.toggle(e), re();
8068
8068
  }
8069
8069
  function Ue(e) {
8070
8070
  let t = k.value?.find((t) => t._id === e);
8071
- t && (W.value = [...t.disabledGroups], le.value = t.instructions, fe.value = me.value.some((e) => e._id === t.modelId) ? t.modelId : null);
8071
+ t && (W.value = [...t.disabledGroups], G.value = t.instructions, q.value = me.value.some((e) => e._id === t.modelId) ? t.modelId : null);
8072
8072
  }
8073
8073
  function We(e) {
8074
- return me.value.find((t) => t._id === e.modelId) ?? J.value;
8074
+ return me.value.find((t) => t._id === e.modelId) ?? Y.value;
8075
8075
  }
8076
8076
  function Ge(e) {
8077
8077
  return e ? Je(e).filter((e) => e.severity !== "success") : [];
8078
8078
  }
8079
8079
  async function qe() {
8080
- let e = K.value.trim();
8080
+ let e = fe.value.trim();
8081
8081
  if (!e) return;
8082
8082
  let t = await A.mutateAsync({
8083
8083
  name: e,
8084
- modelId: ge.value?._id ?? "",
8084
+ modelId: he.value?._id ?? "",
8085
8085
  disabledGroups: [...W.value],
8086
- instructions: le.value.trim()
8086
+ instructions: G.value.trim()
8087
8087
  });
8088
- G.value = t._id, ue.value = !1, K.value = "";
8088
+ K.value = t._id, ue.value = !1, fe.value = "";
8089
8089
  }
8090
8090
  async function Ye() {
8091
- G.value && await N.mutateAsync({
8092
- profileId: G.value,
8091
+ K.value && await N.mutateAsync({
8092
+ profileId: K.value,
8093
8093
  patch: {
8094
- modelId: ge.value?._id ?? "",
8094
+ modelId: he.value?._id ?? "",
8095
8095
  disabledGroups: [...W.value],
8096
- instructions: le.value.trim()
8096
+ instructions: G.value.trim()
8097
8097
  }
8098
8098
  });
8099
8099
  }
8100
8100
  async function Xe() {
8101
- G.value &&= (await F.mutateAsync(G.value), null);
8101
+ K.value &&= (await F.mutateAsync(K.value), null);
8102
8102
  }
8103
8103
  function Qe() {
8104
8104
  for (let e of [H.value, ce.value]) e?.visible && e.alignOverlay();
8105
8105
  }
8106
8106
  function $e(e) {
8107
- let t = q.messages.value, n = e + 1;
8107
+ let t = J.messages.value, n = e + 1;
8108
8108
  for (; n < t.length && (t[n].role !== "user" || Jn(t[n]));) n++;
8109
8109
  return n;
8110
8110
  }
8111
8111
  function et(e) {
8112
- let t = q.messages.value, n = e;
8112
+ let t = J.messages.value, n = e;
8113
8113
  for (; n > 0 && (t[n].role !== "user" || Jn(t[n]));) n--;
8114
8114
  return n;
8115
8115
  }
8116
8116
  async function tt(e) {
8117
- U.value = !0, q.setMessages(q.messages.value.slice(0, e)), await q.reload();
8117
+ U.value = !0, J.setMessages(J.messages.value.slice(0, e)), await J.reload();
8118
8118
  }
8119
8119
  async function nt(e, t) {
8120
8120
  U.value = !0;
8121
- let n = q.messages.value[e].parts.filter((e) => e.type === "image" || e.type === "audio" || e.type === "video");
8122
- q.setMessages(q.messages.value.slice(0, e)), n.length ? await q.sendMessage({ content: [{
8121
+ let n = J.messages.value[e].parts.filter((e) => e.type === "image" || e.type === "audio" || e.type === "video");
8122
+ J.setMessages(J.messages.value.slice(0, e)), n.length ? await J.sendMessage({ content: [{
8123
8123
  type: "text",
8124
8124
  content: t
8125
- }, ...n] }) : await q.sendMessage(t);
8125
+ }, ...n] }) : await J.sendMessage(t);
8126
8126
  }
8127
8127
  async function rt(e) {
8128
- let t = q.messages.value, n = [...t.slice(0, et(e)), ...t.slice($e(e))];
8129
- if (q.setMessages(n), !n.length) {
8128
+ let t = J.messages.value, n = [...t.slice(0, et(e)), ...t.slice($e(e))];
8129
+ if (J.setMessages(n), !n.length) {
8130
8130
  f("emptied");
8131
8131
  return;
8132
8132
  }
8133
8133
  try {
8134
- await Ve(d.threadId, n);
8134
+ await Be(d.threadId, n);
8135
8135
  } catch (e) {
8136
8136
  e?.response?.status !== 404 && O.add({
8137
8137
  severity: "error",
@@ -8142,7 +8142,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8142
8142
  }
8143
8143
  async function it(e) {
8144
8144
  try {
8145
- let t = await Be(d.threadId, $e(e) - 1);
8145
+ let t = await ze(d.threadId, $e(e) - 1);
8146
8146
  f("branched", t);
8147
8147
  } catch (e) {
8148
8148
  O.add({
@@ -8154,7 +8154,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8154
8154
  }
8155
8155
  async function at(e) {
8156
8156
  if (U.value = !0, !e.attachments.length) {
8157
- await q.sendMessage(e.text);
8157
+ await J.sendMessage(e.text);
8158
8158
  return;
8159
8159
  }
8160
8160
  let t = e.text ? [{
@@ -8169,7 +8169,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8169
8169
  mimeType: n.mimeType
8170
8170
  }
8171
8171
  });
8172
- await q.sendMessage({ content: t });
8172
+ await J.sendMessage({ content: t });
8173
8173
  }
8174
8174
  function ot(e) {
8175
8175
  if (e.message.includes("status: 409")) {
@@ -8183,84 +8183,84 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8183
8183
  });
8184
8184
  }
8185
8185
  async function st() {
8186
- let e = await ze(d.threadId).catch(() => void 0);
8187
- e && (q.replaceFromStore(e.messages, e.attachments), O.add({
8186
+ let e = await Re(d.threadId).catch(() => void 0);
8187
+ e && (J.replaceFromStore(e.messages, e.attachments), O.add({
8188
8188
  severity: "info",
8189
8189
  detail: y("views.assistant.thread_reloaded"),
8190
8190
  life: 5e3
8191
8191
  }));
8192
8192
  }
8193
8193
  function ct(e) {
8194
- return !q.busy.value && (q.replaceFromStore(e.messages, e.attachments), !0);
8194
+ return !J.busy.value && (J.replaceFromStore(e.messages, e.attachments), !0);
8195
8195
  }
8196
- return b(() => q.messages.value, async () => {
8197
- U.value && (await c(), Re());
8198
- }, { deep: !0 }), b(() => q.approvals.value.length + q.questions.value.length, async (e, t) => {
8199
- e <= t || (U.value = !0, await c(), Re());
8196
+ return b(() => J.messages.value, async () => {
8197
+ U.value && (await c(), Le());
8198
+ }, { deep: !0 }), b(() => J.approvals.value.length + J.questions.value.length, async (e, t) => {
8199
+ e <= t || (U.value = !0, await c(), Le());
8200
8200
  }), b(pe, async () => {
8201
- await c(), se.value?.focus();
8202
- }), ve(window, "scroll", Qe, {
8201
+ await c(), V.value?.focus();
8202
+ }), _e(window, "scroll", Qe, {
8203
8203
  capture: !0,
8204
8204
  passive: !0
8205
- }), _e([V, ae], () => {
8206
- U.value && Re();
8205
+ }), ge([ae, oe], () => {
8206
+ U.value && Le();
8207
8207
  }), ee(async () => {
8208
- await c(), Re(), se.value?.focus(), d.initialPrompt && await at({
8208
+ await c(), Le(), V.value?.focus(), d.initialPrompt && await at({
8209
8209
  text: d.initialPrompt,
8210
8210
  attachments: []
8211
8211
  });
8212
8212
  }), a({ refreshFromStore: ct }), (a, s) => {
8213
- let c = Te, u = Qt, d = Qr, f = Oe, _ = Ke, y = Yr, b = Er, S = Nt, w = wt, O = ne, j = Ie, ee = Me, R = Fe, B = Pe, he = P, _e = Ne, ve = ft, we = L, Re = oe, ze = re, Be = je, Ve = de, Y = te;
8213
+ let c = we, u = Qt, d = Qr, f = De, _ = Ke, y = Yr, b = Er, S = Nt, w = wt, O = ne, j = Fe, ee = je, re = Pe, B = Ne, le = P, ge = Me, _e = ft, Ce = R, Le = se, Re = L, ze = Ae, Be = de, He = te;
8214
8214
  return i(), x("div", el, [
8215
8215
  T("div", {
8216
8216
  ref_key: "scrollRef",
8217
- ref: V,
8217
+ ref: ae,
8218
8218
  class: l(["flex-1 min-h-0 overflow-y-auto px-4", { "flex items-center justify-center pb-[8vh]": g(pe) }]),
8219
- onScrollPassive: Ae
8219
+ onScrollPassive: ke
8220
8220
  }, [g(pe) ? (i(), x("div", tl, [
8221
- T("div", nl, [T("div", rl, [M(c, { class: "w-6 h-6 text-color" })]), T("h1", il, [D(o(g(De)) + " ", 1), T("span", al, o(a.$t("views.assistant.greeting_sub")), 1)])]),
8222
- g(ge)?.capabilities?.toolCalling === !1 ? (i(), p(u, {
8221
+ T("div", nl, [T("div", rl, [M(c, { class: "w-6 h-6 text-color" })]), T("h1", il, [D(o(g(Ee)) + " ", 1), T("span", al, o(a.$t("views.assistant.greeting_sub")), 1)])]),
8222
+ g(he)?.capabilities?.toolCalling === !1 ? (i(), p(u, {
8223
8223
  key: 0,
8224
8224
  class: "mb-4",
8225
- title: a.$t("views.assistant.notice_tools_title", { model: g(ge).name }),
8225
+ title: a.$t("views.assistant.notice_tools_title", { model: g(he).name }),
8226
8226
  text: a.$t("views.assistant.notice_tools_text")
8227
8227
  }, null, 8, ["title", "text"])) : m("", !0),
8228
8228
  M(y, {
8229
8229
  ref_key: "composerRef",
8230
- ref: se,
8231
- busy: g(q).busy.value,
8232
- "vision-missing": g(ye),
8230
+ ref: V,
8231
+ busy: g(J).busy.value,
8232
+ "vision-missing": g(ve),
8233
8233
  compact: e.compact,
8234
8234
  placeholder: a.$t("views.assistant.composer_placeholder"),
8235
8235
  onSend: at,
8236
- onStop: s[2] ||= (e) => g(q).stop()
8236
+ onStop: s[2] ||= (e) => g(J).stop()
8237
8237
  }, {
8238
8238
  tools: v(() => [T("span", ol, [E((i(), p(f, {
8239
8239
  type: "button",
8240
8240
  severity: "secondary",
8241
8241
  text: "",
8242
8242
  rounded: "",
8243
- disabled: g(q).busy.value,
8243
+ disabled: g(J).busy.value,
8244
8244
  onClick: s[0] ||= (e) => g(H)?.toggle(e)
8245
8245
  }, {
8246
8246
  icon: v(() => [M(d, { class: "w-4 h-4" })]),
8247
8247
  _: 1
8248
8248
  }, 8, ["disabled"])), [[
8249
- Y,
8249
+ He,
8250
8250
  { value: a.$t("views.assistant.tools_title") },
8251
8251
  void 0,
8252
8252
  { top: !0 }
8253
- ]]), g(W).length ? (i(), x("span", sl, o(g(Ee).length), 1)) : m("", !0)]), T("span", cl, [E((i(), p(f, {
8253
+ ]]), g(W).length ? (i(), x("span", sl, o(g(Te).length), 1)) : m("", !0)]), T("span", cl, [E((i(), p(f, {
8254
8254
  type: "button",
8255
8255
  severity: "secondary",
8256
8256
  text: "",
8257
8257
  rounded: "",
8258
- onClick: s[1] ||= (e) => He(e)
8258
+ onClick: s[1] ||= (e) => Ve(e)
8259
8259
  }, {
8260
8260
  icon: v(() => [M(_, { class: "w-4 h-4" })]),
8261
8261
  _: 1
8262
8262
  })), [[
8263
- Y,
8263
+ He,
8264
8264
  { value: a.$t("views.assistant.memory_title") },
8265
8265
  void 0,
8266
8266
  { top: !0 }
@@ -8284,30 +8284,30 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8284
8284
  ])) : (i(), x("div", {
8285
8285
  key: 1,
8286
8286
  ref_key: "contentRef",
8287
- ref: ae,
8287
+ ref: oe,
8288
8288
  class: "mx-auto flex w-full max-w-[720px] flex-col gap-7 pt-6 pb-4"
8289
8289
  }, [
8290
- (i(!0), x(C, null, r(g(Se), (e) => (i(), p(b, {
8290
+ (i(!0), x(C, null, r(g(xe), (e) => (i(), p(b, {
8291
8291
  key: e.message.id,
8292
8292
  message: e.message,
8293
- streaming: g(q).isLoading.value && e.lastIndex === g(q).messages.value.length - 1 && e.message.role === "assistant",
8294
- working: g(be) && e.lastIndex === g(q).messages.value.length - 1 && e.message.role === "assistant",
8295
- busy: g(q).busy.value,
8293
+ streaming: g(J).isLoading.value && e.lastIndex === g(J).messages.value.length - 1 && e.message.role === "assistant",
8294
+ working: g(ye) && e.lastIndex === g(J).messages.value.length - 1 && e.message.role === "assistant",
8295
+ busy: g(J).busy.value,
8296
8296
  continuation: e.continuation,
8297
- stopped: e.ids.includes(g(q).stoppedId.value ?? ""),
8298
- "tool-images": g(q).toolImages.value,
8299
- "tool-references": g(q).toolReferences.value,
8300
- "tool-cards": g(q).toolCards.value,
8301
- "tool-settings": g(q).toolSettings.value,
8302
- "tool-notices": g(q).toolNotices.value,
8303
- "model-id": g(ge)?._id,
8304
- usage: ke(e),
8297
+ stopped: e.ids.includes(g(J).stoppedId.value ?? ""),
8298
+ "tool-images": g(J).toolImages.value,
8299
+ "tool-references": g(J).toolReferences.value,
8300
+ "tool-cards": g(J).toolCards.value,
8301
+ "tool-settings": g(J).toolSettings.value,
8302
+ "tool-notices": g(J).toolNotices.value,
8303
+ "model-id": g(he)?._id,
8304
+ usage: Oe(e),
8305
8305
  class: l({ "-mt-5": e.continuation }),
8306
8306
  onRegenerate: (t) => tt(e.index),
8307
8307
  onEdit: (t) => nt(e.index, t),
8308
8308
  onDelete: (t) => rt(e.index),
8309
8309
  onBranch: (t) => it(e.index),
8310
- onContinue: s[3] ||= (e) => g(q).continueAnswer()
8310
+ onContinue: s[3] ||= (e) => g(J).continueAnswer()
8311
8311
  }, null, 8, [
8312
8312
  "message",
8313
8313
  "streaming",
@@ -8328,24 +8328,24 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8328
8328
  "onDelete",
8329
8329
  "onBranch"
8330
8330
  ]))), 128)),
8331
- g(xe) ? (i(), p(b, {
8331
+ g(be) ? (i(), p(b, {
8332
8332
  key: 0,
8333
8333
  message: g($r),
8334
8334
  working: "",
8335
8335
  busy: "",
8336
- continuation: g(Jn)(g(q).messages.value.at(-1)),
8337
- class: l({ "-mt-5": g(Jn)(g(q).messages.value.at(-1)) })
8336
+ continuation: g(Jn)(g(J).messages.value.at(-1)),
8337
+ class: l({ "-mt-5": g(Jn)(g(J).messages.value.at(-1)) })
8338
8338
  }, null, 8, [
8339
8339
  "message",
8340
8340
  "continuation",
8341
8341
  "class"
8342
8342
  ])) : m("", !0),
8343
- (i(!0), x(C, null, r(g(q).approvals.value, (e) => (i(), p(S, {
8343
+ (i(!0), x(C, null, r(g(J).approvals.value, (e) => (i(), p(S, {
8344
8344
  key: e.id,
8345
8345
  "tool-name": e.toolName,
8346
8346
  args: e.originalArgs,
8347
8347
  "can-resolve": e.canResolve,
8348
- busy: g(q).resuming.value,
8348
+ busy: g(J).resuming.value,
8349
8349
  onApprove: (t) => t ? e.resolveInterrupt(!0, { editedArgs: t }) : e.resolveInterrupt(!0),
8350
8350
  onReject: (t) => e.resolveInterrupt(!1)
8351
8351
  }, null, 8, [
@@ -8356,7 +8356,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8356
8356
  "onApprove",
8357
8357
  "onReject"
8358
8358
  ]))), 128)),
8359
- (i(!0), x(C, null, r(g(q).questions.value, (e) => (i(), p(w, {
8359
+ (i(!0), x(C, null, r(g(J).questions.value, (e) => (i(), p(w, {
8360
8360
  key: e.id,
8361
8361
  question: e.payload ?? {
8362
8362
  toolCallId: e.id,
@@ -8364,7 +8364,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8364
8364
  kind: "text"
8365
8365
  },
8366
8366
  "can-resolve": e.canResolve,
8367
- busy: g(q).resuming.value,
8367
+ busy: g(J).resuming.value,
8368
8368
  onAnswer: (t) => e.resolveInterrupt({ answer: t }),
8369
8369
  onSkip: (t) => e.cancel()
8370
8370
  }, null, 8, [
@@ -8374,8 +8374,8 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8374
8374
  "onAnswer",
8375
8375
  "onSkip"
8376
8376
  ]))), 128)),
8377
- g(q).pausedElsewhere.value ? (i(), x("div", fl, o(a.$t("views.assistant.paused_elsewhere")), 1)) : m("", !0),
8378
- g(q).error.value ? (i(), x("div", pl, [T("strong", ml, o(g(q).error.value.message), 1)])) : m("", !0)
8377
+ g(J).pausedElsewhere.value ? (i(), x("div", fl, o(a.$t("views.assistant.paused_elsewhere")), 1)) : m("", !0),
8378
+ g(J).error.value ? (i(), x("div", pl, [T("strong", ml, o(g(J).error.value.message), 1)])) : m("", !0)
8379
8379
  ], 512))], 34),
8380
8380
  g(pe) ? m("", !0) : (i(), x("div", hl, [g(U) ? m("", !0) : E((i(), p(f, {
8381
8381
  key: 0,
@@ -8383,17 +8383,17 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8383
8383
  rounded: "",
8384
8384
  severity: "secondary",
8385
8385
  class: "cui-assistant-jump absolute left-1/2 top-0 z-[2] -translate-x-1/2 -translate-y-1/2",
8386
- onClick: Le
8386
+ onClick: Ie
8387
8387
  }, {
8388
8388
  icon: v(() => [M(O, { class: "w-4 h-4" })]),
8389
8389
  _: 1
8390
8390
  })), [[
8391
- Y,
8391
+ He,
8392
8392
  { value: a.$t("views.assistant.scroll_to_latest") },
8393
8393
  void 0,
8394
8394
  { top: !0 }
8395
8395
  ]]), T("div", gl, [
8396
- g(q).queue.value.length ? (i(), x("div", _l, [(i(!0), x(C, null, r(g(q).queue.value, (e) => (i(), x("div", {
8396
+ g(J).queue.value.length ? (i(), x("div", _l, [(i(!0), x(C, null, r(g(J).queue.value, (e) => (i(), x("div", {
8397
8397
  key: e.id,
8398
8398
  class: "cui-assistant-queued flex items-center gap-2 rounded-lg px-3 py-1.5 text-[13px] text-muted"
8399
8399
  }, [
@@ -8405,12 +8405,12 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8405
8405
  text: "",
8406
8406
  rounded: "",
8407
8407
  class: "cui-icon-md shrink-0",
8408
- onClick: (t) => g(q).cancelQueued(e.id)
8408
+ onClick: (t) => g(J).cancelQueued(e.id)
8409
8409
  }, {
8410
8410
  icon: v(() => [M(ee, { class: "w-3.5 h-3.5" })]),
8411
8411
  _: 1
8412
8412
  }, 8, ["onClick"])), [[
8413
- Y,
8413
+ He,
8414
8414
  { value: a.$t("views.assistant.queue_cancel") },
8415
8415
  void 0,
8416
8416
  { top: !0 }
@@ -8418,40 +8418,40 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8418
8418
  ]))), 128))])) : m("", !0),
8419
8419
  M(y, {
8420
8420
  ref_key: "composerRef",
8421
- ref: se,
8422
- busy: g(q).busy.value,
8423
- "vision-missing": g(ye),
8421
+ ref: V,
8422
+ busy: g(J).busy.value,
8423
+ "vision-missing": g(ve),
8424
8424
  compact: e.compact,
8425
8425
  placeholder: a.$t("views.assistant.composer_placeholder"),
8426
8426
  onSend: at,
8427
- onStop: s[6] ||= (e) => g(q).stop()
8427
+ onStop: s[6] ||= (e) => g(J).stop()
8428
8428
  }, {
8429
8429
  tools: v(() => [T("span", yl, [E((i(), p(f, {
8430
8430
  type: "button",
8431
8431
  severity: "secondary",
8432
8432
  text: "",
8433
8433
  rounded: "",
8434
- disabled: g(q).busy.value,
8434
+ disabled: g(J).busy.value,
8435
8435
  onClick: s[4] ||= (e) => g(H)?.toggle(e)
8436
8436
  }, {
8437
8437
  icon: v(() => [M(d, { class: "w-4 h-4" })]),
8438
8438
  _: 1
8439
8439
  }, 8, ["disabled"])), [[
8440
- Y,
8440
+ He,
8441
8441
  { value: a.$t("views.assistant.tools_title") },
8442
8442
  void 0,
8443
8443
  { top: !0 }
8444
- ]]), g(W).length ? (i(), x("span", bl, o(g(Ee).length), 1)) : m("", !0)]), T("span", xl, [E((i(), p(f, {
8444
+ ]]), g(W).length ? (i(), x("span", bl, o(g(Te).length), 1)) : m("", !0)]), T("span", xl, [E((i(), p(f, {
8445
8445
  type: "button",
8446
8446
  severity: "secondary",
8447
8447
  text: "",
8448
8448
  rounded: "",
8449
- onClick: s[5] ||= (e) => He(e)
8449
+ onClick: s[5] ||= (e) => Ve(e)
8450
8450
  }, {
8451
8451
  icon: v(() => [M(_, { class: "w-4 h-4" })]),
8452
8452
  _: 1
8453
8453
  })), [[
8454
- Y,
8454
+ He,
8455
8455
  { value: a.$t("views.assistant.memory_title") },
8456
8456
  void 0,
8457
8457
  { top: !0 }
@@ -8465,30 +8465,30 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8465
8465
  ]),
8466
8466
  T("div", Cl, o(a.$t("views.assistant.disclaimer")), 1)
8467
8467
  ])])),
8468
- M(Ve, {
8468
+ M(Be, {
8469
8469
  ref_key: "toolsPopover",
8470
8470
  ref: H
8471
8471
  }, {
8472
8472
  default: v(() => [T("div", wl, [
8473
8473
  T("span", Tl, o(a.$t("views.assistant.tools_title")), 1),
8474
- T("div", El, [T("label", Dl, o(a.$t("views.assistant.instructions_label")), 1), M(R, {
8474
+ T("div", El, [T("label", Dl, o(a.$t("views.assistant.instructions_label")), 1), M(re, {
8475
8475
  id: "assistantInstructions",
8476
- modelValue: g(le),
8477
- "onUpdate:modelValue": s[7] ||= (e) => h(le) ? le.value = e : null,
8476
+ modelValue: g(G),
8477
+ "onUpdate:modelValue": s[7] ||= (e) => h(G) ? G.value = e : null,
8478
8478
  rows: "2",
8479
8479
  "auto-resize": "",
8480
8480
  class: "text-sm",
8481
8481
  placeholder: a.$t("views.assistant.instructions_placeholder")
8482
8482
  }, null, 8, ["modelValue", "placeholder"])]),
8483
8483
  T("div", Ol, [T("label", kl, o(a.$t("views.assistant.tools_label")), 1), M(B, {
8484
- modelValue: g(Ee),
8485
- "onUpdate:modelValue": s[8] ||= (e) => h(Ee) ? Ee.value = e : null,
8484
+ modelValue: g(Te),
8485
+ "onUpdate:modelValue": s[8] ||= (e) => h(Te) ? Te.value = e : null,
8486
8486
  "input-id": "assistantTools",
8487
- options: g(Ce),
8487
+ options: g(Se),
8488
8488
  "option-label": "label",
8489
8489
  "option-value": "id",
8490
8490
  "max-selected-labels": 2,
8491
- "selected-items-label": a.$t("views.assistant.tools_selected", { n: g(Ee).length }),
8491
+ "selected-items-label": a.$t("views.assistant.tools_selected", { n: g(Te).length }),
8492
8492
  placeholder: a.$t("views.assistant.tools_none"),
8493
8493
  class: "min-w-0"
8494
8494
  }, {
@@ -8500,17 +8500,17 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8500
8500
  "selected-items-label",
8501
8501
  "placeholder"
8502
8502
  ])]),
8503
- g(me).length > 1 ? (i(), x("div", Nl, [T("label", Pl, o(a.$t("views.assistant.model_label")), 1), M(_e, {
8504
- modelValue: g(fe),
8505
- "onUpdate:modelValue": s[9] ||= (e) => h(fe) ? fe.value = e : null,
8503
+ g(me).length > 1 ? (i(), x("div", Nl, [T("label", Pl, o(a.$t("views.assistant.model_label")), 1), M(ge, {
8504
+ modelValue: g(q),
8505
+ "onUpdate:modelValue": s[9] ||= (e) => h(q) ? q.value = e : null,
8506
8506
  "input-id": "assistantModel",
8507
8507
  options: g(me),
8508
8508
  "option-label": "name",
8509
8509
  "option-value": "_id",
8510
8510
  class: "min-w-0",
8511
- placeholder: g(J)?.name
8511
+ placeholder: g(Y)?.name
8512
8512
  }, {
8513
- option: v(({ option: e }) => [T("div", Fl, [T("span", Il, o(e.name), 1), T("span", Ll, [(i(!0), x(C, null, r(Ge(e), (e) => (i(), p(he, {
8513
+ option: v(({ option: e }) => [T("div", Fl, [T("span", Il, o(e.name), 1), T("span", Ll, [(i(!0), x(C, null, r(Ge(e), (e) => (i(), p(le, {
8514
8514
  key: e.key,
8515
8515
  severity: e.severity,
8516
8516
  value: a.$t(`views.settings.assistant_capability_${e.key}`),
@@ -8524,11 +8524,11 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8524
8524
  ])])) : m("", !0),
8525
8525
  T("div", Rl, [
8526
8526
  T("label", zl, o(a.$t("views.assistant.profiles_label")), 1),
8527
- M(ze, null, {
8527
+ M(Re, null, {
8528
8528
  default: v(() => [
8529
- M(_e, {
8530
- modelValue: g(G),
8531
- "onUpdate:modelValue": [s[10] ||= (e) => h(G) ? G.value = e : null, Ue],
8529
+ M(ge, {
8530
+ modelValue: g(K),
8531
+ "onUpdate:modelValue": [s[10] ||= (e) => h(K) ? K.value = e : null, Ue],
8532
8532
  "input-id": "assistantProfile",
8533
8533
  options: g(k) ?? [],
8534
8534
  "option-label": "name",
@@ -8537,7 +8537,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8537
8537
  class: "min-w-0",
8538
8538
  placeholder: a.$t("views.assistant.profile_none")
8539
8539
  }, {
8540
- option: v(({ option: e }) => [T("div", Bl, [T("span", Vl, o(e.name), 1), T("span", Hl, [(i(!0), x(C, null, r(Ge(We(e)), (e) => (i(), p(he, {
8540
+ option: v(({ option: e }) => [T("div", Bl, [T("span", Vl, o(e.name), 1), T("span", Hl, [(i(!0), x(C, null, r(Ge(We(e)), (e) => (i(), p(le, {
8541
8541
  key: e.key,
8542
8542
  severity: e.severity,
8543
8543
  value: a.$t(`views.settings.assistant_capability_${e.key}`),
@@ -8549,26 +8549,26 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8549
8549
  "options",
8550
8550
  "placeholder"
8551
8551
  ]),
8552
- M(we, { class: "!p-0" }, {
8552
+ M(Ce, { class: "!p-0" }, {
8553
8553
  default: v(() => [E((i(), p(f, {
8554
8554
  type: "button",
8555
8555
  severity: "secondary",
8556
8556
  text: "",
8557
8557
  class: "h-full rounded-none",
8558
8558
  loading: g(A).isPending.value || g(N).isPending.value,
8559
- onClick: s[11] ||= (e) => g(G) ? Ye() : ue.value = !0
8559
+ onClick: s[11] ||= (e) => g(K) ? Ye() : ue.value = !0
8560
8560
  }, {
8561
- icon: v(() => [M(ve, { class: "w-4 h-4" })]),
8561
+ icon: v(() => [M(_e, { class: "w-4 h-4" })]),
8562
8562
  _: 1
8563
8563
  }, 8, ["loading"])), [[
8564
- Y,
8565
- { value: g(G) ? a.$t("views.assistant.profile_update") : a.$t("views.assistant.profile_save") },
8564
+ He,
8565
+ { value: g(K) ? a.$t("views.assistant.profile_update") : a.$t("views.assistant.profile_save") },
8566
8566
  void 0,
8567
8567
  { top: !0 }
8568
8568
  ]])]),
8569
8569
  _: 1
8570
8570
  }),
8571
- g(G) ? (i(), p(we, {
8571
+ g(K) ? (i(), p(Ce, {
8572
8572
  key: 0,
8573
8573
  class: "!p-0"
8574
8574
  }, {
@@ -8580,10 +8580,10 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8580
8580
  loading: g(F).isPending.value,
8581
8581
  onClick: Xe
8582
8582
  }, {
8583
- icon: v(() => [M(Re, { class: "w-4 h-4" })]),
8583
+ icon: v(() => [M(Le, { class: "w-4 h-4" })]),
8584
8584
  _: 1
8585
8585
  }, 8, ["loading"])), [[
8586
- Y,
8586
+ He,
8587
8587
  { value: a.$t("views.assistant.profile_delete") },
8588
8588
  void 0,
8589
8589
  { top: !0 }
@@ -8593,9 +8593,9 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8593
8593
  ]),
8594
8594
  _: 1
8595
8595
  }),
8596
- g(ue) ? (i(), x("div", Ul, [M(Be, {
8597
- modelValue: g(K),
8598
- "onUpdate:modelValue": s[12] ||= (e) => h(K) ? K.value = e : null,
8596
+ g(ue) ? (i(), x("div", Ul, [M(ze, {
8597
+ modelValue: g(fe),
8598
+ "onUpdate:modelValue": s[12] ||= (e) => h(fe) ? fe.value = e : null,
8599
8599
  class: "flex-1 min-w-0",
8600
8600
  size: "small",
8601
8601
  placeholder: a.$t("views.assistant.profile_name_placeholder"),
@@ -8608,14 +8608,14 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8608
8608
  type: "button",
8609
8609
  size: "small",
8610
8610
  label: a.$t("components.form.button.save"),
8611
- disabled: !g(K).trim(),
8611
+ disabled: !g(fe).trim(),
8612
8612
  onClick: qe
8613
8613
  }, null, 8, ["label", "disabled"])])) : m("", !0)
8614
8614
  ])
8615
8615
  ])]),
8616
8616
  _: 1
8617
8617
  }, 512),
8618
- M(Ve, {
8618
+ M(Be, {
8619
8619
  ref_key: "memoryPopover",
8620
8620
  ref: ce
8621
8621
  }, {
@@ -8636,7 +8636,7 @@ var el = { class: "relative flex h-full min-h-0 flex-col" }, tl = {
8636
8636
  icon: v(() => [M(ee, { class: "w-3 h-3" })]),
8637
8637
  _: 1
8638
8638
  }, 8, ["loading", "onClick"])), [[
8639
- Y,
8639
+ He,
8640
8640
  { value: a.$t("views.assistant.memory_forget") },
8641
8641
  void 0,
8642
8642
  { top: !0 }
@@ -8684,7 +8684,7 @@ var eu = d({
8684
8684
  }, ou = { class: "cui-assistant-group px-2 pt-3.5 pb-1 text-[11.5px] font-medium text-muted" }, su = ["onClick"], cu = { class: "min-w-0 flex-1 truncate" }, lu = {
8685
8685
  key: 3,
8686
8686
  class: "cui-assistant-sidebar-foot px-3 py-2"
8687
- }, uu = /*#__PURE__*/ J(/* @__PURE__ */ A({
8687
+ }, uu = /*#__PURE__*/ Y(/* @__PURE__ */ A({
8688
8688
  __name: "CuiAssistantSidebar",
8689
8689
  props: {
8690
8690
  threads: {},
@@ -8708,7 +8708,7 @@ var eu = d({
8708
8708
  "close"
8709
8709
  ],
8710
8710
  setup(e, { emit: n }) {
8711
- let a = e, s = n, { topbarOffset: c, bottombarHeight: u } = K(), d = w("sidebarRef"), f = j(""), y = _(() => a.isOpen ? 288 : 0), b = _(() => {
8711
+ let a = e, s = n, { topbarOffset: c, bottombarHeight: u } = fe(), d = w("sidebarRef"), f = j(""), y = _(() => a.isOpen ? 288 : 0), b = _(() => {
8712
8712
  let e = f.value.trim().toLowerCase(), t = a.threads.filter((t) => !e || t.title.toLowerCase().includes(e)).sort((e, t) => t.updatedAt - e.updatedAt), n = [
8713
8713
  "today",
8714
8714
  "yesterday",
@@ -8729,10 +8729,10 @@ var eu = d({
8729
8729
  let t = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()).getTime(), n = Math.round((t(/* @__PURE__ */ new Date()) - t(new Date(e))) / 864e5);
8730
8730
  return n <= 0 ? "today" : n === 1 ? "yesterday" : n <= 7 ? "week" : n <= 30 ? "month" : "older";
8731
8731
  }
8732
- return ye(d, (e) => {
8732
+ return ve(d, (e) => {
8733
8733
  a.isOpen && a.isOverlay && (e.target.closest("#assistant-sidebar-toggle") || s("close"));
8734
8734
  }), (n, a) => {
8735
- let _ = eu, w = Oe, O = qe, k = Ue, A = Ae, j = je, ee = ke, N = U, ne = oe, P = te;
8735
+ let _ = eu, w = De, O = qe, k = Ue, A = ke, j = Ae, ee = Oe, N = U, ne = se, P = te;
8736
8736
  return i(), x("nav", {
8737
8737
  ref_key: "sidebarRef",
8738
8738
  ref: d,
@@ -8835,49 +8835,49 @@ var eu = d({
8835
8835
  }, vu = {
8836
8836
  key: 1,
8837
8837
  class: "flex flex-1 flex-col items-center justify-center gap-5 px-6 text-center"
8838
- }, yu = { class: "cui-assistant-hero-icon flex h-16 w-16 items-center justify-center rounded-full" }, bu = { class: "max-w-md" }, xu = { class: "text-lg font-semibold text-color" }, Su = { class: "mt-1 text-sm text-muted" }, Cu = /*#__PURE__*/ J(/* @__PURE__ */ A({
8838
+ }, yu = { class: "cui-assistant-hero-icon flex h-16 w-16 items-center justify-center rounded-full" }, bu = { class: "max-w-md" }, xu = { class: "text-lg font-semibold text-color" }, Su = { class: "mt-1 text-sm text-muted" }, Cu = /*#__PURE__*/ Y(/* @__PURE__ */ A({
8839
8839
  __name: "Assistant",
8840
8840
  setup(e) {
8841
- let t = new Y(), n = ge(), r = I(), { t: a } = we(), { smBreakpoint: s, mdBreakpoint: u, xlBreakpoint: d } = ie(), { openTextDialog: f } = ue(), h = me("/notifications"), C = W(), { user: D } = Ce(C), { data: O, isLoading: k } = t.getAssistantInfoQuery(), { data: A, isLoading: N } = t.listThreadsQuery(), ne = t.deleteThreadMutation(), P = t.deleteAllThreadsMutation(), re = w("conversationRef"), L = j(he()), z = j([]), B = j({}), V = j(typeof n.query.prompt == "string" ? n.query.prompt : void 0), ae = j(!1), oe = j(d.value ? "opened" : "closed"), se = j(!1), H = _(() => O.value?.status.state ?? "disabled"), ce = _(() => D.value?.role === "admin" || D.value?.role === "master"), le = _(() => (O.value?.tools ?? []).filter((e) => e.approval)), G = _(() => oe.value === "opened"), de = _(() => A.value?.find((e) => e.id === L.value)?.title ?? ""), K = _(() => u.value), fe = _(() => u.value || H.value !== "ready" ? "0px" : G.value ? "288px" : "0px"), pe = _(() => [
8841
+ let t = new He(), n = he(), r = re(), { t: a } = Ce(), { smBreakpoint: s, mdBreakpoint: u, xlBreakpoint: d } = ae(), { openTextDialog: f } = ue(), h = me("/notifications"), C = W(), { user: D } = Se(C), { data: O, isLoading: k } = t.getAssistantInfoQuery(), { data: A, isLoading: N } = t.listThreadsQuery(), ne = t.deleteThreadMutation(), P = t.deleteAllThreadsMutation(), I = w("conversationRef"), L = j(pe()), R = j([]), z = j({}), B = j(typeof n.query.prompt == "string" ? n.query.prompt : void 0), oe = j(!1), V = j(d.value ? "opened" : "closed"), se = j(!1), H = _(() => O.value?.status.state ?? "disabled"), ce = _(() => D.value?.role === "admin" || D.value?.role === "master"), le = _(() => (O.value?.tools ?? []).filter((e) => e.approval)), G = _(() => V.value === "opened"), K = _(() => A.value?.find((e) => e.id === L.value)?.title ?? ""), de = _(() => u.value), fe = _(() => u.value || H.value !== "ready" ? "0px" : G.value ? "288px" : "0px"), q = _(() => [
8842
8842
  a("views.assistant.suggestion_today"),
8843
8843
  a("views.assistant.suggestion_week"),
8844
8844
  a("views.assistant.suggestion_offline"),
8845
8845
  a("views.assistant.suggestion_sensors"),
8846
8846
  a("views.assistant.suggestion_tools")
8847
8847
  ]);
8848
- function he() {
8849
- return q();
8848
+ function pe() {
8849
+ return J();
8850
8850
  }
8851
- function J() {
8852
- oe.value = oe.value === "opened" ? "closed" : "opened";
8851
+ function Y() {
8852
+ V.value = V.value === "opened" ? "closed" : "opened";
8853
8853
  }
8854
- function _e() {
8855
- oe.value = "closed";
8854
+ function ge() {
8855
+ V.value = "closed";
8856
8856
  }
8857
- function ve() {
8858
- z.value = [], B.value = {}, V.value = void 0, L.value = he(), K.value && _e();
8857
+ function _e() {
8858
+ R.value = [], z.value = {}, B.value = void 0, L.value = pe(), de.value && ge();
8859
8859
  }
8860
- async function ye(e) {
8861
- if (K.value && _e(), e !== L.value) {
8862
- ae.value = !0;
8860
+ async function ve(e) {
8861
+ if (de.value && ge(), e !== L.value) {
8862
+ oe.value = !0;
8863
8863
  try {
8864
- let t = await ze(e);
8865
- z.value = t.messages, B.value = t.attachments, V.value = void 0, L.value = e;
8864
+ let t = await Re(e);
8865
+ R.value = t.messages, z.value = t.attachments, B.value = void 0, L.value = e;
8866
8866
  } finally {
8867
- ae.value = !1;
8867
+ oe.value = !1;
8868
8868
  }
8869
8869
  }
8870
8870
  }
8871
- async function be(e) {
8872
- await ne.mutateAsync(e).catch(() => void 0), e === L.value && ve();
8871
+ async function ye(e) {
8872
+ await ne.mutateAsync(e).catch(() => void 0), e === L.value && _e();
8873
8873
  }
8874
- async function xe(e) {
8875
- z.value = e.messages, B.value = e.attachments, V.value = void 0, L.value = e._id, await t.queryClient.refetchQueries({
8874
+ async function be(e) {
8875
+ R.value = e.messages, z.value = e.attachments, B.value = void 0, L.value = e._id, await t.queryClient.refetchQueries({
8876
8876
  queryKey: ["assistant", "threads"],
8877
8877
  exact: !0
8878
8878
  });
8879
8879
  }
8880
- function Se() {
8880
+ function xe() {
8881
8881
  f({
8882
8882
  data: {
8883
8883
  title: a("views.assistant.delete_all_conversations"),
@@ -8886,47 +8886,47 @@ var eu = d({
8886
8886
  confirmButtonProps: { severity: "danger" }
8887
8887
  },
8888
8888
  onConfirm: async () => {
8889
- await P.mutateAsync(), ve();
8889
+ await P.mutateAsync(), _e();
8890
8890
  }
8891
8891
  });
8892
8892
  }
8893
- async function Ee(e) {
8893
+ async function Te(e) {
8894
8894
  try {
8895
- await ye(e);
8895
+ await ve(e);
8896
8896
  } catch {
8897
8897
  L.value = e;
8898
8898
  }
8899
8899
  }
8900
- async function De() {
8900
+ async function Ee() {
8901
8901
  await t.queryClient.refetchQueries({
8902
8902
  queryKey: ["assistant", "threads"],
8903
8903
  exact: !0
8904
8904
  });
8905
8905
  }
8906
- async function ke(e) {
8906
+ async function Oe(e) {
8907
8907
  if (await t.queryClient.refetchQueries({
8908
8908
  queryKey: ["assistant", "threads"],
8909
8909
  exact: !0
8910
8910
  }), e.threadId !== L.value) return;
8911
- let n = await ze(e.threadId).catch(() => void 0);
8912
- n && re.value?.refreshFromStore(n);
8911
+ let n = await Re(e.threadId).catch(() => void 0);
8912
+ n && I.value?.refreshFromStore(n);
8913
8913
  }
8914
- function Ae() {
8914
+ function ke() {
8915
8915
  let e = A.value?.some((e) => e.id === L.value), t = {
8916
8916
  ...n.query,
8917
8917
  thread: e ? L.value : void 0
8918
8918
  };
8919
8919
  t.thread !== n.query.thread && r.replace({ query: t });
8920
8920
  }
8921
- return b([L, A], Ae), ee(async () => {
8922
- h.on("assistant-thread", (e) => ke(e));
8921
+ return b([L, A], ke), ee(async () => {
8922
+ h.on("assistant-thread", (e) => Oe(e));
8923
8923
  let e = typeof n.query.thread == "string" ? n.query.thread : void 0;
8924
8924
  n.query.prompt !== void 0 && r.replace({ query: {
8925
8925
  ...n.query,
8926
8926
  prompt: void 0
8927
- } }), e && !V.value && await Ee(e), await c(), se.value = !0;
8927
+ } }), e && !B.value && await Te(e), await c(), se.value = !0;
8928
8928
  }), (e, t) => {
8929
- let n = R, r = rt, a = Oe, c = F, u = qe, d = uu, f = eu, h = U, _ = Te, b = Zl, C = te;
8929
+ let n = ie, r = rt, a = De, c = F, u = qe, d = uu, f = eu, h = U, _ = we, b = Zl, C = te;
8930
8930
  return i(), x("div", null, [
8931
8931
  M(n, { position: "center" }, {
8932
8932
  default: v(() => [T("span", du, o(e.$t("views.assistant.title")), 1)]),
@@ -8947,7 +8947,7 @@ var eu = d({
8947
8947
  class: "cui-button p-2 text-color",
8948
8948
  text: "",
8949
8949
  rounded: "",
8950
- onClick: J
8950
+ onClick: Y
8951
8951
  }, {
8952
8952
  icon: v(() => [M(c, {
8953
8953
  width: "100%",
@@ -8964,7 +8964,7 @@ var eu = d({
8964
8964
  text: "",
8965
8965
  rounded: "",
8966
8966
  disabled: g(H) !== "ready",
8967
- onClick: ve
8967
+ onClick: _e
8968
8968
  }, {
8969
8969
  icon: v(() => [M(u, {
8970
8970
  width: "100%",
@@ -8980,12 +8980,12 @@ var eu = d({
8980
8980
  "active-id": g(L),
8981
8981
  loading: g(N),
8982
8982
  "is-open": g(G),
8983
- "is-overlay": g(K),
8984
- onSelect: ye,
8985
- onCreate: ve,
8986
- onDelete: be,
8987
- onDeleteAll: Se,
8988
- onClose: _e
8983
+ "is-overlay": g(de),
8984
+ onSelect: ve,
8985
+ onCreate: _e,
8986
+ onDelete: ye,
8987
+ onDeleteAll: xe,
8988
+ onClose: ge
8989
8989
  }, null, 8, [
8990
8990
  "threads",
8991
8991
  "active-id",
@@ -8996,10 +8996,10 @@ var eu = d({
8996
8996
  (i(), p(y, {
8997
8997
  to: "#container",
8998
8998
  defer: ""
8999
- }, [g(G) && g(K) ? (i(), x("div", {
8999
+ }, [g(G) && g(de) ? (i(), x("div", {
9000
9000
  key: 0,
9001
9001
  class: "fixed top-0 left-0 right-0 bottom-0 w-full h-full bg-black/50 z-1",
9002
- onClick: _e
9002
+ onClick: ge
9003
9003
  })) : m("", !0)])),
9004
9004
  T("main", {
9005
9005
  class: "relative w-full h-full",
@@ -9017,7 +9017,7 @@ var eu = d({
9017
9017
  class: "mr-2 cui-icon-lg relative z-2",
9018
9018
  text: "",
9019
9019
  rounded: "",
9020
- onClick: J
9020
+ onClick: Y
9021
9021
  }, {
9022
9022
  icon: v(() => [M(f, {
9023
9023
  width: "100%",
@@ -9031,7 +9031,7 @@ var eu = d({
9031
9031
  { bottom: !0 }
9032
9032
  ]]) : m("", !0),
9033
9033
  T("h1", mu, o(e.$t("views.assistant.title")), 1),
9034
- g(de) ? (i(), x("span", hu, o(g(de)), 1)) : m("", !0),
9034
+ g(K) ? (i(), x("span", hu, o(g(K)), 1)) : m("", !0),
9035
9035
  t[4] ||= T("div", { class: "gradient-blur rotate-180 !h-[70px]" }, [
9036
9036
  T("div"),
9037
9037
  T("div"),
@@ -9046,7 +9046,7 @@ var eu = d({
9046
9046
  text: "",
9047
9047
  rounded: "",
9048
9048
  class: "cui-icon-lg relative z-2",
9049
- onClick: ve
9049
+ onClick: _e
9050
9050
  }, {
9051
9051
  icon: v(() => [M(u, {
9052
9052
  width: "100%",
@@ -9062,24 +9062,24 @@ var eu = d({
9062
9062
  T("div", { class: l(["h-full w-full flex flex-col", {
9063
9063
  "pt-2": g(s),
9064
9064
  "pt-[calc(40px+2rem)]": !g(s)
9065
- }]) }, [g(k) || g(ae) ? (i(), x("div", _u, [M(h, {
9065
+ }]) }, [g(k) || g(oe) ? (i(), x("div", _u, [M(h, {
9066
9066
  class: "w-[30px] h-[30px] m-0",
9067
9067
  "stroke-width": "5"
9068
9068
  })])) : g(H) === "ready" ? (i(), p(b, {
9069
9069
  ref_key: "conversationRef",
9070
- ref: re,
9070
+ ref: I,
9071
9071
  key: g(L),
9072
9072
  "thread-id": g(L),
9073
- "initial-messages": g(z),
9074
- "initial-attachments": g(B),
9075
- "initial-prompt": g(V),
9076
- suggestions: g(pe),
9073
+ "initial-messages": g(R),
9074
+ "initial-attachments": g(z),
9075
+ "initial-prompt": g(B),
9076
+ suggestions: g(q),
9077
9077
  "approval-tools": g(le),
9078
9078
  tools: g(O)?.tools ?? [],
9079
9079
  class: "flex-1 min-h-0",
9080
- onFinished: De,
9081
- onBranched: xe,
9082
- onEmptied: t[2] ||= (e) => be(g(L))
9080
+ onFinished: Ee,
9081
+ onBranched: be,
9082
+ onEmptied: t[2] ||= (e) => ye(g(L))
9083
9083
  }, null, 8, [
9084
9084
  "thread-id",
9085
9085
  "initial-messages",