@lsamien/yaoyao 0.4.75

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 (320) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +6 -0
  3. package/README.md +103 -0
  4. package/THIRD_PARTY_NOTICES.md +16 -0
  5. package/bin/desktop-service-sync.mjs +43 -0
  6. package/bin/hermes-yaoyao-updater.mjs +315 -0
  7. package/bin/hermes-yaoyao.mjs +246 -0
  8. package/bin/lib/data-home.d.mts +4 -0
  9. package/bin/lib/data-home.mjs +24 -0
  10. package/bin/lib/data-migration.d.mts +2 -0
  11. package/bin/lib/data-migration.mjs +107 -0
  12. package/bin/lib/desktop-activation.d.mts +4 -0
  13. package/bin/lib/desktop-activation.mjs +18 -0
  14. package/bin/lib/managed-data-migration.mjs +45 -0
  15. package/bin/lib/release-source.d.mts +2 -0
  16. package/bin/lib/release-source.mjs +23 -0
  17. package/bin/lib/runtime-release.mjs +78 -0
  18. package/bin/lib/service-data.mjs +57 -0
  19. package/bin/lib/service-update.mjs +372 -0
  20. package/bin/migrate-data-home.mjs +20 -0
  21. package/build-info.json +657 -0
  22. package/desktop/main.mjs +679 -0
  23. package/dist/assets/AboutDialog-BvuJp8Pe.js +2 -0
  24. package/dist/assets/AboutDialog-BvuJp8Pe.js.map +1 -0
  25. package/dist/assets/AboutDialog-DC5YWX39.css +1 -0
  26. package/dist/assets/BotAutomationsView-Ddgs5Hes.js +2 -0
  27. package/dist/assets/BotAutomationsView-Ddgs5Hes.js.map +1 -0
  28. package/dist/assets/BotAutomationsView-DeJ-e3y5.css +1 -0
  29. package/dist/assets/BotPluginsDialog-Db5dTqvg.css +1 -0
  30. package/dist/assets/BotPluginsDialog-xPqUSyHS.js +2 -0
  31. package/dist/assets/BotPluginsDialog-xPqUSyHS.js.map +1 -0
  32. package/dist/assets/BotSettingsDialog-BkjoAZtf.css +1 -0
  33. package/dist/assets/BotSettingsDialog-wLz_KGzX.js +5 -0
  34. package/dist/assets/BotSettingsDialog-wLz_KGzX.js.map +1 -0
  35. package/dist/assets/ChatView-DRPu2nKr.js +2 -0
  36. package/dist/assets/ChatView-DRPu2nKr.js.map +1 -0
  37. package/dist/assets/ChatView-Dx8YlcPr.css +1 -0
  38. package/dist/assets/ChevronForwardOutline-D--GIQK6.js +2 -0
  39. package/dist/assets/ChevronForwardOutline-D--GIQK6.js.map +1 -0
  40. package/dist/assets/ComputerPanel-Byr2_yKj.js +2 -0
  41. package/dist/assets/ComputerPanel-Byr2_yKj.js.map +1 -0
  42. package/dist/assets/ComputerPanel-CQOv4v8E.css +1 -0
  43. package/dist/assets/ComputerViewerView-BBAs4bzi.css +1 -0
  44. package/dist/assets/ComputerViewerView-DJ6hB-5e.js +2 -0
  45. package/dist/assets/ComputerViewerView-DJ6hB-5e.js.map +1 -0
  46. package/dist/assets/ConversationsView-C_VZl5g2.css +1 -0
  47. package/dist/assets/ConversationsView-cu1Yrq68.js +6 -0
  48. package/dist/assets/ConversationsView-cu1Yrq68.js.map +1 -0
  49. package/dist/assets/FilesView-DAIzo9Ps.css +1 -0
  50. package/dist/assets/FilesView-h9oJFmZt.js +2 -0
  51. package/dist/assets/FilesView-h9oJFmZt.js.map +1 -0
  52. package/dist/assets/FloatingResourceSearch-BF2XOLd-.css +1 -0
  53. package/dist/assets/FloatingResourceSearch-TofG1_DV.js +9 -0
  54. package/dist/assets/FloatingResourceSearch-TofG1_DV.js.map +1 -0
  55. package/dist/assets/HistoryView-Bh0SU969.js +2 -0
  56. package/dist/assets/HistoryView-Bh0SU969.js.map +1 -0
  57. package/dist/assets/HistoryView-DvuCAjlo.css +1 -0
  58. package/dist/assets/KanbanView-B-2vG4w7.css +1 -0
  59. package/dist/assets/KanbanView-CcqMOzB7.js +2 -0
  60. package/dist/assets/KanbanView-CcqMOzB7.js.map +1 -0
  61. package/dist/assets/LocalVmSettingsPanel-C8PIgMr3.js +2 -0
  62. package/dist/assets/LocalVmSettingsPanel-C8PIgMr3.js.map +1 -0
  63. package/dist/assets/LocalVmSettingsPanel-Dedfhqlq.css +1 -0
  64. package/dist/assets/RunnerSettingsPanel-CfxxQKpV.css +1 -0
  65. package/dist/assets/RunnerSettingsPanel-CvNnWcdH.js +4 -0
  66. package/dist/assets/RunnerSettingsPanel-CvNnWcdH.js.map +1 -0
  67. package/dist/assets/StandaloneDialog-BbNWY6IJ.js +2 -0
  68. package/dist/assets/StandaloneDialog-BbNWY6IJ.js.map +1 -0
  69. package/dist/assets/StandaloneDialog-Bg5U9bMJ.css +1 -0
  70. package/dist/assets/UpdateCheckDialog-C357uDSE.js +2 -0
  71. package/dist/assets/UpdateCheckDialog-C357uDSE.js.map +1 -0
  72. package/dist/assets/UpdateCheckDialog-CRlyWnE7.css +1 -0
  73. package/dist/assets/WorkspaceKnowledgePanel-B6xMyHdp.css +1 -0
  74. package/dist/assets/WorkspaceKnowledgePanel-CE7qsu2i.js +2 -0
  75. package/dist/assets/WorkspaceKnowledgePanel-CE7qsu2i.js.map +1 -0
  76. package/dist/assets/WorkspaceRoutinesPanel-CLsHmBuH.css +1 -0
  77. package/dist/assets/WorkspaceRoutinesPanel-DybBh6PZ.js +2 -0
  78. package/dist/assets/WorkspaceRoutinesPanel-DybBh6PZ.js.map +1 -0
  79. package/dist/assets/WorkspaceShell-7wn8iTne.css +1 -0
  80. package/dist/assets/WorkspaceShell-kp1ObJTk.js +44 -0
  81. package/dist/assets/WorkspaceShell-kp1ObJTk.js.map +1 -0
  82. package/dist/assets/WorkspaceView-CtNI0_AO.js +2 -0
  83. package/dist/assets/WorkspaceView-CtNI0_AO.js.map +1 -0
  84. package/dist/assets/_plugin-vue_export-helper-CscYwSBt.js +3 -0
  85. package/dist/assets/_plugin-vue_export-helper-CscYwSBt.js.map +1 -0
  86. package/dist/assets/browser-B97PQaMt.js +11 -0
  87. package/dist/assets/browser-B97PQaMt.js.map +1 -0
  88. package/dist/assets/docx-preview-YvkiVUyQ.js +22 -0
  89. package/dist/assets/docx-preview-YvkiVUyQ.js.map +1 -0
  90. package/dist/assets/index-GQxxBKs2.js +17 -0
  91. package/dist/assets/index-GQxxBKs2.js.map +1 -0
  92. package/dist/assets/index-g5POnMkp.css +1 -0
  93. package/dist/assets/localVm-owThjmhy.js +2 -0
  94. package/dist/assets/localVm-owThjmhy.js.map +1 -0
  95. package/dist/assets/pdf-pqGpzpl1.js +55 -0
  96. package/dist/assets/pdf-pqGpzpl1.js.map +1 -0
  97. package/dist/assets/pdf.worker.min-iDqQPrd3.mjs +31 -0
  98. package/dist/assets/sessionOwnership-BTz0Fyp5.css +1 -0
  99. package/dist/assets/sessionOwnership-bedp16q1.js +6 -0
  100. package/dist/assets/sessionOwnership-bedp16q1.js.map +1 -0
  101. package/dist/assets/viewModels-BYFb-v4u.js +38 -0
  102. package/dist/assets/viewModels-BYFb-v4u.js.map +1 -0
  103. package/dist/assets/viewModels-CkZuSvKm.css +1 -0
  104. package/dist/brand/AppIcon-1024.png +0 -0
  105. package/dist/icons/apple-touch-icon.png +0 -0
  106. package/dist/icons/favicon-32.png +0 -0
  107. package/dist/icons/icon-192.png +0 -0
  108. package/dist/icons/icon-512.png +0 -0
  109. package/dist/icons/logo-64.png +0 -0
  110. package/dist/index.html +19 -0
  111. package/dist/manifest.webmanifest +21 -0
  112. package/dist/setting-previews/dark.png +0 -0
  113. package/dist/setting-previews/light.png +0 -0
  114. package/dist/setting-previews/system.png +0 -0
  115. package/dist-server/runner/agent.js +563 -0
  116. package/dist-server/runner/browser/installation.js +180 -0
  117. package/dist-server/runner/browser/publicProxy.js +157 -0
  118. package/dist-server/runner/browser/runtime.js +622 -0
  119. package/dist-server/runner/browser/types.js +8 -0
  120. package/dist-server/runner/computers/commandProcess.js +127 -0
  121. package/dist-server/runner/computers/compose.js +139 -0
  122. package/dist-server/runner/computers/computer-image/Dockerfile +101 -0
  123. package/dist-server/runner/computers/computer-image/Dockerfile.cursor +27 -0
  124. package/dist-server/runner/computers/computer-image/Dockerfile.network +9 -0
  125. package/dist-server/runner/computers/computer-image/compose_bridge.py +329 -0
  126. package/dist-server/runner/computers/computer-image/cursor-browser.sh +6 -0
  127. package/dist-server/runner/computers/computer-image/cursor-desktop.py +86 -0
  128. package/dist-server/runner/computers/computer-image/network_gateway.py +197 -0
  129. package/dist-server/runner/computers/computer-image/prepare-firefox.sh +11 -0
  130. package/dist-server/runner/computers/computer-image/skill_bundle.py +111 -0
  131. package/dist-server/runner/computers/computerFailures.js +30 -0
  132. package/dist-server/runner/computers/container.js +652 -0
  133. package/dist-server/runner/computers/dataSnapshot.js +62 -0
  134. package/dist-server/runner/computers/desktopClose.js +41 -0
  135. package/dist-server/runner/computers/imageCli.js +42 -0
  136. package/dist-server/runner/computers/imageManagement.js +321 -0
  137. package/dist-server/runner/computers/images.js +130 -0
  138. package/dist-server/runner/computers/localVm.js +270 -0
  139. package/dist-server/runner/computers/maintenance.js +96 -0
  140. package/dist-server/runner/computers/maintenanceCli.js +59 -0
  141. package/dist-server/runner/computers/migrateUserData.js +62 -0
  142. package/dist-server/runner/computers/pool.js +407 -0
  143. package/dist-server/runner/computers/third-party/openmausbot/LICENSE +202 -0
  144. package/dist-server/runner/computers/third-party/openmausbot/NOTICE +4 -0
  145. package/dist-server/runner/computers/userData.js +128 -0
  146. package/dist-server/runner/computers/workspaceRecovery.js +120 -0
  147. package/dist-server/runner/config.js +37 -0
  148. package/dist-server/runner/hermes-bots-bridge/README.md +102 -0
  149. package/dist-server/runner/hermes-bots-bridge/__init__.py +59 -0
  150. package/dist-server/runner/hermes-bots-bridge/bootstrap.py +31 -0
  151. package/dist-server/runner/hermes-bots-bridge/bridge_runtime.py +1179 -0
  152. package/dist-server/runner/hermes-bots-bridge/dashboard/bridge.js +2 -0
  153. package/dist-server/runner/hermes-bots-bridge/dashboard/manifest.json +9 -0
  154. package/dist-server/runner/hermes-bots-bridge/dashboard/plugin_api.py +132 -0
  155. package/dist-server/runner/hermes-bots-bridge/file_transfer.py +146 -0
  156. package/dist-server/runner/hermes-bots-bridge/model_settings.py +136 -0
  157. package/dist-server/runner/hermes-bots-bridge/plugin.yaml +4 -0
  158. package/dist-server/runner/hermes-bots-bridge/profile_runtime_repair.py +77 -0
  159. package/dist-server/runner/index.js +75 -0
  160. package/dist-server/runner/install-hermes-bridge.py +192 -0
  161. package/dist-server/runner/managedBrowser.js +266 -0
  162. package/dist-server/runner/network/computerProxy.js +117 -0
  163. package/dist-server/runner/network/managedProxy.js +96 -0
  164. package/dist-server/runner/network/publicDestination.js +47 -0
  165. package/dist-server/runner/network/socketBroker.js +131 -0
  166. package/dist-server/runner/network/upstreamProxy.js +118 -0
  167. package/dist-server/runner/worker/control.js +212 -0
  168. package/dist-server/runner/worker/fileTransfer.js +9 -0
  169. package/dist-server/runner/worker/gateway.js +1009 -0
  170. package/dist-server/runner/worker/guest_proxy.py +116 -0
  171. package/dist-server/runner/worker/hermes_worker.py +310 -0
  172. package/dist-server/runner/worker/hostTools.js +115 -0
  173. package/dist-server/runner/worker/process.js +123 -0
  174. package/dist-server/runner/worker/profileSession.js +144 -0
  175. package/dist-server/runner/worker/profile_skills.py +361 -0
  176. package/dist-server/runner/worker/skill_bundle.py +111 -0
  177. package/dist-server/runner/worker/skills.js +119 -0
  178. package/dist-server/runner/worker/taskEnvironment.js +35 -0
  179. package/dist-server/server/accountPairing.js +72 -0
  180. package/dist-server/server/allowedHostsConfiguration.js +170 -0
  181. package/dist-server/server/apns.js +261 -0
  182. package/dist-server/server/apnsConfiguration.js +298 -0
  183. package/dist-server/server/app.js +639 -0
  184. package/dist-server/server/botModelSettings.js +60 -0
  185. package/dist-server/server/botPlugins/connectedApps.js +213 -0
  186. package/dist-server/server/botPlugins/httpMcp.js +117 -0
  187. package/dist-server/server/botPlugins/stdioMcp.js +263 -0
  188. package/dist-server/server/botPlugins/workspacePlugins.js +353 -0
  189. package/dist-server/server/browserFiles.js +79 -0
  190. package/dist-server/server/buildIdentity.js +18 -0
  191. package/dist-server/server/chatCache.js +1651 -0
  192. package/dist-server/server/chatEventProjection.js +70 -0
  193. package/dist-server/server/chatTranscriptApi.js +145 -0
  194. package/dist-server/server/chatTranscriptStore.js +1021 -0
  195. package/dist-server/server/chatUnread.js +34 -0
  196. package/dist-server/server/codexAuthorization.js +149 -0
  197. package/dist-server/server/composeDesktops.js +69 -0
  198. package/dist-server/server/computerControls.js +122 -0
  199. package/dist-server/server/computerNames.js +41 -0
  200. package/dist-server/server/config.js +176 -0
  201. package/dist-server/server/dashboardController.js +120 -0
  202. package/dist-server/server/dashboardSupervisor.js +176 -0
  203. package/dist-server/server/desktopActivation.js +26 -0
  204. package/dist-server/server/desktopEnvironments.js +600 -0
  205. package/dist-server/server/desktopHostProtocol.js +17 -0
  206. package/dist-server/server/desktopHosts.js +117 -0
  207. package/dist-server/server/errors.js +12 -0
  208. package/dist-server/server/executionSettings.js +171 -0
  209. package/dist-server/server/fcm.js +247 -0
  210. package/dist-server/server/fcmConfiguration.js +270 -0
  211. package/dist-server/server/fileAccess.js +103 -0
  212. package/dist-server/server/fileTransfer.js +98 -0
  213. package/dist-server/server/githubReleases.js +73 -0
  214. package/dist-server/server/grokAuth.js +333 -0
  215. package/dist-server/server/grokCloud.js +458 -0
  216. package/dist-server/server/hermesBotRelay.js +117 -0
  217. package/dist-server/server/hermesBridge.js +245 -0
  218. package/dist-server/server/hostToolSettings.js +60 -0
  219. package/dist-server/server/imageManagement.js +55 -0
  220. package/dist-server/server/index.js +132 -0
  221. package/dist-server/server/leases.js +69 -0
  222. package/dist-server/server/localAuth.js +737 -0
  223. package/dist-server/server/localVm.js +358 -0
  224. package/dist-server/server/loopbackAuthorization.js +58 -0
  225. package/dist-server/server/managedBrowserTools.js +16 -0
  226. package/dist-server/server/managedBrowsers.js +735 -0
  227. package/dist-server/server/notificationText.js +125 -0
  228. package/dist-server/server/openVikingConfiguration.js +222 -0
  229. package/dist-server/server/openVikingMemoryProvider.js +279 -0
  230. package/dist-server/server/openVikingService.js +177 -0
  231. package/dist-server/server/openVikingSessionSync.js +286 -0
  232. package/dist-server/server/pairing.js +342 -0
  233. package/dist-server/server/profileIdentities.js +103 -0
  234. package/dist-server/server/pushCoordinator.js +1422 -0
  235. package/dist-server/server/pushEventAdapter.js +31 -0
  236. package/dist-server/server/pushEvents.js +1218 -0
  237. package/dist-server/server/realtimeApi.js +330 -0
  238. package/dist-server/server/realtimeBroker.js +835 -0
  239. package/dist-server/server/realtimeProtocol.js +353 -0
  240. package/dist-server/server/realtimeReceipts.js +60 -0
  241. package/dist-server/server/releases.js +46 -0
  242. package/dist-server/server/routes.js +2156 -0
  243. package/dist-server/server/runnerHub.js +687 -0
  244. package/dist-server/server/security.js +196 -0
  245. package/dist-server/server/serverIdentity.js +31 -0
  246. package/dist-server/server/serviceInstance.js +178 -0
  247. package/dist-server/server/sessionWorkingDirectory.js +39 -0
  248. package/dist-server/server/sharedComputers.js +221 -0
  249. package/dist-server/server/subaccountAccess.js +28 -0
  250. package/dist-server/server/taskCoordinator.js +580 -0
  251. package/dist-server/server/toolOperationJournal.js +81 -0
  252. package/dist-server/server/updateManager.js +340 -0
  253. package/dist-server/server/uploads.js +265 -0
  254. package/dist-server/server/upstream.js +375 -0
  255. package/dist-server/server/upstreamReadCache.js +133 -0
  256. package/dist-server/server/vmComputer.js +96 -0
  257. package/dist-server/server/websocket.js +753 -0
  258. package/dist-server/server/workspaceAssets.js +192 -0
  259. package/dist-server/server/workspaceCollaboration.js +224 -0
  260. package/dist-server/server/workspaceDiscussion.js +23 -0
  261. package/dist-server/server/workspaceEnvironment.js +43 -0
  262. package/dist-server/server/workspaceGateway.js +509 -0
  263. package/dist-server/server/workspaceInspector.js +47 -0
  264. package/dist-server/server/workspaceKnowledge.js +557 -0
  265. package/dist-server/server/workspaceKnowledgeRoutes.js +78 -0
  266. package/dist-server/server/workspaceKnowledgeTools.js +105 -0
  267. package/dist-server/server/workspaceMemoryContext.js +34 -0
  268. package/dist-server/server/workspaceMemorySynthesis.js +201 -0
  269. package/dist-server/server/workspaceMentions.js +31 -0
  270. package/dist-server/server/workspacePairedNode.js +166 -0
  271. package/dist-server/server/workspacePrompt.js +93 -0
  272. package/dist-server/server/workspaceRelay.js +90 -0
  273. package/dist-server/server/workspaceRemoteAgents.js +191 -0
  274. package/dist-server/server/workspaceRoutes.js +703 -0
  275. package/dist-server/server/workspaceRoutineTools.js +109 -0
  276. package/dist-server/server/workspaceRoutines.js +163 -0
  277. package/dist-server/server/workspaceRuntime.js +1363 -0
  278. package/dist-server/server/workspaceScheduler.js +592 -0
  279. package/dist-server/server/workspaceStore.js +1220 -0
  280. package/dist-server/server/workspaceSync.js +129 -0
  281. package/dist-server/server/workspaceTeamTools.js +312 -0
  282. package/dist-server/server/workspaceToolLease.js +280 -0
  283. package/dist-server/shared/agentIdentity.js +90 -0
  284. package/dist-server/shared/agentTasks.js +1 -0
  285. package/dist-server/shared/botEnvironment.js +28 -0
  286. package/dist-server/shared/botModelSettings.js +3 -0
  287. package/dist-server/shared/chatTools.js +32 -0
  288. package/dist-server/shared/chatTranscript.js +50 -0
  289. package/dist-server/shared/composeDesktops.js +1 -0
  290. package/dist-server/shared/computerControl.js +1 -0
  291. package/dist-server/shared/desktopEnvironment.js +1 -0
  292. package/dist-server/shared/desktopHost.js +1 -0
  293. package/dist-server/shared/executionEnvironment.js +1 -0
  294. package/dist-server/shared/fileTransfer.js +5 -0
  295. package/dist-server/shared/fileTransferEndpoint.mjs +133 -0
  296. package/dist-server/shared/grokAuth.js +1 -0
  297. package/dist-server/shared/hermesBridge.js +1 -0
  298. package/dist-server/shared/hostPaths.mjs +22 -0
  299. package/dist-server/shared/imageManagement.js +1 -0
  300. package/dist-server/shared/index.js +1 -0
  301. package/dist-server/shared/localVm.js +9 -0
  302. package/dist-server/shared/managedBrowser.js +1 -0
  303. package/dist-server/shared/messageFiles.js +90 -0
  304. package/dist-server/shared/openVikingSync.js +1 -0
  305. package/dist-server/shared/runner.js +2 -0
  306. package/dist-server/shared/serverFiles.js +55 -0
  307. package/dist-server/shared/serverIdentity.js +1 -0
  308. package/dist-server/shared/sse.js +47 -0
  309. package/dist-server/shared/types.js +8 -0
  310. package/dist-server/shared/workspace.js +61 -0
  311. package/dist-server/shared/workspaceKnowledge.js +1 -0
  312. package/dist-server/shared/workspaceLifecycle.js +1 -0
  313. package/dist-server/shared/workspaceMessagePatch.js +63 -0
  314. package/dist-server/shared/workspacePanels.js +1 -0
  315. package/dist-server/shared/workspacePlugins.js +1 -0
  316. package/licenses/LaoA-GrokBot/LICENSE +21 -0
  317. package/licenses/OpenMausBot/LICENSE +202 -0
  318. package/licenses/OpenMausBot/NOTICE +6 -0
  319. package/package.json +122 -0
  320. package/release.json +6 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingResourceSearch-TofG1_DV.js","names":["_hoisted_1","_openBlock","_createElementBlock","_createElementVNode","_hoisted_1","_openBlock","_createElementBlock","_createElementVNode","$slots","$slots"],"sources":["../../node_modules/@vicons/tabler/es/At.js","../../node_modules/@vicons/tabler/es/Target.js","../../src/client/components/composer/ComposerShell.vue","../../src/client/components/composer/ComposerShell.vue","../../src/client/components/library/mediaSequence.ts","../../src/client/components/messages/SystemMessageNotice.vue","../../src/client/components/messages/SystemMessageNotice.vue","../../src/client/components/messages/ServiceWarnings.vue","../../src/client/components/messages/ServiceWarnings.vue","../../src/client/components/messages/MessageFailureNotice.vue","../../src/client/components/messages/MessageFailureNotice.vue","../../src/client/utils/messageFailure.ts","../../src/client/components/workspace/TaskResultNotice.vue","../../src/client/components/workspace/TaskResultNotice.vue","../../src/client/utils/systemMessageNotice.ts","../../src/client/components/messages/MessageSystemEvent.vue","../../src/client/components/messages/MessageSystemEvent.vue","../../src/client/components/common/TypingIndicator.vue","../../src/client/components/common/TypingIndicator.vue","../../src/client/components/messages/InteractionCard.vue","../../src/client/components/messages/InteractionCard.vue","../../src/client/components/messages/ToolTrace.vue","../../src/client/components/messages/ToolTrace.vue","../../src/client/components/messages/TurnTrace.vue","../../src/client/components/messages/TurnTrace.vue","../../src/client/utils/turnTrace.ts","../../src/client/utils/messageDisplay.ts","../../src/client/components/app/FloatingResourceSearch.vue","../../src/client/components/app/FloatingResourceSearch.vue"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, defineComponent } from 'vue'\nconst _hoisted_1 = {\n xmlns: 'http://www.w3.org/2000/svg',\n 'xmlns:xlink': 'http://www.w3.org/1999/xlink',\n viewBox: '0 0 24 24'\n}\nexport default defineComponent({\n name: 'At',\n render: function render(_ctx, _cache) {\n return (\n _openBlock(),\n _createElementBlock(\n 'svg',\n _hoisted_1,\n _cache[0] ||\n (_cache[0] = [\n _createElementVNode(\n 'g',\n {\n fill: 'none',\n stroke: 'currentColor',\n 'stroke-width': '2',\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round'\n },\n [\n _createElementVNode('circle', {\n cx: '12',\n cy: '12',\n r: '4'\n }),\n _createElementVNode('path', {\n d: 'M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-5.5 8.28'\n })\n ],\n -1 /* HOISTED */\n )\n ])\n )\n )\n }\n})\n","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, defineComponent } from 'vue'\nconst _hoisted_1 = {\n xmlns: 'http://www.w3.org/2000/svg',\n 'xmlns:xlink': 'http://www.w3.org/1999/xlink',\n viewBox: '0 0 24 24'\n}\nexport default defineComponent({\n name: 'Target',\n render: function render(_ctx, _cache) {\n return (\n _openBlock(),\n _createElementBlock(\n 'svg',\n _hoisted_1,\n _cache[0] ||\n (_cache[0] = [\n _createElementVNode(\n 'g',\n {\n fill: 'none',\n stroke: 'currentColor',\n 'stroke-width': '2',\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round'\n },\n [\n _createElementVNode('circle', {\n cx: '12',\n cy: '12',\n r: '1'\n }),\n _createElementVNode('circle', {\n cx: '12',\n cy: '12',\n r: '5'\n }),\n _createElementVNode('circle', {\n cx: '12',\n cy: '12',\n r: '9'\n })\n ],\n -1 /* HOISTED */\n )\n ])\n )\n )\n }\n})\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport { At, Target } from '@vicons/tabler'\nimport { createId } from '@/utils/id'\nimport type { ComposerAttachment, ComposerOption, ComposerReference, ComposerSubmit } from './types'\n\nconst props = withDefaults(defineProps<{\n mode?: 'chat' | 'group'\n draftKey?: string\n placeholder?: string\n disabled?: boolean\n streaming?: boolean\n stopWhileRunning?: boolean\n sending?: boolean\n modelLabel?: string\n fastMode?: boolean\n fastModeDisabled?: boolean\n reasoningEffort?: string\n reasoningValue?: string\n reasoningOptions?: ComposerOption[]\n contextUsed?: number\n contextLimit?: number\n contextEstimated?: boolean\n queueMode?: boolean\n toolTraceVisible?: boolean\n reference?: ComposerReference | null\n mentionOptions?: ComposerOption[]\n slashCommands?: ComposerOption[]\n attachmentsEnabled?: boolean\n activityText?: string\n deliveryAvailable?: boolean\n deliveryMode?: boolean\n deliveryDisabled?: boolean\n deliveryDisabledReason?: string\n}>(), {\n mode: 'chat',\n draftKey: '',\n placeholder: '输入消息,Enter 发送,Shift + Enter 换行',\n disabled: false,\n streaming: false,\n stopWhileRunning: false,\n sending: false,\n modelLabel: '选择模型',\n fastMode: false,\n fastModeDisabled: false,\n reasoningEffort: '默认',\n reasoningValue: '',\n reasoningOptions: () => [],\n contextUsed: 0,\n contextLimit: 0,\n contextEstimated: false,\n queueMode: false,\n toolTraceVisible: true,\n reference: null,\n mentionOptions: () => [],\n slashCommands: () => [],\n attachmentsEnabled: true,\n activityText: '',\n deliveryAvailable: false,\n deliveryMode: false,\n deliveryDisabled: false,\n deliveryDisabledReason: '',\n})\n\nconst emit = defineEmits<{\n send: [payload: ComposerSubmit]\n stop: []\n modelClick: []\n fastModeToggle: [enabled: boolean]\n reasoningChange: [value: string]\n settingsClick: []\n queueToggle: []\n toolTraceToggle: []\n clearReference: []\n error: [message: string]\n 'update:deliveryMode': [enabled: boolean]\n}>()\n\nconst MAX_FILE_SIZE = 25 * 1024 * 1024\nconst MAX_FILES = 8\nconst text = ref('')\nconst textarea = ref<HTMLTextAreaElement | null>(null)\nconst fileInput = ref<HTMLInputElement | null>(null)\nconst attachments = ref<ComposerAttachment[]>([])\nconst isComposing = ref(false)\nconst dragDepth = ref(0)\nconst dragOver = computed(() => dragDepth.value > 0)\nconst manualHeight = ref<number | null>(null)\nconst menuIndex = ref(0)\nconst menuKind = ref<'slash' | 'mention' | null>(null)\nconst menuQuery = ref('')\nconst chosenMentionIds = ref<string[]>([])\nconst reasoningOpen = ref(false)\nconst settingsOpen = ref(false)\nconst actionsOpen = ref(false)\nconst actionsAnchor = ref<HTMLElement | null>(null)\nconst actionsTrigger = ref<HTMLButtonElement | null>(null)\nconst hasGroupActions = computed(() => props.mode === 'group' && (props.mentionOptions.length > 0 || props.deliveryAvailable))\nconst localError = ref('')\nlet errorTimer: number | undefined\n\nconst canSubmit = computed(() => !props.disabled && !props.sending && (text.value.trim().length > 0 || attachments.value.length > 0))\nconst canStop = computed(() => props.streaming && (props.stopWhileRunning || props.mode === 'chat'))\n// A running session keeps an explicit interrupt control even when the composer\n// holds a draft, so resource waits can always be cancelled by the user.\nconst showStop = computed(() => canStop.value && !text.value.trim() && !attachments.value.length)\nconst compactModel = computed(() => props.modelLabel.split('/').filter(Boolean).at(-1) || props.modelLabel)\nconst contextPercent = computed(() => props.contextLimit > 0 ? Math.min(100, Math.round(props.contextUsed / props.contextLimit * 100)) : 0)\nconst hasContext = computed(() => props.contextLimit > 0)\nconst remainingContextTokens = computed(() => Math.max(0, props.contextLimit - props.contextUsed))\nconst reasoningOptionIndex = computed(() => Math.max(0, props.reasoningOptions.findIndex(option => option.id === props.reasoningValue)))\nconst reasoningLabel = computed(() => props.reasoningOptions[reasoningOptionIndex.value]?.label || props.reasoningEffort)\n\nconst menuOptions = computed(() => {\n const source = menuKind.value === 'slash' ? props.slashCommands : props.mentionOptions\n const query = menuQuery.value.trim().toLocaleLowerCase()\n return source.filter(option => {\n if (!query) return true\n return option.label.toLocaleLowerCase().includes(query) || option.detail?.toLocaleLowerCase().includes(query)\n }).slice(0, 10)\n})\n\nfunction draftStorageKey(key = props.draftKey) {\n return key ? `hermes-yaoyao:composer:${props.mode}:${key}` : ''\n}\n\nlet restoringDraft = false\nlet tracksSubmissions = false\nconst draftVersions = new Map<string, number>()\nwatch([text, attachments, chosenMentionIds], () => {\n if (tracksSubmissions && !restoringDraft) { const key = draftStorageKey(); draftVersions.set(key, (draftVersions.get(key) ?? 0) + 1) }\n}, { deep: true, flush: 'sync' })\nfunction submissionToken() {\n tracksSubmissions = true\n const key = draftStorageKey()\n return { key, revision: draftVersions.get(key) ?? 0 }\n}\nfunction restoreDraft() {\n const key = draftStorageKey()\n restoringDraft = true\n try { text.value = key ? localStorage.getItem(key) || '' : '' } finally { restoringDraft = false }\n nextTick(autoSize)\n}\n\nfunction persistDraft(value: string) {\n const key = draftStorageKey()\n if (!key) return\n if (value) localStorage.setItem(key, value)\n else localStorage.removeItem(key)\n}\n\nfunction showError(message: string) {\n localError.value = message\n emit('error', message)\n window.clearTimeout(errorTimer)\n errorTimer = window.setTimeout(() => { localError.value = '' }, 4500)\n}\n\nfunction formatSize(bytes: number) {\n if (bytes < 1024) return `${bytes} B`\n if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction isImage(type: string) { return type.startsWith('image/') }\n\nfunction addFiles(files: File[]) {\n if (!props.attachmentsEnabled) {\n showError('当前上游不支持团队附件')\n return\n }\n const available = MAX_FILES - attachments.value.length\n if (available <= 0) return showError(`最多添加 ${MAX_FILES} 个文件`)\n const accepted: ComposerAttachment[] = []\n for (const file of files.slice(0, available)) {\n if (file.size > MAX_FILE_SIZE) {\n showError(`${file.name} 超过 25 MiB`)\n continue\n }\n accepted.push({\n id: `${file.name}:${file.size}:${file.lastModified}:${createId('attachment')}`,\n file,\n name: file.name,\n size: file.size,\n type: file.type || 'application/octet-stream',\n previewUrl: isImage(file.type) ? URL.createObjectURL(file) : undefined,\n })\n }\n attachments.value.push(...accepted)\n if (files.length > available) showError(`最多添加 ${MAX_FILES} 个文件`)\n}\n\nfunction removeAttachment(id: string) {\n const index = attachments.value.findIndex(item => item.id === id)\n if (index < 0) return\n const [removed] = attachments.value.splice(index, 1)\n if (removed?.previewUrl) URL.revokeObjectURL(removed.previewUrl)\n}\n\nfunction clearAttachments() {\n attachments.value.forEach(item => item.previewUrl && URL.revokeObjectURL(item.previewUrl))\n attachments.value = []\n if (fileInput.value) fileInput.value.value = ''\n}\n\nfunction onFiles(event: Event) {\n const input = event.target as HTMLInputElement\n addFiles(Array.from(input.files ?? []))\n input.value = ''\n}\n\nfunction onPaste(event: ClipboardEvent) {\n const files = Array.from(event.clipboardData?.files ?? [])\n if (files.length) addFiles(files)\n}\n\nfunction onDragEnter(event: DragEvent) {\n if (!event.dataTransfer?.types.includes('Files')) return\n event.preventDefault()\n dragDepth.value += 1\n}\n\nfunction onDragOver(event: DragEvent) {\n if (!event.dataTransfer?.types.includes('Files')) return\n event.preventDefault()\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy'\n}\n\nfunction onDragLeave(event: DragEvent) {\n event.preventDefault()\n dragDepth.value = Math.max(0, dragDepth.value - 1)\n}\n\nfunction onDrop(event: DragEvent) {\n event.preventDefault()\n dragDepth.value = 0\n addFiles(Array.from(event.dataTransfer?.files ?? []))\n}\n\nfunction autoSize() {\n const el = textarea.value\n if (!el || manualHeight.value !== null) return\n el.style.height = 'auto'\n el.style.height = `${Math.min(400, Math.max(30, el.scrollHeight))}px`\n}\n\nfunction resetHeight() {\n manualHeight.value = null\n if (textarea.value) textarea.value.style.height = 'auto'\n nextTick(autoSize)\n}\n\nfunction startResize(event: PointerEvent) {\n const el = textarea.value\n if (!el) return\n event.preventDefault()\n const startY = event.clientY\n const startHeight = el.clientHeight\n const pointerId = event.pointerId\n const handle = event.currentTarget as HTMLElement\n handle.setPointerCapture(pointerId)\n\n const move = (moveEvent: PointerEvent) => {\n manualHeight.value = Math.min(400, Math.max(30, startHeight - (moveEvent.clientY - startY)))\n }\n const up = () => {\n handle.removeEventListener('pointermove', move)\n handle.removeEventListener('pointerup', up)\n handle.removeEventListener('pointercancel', up)\n }\n handle.addEventListener('pointermove', move)\n handle.addEventListener('pointerup', up)\n handle.addEventListener('pointercancel', up)\n}\n\nfunction updateMenu() {\n const el = textarea.value\n if (!el || isComposing.value) return\n const before = text.value.slice(0, el.selectionStart)\n if (before.startsWith('/') && !before.includes(' ') && !before.includes('\\n') && props.slashCommands.length) {\n menuKind.value = 'slash'\n menuQuery.value = before.slice(1)\n menuIndex.value = 0\n return\n }\n if (props.mode === 'group' && props.mentionOptions.length) {\n const match = before.match(/(?<![A-Za-z0-9_.%+/@-])@([^\\s@]*)$/u)\n if (match && !/https?:\\/\\/\\S*$/u.test(before)) {\n menuKind.value = 'mention'\n menuQuery.value = match[1] ?? ''\n menuIndex.value = 0\n return\n }\n }\n menuKind.value = null\n}\n\nfunction openActions() {\n actionsOpen.value = !actionsOpen.value\n reasoningOpen.value = false\n settingsOpen.value = false\n menuKind.value = null\n if (actionsOpen.value) nextTick(() => actionsAnchor.value?.querySelector<HTMLButtonElement>('[role=\"menuitem\"]:not(:disabled)')?.focus())\n}\n\nfunction closeActions(restoreFocus = false) {\n actionsOpen.value = false\n if (restoreFocus) actionsTrigger.value?.focus()\n}\n\nfunction actionsKeydown(event: KeyboardEvent) {\n if (event.key === 'Escape') {\n event.preventDefault(); event.stopPropagation(); closeActions(true)\n } else if (event.key === 'Tab') {\n closeActions(true)\n } else if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n event.preventDefault()\n const items = Array.from(actionsAnchor.value?.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]:not(:disabled)') ?? [])\n const index = items.indexOf(document.activeElement as HTMLButtonElement)\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? items.length - 1 : (index + (event.key === 'ArrowUp' ? -1 : 1) + items.length) % items.length\n items[next]?.focus()\n }\n}\n\nfunction chooseAttachment() {\n closeActions(true)\n fileInput.value?.click()\n}\n\nfunction startMention() {\n closeActions()\n const el = textarea.value\n if (!el) return\n const cursor = el.selectionStart\n const before = text.value.slice(0, cursor)\n const insertion = `${before && !/\\s$/.test(before) ? ' ' : ''}@`\n text.value = before + insertion + text.value.slice(el.selectionEnd)\n nextTick(() => {\n el.focus()\n el.setSelectionRange(cursor + insertion.length, cursor + insertion.length)\n updateMenu()\n autoSize()\n })\n}\n\nfunction changeDeliveryMode(enabled: boolean) {\n if (props.disabled || props.deliveryDisabled || props.sending) return\n emit('update:deliveryMode', enabled)\n closeActions()\n nextTick(() => textarea.value?.focus())\n}\n\nfunction selectOption(option: ComposerOption) {\n if (option.disabled) return\n const el = textarea.value\n if (!el) return\n const cursor = el.selectionStart\n const before = text.value.slice(0, cursor)\n const after = text.value.slice(cursor)\n if (menuKind.value === 'slash') {\n const replacement = option.insertText ?? `/${option.label} `\n text.value = replacement + after\n nextTick(() => el.setSelectionRange(replacement.length, replacement.length))\n } else {\n const match = before.match(/(?<![A-Za-z0-9_.%+/@-])@([^\\s@]*)$/u)\n const start = match ? cursor - match[0].length : cursor\n const prefix = text.value.slice(0, start)\n const replacement = `@${option.label} `\n text.value = prefix + replacement + after\n if (option.id !== 'all' && !chosenMentionIds.value.includes(option.id)) chosenMentionIds.value.push(option.id)\n nextTick(() => {\n const pos = prefix.length + replacement.length\n el.setSelectionRange(pos, pos)\n })\n }\n menuKind.value = null\n nextTick(() => { el.focus(); autoSize() })\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (menuKind.value && menuOptions.value.length) {\n if (event.key === 'ArrowDown') {\n event.preventDefault(); menuIndex.value = (menuIndex.value + 1) % menuOptions.value.length; return\n }\n if (event.key === 'ArrowUp') {\n event.preventDefault(); menuIndex.value = (menuIndex.value - 1 + menuOptions.value.length) % menuOptions.value.length; return\n }\n if (event.key === 'Escape') { event.preventDefault(); menuKind.value = null; return }\n if (event.key === 'Tab' || (event.key === 'Enter' && !event.shiftKey)) {\n event.preventDefault()\n const option = menuOptions.value[menuIndex.value]\n if (option) selectOption(option)\n return\n }\n }\n if (event.key !== 'Enter' || event.shiftKey) return\n if (isComposing.value || event.isComposing || event.keyCode === 229) return\n event.preventDefault()\n submit()\n}\n\nfunction endComposition() {\n requestAnimationFrame(() => {\n isComposing.value = false\n updateMenu()\n })\n}\n\nfunction submit() {\n if (!canSubmit.value) return\n const payload: ComposerSubmit = {\n text: text.value.trim(),\n files: attachments.value.map(item => item.file),\n mentionIds: [...chosenMentionIds.value],\n }\n emit('send', payload)\n nextTick(() => textarea.value?.focus())\n}\n\nfunction clearAfterSend(expected?: ReturnType<typeof submissionToken>) {\n if (expected) {\n if ((draftVersions.get(expected.key) ?? 0) !== expected.revision) return false\n if (expected.key !== draftStorageKey()) {\n if (expected.key) localStorage.removeItem(expected.key)\n return false\n }\n }\n text.value = ''\n chosenMentionIds.value = []\n persistDraft('')\n clearAttachments()\n resetHeight()\n nextTick(() => textarea.value?.focus())\n return true\n}\n\nfunction onWrapperMouseDown(event: MouseEvent) {\n const target = event.target as HTMLElement\n if (target.closest('button, input, textarea, [role=\"option\"], .composer-resize')) return\n textarea.value?.focus()\n}\n\nfunction formatTokens(value: number) {\n if (value >= 1_048_576) return `${(value / 1_048_576).toFixed(1)}m`\n if (value >= 1024) return `${(value / 1024).toFixed(1)}k`\n return `${value}`\n}\n\nfunction selectReasoningByIndex(event: Event) {\n const index = Number((event.target as HTMLInputElement).value)\n const option = props.reasoningOptions[index]\n if (option) emit('reasoningChange', option.id)\n}\n\nfunction onDocumentPointer(event: PointerEvent) {\n const target = event.target as HTMLElement\n if (!actionsAnchor.value?.contains(target)) closeActions()\n if (!target.closest('.composer-shell')) {\n menuKind.value = null\n reasoningOpen.value = false\n settingsOpen.value = false\n }\n}\n\nwatch(text, value => { persistDraft(value); nextTick(autoSize) })\nwatch(() => props.draftKey, () => {\n restoreDraft()\n reasoningOpen.value = false\n settingsOpen.value = false\n actionsOpen.value = false\n})\nwatch(() => props.disabled, value => { if (value) closeActions() })\n\nonMounted(() => {\n restoreDraft()\n document.addEventListener('pointerdown', onDocumentPointer)\n})\n\nonBeforeUnmount(() => {\n clearAttachments()\n window.clearTimeout(errorTimer)\n document.removeEventListener('pointerdown', onDocumentPointer)\n})\n\ndefineExpose({\n attachFiles: addFiles,\n filesSnapshot: () => attachments.value.map(attachment => attachment.file),\n focus: () => textarea.value?.focus(),\n clearAfterSend,\n submissionToken,\n})\n</script>\n\n<template>\n <div class=\"composer-area\">\n <div v-if=\"attachments.length\" class=\"composer-attachments\" aria-label=\"附件\">\n <div v-for=\"attachment in attachments\" :key=\"attachment.id\" class=\"composer-attachment\" :class=\"{ image: isImage(attachment.type) }\">\n <img v-if=\"attachment.previewUrl\" :src=\"attachment.previewUrl\" :alt=\"attachment.name\" />\n <AppIcon v-else name=\"file\" :size=\"19\" />\n <span><strong>{{ attachment.name }}</strong><small>{{ formatSize(attachment.size) }}</small></span>\n <button type=\"button\" :aria-label=\"`移除 ${attachment.name}`\" @click=\"removeAttachment(attachment.id)\"><AppIcon name=\"close\" :size=\"12\" /></button>\n </div>\n </div>\n\n <div v-if=\"reference\" class=\"composer-reference\">\n <AppIcon name=\"quote\" :size=\"14\" />\n <span><small>{{ reference.author ? `回复 ${reference.author}` : '回复消息' }}</small><strong>{{ reference.content.replace(/\\s+/g, ' ').trim() }}</strong></span>\n <button type=\"button\" aria-label=\"取消引用\" @click=\"emit('clearReference')\"><AppIcon name=\"close\" :size=\"13\" /></button>\n </div>\n\n <div v-if=\"mode === 'group'\" class=\"composer-activity-slot\">\n <Transition name=\"composer-activity\">\n <div v-if=\"activityText\" class=\"composer-activity\" role=\"status\" aria-label=\"机器人输入状态\" aria-live=\"polite\" aria-atomic=\"true\">\n <span class=\"composer-typing-dots\" aria-hidden=\"true\"><i /><i /><i /></span>\n <strong>{{ activityText }}</strong>\n </div>\n </Transition>\n </div>\n\n <slot name=\"before-input\" />\n\n <div\n class=\"composer-shell\"\n :class=\"{ 'composer-shell--drag': dragOver, 'composer-shell--disabled': disabled }\"\n @mousedown=\"onWrapperMouseDown\"\n @dragenter=\"onDragEnter\"\n @dragover=\"onDragOver\"\n @dragleave=\"onDragLeave\"\n @drop=\"onDrop\"\n >\n <input ref=\"fileInput\" class=\"composer-file-input\" type=\"file\" multiple @change=\"onFiles\" />\n <div class=\"composer-resize\" title=\"拖动调整高度;双击复位\" @pointerdown=\"startResize\" @dblclick=\"resetHeight\" />\n\n <div v-if=\"hasContext\" class=\"composer-context\" :class=\"{ warning: contextPercent > 80 }\" :title=\"contextEstimated ? 'Hermes 未提供实时上下文用量;此数值按当前会话内容估算。' : undefined\">\n <span>{{ contextEstimated ? '约 ' : '' }}{{ formatTokens(contextUsed) }} / {{ formatTokens(contextLimit) }} · 剩余 {{ formatTokens(remainingContextTokens) }}</span>\n <i><b :style=\"{ width: `${contextPercent}%` }\" /></i>\n </div>\n\n <textarea\n ref=\"textarea\"\n v-model=\"text\"\n class=\"composer-textarea\"\n :style=\"manualHeight !== null ? { height: `${manualHeight}px` } : undefined\"\n rows=\"1\"\n :disabled=\"disabled\"\n :placeholder=\"deliveryAvailable && deliveryMode ? '描述希望团队交付的结果…' : placeholder\"\n @input=\"updateMenu\"\n @click=\"updateMenu\"\n @keydown=\"handleKeydown\"\n @paste=\"onPaste\"\n @compositionstart=\"isComposing = true\"\n @compositionend=\"endComposition\"\n />\n\n <div class=\"composer-toolbar\">\n <div class=\"composer-tools\">\n <div v-if=\"hasGroupActions\" ref=\"actionsAnchor\" class=\"composer-popover-anchor composer-actions-anchor\" @keydown=\"actionsKeydown\">\n <button ref=\"actionsTrigger\" class=\"composer-tool composer-add\" type=\"button\" :disabled=\"disabled\" aria-label=\"添加\" aria-haspopup=\"menu\" :aria-expanded=\"actionsOpen\" @click=\"openActions\" @keydown.down.prevent=\"!actionsOpen && openActions()\">\n <AppIcon name=\"plus\" :size=\"20\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"actionsOpen\" class=\"composer-popover composer-add-menu\" role=\"menu\" aria-label=\"添加到消息\">\n <button type=\"button\" role=\"menuitem\" :disabled=\"!attachmentsEnabled\" @click=\"chooseAttachment\"><AppIcon name=\"paperclip\" :size=\"20\" /><span>添加附件</span></button>\n <button v-if=\"mentionOptions.length\" type=\"button\" role=\"menuitem\" @click=\"startMention\"><At class=\"composer-action-icon\" aria-hidden=\"true\" /><span>提及成员</span></button>\n <template v-if=\"deliveryAvailable\">\n <div class=\"composer-add-menu__divider\" role=\"separator\" />\n <button type=\"button\" role=\"menuitem\" :disabled=\"deliveryDisabled || sending\" @click=\"changeDeliveryMode(!deliveryMode)\">\n <Target class=\"composer-action-icon\" aria-hidden=\"true\" /><span><strong>交付目标</strong><small>{{ deliveryDisabledReason || (deliveryMode ? '已开启;点击返回普通聊天' : '让团队持续完成一个结果') }}</small></span><AppIcon v-if=\"deliveryMode\" name=\"check\" :size=\"16\" />\n </button>\n </template>\n </div>\n </Transition>\n </div>\n <button v-else class=\"composer-tool composer-tool--icon\" type=\"button\" :disabled=\"disabled || !attachmentsEnabled\" :title=\"attachmentsEnabled ? '添加附件' : '当前上游不支持附件'\" aria-label=\"添加附件\" @click=\"fileInput?.click()\">\n <AppIcon name=\"paperclip\" :size=\"16\" />\n </button>\n <button v-if=\"deliveryAvailable && deliveryMode\" class=\"composer-delivery-chip\" type=\"button\" :disabled=\"disabled || deliveryDisabled || sending\" aria-label=\"关闭交付目标,返回普通聊天\" title=\"关闭交付目标,返回普通聊天\" @click=\"changeDeliveryMode(false)\">\n <Target class=\"composer-action-icon\" aria-hidden=\"true\" /><span>交付目标</span><AppIcon name=\"close\" :size=\"15\" />\n </button>\n <div v-if=\"mode === 'chat'\" class=\"composer-popover-anchor\">\n <button class=\"composer-tool\" type=\"button\" :class=\"{ active: reasoningOpen }\" :disabled=\"disabled || !reasoningOptions.length\" :title=\"`推理强度:${reasoningLabel}`\" :aria-label=\"`推理强度:${reasoningLabel}`\" :aria-expanded=\"reasoningOpen\" @click=\"reasoningOpen = !reasoningOpen; settingsOpen = false\">\n <AppIcon name=\"brain\" :size=\"16\" /><span>{{ reasoningLabel }}</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"reasoningOpen\" class=\"composer-popover composer-popover--reasoning\" role=\"dialog\" aria-label=\"推理强度\">\n <div class=\"composer-popover__heading\"><span>推理强度</span><strong>{{ reasoningLabel }}</strong></div>\n <input class=\"reasoning-slider\" type=\"range\" :min=\"0\" :max=\"Math.max(0, reasoningOptions.length - 1)\" step=\"1\" :value=\"reasoningOptionIndex\" @input=\"selectReasoningByIndex\" />\n <div class=\"composer-popover__range\"><span>{{ reasoningOptions[0]?.label || '默认' }}</span><span>{{ reasoningOptions.at(-1)?.label || '最大' }}</span></div>\n </div>\n </Transition>\n </div>\n <div v-if=\"mode === 'chat'\" class=\"composer-popover-anchor\">\n <button class=\"composer-tool\" type=\"button\" :class=\"{ active: settingsOpen }\" :disabled=\"disabled\" title=\"设置\" aria-label=\"设置\" :aria-expanded=\"settingsOpen\" @click=\"settingsOpen = !settingsOpen; reasoningOpen = false\">\n <AppIcon name=\"settings\" :size=\"16\" /><span>设置</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"settingsOpen\" class=\"composer-popover composer-popover--settings\" role=\"dialog\" aria-label=\"输入设置\">\n <button class=\"composer-setting-row\" type=\"button\" role=\"switch\" :aria-checked=\"toolTraceVisible\" @click=\"emit('settingsClick')\">\n <span><AppIcon name=\"brain\" :size=\"15\" />显示思考</span>\n <AppIcon v-if=\"toolTraceVisible\" name=\"check\" :size=\"16\" />\n </button>\n <button class=\"composer-setting-row\" type=\"button\" title=\"首版暂未启用语音输入\" @click=\"showError('语音输入尚未启用')\">\n <span>语音输入设置</span>\n </button>\n </div>\n </Transition>\n </div>\n <button v-else class=\"composer-tool\" type=\"button\" :class=\"{ active: toolTraceVisible }\" :disabled=\"disabled\" title=\"显示思考\" @click=\"emit('toolTraceToggle')\">\n <AppIcon name=\"brain\" :size=\"16\" /><span>思考</span>\n </button>\n <button v-if=\"mode === 'chat'\" class=\"composer-tool composer-tool--model\" type=\"button\" :disabled=\"disabled\" :title=\"modelLabel\" @click=\"emit('modelClick')\">\n <AppIcon name=\"model\" :size=\"15\" /><span>{{ compactModel }}</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <button\n v-if=\"mode === 'chat'\"\n class=\"composer-tool composer-tool--icon composer-fast-mode\"\n :class=\"{ active: fastMode }\"\n type=\"button\"\n :disabled=\"disabled || fastModeDisabled\"\n :aria-pressed=\"fastMode\"\n :aria-label=\"`快速模式:${fastMode ? '已开启' : '已关闭'}`\"\n title=\"快速模式:响应更快,消耗更多额度\"\n @click=\"emit('fastModeToggle', !fastMode)\"\n >\n <AppIcon name=\"bolt\" :size=\"15\" />\n </button>\n <button v-else-if=\"mentionOptions.length\" type=\"button\" class=\"composer-tool composer-mention-hint\" :disabled=\"disabled\" aria-label=\"提及成员\" @click=\"startMention\"><At class=\"composer-action-icon\" aria-hidden=\"true\" /><span>提及成员</span></button>\n </div>\n <div class=\"composer-actions\">\n <button v-if=\"mode === 'chat' && streaming && canSubmit\" class=\"queue-toggle\" :class=\"{ active: queueMode }\" type=\"button\" :title=\"queueMode ? '消息将排队发送' : '消息将 Steer 当前会话'\" @click=\"emit('queueToggle')\">\n {{ queueMode ? '排队' : 'Steer' }}\n </button>\n <span v-if=\"sending\" class=\"composer-sending\" role=\"status\" aria-live=\"polite\"><i />正在发送</span>\n <span v-if=\"canStop && !showStop\" class=\"composer-stop-hitbox\">\n <button class=\"composer-stop\" type=\"button\" aria-label=\"停止生成\" title=\"停止生成\" @click=\"emit('stop')\">\n <AppIcon name=\"stop\" :size=\"15\" />\n </button>\n </span>\n <span class=\"composer-send-hitbox\">\n <button\n class=\"composer-send\"\n :class=\"{ 'composer-send--stop': showStop }\"\n type=\"button\"\n :disabled=\"showStop ? false : !canSubmit\"\n :aria-label=\"showStop ? '停止生成' : '发送消息'\"\n @click=\"showStop ? emit('stop') : submit()\"\n >\n <AppIcon :name=\"showStop ? 'stop' : 'arrow-up'\" :size=\"showStop ? 17 : 17\" />\n </button>\n </span>\n </div>\n </div>\n\n <Transition name=\"composer-menu\">\n <div v-if=\"menuKind && menuOptions.length\" class=\"composer-menu\" role=\"listbox\">\n <div class=\"composer-menu__label\">{{ menuKind === 'mention' ? '提及机器人' : '命令' }}</div>\n <button\n v-for=\"(option, index) in menuOptions\"\n :key=\"option.id\"\n type=\"button\"\n role=\"option\"\n :aria-selected=\"index === menuIndex\"\n :disabled=\"option.disabled\"\n :class=\"{ active: index === menuIndex }\"\n @mousedown.prevent=\"selectOption(option)\"\n @mouseenter=\"menuIndex = index\"\n >\n <span class=\"composer-menu__avatar\">{{ menuKind === 'mention' ? option.label.slice(0, 1).toUpperCase() : '/' }}</span>\n <span><strong>{{ menuKind === 'mention' ? `@${option.label}` : `/${option.label}` }}</strong><small v-if=\"option.detail\">{{ option.detail }}</small></span>\n <em v-if=\"option.disabled\">不可用</em>\n </button>\n </div>\n </Transition>\n\n <div v-if=\"dragOver\" class=\"composer-drop-hint\"><AppIcon name=\"paperclip\" :size=\"20\" />松开以添加附件</div>\n </div>\n <Transition name=\"composer-menu\"><p v-if=\"localError\" class=\"composer-error\" role=\"alert\">{{ localError }}</p></Transition>\n </div>\n</template>\n\n<style scoped>\n.composer-area { position: relative; z-index: 12; flex: 0 0 auto; padding: 12px max(24px, calc((100% - 760px) / 2)) max(18px, env(safe-area-inset-bottom)); background: var(--conversation-canvas); }\n.composer-activity-slot { display: flex; width: 100%; max-width: 760px; min-height: 20px; margin: 0 auto 3px; align-items: center; }\n.composer-activity { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10px; }\n.composer-activity strong { overflow: hidden; color: var(--text-secondary); font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }\n.composer-typing-dots { display: inline-flex; align-items: center; gap: 2px; }.composer-typing-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: composer-typing 1.05s ease-in-out infinite; }.composer-typing-dots i:nth-child(2) { animation-delay: 140ms; }.composer-typing-dots i:nth-child(3) { animation-delay: 280ms; }\n@keyframes composer-typing { 0%, 65%, 100% { opacity: .3; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-2px); } }\n.composer-activity-enter-active, .composer-activity-leave-active { transition: opacity 120ms ease, transform 120ms var(--ease-out); }.composer-activity-enter-from, .composer-activity-leave-to { opacity: 0; transform: translateY(3px); }\n.composer-shell { position: relative; display: flex; width: 100%; min-height: 72px; max-width: 760px; margin-inline: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 13px 14px 9px; border: 1px solid var(--input-border-color); border-radius: 18px; background: var(--chat-composer-bg); box-shadow: 0 8px 24px rgba(41,36,39,.06); cursor: text; transition: border-color 140ms ease, box-shadow 150ms ease, background-color 140ms ease; }\n.dark .composer-shell { box-shadow: 0 8px 28px rgba(0,0,0,.32); }\n.composer-shell:hover:not(:focus-within) { border-color: var(--input-border-hover-color); }\n.composer-shell:focus-within { border-color: var(--input-border-focus-color); box-shadow: 0 10px 32px rgba(0,0,0,.11); }\n.dark .composer-shell:focus-within { box-shadow: 0 12px 34px rgba(0,0,0,.4); }\n.composer-shell--drag { border-color: var(--text-primary) !important; background: color-mix(in srgb, var(--chat-composer-bg) 90%, var(--text-primary)); }\n.composer-shell--disabled { opacity: .68; }\n.composer-file-input { display: none; }\n.composer-resize { position: absolute; z-index: 4; top: -5px; left: 9px; right: 9px; height: 10px; border-radius: 999px; cursor: row-resize; touch-action: none; }\n.composer-resize:hover::after { content: ''; position: absolute; top: 4px; left: 38%; right: 38%; height: 2px; border-radius: 2px; background: var(--line-strong); }\n.composer-textarea { display: block; width: 100%; min-height: 30px; max-height: 400px; flex: 1 1 auto; padding: 0; border: 0; outline: 0; resize: none; overflow-y: auto; background: none; color: var(--text-primary); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; }\n.composer-textarea::placeholder { overflow: hidden; color: var(--input-placeholder-color); opacity: 1; text-overflow: ellipsis; white-space: nowrap; }\n.composer-textarea:disabled { cursor: not-allowed; }\n.composer-context { position: absolute; z-index: 1; top: 8px; right: 14px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); color: var(--text-muted); font-size: 10px; pointer-events: none; }\n.composer-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.composer-context.warning { color: var(--warning); }\n.composer-context i { display: block; width: 60px; height: 4px; flex: 0 0 60px; overflow: hidden; border-radius: 3px; background: var(--surface-hover); }\n.composer-context b { display: block; height: 100%; border-radius: inherit; background: currentColor; transition: width 220ms ease; }\n.composer-context + .composer-textarea { padding-top: 9px; }\n.composer-toolbar { display: flex; min-height: 32px; margin-top: auto; align-items: center; justify-content: space-between; gap: 12px; }\n.composer-tools, .composer-actions { display: flex; min-width: 0; align-items: center; gap: 5px; }\n.composer-tools { flex: 1; }\n.composer-actions { flex: 0 0 auto; gap: 7px; }\n.composer-popover-anchor { position: relative; display: flex; flex: 0 0 auto; }\n.composer-action-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }\n.composer-tool.composer-add { width: 36px; height: 36px; padding: 0; background: var(--surface-soft); color: var(--text-primary); }\n.composer-popover.composer-add-menu { width: min(280px, calc(100vw - 64px)); padding: 8px; cursor: default; }\n.composer-add-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }\n.composer-add-menu button:hover:not(:disabled) { background: var(--surface-hover); }\n.composer-add-menu button:disabled { opacity: .5; cursor: not-allowed; }\n.composer-add-menu button > span { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }\n.composer-add-menu strong { font-weight: 500; }\n.composer-add-menu small { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }\n.composer-add-menu__divider { height: 1px; margin: 6px 12px; background: var(--line); }\n.composer-delivery-chip { --goal-color: var(--delivery-accent); display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--goal-color) 12%, transparent); color: var(--goal-color); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }\n.composer-delivery-chip:hover:not(:disabled) { background: color-mix(in srgb, var(--goal-color) 18%, transparent); }\n.composer-delivery-chip:disabled { opacity: .5; cursor: not-allowed; }\n.composer-add:focus-visible, .composer-add-menu button:focus-visible, .composer-delivery-chip:focus-visible, .composer-mention-hint:focus-visible { outline: 2px solid var(--workflow-accent); outline-offset: 2px; }\n.composer-tool { display: inline-flex; min-width: 28px; height: 28px; max-width: 175px; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; white-space: nowrap; }\n.composer-tool:hover, .composer-tool.active { background: var(--surface-hover); color: var(--text-primary); }\n.composer-tool:disabled { cursor: not-allowed; opacity: .36; }\n.composer-tool span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.composer-tool--icon { width: 28px; padding: 0; }\n.composer-tool--model { min-width: 0; }\n.composer-fast-mode.active { background: color-mix(in srgb, #1677ff 12%, transparent); color: #1677ff; }\n.composer-fast-mode.active:hover { background: color-mix(in srgb, #1677ff 18%, transparent); color: #1677ff; }\n.dark .composer-fast-mode.active { color: #4c9aff; }\n.composer-mention-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 11px; }\n.composer-mention-hint b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--surface-soft); color: var(--text-secondary); font-size: 12px; }\n.composer-popover { position: absolute; z-index: 30; bottom: calc(100% + 10px); left: 0; width: min(320px, calc(100vw - 48px)); padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow-float); }\n.composer-popover--reasoning { --reasoning-accent: #e8a735; }\n.composer-popover__heading, .composer-popover__range { display: flex; align-items: center; justify-content: space-between; gap: 16px; }\n.composer-popover__heading { margin-bottom: 12px; color: var(--text-secondary); font-size: 12px; }\n.composer-popover__heading strong { color: var(--reasoning-accent); font-weight: 650; }\n.composer-popover__range { margin-top: 8px; color: var(--text-muted); font-size: 9px; }\n.reasoning-slider { display: block; width: 100%; height: 10px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 99px; background: linear-gradient(90deg, #38bdf8 0%, #22d3ee 20%, #34d399 40%, #facc15 62%, #fb923c 82%, #ef4444 100%); cursor: pointer; }\n.reasoning-slider::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: #f8fafc; box-shadow: 0 2px 8px rgba(24,18,44,.28); }\n.reasoning-slider::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #f8fafc; box-shadow: 0 2px 8px rgba(24,18,44,.28); }\n.composer-popover--settings { width: 220px; padding: 6px; }\n.composer-setting-row { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; }\n.composer-setting-row:hover { background: var(--surface-hover); color: var(--text-primary); }\n.composer-setting-row > span { display: inline-flex; align-items: center; gap: 7px; }\n.queue-toggle { height: 26px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; }\n.queue-toggle:hover, .queue-toggle.active { background: var(--surface-hover); color: var(--text-primary); }\n.composer-send-hitbox { display: grid; place-items: center; width: 34px; height: 34px; }\n.composer-stop-hitbox { display: grid; place-items: center; width: 30px; height: 34px; }\n.composer-send { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--text-on-solid); cursor: pointer; box-shadow: 0 4px 12px rgba(41,36,39,.18); transition: transform 150ms ease, box-shadow 150ms ease; }\n.composer-send:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(41,36,39,.22); }\n.composer-send:disabled { cursor: not-allowed; background: #9f9f9f; color: #fff; }\n.composer-send--stop { background: var(--accent); }\n.composer-stop { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--text-secondary); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }\n.composer-stop:hover { color: var(--danger); border-color: var(--danger); }\n.composer-sending { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.composer-sending i { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); animation: composer-pulse 1s ease-in-out infinite; }\n@keyframes composer-pulse { 50% { opacity: .25; transform: scale(.7); } }\n.composer-attachments { display: flex; width: 100%; max-width: 760px; margin: 0 auto 9px; flex-wrap: wrap; gap: 7px; }\n.composer-attachment { position: relative; display: flex; max-width: 210px; min-height: 48px; align-items: center; gap: 8px; padding: 6px 28px 6px 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); color: var(--text-secondary); }\n.composer-attachment.image { width: 64px; height: 64px; padding: 0; }\n.composer-attachment img { width: 100%; height: 100%; object-fit: cover; }\n.composer-attachment > span { display: flex; min-width: 0; flex-direction: column; }\n.composer-attachment strong, .composer-attachment small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.composer-attachment strong { color: var(--text-primary); font-size: 10px; font-weight: 560; }.composer-attachment small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }\n.composer-attachment > button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.52); color: #fff; cursor: pointer; }\n.composer-reference { display: flex; width: calc(100% - 16px); max-width: 744px; min-height: 36px; margin: 0 auto 8px; align-items: center; gap: 9px; padding: 5px 7px 5px 10px; border-left: 2px solid var(--text-muted); border-radius: 7px; background: var(--surface-soft); color: var(--text-muted); }\n.composer-reference > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }\n.composer-reference small { font-size: 9px; }.composer-reference strong { overflow: hidden; color: var(--text-secondary); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }\n.composer-reference button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }\n.composer-reference button:hover { background: var(--surface-hover); color: var(--text-primary); }\n.composer-menu { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(100% + 8px); max-height: 280px; padding: 5px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow-float); }\n.composer-menu__label { padding: 5px 8px 7px; color: var(--text-muted); font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }\n.composer-menu button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); cursor: pointer; text-align: left; }\n.composer-menu button.active, .composer-menu button:hover { background: var(--surface-hover); }\n.composer-menu button:disabled { cursor: not-allowed; opacity: .48; }\n.composer-menu__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 11px; }\n.composer-menu button > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }.composer-menu strong { font-size: 11px; }.composer-menu small { overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.composer-menu em { color: var(--text-muted); font-size: 9px; font-style: normal; }\n.composer-drop-hint { position: absolute; z-index: 25; inset: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 13px; background: color-mix(in srgb, var(--chat-composer-bg) 90%, transparent); color: var(--text-secondary); font-size: 12px; backdrop-filter: blur(5px); pointer-events: none; }\n.composer-error { position: absolute; right: max(24px, calc((100% - 760px) / 2)); bottom: calc(100% - 8px); max-width: min(420px, calc(100% - 32px)); margin: 0; padding: 7px 10px; border-radius: 8px; background: var(--danger); color: #fff; box-shadow: var(--shadow-float); font-size: 10px; }\n.composer-menu-enter-active, .composer-menu-leave-active { transition: opacity 120ms ease, transform 120ms var(--ease-out); }.composer-menu-enter-from, .composer-menu-leave-to { opacity: 0; transform: translateY(4px); }\n\n@media (max-width: 768px) {\n .composer-area { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }\n .composer-shell { min-height: 118px; }\n .composer-textarea { font-size: 16px; }\n .composer-textarea::placeholder { font-size: 13px; line-height: 1.35; }\n .composer-tool span, .composer-tool > :deep(svg:last-child), .composer-mention-hint span { display: none; }\n .composer-tool { width: 30px; min-width: 30px; padding: 0; }\n .composer-tools { gap: 3px; }\n .composer-mention-hint { display: none; }\n .composer-tool.composer-add { width: 44px; height: 44px; }\n .composer-add > :deep(svg:last-child) { display: block; }\n .composer-delivery-chip { min-height: 44px; padding-inline: 10px; }\n .composer-toolbar { align-items: flex-end; gap: 7px; }\n .composer-send-hitbox { width: 44px; height: 44px; margin: -5px; }\n .composer-send { width: 34px; min-width: 34px; height: 34px; }\n .composer-menu { left: 6px; right: 6px; }\n .composer-context { font-size: 8px; }\n .composer-context i { display: none; }\n .composer-popover { width: min(220px, calc(100vw - 96px)); }\n .composer-error { right: 12px; }\n}\n\n@media (max-width: 360px) {\n .queue-toggle { display: none; }\n .composer-toolbar { gap: 3px; }\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport { At, Target } from '@vicons/tabler'\nimport { createId } from '@/utils/id'\nimport type { ComposerAttachment, ComposerOption, ComposerReference, ComposerSubmit } from './types'\n\nconst props = withDefaults(defineProps<{\n mode?: 'chat' | 'group'\n draftKey?: string\n placeholder?: string\n disabled?: boolean\n streaming?: boolean\n stopWhileRunning?: boolean\n sending?: boolean\n modelLabel?: string\n fastMode?: boolean\n fastModeDisabled?: boolean\n reasoningEffort?: string\n reasoningValue?: string\n reasoningOptions?: ComposerOption[]\n contextUsed?: number\n contextLimit?: number\n contextEstimated?: boolean\n queueMode?: boolean\n toolTraceVisible?: boolean\n reference?: ComposerReference | null\n mentionOptions?: ComposerOption[]\n slashCommands?: ComposerOption[]\n attachmentsEnabled?: boolean\n activityText?: string\n deliveryAvailable?: boolean\n deliveryMode?: boolean\n deliveryDisabled?: boolean\n deliveryDisabledReason?: string\n}>(), {\n mode: 'chat',\n draftKey: '',\n placeholder: '输入消息,Enter 发送,Shift + Enter 换行',\n disabled: false,\n streaming: false,\n stopWhileRunning: false,\n sending: false,\n modelLabel: '选择模型',\n fastMode: false,\n fastModeDisabled: false,\n reasoningEffort: '默认',\n reasoningValue: '',\n reasoningOptions: () => [],\n contextUsed: 0,\n contextLimit: 0,\n contextEstimated: false,\n queueMode: false,\n toolTraceVisible: true,\n reference: null,\n mentionOptions: () => [],\n slashCommands: () => [],\n attachmentsEnabled: true,\n activityText: '',\n deliveryAvailable: false,\n deliveryMode: false,\n deliveryDisabled: false,\n deliveryDisabledReason: '',\n})\n\nconst emit = defineEmits<{\n send: [payload: ComposerSubmit]\n stop: []\n modelClick: []\n fastModeToggle: [enabled: boolean]\n reasoningChange: [value: string]\n settingsClick: []\n queueToggle: []\n toolTraceToggle: []\n clearReference: []\n error: [message: string]\n 'update:deliveryMode': [enabled: boolean]\n}>()\n\nconst MAX_FILE_SIZE = 25 * 1024 * 1024\nconst MAX_FILES = 8\nconst text = ref('')\nconst textarea = ref<HTMLTextAreaElement | null>(null)\nconst fileInput = ref<HTMLInputElement | null>(null)\nconst attachments = ref<ComposerAttachment[]>([])\nconst isComposing = ref(false)\nconst dragDepth = ref(0)\nconst dragOver = computed(() => dragDepth.value > 0)\nconst manualHeight = ref<number | null>(null)\nconst menuIndex = ref(0)\nconst menuKind = ref<'slash' | 'mention' | null>(null)\nconst menuQuery = ref('')\nconst chosenMentionIds = ref<string[]>([])\nconst reasoningOpen = ref(false)\nconst settingsOpen = ref(false)\nconst actionsOpen = ref(false)\nconst actionsAnchor = ref<HTMLElement | null>(null)\nconst actionsTrigger = ref<HTMLButtonElement | null>(null)\nconst hasGroupActions = computed(() => props.mode === 'group' && (props.mentionOptions.length > 0 || props.deliveryAvailable))\nconst localError = ref('')\nlet errorTimer: number | undefined\n\nconst canSubmit = computed(() => !props.disabled && !props.sending && (text.value.trim().length > 0 || attachments.value.length > 0))\nconst canStop = computed(() => props.streaming && (props.stopWhileRunning || props.mode === 'chat'))\n// A running session keeps an explicit interrupt control even when the composer\n// holds a draft, so resource waits can always be cancelled by the user.\nconst showStop = computed(() => canStop.value && !text.value.trim() && !attachments.value.length)\nconst compactModel = computed(() => props.modelLabel.split('/').filter(Boolean).at(-1) || props.modelLabel)\nconst contextPercent = computed(() => props.contextLimit > 0 ? Math.min(100, Math.round(props.contextUsed / props.contextLimit * 100)) : 0)\nconst hasContext = computed(() => props.contextLimit > 0)\nconst remainingContextTokens = computed(() => Math.max(0, props.contextLimit - props.contextUsed))\nconst reasoningOptionIndex = computed(() => Math.max(0, props.reasoningOptions.findIndex(option => option.id === props.reasoningValue)))\nconst reasoningLabel = computed(() => props.reasoningOptions[reasoningOptionIndex.value]?.label || props.reasoningEffort)\n\nconst menuOptions = computed(() => {\n const source = menuKind.value === 'slash' ? props.slashCommands : props.mentionOptions\n const query = menuQuery.value.trim().toLocaleLowerCase()\n return source.filter(option => {\n if (!query) return true\n return option.label.toLocaleLowerCase().includes(query) || option.detail?.toLocaleLowerCase().includes(query)\n }).slice(0, 10)\n})\n\nfunction draftStorageKey(key = props.draftKey) {\n return key ? `hermes-yaoyao:composer:${props.mode}:${key}` : ''\n}\n\nlet restoringDraft = false\nlet tracksSubmissions = false\nconst draftVersions = new Map<string, number>()\nwatch([text, attachments, chosenMentionIds], () => {\n if (tracksSubmissions && !restoringDraft) { const key = draftStorageKey(); draftVersions.set(key, (draftVersions.get(key) ?? 0) + 1) }\n}, { deep: true, flush: 'sync' })\nfunction submissionToken() {\n tracksSubmissions = true\n const key = draftStorageKey()\n return { key, revision: draftVersions.get(key) ?? 0 }\n}\nfunction restoreDraft() {\n const key = draftStorageKey()\n restoringDraft = true\n try { text.value = key ? localStorage.getItem(key) || '' : '' } finally { restoringDraft = false }\n nextTick(autoSize)\n}\n\nfunction persistDraft(value: string) {\n const key = draftStorageKey()\n if (!key) return\n if (value) localStorage.setItem(key, value)\n else localStorage.removeItem(key)\n}\n\nfunction showError(message: string) {\n localError.value = message\n emit('error', message)\n window.clearTimeout(errorTimer)\n errorTimer = window.setTimeout(() => { localError.value = '' }, 4500)\n}\n\nfunction formatSize(bytes: number) {\n if (bytes < 1024) return `${bytes} B`\n if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction isImage(type: string) { return type.startsWith('image/') }\n\nfunction addFiles(files: File[]) {\n if (!props.attachmentsEnabled) {\n showError('当前上游不支持团队附件')\n return\n }\n const available = MAX_FILES - attachments.value.length\n if (available <= 0) return showError(`最多添加 ${MAX_FILES} 个文件`)\n const accepted: ComposerAttachment[] = []\n for (const file of files.slice(0, available)) {\n if (file.size > MAX_FILE_SIZE) {\n showError(`${file.name} 超过 25 MiB`)\n continue\n }\n accepted.push({\n id: `${file.name}:${file.size}:${file.lastModified}:${createId('attachment')}`,\n file,\n name: file.name,\n size: file.size,\n type: file.type || 'application/octet-stream',\n previewUrl: isImage(file.type) ? URL.createObjectURL(file) : undefined,\n })\n }\n attachments.value.push(...accepted)\n if (files.length > available) showError(`最多添加 ${MAX_FILES} 个文件`)\n}\n\nfunction removeAttachment(id: string) {\n const index = attachments.value.findIndex(item => item.id === id)\n if (index < 0) return\n const [removed] = attachments.value.splice(index, 1)\n if (removed?.previewUrl) URL.revokeObjectURL(removed.previewUrl)\n}\n\nfunction clearAttachments() {\n attachments.value.forEach(item => item.previewUrl && URL.revokeObjectURL(item.previewUrl))\n attachments.value = []\n if (fileInput.value) fileInput.value.value = ''\n}\n\nfunction onFiles(event: Event) {\n const input = event.target as HTMLInputElement\n addFiles(Array.from(input.files ?? []))\n input.value = ''\n}\n\nfunction onPaste(event: ClipboardEvent) {\n const files = Array.from(event.clipboardData?.files ?? [])\n if (files.length) addFiles(files)\n}\n\nfunction onDragEnter(event: DragEvent) {\n if (!event.dataTransfer?.types.includes('Files')) return\n event.preventDefault()\n dragDepth.value += 1\n}\n\nfunction onDragOver(event: DragEvent) {\n if (!event.dataTransfer?.types.includes('Files')) return\n event.preventDefault()\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy'\n}\n\nfunction onDragLeave(event: DragEvent) {\n event.preventDefault()\n dragDepth.value = Math.max(0, dragDepth.value - 1)\n}\n\nfunction onDrop(event: DragEvent) {\n event.preventDefault()\n dragDepth.value = 0\n addFiles(Array.from(event.dataTransfer?.files ?? []))\n}\n\nfunction autoSize() {\n const el = textarea.value\n if (!el || manualHeight.value !== null) return\n el.style.height = 'auto'\n el.style.height = `${Math.min(400, Math.max(30, el.scrollHeight))}px`\n}\n\nfunction resetHeight() {\n manualHeight.value = null\n if (textarea.value) textarea.value.style.height = 'auto'\n nextTick(autoSize)\n}\n\nfunction startResize(event: PointerEvent) {\n const el = textarea.value\n if (!el) return\n event.preventDefault()\n const startY = event.clientY\n const startHeight = el.clientHeight\n const pointerId = event.pointerId\n const handle = event.currentTarget as HTMLElement\n handle.setPointerCapture(pointerId)\n\n const move = (moveEvent: PointerEvent) => {\n manualHeight.value = Math.min(400, Math.max(30, startHeight - (moveEvent.clientY - startY)))\n }\n const up = () => {\n handle.removeEventListener('pointermove', move)\n handle.removeEventListener('pointerup', up)\n handle.removeEventListener('pointercancel', up)\n }\n handle.addEventListener('pointermove', move)\n handle.addEventListener('pointerup', up)\n handle.addEventListener('pointercancel', up)\n}\n\nfunction updateMenu() {\n const el = textarea.value\n if (!el || isComposing.value) return\n const before = text.value.slice(0, el.selectionStart)\n if (before.startsWith('/') && !before.includes(' ') && !before.includes('\\n') && props.slashCommands.length) {\n menuKind.value = 'slash'\n menuQuery.value = before.slice(1)\n menuIndex.value = 0\n return\n }\n if (props.mode === 'group' && props.mentionOptions.length) {\n const match = before.match(/(?<![A-Za-z0-9_.%+/@-])@([^\\s@]*)$/u)\n if (match && !/https?:\\/\\/\\S*$/u.test(before)) {\n menuKind.value = 'mention'\n menuQuery.value = match[1] ?? ''\n menuIndex.value = 0\n return\n }\n }\n menuKind.value = null\n}\n\nfunction openActions() {\n actionsOpen.value = !actionsOpen.value\n reasoningOpen.value = false\n settingsOpen.value = false\n menuKind.value = null\n if (actionsOpen.value) nextTick(() => actionsAnchor.value?.querySelector<HTMLButtonElement>('[role=\"menuitem\"]:not(:disabled)')?.focus())\n}\n\nfunction closeActions(restoreFocus = false) {\n actionsOpen.value = false\n if (restoreFocus) actionsTrigger.value?.focus()\n}\n\nfunction actionsKeydown(event: KeyboardEvent) {\n if (event.key === 'Escape') {\n event.preventDefault(); event.stopPropagation(); closeActions(true)\n } else if (event.key === 'Tab') {\n closeActions(true)\n } else if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n event.preventDefault()\n const items = Array.from(actionsAnchor.value?.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]:not(:disabled)') ?? [])\n const index = items.indexOf(document.activeElement as HTMLButtonElement)\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? items.length - 1 : (index + (event.key === 'ArrowUp' ? -1 : 1) + items.length) % items.length\n items[next]?.focus()\n }\n}\n\nfunction chooseAttachment() {\n closeActions(true)\n fileInput.value?.click()\n}\n\nfunction startMention() {\n closeActions()\n const el = textarea.value\n if (!el) return\n const cursor = el.selectionStart\n const before = text.value.slice(0, cursor)\n const insertion = `${before && !/\\s$/.test(before) ? ' ' : ''}@`\n text.value = before + insertion + text.value.slice(el.selectionEnd)\n nextTick(() => {\n el.focus()\n el.setSelectionRange(cursor + insertion.length, cursor + insertion.length)\n updateMenu()\n autoSize()\n })\n}\n\nfunction changeDeliveryMode(enabled: boolean) {\n if (props.disabled || props.deliveryDisabled || props.sending) return\n emit('update:deliveryMode', enabled)\n closeActions()\n nextTick(() => textarea.value?.focus())\n}\n\nfunction selectOption(option: ComposerOption) {\n if (option.disabled) return\n const el = textarea.value\n if (!el) return\n const cursor = el.selectionStart\n const before = text.value.slice(0, cursor)\n const after = text.value.slice(cursor)\n if (menuKind.value === 'slash') {\n const replacement = option.insertText ?? `/${option.label} `\n text.value = replacement + after\n nextTick(() => el.setSelectionRange(replacement.length, replacement.length))\n } else {\n const match = before.match(/(?<![A-Za-z0-9_.%+/@-])@([^\\s@]*)$/u)\n const start = match ? cursor - match[0].length : cursor\n const prefix = text.value.slice(0, start)\n const replacement = `@${option.label} `\n text.value = prefix + replacement + after\n if (option.id !== 'all' && !chosenMentionIds.value.includes(option.id)) chosenMentionIds.value.push(option.id)\n nextTick(() => {\n const pos = prefix.length + replacement.length\n el.setSelectionRange(pos, pos)\n })\n }\n menuKind.value = null\n nextTick(() => { el.focus(); autoSize() })\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (menuKind.value && menuOptions.value.length) {\n if (event.key === 'ArrowDown') {\n event.preventDefault(); menuIndex.value = (menuIndex.value + 1) % menuOptions.value.length; return\n }\n if (event.key === 'ArrowUp') {\n event.preventDefault(); menuIndex.value = (menuIndex.value - 1 + menuOptions.value.length) % menuOptions.value.length; return\n }\n if (event.key === 'Escape') { event.preventDefault(); menuKind.value = null; return }\n if (event.key === 'Tab' || (event.key === 'Enter' && !event.shiftKey)) {\n event.preventDefault()\n const option = menuOptions.value[menuIndex.value]\n if (option) selectOption(option)\n return\n }\n }\n if (event.key !== 'Enter' || event.shiftKey) return\n if (isComposing.value || event.isComposing || event.keyCode === 229) return\n event.preventDefault()\n submit()\n}\n\nfunction endComposition() {\n requestAnimationFrame(() => {\n isComposing.value = false\n updateMenu()\n })\n}\n\nfunction submit() {\n if (!canSubmit.value) return\n const payload: ComposerSubmit = {\n text: text.value.trim(),\n files: attachments.value.map(item => item.file),\n mentionIds: [...chosenMentionIds.value],\n }\n emit('send', payload)\n nextTick(() => textarea.value?.focus())\n}\n\nfunction clearAfterSend(expected?: ReturnType<typeof submissionToken>) {\n if (expected) {\n if ((draftVersions.get(expected.key) ?? 0) !== expected.revision) return false\n if (expected.key !== draftStorageKey()) {\n if (expected.key) localStorage.removeItem(expected.key)\n return false\n }\n }\n text.value = ''\n chosenMentionIds.value = []\n persistDraft('')\n clearAttachments()\n resetHeight()\n nextTick(() => textarea.value?.focus())\n return true\n}\n\nfunction onWrapperMouseDown(event: MouseEvent) {\n const target = event.target as HTMLElement\n if (target.closest('button, input, textarea, [role=\"option\"], .composer-resize')) return\n textarea.value?.focus()\n}\n\nfunction formatTokens(value: number) {\n if (value >= 1_048_576) return `${(value / 1_048_576).toFixed(1)}m`\n if (value >= 1024) return `${(value / 1024).toFixed(1)}k`\n return `${value}`\n}\n\nfunction selectReasoningByIndex(event: Event) {\n const index = Number((event.target as HTMLInputElement).value)\n const option = props.reasoningOptions[index]\n if (option) emit('reasoningChange', option.id)\n}\n\nfunction onDocumentPointer(event: PointerEvent) {\n const target = event.target as HTMLElement\n if (!actionsAnchor.value?.contains(target)) closeActions()\n if (!target.closest('.composer-shell')) {\n menuKind.value = null\n reasoningOpen.value = false\n settingsOpen.value = false\n }\n}\n\nwatch(text, value => { persistDraft(value); nextTick(autoSize) })\nwatch(() => props.draftKey, () => {\n restoreDraft()\n reasoningOpen.value = false\n settingsOpen.value = false\n actionsOpen.value = false\n})\nwatch(() => props.disabled, value => { if (value) closeActions() })\n\nonMounted(() => {\n restoreDraft()\n document.addEventListener('pointerdown', onDocumentPointer)\n})\n\nonBeforeUnmount(() => {\n clearAttachments()\n window.clearTimeout(errorTimer)\n document.removeEventListener('pointerdown', onDocumentPointer)\n})\n\ndefineExpose({\n attachFiles: addFiles,\n filesSnapshot: () => attachments.value.map(attachment => attachment.file),\n focus: () => textarea.value?.focus(),\n clearAfterSend,\n submissionToken,\n})\n</script>\n\n<template>\n <div class=\"composer-area\">\n <div v-if=\"attachments.length\" class=\"composer-attachments\" aria-label=\"附件\">\n <div v-for=\"attachment in attachments\" :key=\"attachment.id\" class=\"composer-attachment\" :class=\"{ image: isImage(attachment.type) }\">\n <img v-if=\"attachment.previewUrl\" :src=\"attachment.previewUrl\" :alt=\"attachment.name\" />\n <AppIcon v-else name=\"file\" :size=\"19\" />\n <span><strong>{{ attachment.name }}</strong><small>{{ formatSize(attachment.size) }}</small></span>\n <button type=\"button\" :aria-label=\"`移除 ${attachment.name}`\" @click=\"removeAttachment(attachment.id)\"><AppIcon name=\"close\" :size=\"12\" /></button>\n </div>\n </div>\n\n <div v-if=\"reference\" class=\"composer-reference\">\n <AppIcon name=\"quote\" :size=\"14\" />\n <span><small>{{ reference.author ? `回复 ${reference.author}` : '回复消息' }}</small><strong>{{ reference.content.replace(/\\s+/g, ' ').trim() }}</strong></span>\n <button type=\"button\" aria-label=\"取消引用\" @click=\"emit('clearReference')\"><AppIcon name=\"close\" :size=\"13\" /></button>\n </div>\n\n <div v-if=\"mode === 'group'\" class=\"composer-activity-slot\">\n <Transition name=\"composer-activity\">\n <div v-if=\"activityText\" class=\"composer-activity\" role=\"status\" aria-label=\"机器人输入状态\" aria-live=\"polite\" aria-atomic=\"true\">\n <span class=\"composer-typing-dots\" aria-hidden=\"true\"><i /><i /><i /></span>\n <strong>{{ activityText }}</strong>\n </div>\n </Transition>\n </div>\n\n <slot name=\"before-input\" />\n\n <div\n class=\"composer-shell\"\n :class=\"{ 'composer-shell--drag': dragOver, 'composer-shell--disabled': disabled }\"\n @mousedown=\"onWrapperMouseDown\"\n @dragenter=\"onDragEnter\"\n @dragover=\"onDragOver\"\n @dragleave=\"onDragLeave\"\n @drop=\"onDrop\"\n >\n <input ref=\"fileInput\" class=\"composer-file-input\" type=\"file\" multiple @change=\"onFiles\" />\n <div class=\"composer-resize\" title=\"拖动调整高度;双击复位\" @pointerdown=\"startResize\" @dblclick=\"resetHeight\" />\n\n <div v-if=\"hasContext\" class=\"composer-context\" :class=\"{ warning: contextPercent > 80 }\" :title=\"contextEstimated ? 'Hermes 未提供实时上下文用量;此数值按当前会话内容估算。' : undefined\">\n <span>{{ contextEstimated ? '约 ' : '' }}{{ formatTokens(contextUsed) }} / {{ formatTokens(contextLimit) }} · 剩余 {{ formatTokens(remainingContextTokens) }}</span>\n <i><b :style=\"{ width: `${contextPercent}%` }\" /></i>\n </div>\n\n <textarea\n ref=\"textarea\"\n v-model=\"text\"\n class=\"composer-textarea\"\n :style=\"manualHeight !== null ? { height: `${manualHeight}px` } : undefined\"\n rows=\"1\"\n :disabled=\"disabled\"\n :placeholder=\"deliveryAvailable && deliveryMode ? '描述希望团队交付的结果…' : placeholder\"\n @input=\"updateMenu\"\n @click=\"updateMenu\"\n @keydown=\"handleKeydown\"\n @paste=\"onPaste\"\n @compositionstart=\"isComposing = true\"\n @compositionend=\"endComposition\"\n />\n\n <div class=\"composer-toolbar\">\n <div class=\"composer-tools\">\n <div v-if=\"hasGroupActions\" ref=\"actionsAnchor\" class=\"composer-popover-anchor composer-actions-anchor\" @keydown=\"actionsKeydown\">\n <button ref=\"actionsTrigger\" class=\"composer-tool composer-add\" type=\"button\" :disabled=\"disabled\" aria-label=\"添加\" aria-haspopup=\"menu\" :aria-expanded=\"actionsOpen\" @click=\"openActions\" @keydown.down.prevent=\"!actionsOpen && openActions()\">\n <AppIcon name=\"plus\" :size=\"20\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"actionsOpen\" class=\"composer-popover composer-add-menu\" role=\"menu\" aria-label=\"添加到消息\">\n <button type=\"button\" role=\"menuitem\" :disabled=\"!attachmentsEnabled\" @click=\"chooseAttachment\"><AppIcon name=\"paperclip\" :size=\"20\" /><span>添加附件</span></button>\n <button v-if=\"mentionOptions.length\" type=\"button\" role=\"menuitem\" @click=\"startMention\"><At class=\"composer-action-icon\" aria-hidden=\"true\" /><span>提及成员</span></button>\n <template v-if=\"deliveryAvailable\">\n <div class=\"composer-add-menu__divider\" role=\"separator\" />\n <button type=\"button\" role=\"menuitem\" :disabled=\"deliveryDisabled || sending\" @click=\"changeDeliveryMode(!deliveryMode)\">\n <Target class=\"composer-action-icon\" aria-hidden=\"true\" /><span><strong>交付目标</strong><small>{{ deliveryDisabledReason || (deliveryMode ? '已开启;点击返回普通聊天' : '让团队持续完成一个结果') }}</small></span><AppIcon v-if=\"deliveryMode\" name=\"check\" :size=\"16\" />\n </button>\n </template>\n </div>\n </Transition>\n </div>\n <button v-else class=\"composer-tool composer-tool--icon\" type=\"button\" :disabled=\"disabled || !attachmentsEnabled\" :title=\"attachmentsEnabled ? '添加附件' : '当前上游不支持附件'\" aria-label=\"添加附件\" @click=\"fileInput?.click()\">\n <AppIcon name=\"paperclip\" :size=\"16\" />\n </button>\n <button v-if=\"deliveryAvailable && deliveryMode\" class=\"composer-delivery-chip\" type=\"button\" :disabled=\"disabled || deliveryDisabled || sending\" aria-label=\"关闭交付目标,返回普通聊天\" title=\"关闭交付目标,返回普通聊天\" @click=\"changeDeliveryMode(false)\">\n <Target class=\"composer-action-icon\" aria-hidden=\"true\" /><span>交付目标</span><AppIcon name=\"close\" :size=\"15\" />\n </button>\n <div v-if=\"mode === 'chat'\" class=\"composer-popover-anchor\">\n <button class=\"composer-tool\" type=\"button\" :class=\"{ active: reasoningOpen }\" :disabled=\"disabled || !reasoningOptions.length\" :title=\"`推理强度:${reasoningLabel}`\" :aria-label=\"`推理强度:${reasoningLabel}`\" :aria-expanded=\"reasoningOpen\" @click=\"reasoningOpen = !reasoningOpen; settingsOpen = false\">\n <AppIcon name=\"brain\" :size=\"16\" /><span>{{ reasoningLabel }}</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"reasoningOpen\" class=\"composer-popover composer-popover--reasoning\" role=\"dialog\" aria-label=\"推理强度\">\n <div class=\"composer-popover__heading\"><span>推理强度</span><strong>{{ reasoningLabel }}</strong></div>\n <input class=\"reasoning-slider\" type=\"range\" :min=\"0\" :max=\"Math.max(0, reasoningOptions.length - 1)\" step=\"1\" :value=\"reasoningOptionIndex\" @input=\"selectReasoningByIndex\" />\n <div class=\"composer-popover__range\"><span>{{ reasoningOptions[0]?.label || '默认' }}</span><span>{{ reasoningOptions.at(-1)?.label || '最大' }}</span></div>\n </div>\n </Transition>\n </div>\n <div v-if=\"mode === 'chat'\" class=\"composer-popover-anchor\">\n <button class=\"composer-tool\" type=\"button\" :class=\"{ active: settingsOpen }\" :disabled=\"disabled\" title=\"设置\" aria-label=\"设置\" :aria-expanded=\"settingsOpen\" @click=\"settingsOpen = !settingsOpen; reasoningOpen = false\">\n <AppIcon name=\"settings\" :size=\"16\" /><span>设置</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <Transition name=\"composer-menu\">\n <div v-if=\"settingsOpen\" class=\"composer-popover composer-popover--settings\" role=\"dialog\" aria-label=\"输入设置\">\n <button class=\"composer-setting-row\" type=\"button\" role=\"switch\" :aria-checked=\"toolTraceVisible\" @click=\"emit('settingsClick')\">\n <span><AppIcon name=\"brain\" :size=\"15\" />显示思考</span>\n <AppIcon v-if=\"toolTraceVisible\" name=\"check\" :size=\"16\" />\n </button>\n <button class=\"composer-setting-row\" type=\"button\" title=\"首版暂未启用语音输入\" @click=\"showError('语音输入尚未启用')\">\n <span>语音输入设置</span>\n </button>\n </div>\n </Transition>\n </div>\n <button v-else class=\"composer-tool\" type=\"button\" :class=\"{ active: toolTraceVisible }\" :disabled=\"disabled\" title=\"显示思考\" @click=\"emit('toolTraceToggle')\">\n <AppIcon name=\"brain\" :size=\"16\" /><span>思考</span>\n </button>\n <button v-if=\"mode === 'chat'\" class=\"composer-tool composer-tool--model\" type=\"button\" :disabled=\"disabled\" :title=\"modelLabel\" @click=\"emit('modelClick')\">\n <AppIcon name=\"model\" :size=\"15\" /><span>{{ compactModel }}</span><AppIcon name=\"chevron-down\" :size=\"11\" />\n </button>\n <button\n v-if=\"mode === 'chat'\"\n class=\"composer-tool composer-tool--icon composer-fast-mode\"\n :class=\"{ active: fastMode }\"\n type=\"button\"\n :disabled=\"disabled || fastModeDisabled\"\n :aria-pressed=\"fastMode\"\n :aria-label=\"`快速模式:${fastMode ? '已开启' : '已关闭'}`\"\n title=\"快速模式:响应更快,消耗更多额度\"\n @click=\"emit('fastModeToggle', !fastMode)\"\n >\n <AppIcon name=\"bolt\" :size=\"15\" />\n </button>\n <button v-else-if=\"mentionOptions.length\" type=\"button\" class=\"composer-tool composer-mention-hint\" :disabled=\"disabled\" aria-label=\"提及成员\" @click=\"startMention\"><At class=\"composer-action-icon\" aria-hidden=\"true\" /><span>提及成员</span></button>\n </div>\n <div class=\"composer-actions\">\n <button v-if=\"mode === 'chat' && streaming && canSubmit\" class=\"queue-toggle\" :class=\"{ active: queueMode }\" type=\"button\" :title=\"queueMode ? '消息将排队发送' : '消息将 Steer 当前会话'\" @click=\"emit('queueToggle')\">\n {{ queueMode ? '排队' : 'Steer' }}\n </button>\n <span v-if=\"sending\" class=\"composer-sending\" role=\"status\" aria-live=\"polite\"><i />正在发送</span>\n <span v-if=\"canStop && !showStop\" class=\"composer-stop-hitbox\">\n <button class=\"composer-stop\" type=\"button\" aria-label=\"停止生成\" title=\"停止生成\" @click=\"emit('stop')\">\n <AppIcon name=\"stop\" :size=\"15\" />\n </button>\n </span>\n <span class=\"composer-send-hitbox\">\n <button\n class=\"composer-send\"\n :class=\"{ 'composer-send--stop': showStop }\"\n type=\"button\"\n :disabled=\"showStop ? false : !canSubmit\"\n :aria-label=\"showStop ? '停止生成' : '发送消息'\"\n @click=\"showStop ? emit('stop') : submit()\"\n >\n <AppIcon :name=\"showStop ? 'stop' : 'arrow-up'\" :size=\"showStop ? 17 : 17\" />\n </button>\n </span>\n </div>\n </div>\n\n <Transition name=\"composer-menu\">\n <div v-if=\"menuKind && menuOptions.length\" class=\"composer-menu\" role=\"listbox\">\n <div class=\"composer-menu__label\">{{ menuKind === 'mention' ? '提及机器人' : '命令' }}</div>\n <button\n v-for=\"(option, index) in menuOptions\"\n :key=\"option.id\"\n type=\"button\"\n role=\"option\"\n :aria-selected=\"index === menuIndex\"\n :disabled=\"option.disabled\"\n :class=\"{ active: index === menuIndex }\"\n @mousedown.prevent=\"selectOption(option)\"\n @mouseenter=\"menuIndex = index\"\n >\n <span class=\"composer-menu__avatar\">{{ menuKind === 'mention' ? option.label.slice(0, 1).toUpperCase() : '/' }}</span>\n <span><strong>{{ menuKind === 'mention' ? `@${option.label}` : `/${option.label}` }}</strong><small v-if=\"option.detail\">{{ option.detail }}</small></span>\n <em v-if=\"option.disabled\">不可用</em>\n </button>\n </div>\n </Transition>\n\n <div v-if=\"dragOver\" class=\"composer-drop-hint\"><AppIcon name=\"paperclip\" :size=\"20\" />松开以添加附件</div>\n </div>\n <Transition name=\"composer-menu\"><p v-if=\"localError\" class=\"composer-error\" role=\"alert\">{{ localError }}</p></Transition>\n </div>\n</template>\n\n<style scoped>\n.composer-area { position: relative; z-index: 12; flex: 0 0 auto; padding: 12px max(24px, calc((100% - 760px) / 2)) max(18px, env(safe-area-inset-bottom)); background: var(--conversation-canvas); }\n.composer-activity-slot { display: flex; width: 100%; max-width: 760px; min-height: 20px; margin: 0 auto 3px; align-items: center; }\n.composer-activity { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10px; }\n.composer-activity strong { overflow: hidden; color: var(--text-secondary); font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }\n.composer-typing-dots { display: inline-flex; align-items: center; gap: 2px; }.composer-typing-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: composer-typing 1.05s ease-in-out infinite; }.composer-typing-dots i:nth-child(2) { animation-delay: 140ms; }.composer-typing-dots i:nth-child(3) { animation-delay: 280ms; }\n@keyframes composer-typing { 0%, 65%, 100% { opacity: .3; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-2px); } }\n.composer-activity-enter-active, .composer-activity-leave-active { transition: opacity 120ms ease, transform 120ms var(--ease-out); }.composer-activity-enter-from, .composer-activity-leave-to { opacity: 0; transform: translateY(3px); }\n.composer-shell { position: relative; display: flex; width: 100%; min-height: 72px; max-width: 760px; margin-inline: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 13px 14px 9px; border: 1px solid var(--input-border-color); border-radius: 18px; background: var(--chat-composer-bg); box-shadow: 0 8px 24px rgba(41,36,39,.06); cursor: text; transition: border-color 140ms ease, box-shadow 150ms ease, background-color 140ms ease; }\n.dark .composer-shell { box-shadow: 0 8px 28px rgba(0,0,0,.32); }\n.composer-shell:hover:not(:focus-within) { border-color: var(--input-border-hover-color); }\n.composer-shell:focus-within { border-color: var(--input-border-focus-color); box-shadow: 0 10px 32px rgba(0,0,0,.11); }\n.dark .composer-shell:focus-within { box-shadow: 0 12px 34px rgba(0,0,0,.4); }\n.composer-shell--drag { border-color: var(--text-primary) !important; background: color-mix(in srgb, var(--chat-composer-bg) 90%, var(--text-primary)); }\n.composer-shell--disabled { opacity: .68; }\n.composer-file-input { display: none; }\n.composer-resize { position: absolute; z-index: 4; top: -5px; left: 9px; right: 9px; height: 10px; border-radius: 999px; cursor: row-resize; touch-action: none; }\n.composer-resize:hover::after { content: ''; position: absolute; top: 4px; left: 38%; right: 38%; height: 2px; border-radius: 2px; background: var(--line-strong); }\n.composer-textarea { display: block; width: 100%; min-height: 30px; max-height: 400px; flex: 1 1 auto; padding: 0; border: 0; outline: 0; resize: none; overflow-y: auto; background: none; color: var(--text-primary); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; }\n.composer-textarea::placeholder { overflow: hidden; color: var(--input-placeholder-color); opacity: 1; text-overflow: ellipsis; white-space: nowrap; }\n.composer-textarea:disabled { cursor: not-allowed; }\n.composer-context { position: absolute; z-index: 1; top: 8px; right: 14px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); color: var(--text-muted); font-size: 10px; pointer-events: none; }\n.composer-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.composer-context.warning { color: var(--warning); }\n.composer-context i { display: block; width: 60px; height: 4px; flex: 0 0 60px; overflow: hidden; border-radius: 3px; background: var(--surface-hover); }\n.composer-context b { display: block; height: 100%; border-radius: inherit; background: currentColor; transition: width 220ms ease; }\n.composer-context + .composer-textarea { padding-top: 9px; }\n.composer-toolbar { display: flex; min-height: 32px; margin-top: auto; align-items: center; justify-content: space-between; gap: 12px; }\n.composer-tools, .composer-actions { display: flex; min-width: 0; align-items: center; gap: 5px; }\n.composer-tools { flex: 1; }\n.composer-actions { flex: 0 0 auto; gap: 7px; }\n.composer-popover-anchor { position: relative; display: flex; flex: 0 0 auto; }\n.composer-action-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }\n.composer-tool.composer-add { width: 36px; height: 36px; padding: 0; background: var(--surface-soft); color: var(--text-primary); }\n.composer-popover.composer-add-menu { width: min(280px, calc(100vw - 64px)); padding: 8px; cursor: default; }\n.composer-add-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }\n.composer-add-menu button:hover:not(:disabled) { background: var(--surface-hover); }\n.composer-add-menu button:disabled { opacity: .5; cursor: not-allowed; }\n.composer-add-menu button > span { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }\n.composer-add-menu strong { font-weight: 500; }\n.composer-add-menu small { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }\n.composer-add-menu__divider { height: 1px; margin: 6px 12px; background: var(--line); }\n.composer-delivery-chip { --goal-color: var(--delivery-accent); display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--goal-color) 12%, transparent); color: var(--goal-color); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }\n.composer-delivery-chip:hover:not(:disabled) { background: color-mix(in srgb, var(--goal-color) 18%, transparent); }\n.composer-delivery-chip:disabled { opacity: .5; cursor: not-allowed; }\n.composer-add:focus-visible, .composer-add-menu button:focus-visible, .composer-delivery-chip:focus-visible, .composer-mention-hint:focus-visible { outline: 2px solid var(--workflow-accent); outline-offset: 2px; }\n.composer-tool { display: inline-flex; min-width: 28px; height: 28px; max-width: 175px; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; white-space: nowrap; }\n.composer-tool:hover, .composer-tool.active { background: var(--surface-hover); color: var(--text-primary); }\n.composer-tool:disabled { cursor: not-allowed; opacity: .36; }\n.composer-tool span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.composer-tool--icon { width: 28px; padding: 0; }\n.composer-tool--model { min-width: 0; }\n.composer-fast-mode.active { background: color-mix(in srgb, #1677ff 12%, transparent); color: #1677ff; }\n.composer-fast-mode.active:hover { background: color-mix(in srgb, #1677ff 18%, transparent); color: #1677ff; }\n.dark .composer-fast-mode.active { color: #4c9aff; }\n.composer-mention-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 11px; }\n.composer-mention-hint b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--surface-soft); color: var(--text-secondary); font-size: 12px; }\n.composer-popover { position: absolute; z-index: 30; bottom: calc(100% + 10px); left: 0; width: min(320px, calc(100vw - 48px)); padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow-float); }\n.composer-popover--reasoning { --reasoning-accent: #e8a735; }\n.composer-popover__heading, .composer-popover__range { display: flex; align-items: center; justify-content: space-between; gap: 16px; }\n.composer-popover__heading { margin-bottom: 12px; color: var(--text-secondary); font-size: 12px; }\n.composer-popover__heading strong { color: var(--reasoning-accent); font-weight: 650; }\n.composer-popover__range { margin-top: 8px; color: var(--text-muted); font-size: 9px; }\n.reasoning-slider { display: block; width: 100%; height: 10px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 99px; background: linear-gradient(90deg, #38bdf8 0%, #22d3ee 20%, #34d399 40%, #facc15 62%, #fb923c 82%, #ef4444 100%); cursor: pointer; }\n.reasoning-slider::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: #f8fafc; box-shadow: 0 2px 8px rgba(24,18,44,.28); }\n.reasoning-slider::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #f8fafc; box-shadow: 0 2px 8px rgba(24,18,44,.28); }\n.composer-popover--settings { width: 220px; padding: 6px; }\n.composer-setting-row { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; }\n.composer-setting-row:hover { background: var(--surface-hover); color: var(--text-primary); }\n.composer-setting-row > span { display: inline-flex; align-items: center; gap: 7px; }\n.queue-toggle { height: 26px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; }\n.queue-toggle:hover, .queue-toggle.active { background: var(--surface-hover); color: var(--text-primary); }\n.composer-send-hitbox { display: grid; place-items: center; width: 34px; height: 34px; }\n.composer-stop-hitbox { display: grid; place-items: center; width: 30px; height: 34px; }\n.composer-send { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--text-on-solid); cursor: pointer; box-shadow: 0 4px 12px rgba(41,36,39,.18); transition: transform 150ms ease, box-shadow 150ms ease; }\n.composer-send:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(41,36,39,.22); }\n.composer-send:disabled { cursor: not-allowed; background: #9f9f9f; color: #fff; }\n.composer-send--stop { background: var(--accent); }\n.composer-stop { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--text-secondary); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }\n.composer-stop:hover { color: var(--danger); border-color: var(--danger); }\n.composer-sending { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.composer-sending i { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); animation: composer-pulse 1s ease-in-out infinite; }\n@keyframes composer-pulse { 50% { opacity: .25; transform: scale(.7); } }\n.composer-attachments { display: flex; width: 100%; max-width: 760px; margin: 0 auto 9px; flex-wrap: wrap; gap: 7px; }\n.composer-attachment { position: relative; display: flex; max-width: 210px; min-height: 48px; align-items: center; gap: 8px; padding: 6px 28px 6px 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); color: var(--text-secondary); }\n.composer-attachment.image { width: 64px; height: 64px; padding: 0; }\n.composer-attachment img { width: 100%; height: 100%; object-fit: cover; }\n.composer-attachment > span { display: flex; min-width: 0; flex-direction: column; }\n.composer-attachment strong, .composer-attachment small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.composer-attachment strong { color: var(--text-primary); font-size: 10px; font-weight: 560; }.composer-attachment small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }\n.composer-attachment > button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.52); color: #fff; cursor: pointer; }\n.composer-reference { display: flex; width: calc(100% - 16px); max-width: 744px; min-height: 36px; margin: 0 auto 8px; align-items: center; gap: 9px; padding: 5px 7px 5px 10px; border-left: 2px solid var(--text-muted); border-radius: 7px; background: var(--surface-soft); color: var(--text-muted); }\n.composer-reference > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }\n.composer-reference small { font-size: 9px; }.composer-reference strong { overflow: hidden; color: var(--text-secondary); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }\n.composer-reference button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }\n.composer-reference button:hover { background: var(--surface-hover); color: var(--text-primary); }\n.composer-menu { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(100% + 8px); max-height: 280px; padding: 5px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow-float); }\n.composer-menu__label { padding: 5px 8px 7px; color: var(--text-muted); font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }\n.composer-menu button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); cursor: pointer; text-align: left; }\n.composer-menu button.active, .composer-menu button:hover { background: var(--surface-hover); }\n.composer-menu button:disabled { cursor: not-allowed; opacity: .48; }\n.composer-menu__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 11px; }\n.composer-menu button > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }.composer-menu strong { font-size: 11px; }.composer-menu small { overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.composer-menu em { color: var(--text-muted); font-size: 9px; font-style: normal; }\n.composer-drop-hint { position: absolute; z-index: 25; inset: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 13px; background: color-mix(in srgb, var(--chat-composer-bg) 90%, transparent); color: var(--text-secondary); font-size: 12px; backdrop-filter: blur(5px); pointer-events: none; }\n.composer-error { position: absolute; right: max(24px, calc((100% - 760px) / 2)); bottom: calc(100% - 8px); max-width: min(420px, calc(100% - 32px)); margin: 0; padding: 7px 10px; border-radius: 8px; background: var(--danger); color: #fff; box-shadow: var(--shadow-float); font-size: 10px; }\n.composer-menu-enter-active, .composer-menu-leave-active { transition: opacity 120ms ease, transform 120ms var(--ease-out); }.composer-menu-enter-from, .composer-menu-leave-to { opacity: 0; transform: translateY(4px); }\n\n@media (max-width: 768px) {\n .composer-area { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }\n .composer-shell { min-height: 118px; }\n .composer-textarea { font-size: 16px; }\n .composer-textarea::placeholder { font-size: 13px; line-height: 1.35; }\n .composer-tool span, .composer-tool > :deep(svg:last-child), .composer-mention-hint span { display: none; }\n .composer-tool { width: 30px; min-width: 30px; padding: 0; }\n .composer-tools { gap: 3px; }\n .composer-mention-hint { display: none; }\n .composer-tool.composer-add { width: 44px; height: 44px; }\n .composer-add > :deep(svg:last-child) { display: block; }\n .composer-delivery-chip { min-height: 44px; padding-inline: 10px; }\n .composer-toolbar { align-items: flex-end; gap: 7px; }\n .composer-send-hitbox { width: 44px; height: 44px; margin: -5px; }\n .composer-send { width: 34px; min-width: 34px; height: 34px; }\n .composer-menu { left: 6px; right: 6px; }\n .composer-context { font-size: 8px; }\n .composer-context i { display: none; }\n .composer-popover { width: min(220px, calc(100vw - 96px)); }\n .composer-error { right: 12px; }\n}\n\n@media (max-width: 360px) {\n .queue-toggle { display: none; }\n .composer-toolbar { gap: 3px; }\n}\n</style>\n","import MarkdownIt from 'markdown-it'\nimport type { UiMessage } from '@/components/messages/types'\nimport { normalizeAssistantMediaMarkdown } from '@/utils/mediaMarkdown'\nimport { serverFileUrl } from '@shared/serverFiles'\nimport type { LibraryKind, UiLibraryItem } from './types'\n\nconst imageExtensions = new Set(['apng', 'avif', 'bmp', 'gif', 'heic', 'heif', 'ico', 'jfif', 'jpeg', 'jpg', 'jxl', 'png', 'svg', 'tif', 'tiff', 'webp'])\nconst videoExtensions = new Set(['avi', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'webm'])\n\nexport function previewItemFromUrl(name: string, url: string, id = `local:${url}`, kind?: LibraryKind): UiLibraryItem {\n const extension = name.split('.').at(-1)?.toLocaleLowerCase() || ''\n const inferred = imageExtensions.has(extension) ? 'image'\n : videoExtensions.has(extension) ? 'video'\n : ['mp3', 'wav', 'm4a', 'aac', 'ogg'].includes(extension) ? 'audio'\n : extension === 'pdf' ? 'pdf'\n : ['md', 'markdown', 'txt', 'json', 'yaml', 'yml', 'csv', 'js', 'ts', 'py', 'sh'].includes(extension) ? 'text' : 'file'\n return { id, name, kind: kind || inferred, previewUrl: url, downloadUrl: url }\n}\n\nexport function mediaUrlIdentity(url: string): string {\n try {\n const parsed = new URL(url, window.location.origin)\n if (parsed.origin === window.location.origin && parsed.pathname === '/api/files/download') {\n parsed.searchParams.delete('_retry')\n parsed.searchParams.sort()\n }\n if (parsed.origin === window.location.origin) parsed.pathname = parsed.pathname.replace(/(\\/api\\/app\\/files\\/[^/]+)\\/(?:preview|download)$/, '$1')\n return parsed.href\n } catch {\n return url\n }\n}\n\nfunction nameFromUrl(url: string): string {\n try {\n const parsed = new URL(url, window.location.origin)\n const path = parsed.pathname === '/api/files/download' ? parsed.searchParams.get('path') || parsed.pathname : decodeURIComponent(parsed.pathname)\n return path.split('/').at(-1) || '媒体'\n } catch { return '媒体' }\n}\n\n/** The ordered image/video sequence visible in one normal or group conversation. */\nexport function mediaItemsFromMessages(messages: UiMessage[]): UiLibraryItem[] {\n const result: UiLibraryItem[] = []\n const seen = new Set<string>()\n const append = (item: UiLibraryItem) => {\n if (!item.previewUrl || !['image', 'video'].includes(item.kind)) return\n const identity = mediaUrlIdentity(item.previewUrl)\n if (seen.has(identity)) return\n seen.add(identity)\n result.push(item)\n }\n const md = new MarkdownIt({ html: false })\n const validate = md.validateLink\n md.validateLink = source => Boolean(serverFileUrl(source)) || validate(source)\n for (const message of messages) {\n if (!['user', 'assistant'].includes(message.role) && !message.communication) continue\n const appendAttachment = (id: string) => {\n const attachment = message.attachments?.find(item => item.id === id)\n if (attachment?.url && ['image', 'video'].includes(attachment.kind || 'file')) {\n append(previewItemFromUrl(attachment.name, attachment.url, `${message.id}:${attachment.id}`, attachment.kind))\n }\n }\n const appendMarkdown = (source: string) => {\n if (message.role === 'user') return\n const content = normalizeAssistantMediaMarkdown(source, message.status === 'streaming')\n for (const token of md.parse(content, {})) {\n for (const child of token.children ?? []) {\n const source = child.type === 'image' ? child.attrGet('src') : child.type === 'link_open' ? child.attrGet('href') : null\n if (!source) continue\n const url = serverFileUrl(source, message.profile) || source\n const attached = message.attachments?.find(item => item.url && mediaUrlIdentity(item.url) === mediaUrlIdentity(url))\n append(previewItemFromUrl(attached?.name || nameFromUrl(url), url, `${message.id}:${url}`, attached?.kind))\n }\n }\n }\n if (message.contentParts?.length) {\n for (const part of message.contentParts) {\n if ('text' in part) appendMarkdown(part.text)\n else appendAttachment(part.attachmentId)\n }\n } else appendMarkdown(message.content)\n for (const attachment of message.attachments ?? []) appendAttachment(attachment.id)\n }\n return result\n}\n","<script setup lang=\"ts\">\nimport type { SystemNoticeIcon } from '@/utils/systemMessageNotice'\nimport AppIcon from '@/components/common/AppIcon.vue'\n\ndefineProps<{ title: string; icon?: SystemNoticeIcon; href?: string; accessibleLabel?: string }>()\n</script>\n\n<template>\n <div class=\"system-message-notice\">\n <a v-if=\"href\" class=\"system-message-notice__label\" :href=\"href\" :aria-label=\"accessibleLabel || title\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span>{{ title }}</span>\n </a>\n <details v-else-if=\"$slots.default\">\n <summary class=\"system-message-notice__label\" :aria-label=\"accessibleLabel || `${title},查看详情`\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span role=\"status\">{{ title }}</span>\n </summary>\n <div class=\"system-message-notice__details\"><slot /></div>\n </details>\n <div v-else class=\"system-message-notice__label\" role=\"status\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span>{{ title }}</span>\n </div>\n </div>\n</template>\n\n<style scoped>\n.system-message-notice { width: 100%; min-width: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; text-align: center; }\n.system-message-notice__label { display: flex; width: fit-content; max-width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; margin: 0 auto; padding: 8px 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-weight: 400; text-decoration: none; list-style: none; overflow-wrap: anywhere; }\n.system-message-notice__label :deep(svg) { flex-shrink: 0; }\nsummary, a { cursor: pointer; }\nsummary::-webkit-details-marker { display: none; }\nsummary:hover, a:hover { color: var(--text-secondary); }\nsummary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }\n.system-message-notice__details { width: min(640px, 100%); max-height: 360px; box-sizing: border-box; overflow: auto; margin: 4px auto 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-secondary); background: var(--surface); text-align: left; overflow-wrap: anywhere; }\n.system-message-notice__details :deep(.markdown) { font-size: 13px; text-align: left; }\n</style>\n","<script setup lang=\"ts\">\nimport type { SystemNoticeIcon } from '@/utils/systemMessageNotice'\nimport AppIcon from '@/components/common/AppIcon.vue'\n\ndefineProps<{ title: string; icon?: SystemNoticeIcon; href?: string; accessibleLabel?: string }>()\n</script>\n\n<template>\n <div class=\"system-message-notice\">\n <a v-if=\"href\" class=\"system-message-notice__label\" :href=\"href\" :aria-label=\"accessibleLabel || title\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span>{{ title }}</span>\n </a>\n <details v-else-if=\"$slots.default\">\n <summary class=\"system-message-notice__label\" :aria-label=\"accessibleLabel || `${title},查看详情`\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span role=\"status\">{{ title }}</span>\n </summary>\n <div class=\"system-message-notice__details\"><slot /></div>\n </details>\n <div v-else class=\"system-message-notice__label\" role=\"status\">\n <AppIcon :name=\"icon || 'info'\" :size=\"16\" aria-hidden=\"true\" /><span>{{ title }}</span>\n </div>\n </div>\n</template>\n\n<style scoped>\n.system-message-notice { width: 100%; min-width: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; text-align: center; }\n.system-message-notice__label { display: flex; width: fit-content; max-width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; margin: 0 auto; padding: 8px 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-weight: 400; text-decoration: none; list-style: none; overflow-wrap: anywhere; }\n.system-message-notice__label :deep(svg) { flex-shrink: 0; }\nsummary, a { cursor: pointer; }\nsummary::-webkit-details-marker { display: none; }\nsummary:hover, a:hover { color: var(--text-secondary); }\nsummary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }\n.system-message-notice__details { width: min(640px, 100%); max-height: 360px; box-sizing: border-box; overflow: auto; margin: 4px auto 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-secondary); background: var(--surface); text-align: left; overflow-wrap: anywhere; }\n.system-message-notice__details :deep(.markdown) { font-size: 13px; text-align: left; }\n</style>\n","<script setup lang=\"ts\">\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { UiMessage } from './types'\ndefineProps<{ warnings: NonNullable<UiMessage['serviceWarnings']> }>()\n</script>\n<template>\n <div v-if=\"warnings.length\" class=\"service-warnings\" aria-label=\"服务状态提示\">\n <SystemMessageNotice v-for=\"(warning,index) in warnings\" :key=\"`${warning.service}:${warning.code}:${index}`\" :title=\"`${warning.service}:${warning.message}`\" icon=\"info\"/>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { UiMessage } from './types'\ndefineProps<{ warnings: NonNullable<UiMessage['serviceWarnings']> }>()\n</script>\n<template>\n <div v-if=\"warnings.length\" class=\"service-warnings\" aria-label=\"服务状态提示\">\n <SystemMessageNotice v-for=\"(warning,index) in warnings\" :key=\"`${warning.service}:${warning.code}:${index}`\" :title=\"`${warning.service}:${warning.message}`\" icon=\"info\"/>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { MessageFailure } from '@/utils/messageFailure'\ndefineProps<{ failure: MessageFailure }>()\n</script>\n\n<template>\n <SystemMessageNotice class=\"failure-notice\" :title=\"failure.title\" icon=\"info\">\n <p>{{ failure.hint }}</p>\n <pre v-if=\"failure.detail\">{{ failure.detail }}</pre>\n </SystemMessageNotice>\n</template>\n\n<style scoped>\n.failure-notice { margin-top: 6px; }\np { margin: 0 0 8px; }\npre { max-height: 240px; overflow: auto; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--font-code); }\n</style>\n","<script setup lang=\"ts\">\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { MessageFailure } from '@/utils/messageFailure'\ndefineProps<{ failure: MessageFailure }>()\n</script>\n\n<template>\n <SystemMessageNotice class=\"failure-notice\" :title=\"failure.title\" icon=\"info\">\n <p>{{ failure.hint }}</p>\n <pre v-if=\"failure.detail\">{{ failure.detail }}</pre>\n </SystemMessageNotice>\n</template>\n\n<style scoped>\n.failure-notice { margin-top: 6px; }\np { margin: 0 0 8px; }\npre { max-height: 240px; overflow: auto; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--font-code); }\n</style>\n","import type { UiMessage } from '@/components/messages/types'\n\nexport type MessageFailure = { title: string; hint: string; detail: string; key: string; replacesContent: boolean }\nconst failurePrefix = /^执行失败[::]\\s*/\n\n/** Presentation only: retain the original transcript and diagnostics for inspection. */\nexport function messageFailure(message: UiMessage): MessageFailure | undefined {\n if (message.communication || message.taskReference || message.role === 'tool') return\n if (message.status !== 'failed' && !message.error?.trim()) return\n const content = message.content.trim()\n const prefixed = message.role !== 'user' && message.status === 'failed' && failurePrefix.test(content)\n const error = message.error?.trim() || (prefixed ? content.replace(failurePrefix, '') : '')\n if (!error && message.status !== 'failed') return\n const providerNotice = message.role === 'assistant' && message.status === 'failed'\n && content.includes('Provider said:') && /didn[’']t respond in time on any of \\d+ attempts/.test(content)\n const replacesContent = message.role !== 'user' && (prefixed || providerNotice || (!!error && content === error) || !content)\n const detail = [...new Set([replacesContent ? content.replace(failurePrefix, '') : '', error].filter(Boolean))]\n .filter((value, index, values) => !values.some((other, otherIndex) => otherIndex !== index && other.includes(value))).join('\\n\\n')\n const timeout = /timeout|timed?\\s*out|no SSE events|didn[’']t respond in time|超时/i.test(error || detail)\n return {\n title: message.role === 'user' ? '消息未发送' : timeout ? '响应超时' : '回复暂时中断',\n hint: message.role === 'user' ? '请检查连接后重新发送。' : '请稍后重试,或切换模型。',\n detail, key: error || detail, replacesContent,\n }\n}\n\n/** Fold only the scheduler's immediately repeated system failure, never a user's message. */\nexport function collapseDuplicateFailures(messages: UiMessage[]): UiMessage[] {\n return messages.filter((message, index) => {\n const previous = messages[index - 1]\n if (!previous || previous.role !== 'assistant' || message.role !== 'system' || !/^执行失败[::]/.test(message.content)) return true\n const failure = messageFailure(message), prior = messageFailure(previous)\n if (!failure?.key || failure.key !== prior?.key || message.attachments?.length || message.tools?.length || message.reasoning) return true\n if (message.runId && previous.runId) return message.runId !== previous.runId\n const at = new Date(message.createdAt ?? '').getTime(), before = new Date(previous.createdAt ?? '').getTime()\n return !Number.isFinite(at) || !Number.isFinite(before) || at < before || at - before > 2000\n })\n}\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport SystemMessageNotice from '@/components/messages/SystemMessageNotice.vue'\n\nconst props = defineProps<{\n content: string\n taskReference: { conversationId: string; taskId: string }\n}>()\n\nconst lines = computed(() => props.content\n .split(/\\r?\\n/)\n .map(line => line.trim())\n .filter(line => line && !/^\\[打开任务\\]\\(/.test(line)))\n\nconst waitingForReview = computed(() => props.content.includes('等待管理员复核'))\nconst title = computed(() => waitingForReview.value ? '任务已有新结果' : props.content.includes('已完成') ? '任务已完成' : '任务状态已更新')\nconst context = computed(() => {\n const match = lines.value[0]?.match(/^「([^」]+)」的任务「([^」]+)」/)\n return match ? `${match[1]} · ${match[2]}` : lines.value[0] || '团队交付任务'\n})\nconst supporting = computed(() => {\n if (waitingForReview.value) return '等待管理员复核后继续'\n return lines.value.slice(1).join(' ') || '打开任务查看完整交付与验收状态'\n})\nconst href = computed(() => `/conversations/${encodeURIComponent(props.taskReference.conversationId)}?taskId=${encodeURIComponent(props.taskReference.taskId)}`)\n</script>\n\n<template>\n <SystemMessageNotice class=\"task-result-notice\" :title=\"title\" :icon=\"waitingForReview ? 'file' : 'check'\" :href=\"href\" :accessible-label=\"`${title},${context},${supporting},打开任务`\" />\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport SystemMessageNotice from '@/components/messages/SystemMessageNotice.vue'\n\nconst props = defineProps<{\n content: string\n taskReference: { conversationId: string; taskId: string }\n}>()\n\nconst lines = computed(() => props.content\n .split(/\\r?\\n/)\n .map(line => line.trim())\n .filter(line => line && !/^\\[打开任务\\]\\(/.test(line)))\n\nconst waitingForReview = computed(() => props.content.includes('等待管理员复核'))\nconst title = computed(() => waitingForReview.value ? '任务已有新结果' : props.content.includes('已完成') ? '任务已完成' : '任务状态已更新')\nconst context = computed(() => {\n const match = lines.value[0]?.match(/^「([^」]+)」的任务「([^」]+)」/)\n return match ? `${match[1]} · ${match[2]}` : lines.value[0] || '团队交付任务'\n})\nconst supporting = computed(() => {\n if (waitingForReview.value) return '等待管理员复核后继续'\n return lines.value.slice(1).join(' ') || '打开任务查看完整交付与验收状态'\n})\nconst href = computed(() => `/conversations/${encodeURIComponent(props.taskReference.conversationId)}?taskId=${encodeURIComponent(props.taskReference.taskId)}`)\n</script>\n\n<template>\n <SystemMessageNotice class=\"task-result-notice\" :title=\"title\" :icon=\"waitingForReview ? 'file' : 'check'\" :href=\"href\" :accessible-label=\"`${title},${context},${supporting},打开任务`\" />\n</template>\n","import type { UiMessage } from '@/components/messages/types'\n\n/** System events are navigation/disclosures, never part of an assistant's prose. */\nexport type SystemNoticeIcon = 'info' | 'branch' | 'groups' | 'tools' | 'archive' | 'check' | 'settings' | 'file' | 'brain'\n\nexport function systemMessageNotice(message: UiMessage): { title: string; icon: SystemNoticeIcon } | undefined {\n if (message.communication || message.role === 'user') return\n if (message.timelineKind === 'delegation-complete') return { title: '子任务已完成', icon: 'groups' }\n if (message.timelineKind === 'background-process') {\n const code = message.timelineMetadata?.exit_code\n const signal = message.timelineMetadata?.signal\n return { title: signal ? '后台子任务已终止' : code === undefined || code === null ? '后台子任务已结束' : Number(code) === 0 ? '后台子任务已完成' : '后台子任务失败', icon: 'tools' }\n }\n if (message.role !== 'system' && message.timelineKind !== 'system') return\n const content = message.content.trim()\n if (message.timelineMetadata?.eventKind === 'compaction' || /^\\[context compaction/i.test(content)) return { title: '上下文已压缩', icon: 'archive' }\n if (/^(?:由管理员分派的子任务|(?:已)?分派(?:了)?(?:终审|子)?任务)/.test(content)) return { title: '已分派子任务', icon: 'branch' }\n if (/^执行失败[::]/.test(content)) return { title: /timeout|timed?\\s*out|超时|no SSE events/i.test(content) ? '响应超时' : '回复暂时中断', icon: 'info' }\n if (/^(?:回复重点|重点提示)[::]?/.test(content)) return { title: '回复重点', icon: 'info' }\n if (/^(?:任务|子任务).*(?:已完成|完成通知)/.test(content.split('\\n')[0] || '')) return { title: '任务已完成', icon: 'check' }\n const model = content.match(/(?:changed to|切换为)\\s*([^\\s,。\\]]+?)(?=\\s+via\\b|\\s*$|\\])/i)?.[1]\n return { title: model ? '模型已切换' : '系统提示', icon: model ? 'settings' : 'info' }\n}\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport type { UiMessage } from './types'\nimport { systemMessageNotice } from '@/utils/systemMessageNotice'\nimport MarkdownContent from './MarkdownContent.vue'\nimport SystemMessageNotice from './SystemMessageNotice.vue'\n\nconst props = defineProps<{ message: UiMessage }>()\nconst notice = computed(() => systemMessageNotice(props.message))\nconst metadata = computed(() => {\n const data = props.message.timelineMetadata\n if (!data) return ''\n if (props.message.timelineKind === 'delegation-complete') {\n const completed = Number(data.completed_count ?? 0)\n const failed = Number(data.failed_count ?? 0)\n const seconds = Number(data.duration_seconds ?? 0)\n const duration = seconds > 0 ? ` · 耗时 ${Math.round(seconds)} 秒` : ''\n return `${Number(data.task_count) || completed + failed || 1} 个子任务 · ${completed} 已完成 · ${failed} 失败${duration}`\n }\n if (props.message.timelineKind === 'background-process') return [data.exit_code != null ? `退出码:${data.exit_code}` : '', data.signal ? `信号:${data.signal}` : ''].filter(Boolean).join(' · ')\n return ''\n})\n</script>\n\n<template>\n <SystemMessageNotice v-if=\"notice\" :title=\"notice.title\" :icon=\"notice.icon\">\n <p v-if=\"metadata\">{{ metadata }}</p>\n <MarkdownContent v-if=\"message.content\" process-content :content=\"message.content\" />\n </SystemMessageNotice>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport type { UiMessage } from './types'\nimport { systemMessageNotice } from '@/utils/systemMessageNotice'\nimport MarkdownContent from './MarkdownContent.vue'\nimport SystemMessageNotice from './SystemMessageNotice.vue'\n\nconst props = defineProps<{ message: UiMessage }>()\nconst notice = computed(() => systemMessageNotice(props.message))\nconst metadata = computed(() => {\n const data = props.message.timelineMetadata\n if (!data) return ''\n if (props.message.timelineKind === 'delegation-complete') {\n const completed = Number(data.completed_count ?? 0)\n const failed = Number(data.failed_count ?? 0)\n const seconds = Number(data.duration_seconds ?? 0)\n const duration = seconds > 0 ? ` · 耗时 ${Math.round(seconds)} 秒` : ''\n return `${Number(data.task_count) || completed + failed || 1} 个子任务 · ${completed} 已完成 · ${failed} 失败${duration}`\n }\n if (props.message.timelineKind === 'background-process') return [data.exit_code != null ? `退出码:${data.exit_code}` : '', data.signal ? `信号:${data.signal}` : ''].filter(Boolean).join(' · ')\n return ''\n})\n</script>\n\n<template>\n <SystemMessageNotice v-if=\"notice\" :title=\"notice.title\" :icon=\"notice.icon\">\n <p v-if=\"metadata\">{{ metadata }}</p>\n <MarkdownContent v-if=\"message.content\" process-content :content=\"message.content\" />\n </SystemMessageNotice>\n</template>\n","<script setup lang=\"ts\">\nimport AgentAvatar from './AgentAvatar.vue'\n\ndefineProps<{\n avatarName: string\n avatar?: string\n}>()\n</script>\n\n<template>\n <div\n class=\"thinking-indicator\"\n role=\"status\"\n aria-live=\"polite\"\n aria-label=\"机器人正在输入\"\n data-testid=\"chat-run-thinking-dots\"\n >\n <AgentAvatar\n class=\"thinking-indicator__avatar\"\n :name=\"avatarName\"\n :avatar=\"avatar\"\n :size=\"20\"\n state=\"working\"\n aria-hidden=\"true\"\n />\n <span class=\"thinking-indicator__dots\" aria-hidden=\"true\">\n <i\n v-for=\"index in 3\"\n :key=\"index\"\n class=\"thinking-indicator__dot\"\n :style=\"{ '--dot-index': index - 1 }\"\n />\n </span>\n </div>\n</template>\n\n<style scoped>\n.thinking-indicator {\n display: flex;\n min-height: 34px;\n align-items: center;\n column-gap: 8px;\n margin: 5px 0 20px;\n color: var(--text-muted);\n}\n\n.thinking-indicator__dots {\n display: inline-flex;\n align-items: center;\n height: 16px;\n gap: 4px;\n}\n\n.thinking-indicator__dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--accent) 90%, transparent);\n animation: thinking-dot-bounce 0.9s ease-in-out infinite;\n animation-delay: calc(var(--dot-index) * 0.15s);\n}\n\n@keyframes thinking-dot-bounce {\n 0%, 55%, 100% { transform: translateY(0); }\n 28% { transform: translateY(-5px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .thinking-indicator__dot {\n animation: none;\n transform: none;\n }\n}\n</style>\n","<script setup lang=\"ts\">\nimport AgentAvatar from './AgentAvatar.vue'\n\ndefineProps<{\n avatarName: string\n avatar?: string\n}>()\n</script>\n\n<template>\n <div\n class=\"thinking-indicator\"\n role=\"status\"\n aria-live=\"polite\"\n aria-label=\"机器人正在输入\"\n data-testid=\"chat-run-thinking-dots\"\n >\n <AgentAvatar\n class=\"thinking-indicator__avatar\"\n :name=\"avatarName\"\n :avatar=\"avatar\"\n :size=\"20\"\n state=\"working\"\n aria-hidden=\"true\"\n />\n <span class=\"thinking-indicator__dots\" aria-hidden=\"true\">\n <i\n v-for=\"index in 3\"\n :key=\"index\"\n class=\"thinking-indicator__dot\"\n :style=\"{ '--dot-index': index - 1 }\"\n />\n </span>\n </div>\n</template>\n\n<style scoped>\n.thinking-indicator {\n display: flex;\n min-height: 34px;\n align-items: center;\n column-gap: 8px;\n margin: 5px 0 20px;\n color: var(--text-muted);\n}\n\n.thinking-indicator__dots {\n display: inline-flex;\n align-items: center;\n height: 16px;\n gap: 4px;\n}\n\n.thinking-indicator__dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--accent) 90%, transparent);\n animation: thinking-dot-bounce 0.9s ease-in-out infinite;\n animation-delay: calc(var(--dot-index) * 0.15s);\n}\n\n@keyframes thinking-dot-bounce {\n 0%, 55%, 100% { transform: translateY(0); }\n 28% { transform: translateY(-5px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .thinking-indicator__dot {\n animation: none;\n transform: none;\n }\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport type { UiInteraction } from './types'\n\nconst props = defineProps<{ interaction: UiInteraction; busy?: boolean }>()\nconst emit = defineEmits<{ approve: [approved: boolean]; clarify: [text: string] }>()\nconst selectedOption = ref('')\nconst customAnswer = ref('')\nconst answer = computed(() => customAnswer.value.trim() || selectedOption.value)\n\nfunction selectOption(option: string): void {\n selectedOption.value = option\n customAnswer.value = ''\n}\n\nfunction submit(): void {\n if (!answer.value || props.busy) return\n emit('clarify', answer.value)\n}\n\nwatch(() => props.interaction.id, () => {\n selectedOption.value = ''\n customAnswer.value = ''\n})\n</script>\n\n<template>\n <section class=\"interaction-card\" :class=\"`interaction-card--${interaction.kind}`\" aria-live=\"polite\" :aria-labelledby=\"`interaction-title-${interaction.id}`\">\n <span class=\"interaction-card__handle\" aria-hidden=\"true\" />\n <div class=\"interaction-card__heading\">\n <span class=\"interaction-card__icon\"><AppIcon :name=\"interaction.kind === 'approval' ? 'check' : 'chat'\" :size=\"18\" /></span>\n <div>\n <small>{{ interaction.kind === 'approval' ? '需要审批' : '需要你的回答' }}</small>\n <strong :id=\"`interaction-title-${interaction.id}`\">{{ interaction.title || interaction.prompt }}</strong>\n </div>\n </div>\n <p v-if=\"interaction.title\" class=\"interaction-card__prompt\">{{ interaction.prompt }}</p>\n <details v-if=\"interaction.detail\" class=\"interaction-card__details\"><summary>查看详情<AppIcon name=\"chevron-down\" :size=\"13\" /></summary><pre>{{ interaction.detail }}</pre></details>\n <div v-if=\"interaction.kind === 'approval'\" class=\"interaction-card__actions\">\n <button class=\"quiet-button\" type=\"button\" :disabled=\"busy\" @click=\"emit('approve', false)\">拒绝</button>\n <button class=\"solid-button\" type=\"button\" :disabled=\"busy\" @click=\"emit('approve', true)\">允许</button>\n </div>\n <form v-else class=\"interaction-card__answer\" @submit.prevent=\"submit\">\n <fieldset v-if=\"interaction.options?.length\" class=\"interaction-card__options\">\n <legend>请选择一个回答</legend>\n <label v-for=\"option in interaction.options\" :key=\"option\" :class=\"{ selected: selectedOption === option }\">\n <input v-model=\"selectedOption\" type=\"radio\" :value=\"option\" :disabled=\"busy\" @change=\"selectOption(option)\" />\n <span>{{ option }}</span>\n <AppIcon v-if=\"selectedOption === option\" name=\"check\" :size=\"15\" />\n </label>\n </fieldset>\n <div class=\"interaction-card__custom\">\n <label :for=\"`interaction-answer-${interaction.id}`\">其他回答</label>\n <div class=\"interaction-card__custom-row\">\n <textarea :id=\"`interaction-answer-${interaction.id}`\" v-model=\"customAnswer\" rows=\"2\" :disabled=\"busy\" placeholder=\"补充你的想法(可选)\" @input=\"selectedOption = ''\" />\n <button class=\"solid-button\" type=\"submit\" :disabled=\"busy || !answer\">\n {{ busy ? '提交中…' : '提交回答' }}<AppIcon v-if=\"!busy\" name=\"arrow-up\" :size=\"14\" />\n </button>\n </div>\n </div>\n <small class=\"interaction-card__hint\">选择预设答案,或输入你自己的回答</small>\n </form>\n </section>\n</template>\n\n<style scoped>\n.interaction-card {\n position: relative;\n width: min(640px, 100%);\n margin: 20px auto 4px;\n padding: 16px;\n border: 1px solid var(--line);\n border-radius: 16px;\n background: var(--surface-raised);\n box-shadow: 0 10px 34px color-mix(in srgb, var(--text-primary) 8%, transparent);\n box-sizing: border-box;\n}\n.interaction-card__handle { display: none; }\n.interaction-card__heading { display: flex; align-items: flex-start; gap: 12px; }\n.interaction-card__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--workflow-accent) 10%, var(--surface-soft)); color: var(--workflow-accent); }\n.interaction-card__heading > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }\n.interaction-card__heading small { color: var(--text-muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; }\n.interaction-card__heading strong { color: var(--text-primary); font-size: 15px; font-weight: 650; line-height: 1.5; }\n.interaction-card__prompt { margin: 10px 0 0 50px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }\n.interaction-card__details { margin: 10px 0 0 50px; color: var(--text-muted); font-size: 11px; }\n.interaction-card__details summary { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; cursor: pointer; list-style: none; }\n.interaction-card__details summary::-webkit-details-marker { display: none; }\n.interaction-card__details[open] summary .app-icon { transform: rotate(180deg); }\n.interaction-card__details pre { max-height: 180px; overflow: auto; font: 10px/1.55 var(--font-code); white-space: pre-wrap; }\n.interaction-card__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }\n.interaction-card button { min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-primary); cursor: pointer; font: 13px var(--font-ui); }\n.interaction-card button:hover:not(:disabled) { background: var(--surface-hover); }\n.interaction-card button:disabled { cursor: default; opacity: .5; }\n.interaction-card .solid-button { display: inline-flex; min-width: 112px; align-items: center; justify-content: center; gap: 7px; border-color: var(--workflow-accent); background: var(--workflow-accent); color: var(--workflow-on-accent); font-weight: 620; }\n.interaction-card .solid-button:hover:not(:disabled) { background: color-mix(in srgb, var(--workflow-accent) 88%, var(--text-primary)); }\n.interaction-card__answer { display: grid; gap: 10px; margin-top: 13px; }\n.interaction-card__options { display: grid; min-width: 0; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border: 0; }\n.interaction-card__options legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }\n.interaction-card__options label { display: grid; min-width: 0; min-height: 54px; align-items: center; gap: 9px; grid-template-columns: 18px minmax(0, 1fr) 16px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-sizing: border-box; color: var(--text-secondary); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }\n.interaction-card__options label:hover { border-color: var(--line-strong); background: var(--surface-hover); }\n.interaction-card__options label.selected { border-color: var(--workflow-accent); background: color-mix(in srgb, var(--workflow-accent) 6%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workflow-accent) 10%, transparent); color: var(--text-primary); }\n.interaction-card__options input { width: 17px; height: 17px; margin: 0; accent-color: var(--workflow-accent); cursor: pointer; }\n.interaction-card__options span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 560; line-height: 1.45; }\n.interaction-card__options .app-icon { color: var(--workflow-accent); }\n.interaction-card__custom { display: grid; gap: 6px; }\n.interaction-card__custom > label { color: var(--text-secondary); font-size: 11px; font-weight: 560; }\n.interaction-card__custom-row { display: flex; align-items: stretch; gap: 8px; }\n.interaction-card__custom textarea { width: 100%; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-soft); box-sizing: border-box; color: var(--text-primary); font: 13px/1.55 var(--font-ui); resize: vertical; }\n.interaction-card__custom textarea::placeholder { color: var(--input-placeholder-color); }\n.interaction-card__custom textarea:focus { border-color: var(--workflow-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent); }\n.interaction-card__hint { margin-top: -2px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }\n.interaction-card :is(button,input,textarea,summary):focus-visible { outline: 2px solid var(--workflow-accent); outline-offset: 2px; }\n\n@media (max-width: 768px) {\n .interaction-card { position: sticky; z-index: 5; bottom: 8px; width: 100%; margin: 22px auto 0; padding: 24px 14px max(16px, env(safe-area-inset-bottom)); border-radius: 22px 22px 15px 15px; box-shadow: 0 -10px 34px color-mix(in srgb, var(--text-primary) 14%, transparent); }\n .interaction-card__handle { display: block; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 999px; background: var(--line-strong); transform: translateX(-50%); }\n .interaction-card__heading { gap: 10px; }\n .interaction-card__icon { width: 36px; height: 36px; flex-basis: 36px; }\n .interaction-card__heading strong { font-size: 15px; }\n .interaction-card__prompt,.interaction-card__details { margin-left: 46px; }\n .interaction-card__answer { gap: 11px; margin-top: 14px; }\n .interaction-card__options { grid-template-columns: 1fr; }\n .interaction-card__options label { min-height: 52px; padding-block: 10px; }\n .interaction-card__custom-row { align-items: stretch; flex-direction: column; gap: 10px; }\n .interaction-card__custom textarea { min-height: 58px; }\n .interaction-card__hint { display: none; }\n .interaction-card .solid-button { width: 100%; min-height: 50px; }\n .interaction-card__actions > button { min-height: 48px; flex: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) { .interaction-card__options label { transition: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport type { UiInteraction } from './types'\n\nconst props = defineProps<{ interaction: UiInteraction; busy?: boolean }>()\nconst emit = defineEmits<{ approve: [approved: boolean]; clarify: [text: string] }>()\nconst selectedOption = ref('')\nconst customAnswer = ref('')\nconst answer = computed(() => customAnswer.value.trim() || selectedOption.value)\n\nfunction selectOption(option: string): void {\n selectedOption.value = option\n customAnswer.value = ''\n}\n\nfunction submit(): void {\n if (!answer.value || props.busy) return\n emit('clarify', answer.value)\n}\n\nwatch(() => props.interaction.id, () => {\n selectedOption.value = ''\n customAnswer.value = ''\n})\n</script>\n\n<template>\n <section class=\"interaction-card\" :class=\"`interaction-card--${interaction.kind}`\" aria-live=\"polite\" :aria-labelledby=\"`interaction-title-${interaction.id}`\">\n <span class=\"interaction-card__handle\" aria-hidden=\"true\" />\n <div class=\"interaction-card__heading\">\n <span class=\"interaction-card__icon\"><AppIcon :name=\"interaction.kind === 'approval' ? 'check' : 'chat'\" :size=\"18\" /></span>\n <div>\n <small>{{ interaction.kind === 'approval' ? '需要审批' : '需要你的回答' }}</small>\n <strong :id=\"`interaction-title-${interaction.id}`\">{{ interaction.title || interaction.prompt }}</strong>\n </div>\n </div>\n <p v-if=\"interaction.title\" class=\"interaction-card__prompt\">{{ interaction.prompt }}</p>\n <details v-if=\"interaction.detail\" class=\"interaction-card__details\"><summary>查看详情<AppIcon name=\"chevron-down\" :size=\"13\" /></summary><pre>{{ interaction.detail }}</pre></details>\n <div v-if=\"interaction.kind === 'approval'\" class=\"interaction-card__actions\">\n <button class=\"quiet-button\" type=\"button\" :disabled=\"busy\" @click=\"emit('approve', false)\">拒绝</button>\n <button class=\"solid-button\" type=\"button\" :disabled=\"busy\" @click=\"emit('approve', true)\">允许</button>\n </div>\n <form v-else class=\"interaction-card__answer\" @submit.prevent=\"submit\">\n <fieldset v-if=\"interaction.options?.length\" class=\"interaction-card__options\">\n <legend>请选择一个回答</legend>\n <label v-for=\"option in interaction.options\" :key=\"option\" :class=\"{ selected: selectedOption === option }\">\n <input v-model=\"selectedOption\" type=\"radio\" :value=\"option\" :disabled=\"busy\" @change=\"selectOption(option)\" />\n <span>{{ option }}</span>\n <AppIcon v-if=\"selectedOption === option\" name=\"check\" :size=\"15\" />\n </label>\n </fieldset>\n <div class=\"interaction-card__custom\">\n <label :for=\"`interaction-answer-${interaction.id}`\">其他回答</label>\n <div class=\"interaction-card__custom-row\">\n <textarea :id=\"`interaction-answer-${interaction.id}`\" v-model=\"customAnswer\" rows=\"2\" :disabled=\"busy\" placeholder=\"补充你的想法(可选)\" @input=\"selectedOption = ''\" />\n <button class=\"solid-button\" type=\"submit\" :disabled=\"busy || !answer\">\n {{ busy ? '提交中…' : '提交回答' }}<AppIcon v-if=\"!busy\" name=\"arrow-up\" :size=\"14\" />\n </button>\n </div>\n </div>\n <small class=\"interaction-card__hint\">选择预设答案,或输入你自己的回答</small>\n </form>\n </section>\n</template>\n\n<style scoped>\n.interaction-card {\n position: relative;\n width: min(640px, 100%);\n margin: 20px auto 4px;\n padding: 16px;\n border: 1px solid var(--line);\n border-radius: 16px;\n background: var(--surface-raised);\n box-shadow: 0 10px 34px color-mix(in srgb, var(--text-primary) 8%, transparent);\n box-sizing: border-box;\n}\n.interaction-card__handle { display: none; }\n.interaction-card__heading { display: flex; align-items: flex-start; gap: 12px; }\n.interaction-card__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--workflow-accent) 10%, var(--surface-soft)); color: var(--workflow-accent); }\n.interaction-card__heading > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }\n.interaction-card__heading small { color: var(--text-muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; }\n.interaction-card__heading strong { color: var(--text-primary); font-size: 15px; font-weight: 650; line-height: 1.5; }\n.interaction-card__prompt { margin: 10px 0 0 50px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }\n.interaction-card__details { margin: 10px 0 0 50px; color: var(--text-muted); font-size: 11px; }\n.interaction-card__details summary { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; cursor: pointer; list-style: none; }\n.interaction-card__details summary::-webkit-details-marker { display: none; }\n.interaction-card__details[open] summary .app-icon { transform: rotate(180deg); }\n.interaction-card__details pre { max-height: 180px; overflow: auto; font: 10px/1.55 var(--font-code); white-space: pre-wrap; }\n.interaction-card__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }\n.interaction-card button { min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-primary); cursor: pointer; font: 13px var(--font-ui); }\n.interaction-card button:hover:not(:disabled) { background: var(--surface-hover); }\n.interaction-card button:disabled { cursor: default; opacity: .5; }\n.interaction-card .solid-button { display: inline-flex; min-width: 112px; align-items: center; justify-content: center; gap: 7px; border-color: var(--workflow-accent); background: var(--workflow-accent); color: var(--workflow-on-accent); font-weight: 620; }\n.interaction-card .solid-button:hover:not(:disabled) { background: color-mix(in srgb, var(--workflow-accent) 88%, var(--text-primary)); }\n.interaction-card__answer { display: grid; gap: 10px; margin-top: 13px; }\n.interaction-card__options { display: grid; min-width: 0; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border: 0; }\n.interaction-card__options legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }\n.interaction-card__options label { display: grid; min-width: 0; min-height: 54px; align-items: center; gap: 9px; grid-template-columns: 18px minmax(0, 1fr) 16px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-sizing: border-box; color: var(--text-secondary); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }\n.interaction-card__options label:hover { border-color: var(--line-strong); background: var(--surface-hover); }\n.interaction-card__options label.selected { border-color: var(--workflow-accent); background: color-mix(in srgb, var(--workflow-accent) 6%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workflow-accent) 10%, transparent); color: var(--text-primary); }\n.interaction-card__options input { width: 17px; height: 17px; margin: 0; accent-color: var(--workflow-accent); cursor: pointer; }\n.interaction-card__options span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 560; line-height: 1.45; }\n.interaction-card__options .app-icon { color: var(--workflow-accent); }\n.interaction-card__custom { display: grid; gap: 6px; }\n.interaction-card__custom > label { color: var(--text-secondary); font-size: 11px; font-weight: 560; }\n.interaction-card__custom-row { display: flex; align-items: stretch; gap: 8px; }\n.interaction-card__custom textarea { width: 100%; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--surface-soft); box-sizing: border-box; color: var(--text-primary); font: 13px/1.55 var(--font-ui); resize: vertical; }\n.interaction-card__custom textarea::placeholder { color: var(--input-placeholder-color); }\n.interaction-card__custom textarea:focus { border-color: var(--workflow-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent); }\n.interaction-card__hint { margin-top: -2px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }\n.interaction-card :is(button,input,textarea,summary):focus-visible { outline: 2px solid var(--workflow-accent); outline-offset: 2px; }\n\n@media (max-width: 768px) {\n .interaction-card { position: sticky; z-index: 5; bottom: 8px; width: 100%; margin: 22px auto 0; padding: 24px 14px max(16px, env(safe-area-inset-bottom)); border-radius: 22px 22px 15px 15px; box-shadow: 0 -10px 34px color-mix(in srgb, var(--text-primary) 14%, transparent); }\n .interaction-card__handle { display: block; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 999px; background: var(--line-strong); transform: translateX(-50%); }\n .interaction-card__heading { gap: 10px; }\n .interaction-card__icon { width: 36px; height: 36px; flex-basis: 36px; }\n .interaction-card__heading strong { font-size: 15px; }\n .interaction-card__prompt,.interaction-card__details { margin-left: 46px; }\n .interaction-card__answer { gap: 11px; margin-top: 14px; }\n .interaction-card__options { grid-template-columns: 1fr; }\n .interaction-card__options label { min-height: 52px; padding-block: 10px; }\n .interaction-card__custom-row { align-items: stretch; flex-direction: column; gap: 10px; }\n .interaction-card__custom textarea { min-height: 58px; }\n .interaction-card__hint { display: none; }\n .interaction-card .solid-button { width: 100%; min-height: 50px; }\n .interaction-card__actions > button { min-height: 48px; flex: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) { .interaction-card__options label { transition: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue'\nimport type { UiToolCall } from './types'\n\nconst props = withDefaults(defineProps<{ tool: UiToolCall; expanded?: boolean }>(), { expanded: false })\nconst open = ref(props.expanded || props.tool.status === 'error')\nconst statusLabel = computed(() => ({ running: '运行中', success: '完成', error: '失败', pending: '等待', interrupted: '已结束,结果未确认' })[props.tool.status])\nfunction detail(value: unknown): string {\n if (value === undefined || value === null || value === '') return ''\n if (typeof value === 'string') return value\n try { return JSON.stringify(value, null, 2) } catch { return String(value ?? '') }\n}\nconst inputDetail = computed(() => detail(props.tool.input))\nconst outputDetail = computed(() => detail(props.tool.output))\nwatch(() => props.expanded, value => { if (value) open.value = true })\n</script>\n\n<template>\n <div class=\"tool-trace\" :class=\"`tool-trace--${tool.status}`\">\n <button type=\"button\" @click=\"open = !open\">\n <strong>{{ tool.name }}</strong>\n <small v-if=\"tool.status === 'error' || tool.status === 'interrupted'\">{{ statusLabel }}</small>\n <span class=\"tool-trace__caret\" :class=\"{ open }\">›</span>\n </button>\n <div v-if=\"open && (inputDetail || outputDetail)\" class=\"tool-trace__details\">\n <section v-if=\"inputDetail\"><small>输入</small><pre>{{ inputDetail }}</pre></section>\n <section v-if=\"outputDetail\"><small>输出</small><pre>{{ outputDetail }}</pre></section>\n </div>\n </div>\n</template>\n\n<style scoped>\n.tool-trace { margin: 7px 0; color: var(--text-muted); }\n.tool-trace > button { display: inline-flex; min-height: 22px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: 10px/1.5 var(--font-code); text-align: left; }\n.tool-trace > button:hover { color: var(--text-secondary); }\n.tool-trace > button strong { font: inherit; font-weight: 400; letter-spacing: .01em; }\n.tool-trace > button small { color: var(--danger); font: inherit; }\n.tool-trace__caret { display: inline-block; width: 9px; color: var(--text-muted); font-size: 13px; line-height: 1; transition: transform 120ms ease; }.tool-trace__caret.open { transform: rotate(90deg); }\n.tool-trace__details { margin: 4px 0 4px 16px; border-left: 1px dashed var(--line-strong); }.tool-trace__details section + section { margin-top: 7px; }.tool-trace__details small { display: block; padding: 0 9px 2px; color: var(--text-muted); font: 8px/1.4 var(--font-ui); letter-spacing: .05em; }.tool-trace__details pre { max-width: min(680px, 100%); max-height: 260px; margin: 0; padding: 4px 9px 7px; overflow: auto; background: transparent; color: var(--text-secondary); font: 10px/1.55 var(--font-code); white-space: pre-wrap; overflow-wrap: anywhere; }\n.tool-trace--error { color: var(--danger); }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue'\nimport type { UiToolCall } from './types'\n\nconst props = withDefaults(defineProps<{ tool: UiToolCall; expanded?: boolean }>(), { expanded: false })\nconst open = ref(props.expanded || props.tool.status === 'error')\nconst statusLabel = computed(() => ({ running: '运行中', success: '完成', error: '失败', pending: '等待', interrupted: '已结束,结果未确认' })[props.tool.status])\nfunction detail(value: unknown): string {\n if (value === undefined || value === null || value === '') return ''\n if (typeof value === 'string') return value\n try { return JSON.stringify(value, null, 2) } catch { return String(value ?? '') }\n}\nconst inputDetail = computed(() => detail(props.tool.input))\nconst outputDetail = computed(() => detail(props.tool.output))\nwatch(() => props.expanded, value => { if (value) open.value = true })\n</script>\n\n<template>\n <div class=\"tool-trace\" :class=\"`tool-trace--${tool.status}`\">\n <button type=\"button\" @click=\"open = !open\">\n <strong>{{ tool.name }}</strong>\n <small v-if=\"tool.status === 'error' || tool.status === 'interrupted'\">{{ statusLabel }}</small>\n <span class=\"tool-trace__caret\" :class=\"{ open }\">›</span>\n </button>\n <div v-if=\"open && (inputDetail || outputDetail)\" class=\"tool-trace__details\">\n <section v-if=\"inputDetail\"><small>输入</small><pre>{{ inputDetail }}</pre></section>\n <section v-if=\"outputDetail\"><small>输出</small><pre>{{ outputDetail }}</pre></section>\n </div>\n </div>\n</template>\n\n<style scoped>\n.tool-trace { margin: 7px 0; color: var(--text-muted); }\n.tool-trace > button { display: inline-flex; min-height: 22px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: 10px/1.5 var(--font-code); text-align: left; }\n.tool-trace > button:hover { color: var(--text-secondary); }\n.tool-trace > button strong { font: inherit; font-weight: 400; letter-spacing: .01em; }\n.tool-trace > button small { color: var(--danger); font: inherit; }\n.tool-trace__caret { display: inline-block; width: 9px; color: var(--text-muted); font-size: 13px; line-height: 1; transition: transform 120ms ease; }.tool-trace__caret.open { transform: rotate(90deg); }\n.tool-trace__details { margin: 4px 0 4px 16px; border-left: 1px dashed var(--line-strong); }.tool-trace__details section + section { margin-top: 7px; }.tool-trace__details small { display: block; padding: 0 9px 2px; color: var(--text-muted); font: 8px/1.4 var(--font-ui); letter-spacing: .05em; }.tool-trace__details pre { max-width: min(680px, 100%); max-height: 260px; margin: 0; padding: 4px 9px 7px; overflow: auto; background: transparent; color: var(--text-secondary); font: 10px/1.55 var(--font-code); white-space: pre-wrap; overflow-wrap: anywhere; }\n.tool-trace--error { color: var(--danger); }\n</style>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport MarkdownContent from './MarkdownContent.vue'\nimport ToolTrace from './ToolTrace.vue'\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { TurnTraceGroup } from '@/utils/turnTrace'\n\nconst props = defineProps<{ group: TurnTraceGroup; streamIntervalMs?: number }>()\nconst reasoningCount = computed(() => props.group.entries.filter(entry => entry.type === 'reasoning').length)\nconst toolCount = computed(() => props.group.entries.filter(entry => entry.type === 'tool').length)\nconst summary = computed(() => [\n reasoningCount.value ? `${reasoningCount.value} 段思考` : '',\n toolCount.value ? `${toolCount.value} 个工具` : '',\n].filter(Boolean).join(' · '))\nconst statusLabel = computed(() => props.group.status === 'running' ? '进行中' : props.group.status === 'error' ? '有错误' : '')\n</script>\n\n<template>\n <SystemMessageNotice class=\"turn-trace\" icon=\"brain\" :title=\"group.status === 'running' ? '正在思考与使用工具' : group.status === 'error' ? '思考与工具出现错误' : '思考与工具'\">\n <p class=\"turn-trace__summary\">{{ summary }}<template v-if=\"statusLabel\"> · {{ statusLabel }}</template></p>\n <div class=\"turn-trace__content\">\n <template v-for=\"entry in group.entries\" :key=\"entry.id\">\n <section v-if=\"entry.type === 'reasoning'\" class=\"turn-trace__item turn-trace__reasoning\">\n <header><AppIcon name=\"brain\" :size=\"12\" />思考过程 · {{ entry.content.length }} 字</header>\n <MarkdownContent process-content :content=\"entry.content\" :streaming=\"group.status === 'running'\" :stream-interval-ms=\"streamIntervalMs\" />\n </section>\n <ToolTrace v-else class=\"turn-trace__item turn-trace__tool\" :tool=\"entry.tool\" expanded />\n </template>\n </div>\n </SystemMessageNotice>\n</template>\n\n<style scoped>\n.turn-trace { margin: 2px 0 9px; }\n.turn-trace__summary { margin: 0 0 8px; color: var(--text-secondary); font-size: 12px; }\n.turn-trace__content { display: grid; max-height: min(420px, 52vh); margin: 1px 0 6px; padding: 2px 8px 4px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.turn-trace__item { min-width: 0; }\n.turn-trace__reasoning { max-width: 620px; padding: 7px 0 5px; color: var(--text-secondary); }.turn-trace__reasoning header { display: flex; min-height: 22px; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--text-muted); font-size: 9px; }.turn-trace__reasoning :deep(.markdown) { font-size: 11px; line-height: 1.58; }\n.turn-trace :deep(.turn-trace__tool) { margin: 0; padding: 5px 0; }\n.turn-trace :deep(.turn-trace__tool .tool-trace__details) { margin-left: 0; border-left: 0; }\n.turn-trace :deep(.turn-trace__tool .tool-trace__details pre) { max-height: none; overflow: visible; }\n@media (prefers-reduced-motion: reduce) { .turn-trace, .turn-trace > summary, .turn-trace__caret { transition: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport MarkdownContent from './MarkdownContent.vue'\nimport ToolTrace from './ToolTrace.vue'\nimport SystemMessageNotice from './SystemMessageNotice.vue'\nimport type { TurnTraceGroup } from '@/utils/turnTrace'\n\nconst props = defineProps<{ group: TurnTraceGroup; streamIntervalMs?: number }>()\nconst reasoningCount = computed(() => props.group.entries.filter(entry => entry.type === 'reasoning').length)\nconst toolCount = computed(() => props.group.entries.filter(entry => entry.type === 'tool').length)\nconst summary = computed(() => [\n reasoningCount.value ? `${reasoningCount.value} 段思考` : '',\n toolCount.value ? `${toolCount.value} 个工具` : '',\n].filter(Boolean).join(' · '))\nconst statusLabel = computed(() => props.group.status === 'running' ? '进行中' : props.group.status === 'error' ? '有错误' : '')\n</script>\n\n<template>\n <SystemMessageNotice class=\"turn-trace\" icon=\"brain\" :title=\"group.status === 'running' ? '正在思考与使用工具' : group.status === 'error' ? '思考与工具出现错误' : '思考与工具'\">\n <p class=\"turn-trace__summary\">{{ summary }}<template v-if=\"statusLabel\"> · {{ statusLabel }}</template></p>\n <div class=\"turn-trace__content\">\n <template v-for=\"entry in group.entries\" :key=\"entry.id\">\n <section v-if=\"entry.type === 'reasoning'\" class=\"turn-trace__item turn-trace__reasoning\">\n <header><AppIcon name=\"brain\" :size=\"12\" />思考过程 · {{ entry.content.length }} 字</header>\n <MarkdownContent process-content :content=\"entry.content\" :streaming=\"group.status === 'running'\" :stream-interval-ms=\"streamIntervalMs\" />\n </section>\n <ToolTrace v-else class=\"turn-trace__item turn-trace__tool\" :tool=\"entry.tool\" expanded />\n </template>\n </div>\n </SystemMessageNotice>\n</template>\n\n<style scoped>\n.turn-trace { margin: 2px 0 9px; }\n.turn-trace__summary { margin: 0 0 8px; color: var(--text-secondary); font-size: 12px; }\n.turn-trace__content { display: grid; max-height: min(420px, 52vh); margin: 1px 0 6px; padding: 2px 8px 4px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.turn-trace__item { min-width: 0; }\n.turn-trace__reasoning { max-width: 620px; padding: 7px 0 5px; color: var(--text-secondary); }.turn-trace__reasoning header { display: flex; min-height: 22px; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--text-muted); font-size: 9px; }.turn-trace__reasoning :deep(.markdown) { font-size: 11px; line-height: 1.58; }\n.turn-trace :deep(.turn-trace__tool) { margin: 0; padding: 5px 0; }\n.turn-trace :deep(.turn-trace__tool .tool-trace__details) { margin-left: 0; border-left: 0; }\n.turn-trace :deep(.turn-trace__tool .tool-trace__details pre) { max-height: none; overflow: visible; }\n@media (prefers-reduced-motion: reduce) { .turn-trace, .turn-trace > summary, .turn-trace__caret { transition: none; } }\n</style>\n","import type { UiMessage, UiToolCall } from '@/components/messages/types'\nimport { collapseDuplicateFailures } from './messageFailure'\n\nexport type TurnTraceEntry =\n | { id: string; type: 'reasoning'; messageId: string; content: string }\n | { id: string; type: 'tool'; messageId: string; tool: UiToolCall }\n\nexport type TurnTraceGroup = {\n id: string\n kind: 'trace'\n entries: TurnTraceEntry[]\n status: 'running' | 'success' | 'error'\n}\n\nexport type MessageTimelineRow =\n | { id: string; kind: 'message'; message: UiMessage }\n | TurnTraceGroup\n\nfunction assistantOwner(message: UiMessage): string {\n return `${message.profile || ''}\\u0000${message.author || ''}`\n}\n\nfunction hasVisibleMessage(message: UiMessage): boolean {\n return Boolean(message.browserCard || message.serviceWarnings?.length || message.content.trim() || message.attachments?.length || message.error || message.status === 'failed')\n}\n\nfunction traceStatus(messages: UiMessage[], entries: TurnTraceEntry[]): TurnTraceGroup['status'] {\n if (messages.some(message => message.status === 'failed')\n || entries.some(entry => entry.type === 'tool' && entry.tool.status === 'error')) return 'error'\n if (messages.some(message => message.status === 'streaming')\n || entries.some(entry => entry.type === 'tool' && ['running', 'pending'].includes(entry.tool.status))) return 'running'\n return 'success'\n}\n\nfunction appendAssistantSegment(rows: MessageTimelineRow[], segment: UiMessage[], bodies?: WeakMap<UiMessage, UiMessage>): void {\n if (!segment.length) return\n const entries: TurnTraceEntry[] = []\n for (const message of segment) {\n if (message.reasoning?.trim()) {\n entries.push({ id: `reasoning:${message.id}`, type: 'reasoning', messageId: message.id, content: message.reasoning })\n }\n for (const tool of message.tools ?? []) {\n entries.push({ id: `tool:${message.id}:${tool.id}`, type: 'tool', messageId: message.id, tool })\n }\n }\n if (entries.length) {\n rows.push({ id: `trace:${segment[0]!.id}`, kind: 'trace', entries, status: traceStatus(segment, entries) })\n }\n for (const message of segment) {\n if (!hasVisibleMessage(message)) continue\n let body = bodies?.get(message)\n if (!body) {\n body = { ...message, reasoning: undefined, tools: undefined }\n bodies?.set(message, body)\n }\n rows.push({ id: `message:${message.id}`, kind: 'message', message: body })\n }\n}\n\n/** Groups contiguous assistant reasoning/tools by turn while preserving visible messages. */\nexport function buildMessageTimelineRows(messages: UiMessage[], bodies?: WeakMap<UiMessage, UiMessage>): MessageTimelineRow[] {\n const rows: MessageTimelineRow[] = []\n let segment: UiMessage[] = []\n let owner = ''\n const flush = () => { appendAssistantSegment(rows, segment, bodies); segment = []; owner = '' }\n for (const message of collapseDuplicateFailures(messages)) {\n if (message.role === 'assistant' && !message.timelineKind) {\n const nextOwner = assistantOwner(message)\n if (segment.length && nextOwner !== owner) flush()\n owner = nextOwner\n segment.push(message)\n // An interim/final assistant bubble is a real timeline boundary. Keep\n // later running tools and text below it instead of hoisting their trace\n // above the earlier visible message merely because the author matches.\n if (hasVisibleMessage(message)) flush()\n continue\n }\n flush()\n rows.push({ id: `message:${message.id}`, kind: 'message', message })\n }\n flush()\n return rows\n}\n","import { visibleMessageText } from '@shared/messageFiles'\n\nconst ATTACHED_CONTEXT_MARKER_RE = /(?:^|\\n)--- Attached Context ---\\s*\\n/\nconst CONTEXT_WARNINGS_MARKER_RE = /(?:^|\\n)--- Context Warnings ---[\\s\\S]*$/\nconst CONTEXT_REF_RE = /@(file|folder|url|image|tool|terminal):(?:\"[^\"\\n]+\"|'[^'\\n]+'|`[^`\\n]+`|\\S+)/g\n\n/**\n * Project persisted message content into the text shown to a person.\n *\n * Hermes deliberately keeps expanded reference payloads in the stored user\n * message so the model can consume them. Those payloads are transport data,\n * not part of the user's visible transcript. Keep the raw content in state and\n * apply this projection only at display/copy boundaries.\n */\nexport function displayContentForMessage(role: string, content: string): string {\n if (role === 'assistant') return visibleMessageText(content)\n if (role !== 'user') return content\n\n const marker = content.match(ATTACHED_CONTEXT_MARKER_RE)\n if (!marker || marker.index === undefined) {\n return content.replace(CONTEXT_WARNINGS_MARKER_RE, '').trim()\n }\n\n const visibleText = content\n .slice(0, marker.index)\n .replace(CONTEXT_WARNINGS_MARKER_RE, '')\n .trim()\n const attachedContext = content.slice(marker.index + marker[0].length)\n const references = [...new Set(\n Array.from(attachedContext.matchAll(CONTEXT_REF_RE), match => match[0]),\n )]\n const missingReferences = references.filter(reference => !visibleText.includes(reference))\n\n return [missingReferences.join('\\n'), visibleText].filter(Boolean).join('\\n\\n') || visibleText\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport TeamAvatar from '@/components/common/TeamAvatar.vue'\nimport AgentAvatar from '@/components/common/AgentAvatar.vue'\nimport type { SidebarItem, SidebarItemBase } from './types'\n\nconst SIDEBAR_SEARCH_EVENT = 'hermes-yaoyao:sidebar-search'\nconst SIDEBAR_SEARCH_CLOSE_EVENT = 'hermes-yaoyao:sidebar-search-close'\n\nconst props = withDefaults(defineProps<{\n section: 'chat' | 'groups'\n label: string\n items: SidebarItem[]\n split?: boolean\n tabbed?: boolean\n}>(), { split: false, tabbed: false })\n\nconst emit = defineEmits<{ open: []; select: [id: string] }>()\n\nconst open = ref(false)\nconst query = ref('')\nconst input = ref<HTMLInputElement | null>(null)\nconst panel = ref<HTMLElement | null>(null)\nconst categories = ref<HTMLElement | null>(null)\nlet returnFocus: HTMLElement | null = null\ntype SearchResultItem = SidebarItemBase & { children?: SidebarItemBase[] }\nconst activeParentId = ref('')\nconst activeParent = computed(() => props.items.find(item => item.id === activeParentId.value))\nconst activeItems = computed<SearchResultItem[]>(() => activeParent.value?.children ?? props.items)\nconst normalizedQuery = computed(() => query.value.trim().toLocaleLowerCase())\nconst results = computed(() => {\n const needle = normalizedQuery.value\n if (!needle) return activeItems.value.slice(0, 50)\n return activeItems.value.filter(item => `${item.title} ${item.subtitle || ''} ${item.meta || ''}`.toLocaleLowerCase().includes(needle)).slice(0, 50)\n})\nconst resultRows = computed(() => results.value.map((item, index) => ({\n item,\n hasChildren: item.children !== undefined,\n showSection: Boolean(item.section && item.section !== results.value[index - 1]?.section),\n})))\nconst navigationRows = computed(() => props.items.map((item, index) => ({\n item,\n showSection: Boolean(item.section && item.section !== props.items[index - 1]?.section),\n})))\n\nasync function show(event: Event) {\n const detail = (event as CustomEvent<{ section?: unknown }>).detail\n if (detail?.section !== props.section) return\n query.value = ''\n returnFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null\n activeParentId.value = props.split || props.tabbed ? props.items[0]?.id || '' : ''\n open.value = true\n emit('open')\n await nextTick()\n input.value?.focus()\n}\n\nfunction close() {\n if (!open.value) return\n open.value = false\n query.value = ''\n activeParentId.value = ''\n document.dispatchEvent(new CustomEvent(SIDEBAR_SEARCH_CLOSE_EVENT))\n void nextTick(() => { if (returnFocus?.isConnected) returnFocus.focus() })\n}\n\nasync function choose(item: SearchResultItem) {\n if (item.children !== undefined) {\n activeParentId.value = item.id\n if (!props.tabbed) { query.value = ''; await nextTick(); input.value?.focus() }\n return\n }\n emit('select', item.id)\n close()\n}\n\nasync function back() {\n activeParentId.value = ''\n query.value = ''\n await nextTick()\n input.value?.focus()\n}\n\nfunction moveCategory(delta: number) {\n const index = props.items.findIndex(item => item.id === activeParentId.value)\n activeParentId.value = props.items[(index + delta + props.items.length) % props.items.length]?.id || ''\n void nextTick(() => categories.value?.querySelector<HTMLButtonElement>('[aria-selected=\"true\"]')?.focus())\n}\nfunction containFocus(event: KeyboardEvent) {\n const elements = [...(panel.value?.querySelectorAll<HTMLElement>('button:not(:disabled),input,[tabindex=\"0\"]') ?? [])].filter(el => el.tabIndex >= 0 && el.getClientRects().length > 0)\n if (!elements.length) return\n if (event.shiftKey && document.activeElement === elements[0]) { event.preventDefault(); elements.at(-1)?.focus() }\n else if (!event.shiftKey && document.activeElement === elements.at(-1)) { event.preventDefault(); elements[0]?.focus() }\n}\nwatch(results, async () => {\n await nextTick()\n if (open.value && document.activeElement === document.body) input.value?.focus()\n})\nonMounted(() => { document.addEventListener(SIDEBAR_SEARCH_EVENT, show); document.addEventListener(SIDEBAR_SEARCH_CLOSE_EVENT, close) })\nonBeforeUnmount(() => { document.removeEventListener(SIDEBAR_SEARCH_EVENT, show); document.removeEventListener(SIDEBAR_SEARCH_CLOSE_EVENT, close) })\n</script>\n\n<template>\n <Teleport to=\"body\">\n <div v-if=\"open\" class=\"floating-resource-search__backdrop\" @click.self=\"close\">\n <section ref=\"panel\" class=\"floating-resource-search\" :class=\"{ 'floating-resource-search--split': split }\" role=\"dialog\" aria-modal=\"true\" :aria-label=\"label\" @keydown.tab=\"containFocus\" @keydown.esc.prevent=\"close\">\n <header>\n <button v-if=\"activeParent && !split && !tabbed\" class=\"floating-resource-search__back\" type=\"button\" aria-label=\"返回搜索结果\" @click=\"back\"><AppIcon name=\"chevron-left\" :size=\"17\" /></button>\n <label>\n <AppIcon name=\"search\" :size=\"18\" />\n <input ref=\"input\" v-model=\"query\" type=\"search\" :placeholder=\"tabbed ? '搜索聊天名称或内容' : activeParent ? `搜索${activeParent.title}` : label\" :aria-label=\"tabbed ? label : activeParent ? `搜索${activeParent.title}` : label\" @keydown.esc.stop.prevent=\"split || tabbed ? close() : activeParent ? back() : close()\" />\n </label>\n <button type=\"button\" aria-label=\"关闭搜索\" title=\"关闭搜索\" @click=\"close\"><AppIcon name=\"close\" :size=\"17\" /></button>\n </header>\n <nav v-if=\"tabbed\" ref=\"categories\" class=\"floating-resource-search__tabs\" role=\"tablist\" aria-label=\"聊天分类\" @keydown.left.prevent=\"moveCategory(-1)\" @keydown.right.prevent=\"moveCategory(1)\">\n <button v-for=\"item in items\" :key=\"item.id\" type=\"button\" role=\"tab\" :aria-label=\"item.title\" :aria-selected=\"item.id === activeParentId\" :tabindex=\"item.id === activeParentId ? 0 : -1\" :aria-controls=\"`${section}-search-results`\" @click=\"choose(item)\">{{ item.title }}<small>{{ item.children?.length ?? 0 }}</small></button>\n </nav>\n <div class=\"floating-resource-search__body\" :class=\"{ 'floating-resource-search__body--split': split }\">\n <nav v-if=\"split\" class=\"floating-resource-search__navigation\" aria-label=\"搜索范围\">\n <template v-for=\"row in navigationRows\" :key=\"row.item.id\">\n <div v-if=\"row.showSection\" class=\"floating-resource-search__navigation-heading\">{{ row.item.section }}</div>\n <button type=\"button\" :class=\"{ active: row.item.id === activeParentId }\" @click=\"choose(row.item)\">\n <AppIcon v-if=\"row.item.icon\" :name=\"row.item.icon\" :size=\"15\" />\n <span>{{ row.item.title }}</span>\n </button>\n </template>\n </nav>\n <section :id=\"`${section}-search-results`\" class=\"floating-resource-search__result-pane\" :role=\"tabbed ? 'tabpanel' : undefined\" :aria-label=\"tabbed ? activeParent?.title : undefined\">\n <div v-if=\"activeParent && !tabbed\" class=\"floating-resource-search__context\"><strong>{{ activeParent.title }}</strong><span>{{ activeParent.subtitle }}</span></div>\n <div class=\"floating-resource-search__results\" :role=\"$slots['item-actions'] ? 'list' : 'listbox'\" aria-label=\"搜索结果\">\n <template v-for=\"row in resultRows\" :key=\"row.item.id\">\n <div v-if=\"row.showSection\" class=\"floating-resource-search__section\">{{ row.item.section }}</div>\n <div class=\"floating-resource-search__row\" :role=\"$slots['item-actions'] ? 'listitem' : 'presentation'\">\n <button class=\"floating-resource-search__select\" type=\"button\" :role=\"$slots['item-actions'] ? undefined : 'option'\" :aria-haspopup=\"row.hasChildren ? 'listbox' : undefined\" @click=\"choose(row.item)\">\n <span v-if=\"row.item.avatar !== undefined || row.item.avatarMembers?.length\" class=\"floating-resource-search__icon floating-resource-search__icon--avatar\">\n <AgentAvatar v-if=\"row.item.avatarKind === 'agent'\" :name=\"row.item.title\" :avatar=\"row.item.avatar\" :state=\"row.item.avatarState\" :size=\"30\" />\n <TeamAvatar v-else :name=\"row.item.title\" :avatar=\"row.item.avatar || ''\" :members=\"row.item.avatarMembers || []\" :fallback-key=\"row.item.avatarFallbackKey || row.item.id\" :size=\"30\" />\n </span>\n <span v-else-if=\"row.item.icon\" class=\"floating-resource-search__icon\"><AppIcon :name=\"row.item.icon\" :size=\"16\" /></span>\n <span class=\"floating-resource-search__copy\"><strong>{{ row.item.title }}</strong><small v-if=\"row.item.subtitle\">{{ row.item.subtitle }}</small></span>\n <small v-if=\"row.item.meta\">{{ row.item.meta }}</small>\n </button>\n <slot name=\"item-actions\" :item=\"row.item\" />\n </div>\n </template>\n <p v-if=\"!results.length\">{{ activeParent?.emptyText || (activeParent ? `暂无${activeParent.title}内容` : '没有匹配结果') }}</p>\n </div>\n </section>\n </div>\n <slot name=\"footer\" />\n </section>\n </div>\n </Teleport>\n</template>\n\n<style scoped>\n.floating-resource-search__backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: start center; padding: min(18vh, 150px) 20px 20px; background: color-mix(in srgb, var(--text-primary) 20%, transparent); backdrop-filter: blur(3px); }\n.floating-resource-search { width: min(100%, 580px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 20px 60px color-mix(in srgb, var(--text-primary) 22%, transparent); }.floating-resource-search--split { width: min(100%, 720px); }.floating-resource-search header { display: flex; align-items: center; gap: 7px; padding: 10px; border-bottom: 1px solid var(--line); }.floating-resource-search label { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-muted); background: var(--surface-soft); }.floating-resource-search label:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.floating-resource-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: 13px var(--font-ui); }.floating-resource-search header button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); cursor: pointer; }.floating-resource-search header button:hover, .floating-resource-search__results button:hover { background: var(--surface-hover); color: var(--text-primary); }.floating-resource-search__back { margin-right: -2px; }.floating-resource-search__body--split { display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: min(430px, 55vh); }.floating-resource-search__navigation { min-width: 0; padding: 7px; overflow-y: auto; border-right: 1px solid var(--line); }.floating-resource-search__navigation-heading { padding: 9px 9px 5px; color: var(--text-muted); font-size: 10px; font-weight: 650; }.floating-resource-search__navigation button { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 8px; padding: 5px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; text-align: left; }.floating-resource-search__navigation button:hover, .floating-resource-search__navigation button.active { background: var(--surface-hover); color: var(--text-primary); }.floating-resource-search__navigation button.active { font-weight: 650; }.floating-resource-search__navigation button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__result-pane { min-width: 0; overflow: hidden; }.floating-resource-search__context { display: flex; align-items: baseline; gap: 8px; padding: 11px 16px 3px; }.floating-resource-search__context strong { font-size: 12px; }.floating-resource-search__context span { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__results { max-height: min(480px, 50vh); overflow: auto; padding: 7px; }.floating-resource-search__body--split .floating-resource-search__results { max-height: min(392px, 50vh); }.floating-resource-search__section { padding: 9px 9px 4px; color: var(--text-muted); font-size: 10px; font-weight: 650; }.floating-resource-search__results button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; text-align: left; }.floating-resource-search__icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--text-muted); }.floating-resource-search__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }.floating-resource-search__copy strong, .floating-resource-search__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__copy strong { font-size: 12px; }.floating-resource-search__copy small, .floating-resource-search__results > button > small { color: var(--text-muted); font-size: 10px; }.floating-resource-search__results > p { margin: 0; padding: 28px 12px; color: var(--text-muted); font-size: 12px; text-align: center; }\n@media (max-width: 600px) { .floating-resource-search__backdrop { place-items: end center; padding: 0; }.floating-resource-search, .floating-resource-search--split { width: 100%; border-radius: 18px 18px 0 0; }.floating-resource-search header { padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); }.floating-resource-search label { min-height: 42px; }.floating-resource-search__body--split { grid-template-columns: 128px minmax(0, 1fr); min-height: min(520px, 65vh); }.floating-resource-search__navigation { padding-bottom: max(7px, env(safe-area-inset-bottom)); }.floating-resource-search__results { max-height: min(520px, 65vh); padding-bottom: max(7px, env(safe-area-inset-bottom)); } }\n.floating-resource-search__icon--avatar{background:transparent}\n.floating-resource-search__tabs{display:flex;justify-content:center;gap:6px;padding:10px;border-bottom:1px solid var(--line)}\n.floating-resource-search__tabs button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:34px;padding:6px 18px;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font:13px var(--font-ui);cursor:pointer}\n.floating-resource-search__tabs button[aria-selected=\"true\"]{background:var(--surface-hover);color:var(--text-primary);font-weight:650}\n.floating-resource-search__tabs small{color:var(--text-muted);font-size:11px}\n.floating-resource-search__row{display:flex;align-items:center;gap:8px}\n.floating-resource-search__row .floating-resource-search__select{flex:1;min-width:0}\n.floating-resource-search__select>small{flex-shrink:0;color:var(--text-muted);font-size:10px}\n.floating-resource-search__select:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport TeamAvatar from '@/components/common/TeamAvatar.vue'\nimport AgentAvatar from '@/components/common/AgentAvatar.vue'\nimport type { SidebarItem, SidebarItemBase } from './types'\n\nconst SIDEBAR_SEARCH_EVENT = 'hermes-yaoyao:sidebar-search'\nconst SIDEBAR_SEARCH_CLOSE_EVENT = 'hermes-yaoyao:sidebar-search-close'\n\nconst props = withDefaults(defineProps<{\n section: 'chat' | 'groups'\n label: string\n items: SidebarItem[]\n split?: boolean\n tabbed?: boolean\n}>(), { split: false, tabbed: false })\n\nconst emit = defineEmits<{ open: []; select: [id: string] }>()\n\nconst open = ref(false)\nconst query = ref('')\nconst input = ref<HTMLInputElement | null>(null)\nconst panel = ref<HTMLElement | null>(null)\nconst categories = ref<HTMLElement | null>(null)\nlet returnFocus: HTMLElement | null = null\ntype SearchResultItem = SidebarItemBase & { children?: SidebarItemBase[] }\nconst activeParentId = ref('')\nconst activeParent = computed(() => props.items.find(item => item.id === activeParentId.value))\nconst activeItems = computed<SearchResultItem[]>(() => activeParent.value?.children ?? props.items)\nconst normalizedQuery = computed(() => query.value.trim().toLocaleLowerCase())\nconst results = computed(() => {\n const needle = normalizedQuery.value\n if (!needle) return activeItems.value.slice(0, 50)\n return activeItems.value.filter(item => `${item.title} ${item.subtitle || ''} ${item.meta || ''}`.toLocaleLowerCase().includes(needle)).slice(0, 50)\n})\nconst resultRows = computed(() => results.value.map((item, index) => ({\n item,\n hasChildren: item.children !== undefined,\n showSection: Boolean(item.section && item.section !== results.value[index - 1]?.section),\n})))\nconst navigationRows = computed(() => props.items.map((item, index) => ({\n item,\n showSection: Boolean(item.section && item.section !== props.items[index - 1]?.section),\n})))\n\nasync function show(event: Event) {\n const detail = (event as CustomEvent<{ section?: unknown }>).detail\n if (detail?.section !== props.section) return\n query.value = ''\n returnFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null\n activeParentId.value = props.split || props.tabbed ? props.items[0]?.id || '' : ''\n open.value = true\n emit('open')\n await nextTick()\n input.value?.focus()\n}\n\nfunction close() {\n if (!open.value) return\n open.value = false\n query.value = ''\n activeParentId.value = ''\n document.dispatchEvent(new CustomEvent(SIDEBAR_SEARCH_CLOSE_EVENT))\n void nextTick(() => { if (returnFocus?.isConnected) returnFocus.focus() })\n}\n\nasync function choose(item: SearchResultItem) {\n if (item.children !== undefined) {\n activeParentId.value = item.id\n if (!props.tabbed) { query.value = ''; await nextTick(); input.value?.focus() }\n return\n }\n emit('select', item.id)\n close()\n}\n\nasync function back() {\n activeParentId.value = ''\n query.value = ''\n await nextTick()\n input.value?.focus()\n}\n\nfunction moveCategory(delta: number) {\n const index = props.items.findIndex(item => item.id === activeParentId.value)\n activeParentId.value = props.items[(index + delta + props.items.length) % props.items.length]?.id || ''\n void nextTick(() => categories.value?.querySelector<HTMLButtonElement>('[aria-selected=\"true\"]')?.focus())\n}\nfunction containFocus(event: KeyboardEvent) {\n const elements = [...(panel.value?.querySelectorAll<HTMLElement>('button:not(:disabled),input,[tabindex=\"0\"]') ?? [])].filter(el => el.tabIndex >= 0 && el.getClientRects().length > 0)\n if (!elements.length) return\n if (event.shiftKey && document.activeElement === elements[0]) { event.preventDefault(); elements.at(-1)?.focus() }\n else if (!event.shiftKey && document.activeElement === elements.at(-1)) { event.preventDefault(); elements[0]?.focus() }\n}\nwatch(results, async () => {\n await nextTick()\n if (open.value && document.activeElement === document.body) input.value?.focus()\n})\nonMounted(() => { document.addEventListener(SIDEBAR_SEARCH_EVENT, show); document.addEventListener(SIDEBAR_SEARCH_CLOSE_EVENT, close) })\nonBeforeUnmount(() => { document.removeEventListener(SIDEBAR_SEARCH_EVENT, show); document.removeEventListener(SIDEBAR_SEARCH_CLOSE_EVENT, close) })\n</script>\n\n<template>\n <Teleport to=\"body\">\n <div v-if=\"open\" class=\"floating-resource-search__backdrop\" @click.self=\"close\">\n <section ref=\"panel\" class=\"floating-resource-search\" :class=\"{ 'floating-resource-search--split': split }\" role=\"dialog\" aria-modal=\"true\" :aria-label=\"label\" @keydown.tab=\"containFocus\" @keydown.esc.prevent=\"close\">\n <header>\n <button v-if=\"activeParent && !split && !tabbed\" class=\"floating-resource-search__back\" type=\"button\" aria-label=\"返回搜索结果\" @click=\"back\"><AppIcon name=\"chevron-left\" :size=\"17\" /></button>\n <label>\n <AppIcon name=\"search\" :size=\"18\" />\n <input ref=\"input\" v-model=\"query\" type=\"search\" :placeholder=\"tabbed ? '搜索聊天名称或内容' : activeParent ? `搜索${activeParent.title}` : label\" :aria-label=\"tabbed ? label : activeParent ? `搜索${activeParent.title}` : label\" @keydown.esc.stop.prevent=\"split || tabbed ? close() : activeParent ? back() : close()\" />\n </label>\n <button type=\"button\" aria-label=\"关闭搜索\" title=\"关闭搜索\" @click=\"close\"><AppIcon name=\"close\" :size=\"17\" /></button>\n </header>\n <nav v-if=\"tabbed\" ref=\"categories\" class=\"floating-resource-search__tabs\" role=\"tablist\" aria-label=\"聊天分类\" @keydown.left.prevent=\"moveCategory(-1)\" @keydown.right.prevent=\"moveCategory(1)\">\n <button v-for=\"item in items\" :key=\"item.id\" type=\"button\" role=\"tab\" :aria-label=\"item.title\" :aria-selected=\"item.id === activeParentId\" :tabindex=\"item.id === activeParentId ? 0 : -1\" :aria-controls=\"`${section}-search-results`\" @click=\"choose(item)\">{{ item.title }}<small>{{ item.children?.length ?? 0 }}</small></button>\n </nav>\n <div class=\"floating-resource-search__body\" :class=\"{ 'floating-resource-search__body--split': split }\">\n <nav v-if=\"split\" class=\"floating-resource-search__navigation\" aria-label=\"搜索范围\">\n <template v-for=\"row in navigationRows\" :key=\"row.item.id\">\n <div v-if=\"row.showSection\" class=\"floating-resource-search__navigation-heading\">{{ row.item.section }}</div>\n <button type=\"button\" :class=\"{ active: row.item.id === activeParentId }\" @click=\"choose(row.item)\">\n <AppIcon v-if=\"row.item.icon\" :name=\"row.item.icon\" :size=\"15\" />\n <span>{{ row.item.title }}</span>\n </button>\n </template>\n </nav>\n <section :id=\"`${section}-search-results`\" class=\"floating-resource-search__result-pane\" :role=\"tabbed ? 'tabpanel' : undefined\" :aria-label=\"tabbed ? activeParent?.title : undefined\">\n <div v-if=\"activeParent && !tabbed\" class=\"floating-resource-search__context\"><strong>{{ activeParent.title }}</strong><span>{{ activeParent.subtitle }}</span></div>\n <div class=\"floating-resource-search__results\" :role=\"$slots['item-actions'] ? 'list' : 'listbox'\" aria-label=\"搜索结果\">\n <template v-for=\"row in resultRows\" :key=\"row.item.id\">\n <div v-if=\"row.showSection\" class=\"floating-resource-search__section\">{{ row.item.section }}</div>\n <div class=\"floating-resource-search__row\" :role=\"$slots['item-actions'] ? 'listitem' : 'presentation'\">\n <button class=\"floating-resource-search__select\" type=\"button\" :role=\"$slots['item-actions'] ? undefined : 'option'\" :aria-haspopup=\"row.hasChildren ? 'listbox' : undefined\" @click=\"choose(row.item)\">\n <span v-if=\"row.item.avatar !== undefined || row.item.avatarMembers?.length\" class=\"floating-resource-search__icon floating-resource-search__icon--avatar\">\n <AgentAvatar v-if=\"row.item.avatarKind === 'agent'\" :name=\"row.item.title\" :avatar=\"row.item.avatar\" :state=\"row.item.avatarState\" :size=\"30\" />\n <TeamAvatar v-else :name=\"row.item.title\" :avatar=\"row.item.avatar || ''\" :members=\"row.item.avatarMembers || []\" :fallback-key=\"row.item.avatarFallbackKey || row.item.id\" :size=\"30\" />\n </span>\n <span v-else-if=\"row.item.icon\" class=\"floating-resource-search__icon\"><AppIcon :name=\"row.item.icon\" :size=\"16\" /></span>\n <span class=\"floating-resource-search__copy\"><strong>{{ row.item.title }}</strong><small v-if=\"row.item.subtitle\">{{ row.item.subtitle }}</small></span>\n <small v-if=\"row.item.meta\">{{ row.item.meta }}</small>\n </button>\n <slot name=\"item-actions\" :item=\"row.item\" />\n </div>\n </template>\n <p v-if=\"!results.length\">{{ activeParent?.emptyText || (activeParent ? `暂无${activeParent.title}内容` : '没有匹配结果') }}</p>\n </div>\n </section>\n </div>\n <slot name=\"footer\" />\n </section>\n </div>\n </Teleport>\n</template>\n\n<style scoped>\n.floating-resource-search__backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: start center; padding: min(18vh, 150px) 20px 20px; background: color-mix(in srgb, var(--text-primary) 20%, transparent); backdrop-filter: blur(3px); }\n.floating-resource-search { width: min(100%, 580px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 20px 60px color-mix(in srgb, var(--text-primary) 22%, transparent); }.floating-resource-search--split { width: min(100%, 720px); }.floating-resource-search header { display: flex; align-items: center; gap: 7px; padding: 10px; border-bottom: 1px solid var(--line); }.floating-resource-search label { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-muted); background: var(--surface-soft); }.floating-resource-search label:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.floating-resource-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: 13px var(--font-ui); }.floating-resource-search header button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); cursor: pointer; }.floating-resource-search header button:hover, .floating-resource-search__results button:hover { background: var(--surface-hover); color: var(--text-primary); }.floating-resource-search__back { margin-right: -2px; }.floating-resource-search__body--split { display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: min(430px, 55vh); }.floating-resource-search__navigation { min-width: 0; padding: 7px; overflow-y: auto; border-right: 1px solid var(--line); }.floating-resource-search__navigation-heading { padding: 9px 9px 5px; color: var(--text-muted); font-size: 10px; font-weight: 650; }.floating-resource-search__navigation button { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 8px; padding: 5px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; text-align: left; }.floating-resource-search__navigation button:hover, .floating-resource-search__navigation button.active { background: var(--surface-hover); color: var(--text-primary); }.floating-resource-search__navigation button.active { font-weight: 650; }.floating-resource-search__navigation button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__result-pane { min-width: 0; overflow: hidden; }.floating-resource-search__context { display: flex; align-items: baseline; gap: 8px; padding: 11px 16px 3px; }.floating-resource-search__context strong { font-size: 12px; }.floating-resource-search__context span { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__results { max-height: min(480px, 50vh); overflow: auto; padding: 7px; }.floating-resource-search__body--split .floating-resource-search__results { max-height: min(392px, 50vh); }.floating-resource-search__section { padding: 9px 9px 4px; color: var(--text-muted); font-size: 10px; font-weight: 650; }.floating-resource-search__results button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; text-align: left; }.floating-resource-search__icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--text-muted); }.floating-resource-search__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }.floating-resource-search__copy strong, .floating-resource-search__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.floating-resource-search__copy strong { font-size: 12px; }.floating-resource-search__copy small, .floating-resource-search__results > button > small { color: var(--text-muted); font-size: 10px; }.floating-resource-search__results > p { margin: 0; padding: 28px 12px; color: var(--text-muted); font-size: 12px; text-align: center; }\n@media (max-width: 600px) { .floating-resource-search__backdrop { place-items: end center; padding: 0; }.floating-resource-search, .floating-resource-search--split { width: 100%; border-radius: 18px 18px 0 0; }.floating-resource-search header { padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); }.floating-resource-search label { min-height: 42px; }.floating-resource-search__body--split { grid-template-columns: 128px minmax(0, 1fr); min-height: min(520px, 65vh); }.floating-resource-search__navigation { padding-bottom: max(7px, env(safe-area-inset-bottom)); }.floating-resource-search__results { max-height: min(520px, 65vh); padding-bottom: max(7px, env(safe-area-inset-bottom)); } }\n.floating-resource-search__icon--avatar{background:transparent}\n.floating-resource-search__tabs{display:flex;justify-content:center;gap:6px;padding:10px;border-bottom:1px solid var(--line)}\n.floating-resource-search__tabs button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:34px;padding:6px 18px;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font:13px var(--font-ui);cursor:pointer}\n.floating-resource-search__tabs button[aria-selected=\"true\"]{background:var(--surface-hover);color:var(--text-primary);font-weight:650}\n.floating-resource-search__tabs small{color:var(--text-muted);font-size:11px}\n.floating-resource-search__row{display:flex;align-items:center;gap:8px}\n.floating-resource-search__row .floating-resource-search__select{flex:1;min-width:0}\n.floating-resource-search__select>small{flex-shrink:0;color:var(--text-muted);font-size:10px}\n.floating-resource-search__select:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}\n</style>\n"],"x_google_ignoreList":[0,1],"mappings":"+YACA,IAAMA,GAAa,CACjB,MAAO,6BACP,cAAe,+BACf,QAAS,WACX,EACA,EAAe,EAAgB,CAC7B,KAAM,KACN,OAAQ,SAAgB,EAAM,EAAQ,CACpC,OACEC,EAAW,EACXC,EACE,MACAF,GACA,AACG,EAAO,KAAK,CACXG,EACE,IACA,CACE,KAAM,OACN,OAAQ,eACR,eAAgB,IAChB,iBAAkB,QAClB,kBAAmB,OACrB,EACA,CACEA,EAAoB,SAAU,CAC5B,GAAI,KACJ,GAAI,KACJ,EAAG,GACL,CAAC,EACDA,EAAoB,OAAQ,CAC1B,EAAG,oDACL,CAAC,CACH,EACA,EACF,CACF,CACJ,CAEJ,CACF,CAAC,ECxCKC,EAAa,CACjB,MAAO,6BACP,cAAe,+BACf,QAAS,WACX,EACA,GAAe,EAAgB,CAC7B,KAAM,SACN,OAAQ,SAAgB,EAAM,EAAQ,CACpC,OACEC,EAAW,EACXC,EACE,MACAF,EACA,AACG,EAAO,KAAK,CACXG,EACE,IACA,CACE,KAAM,OACN,OAAQ,eACR,eAAgB,IAChB,iBAAkB,QAClB,kBAAmB,OACrB,EACA,CACEA,EAAoB,SAAU,CAC5B,GAAI,KACJ,GAAI,KACJ,EAAG,GACL,CAAC,EACDA,EAAoB,SAAU,CA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