@lsamien/yaoyao 0.4.77 → 0.4.79

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 (120) hide show
  1. package/README.md +7 -5
  2. package/THIRD_PARTY_NOTICES.md +8 -0
  3. package/bin/hermes-yaoyao.mjs +15 -2
  4. package/build-info.json +23 -3
  5. package/desktop/main.mjs +6 -2
  6. package/dist/assets/{AboutDialog-k7oUOua0.js → AboutDialog-CrajAC--.js} +2 -2
  7. package/dist/assets/AboutDialog-CrajAC--.js.map +1 -0
  8. package/dist/assets/BotAutomationsView-DTOoFSEl.js +2 -0
  9. package/dist/assets/{BotAutomationsView-CUaMkVfT.js.map → BotAutomationsView-DTOoFSEl.js.map} +1 -1
  10. package/dist/assets/{BotPluginsDialog-BqfqrWdq.js → BotPluginsDialog-Ckiwmito.js} +2 -2
  11. package/dist/assets/{BotPluginsDialog-BqfqrWdq.js.map → BotPluginsDialog-Ckiwmito.js.map} +1 -1
  12. package/dist/assets/{BotSettingsDialog-BfW0Jxhg.js → BotSettingsDialog-ChffrjSM.js} +5 -5
  13. package/dist/assets/{BotSettingsDialog-BfW0Jxhg.js.map → BotSettingsDialog-ChffrjSM.js.map} +1 -1
  14. package/dist/assets/ChatView-C_7_7olu.css +1 -0
  15. package/dist/assets/ChatView-znZF8RZE.js +2 -0
  16. package/dist/assets/ChatView-znZF8RZE.js.map +1 -0
  17. package/dist/assets/{ComputerPanel-D_wWUzlj.js → ComputerPanel-bNkvZAiT.js} +2 -2
  18. package/dist/assets/{ComputerPanel-D_wWUzlj.js.map → ComputerPanel-bNkvZAiT.js.map} +1 -1
  19. package/dist/assets/{ComputerViewerView-C2nS7MWX.js → ComputerViewerView-DCTvbHr-.js} +2 -2
  20. package/dist/assets/{ComputerViewerView-C2nS7MWX.js.map → ComputerViewerView-DCTvbHr-.js.map} +1 -1
  21. package/dist/assets/ConversationsView-BnysxvX_.js +6 -0
  22. package/dist/assets/ConversationsView-BnysxvX_.js.map +1 -0
  23. package/dist/assets/{ConversationsView-C_VZl5g2.css → ConversationsView-CbArO1v2.css} +1 -1
  24. package/dist/assets/FilesView-D7tA6Nu1.js +2 -0
  25. package/dist/assets/{FilesView-xOEZGSrD.js.map → FilesView-D7tA6Nu1.js.map} +1 -1
  26. package/dist/assets/FloatingResourceSearch-3GOuDkuO.css +1 -0
  27. package/dist/assets/FloatingResourceSearch-c6l1JuAA.js +9 -0
  28. package/dist/assets/FloatingResourceSearch-c6l1JuAA.js.map +1 -0
  29. package/dist/assets/HistoryView-Cnsriop4.js +2 -0
  30. package/dist/assets/HistoryView-Cnsriop4.js.map +1 -0
  31. package/dist/assets/HistoryView-DlVfSP_p.css +1 -0
  32. package/dist/assets/KanbanView-CXm05b62.js +2 -0
  33. package/dist/assets/{KanbanView-DXJCj1E6.js.map → KanbanView-CXm05b62.js.map} +1 -1
  34. package/dist/assets/{LocalVmSettingsPanel-8wF6wA3P.js → LocalVmSettingsPanel-HgNC1SCF.js} +2 -2
  35. package/dist/assets/{LocalVmSettingsPanel-8wF6wA3P.js.map → LocalVmSettingsPanel-HgNC1SCF.js.map} +1 -1
  36. package/dist/assets/{RunnerSettingsPanel-DDEMgUS9.js → RunnerSettingsPanel-CLKZvWua.js} +2 -2
  37. package/dist/assets/{RunnerSettingsPanel-DDEMgUS9.js.map → RunnerSettingsPanel-CLKZvWua.js.map} +1 -1
  38. package/dist/assets/{StandaloneDialog-BN6RJ3uh.js → StandaloneDialog-DODllzh1.js} +2 -2
  39. package/dist/assets/{StandaloneDialog-BN6RJ3uh.js.map → StandaloneDialog-DODllzh1.js.map} +1 -1
  40. package/dist/assets/{UpdateCheckDialog-CZ6NZSkP.js → UpdateCheckDialog-DHcAuryL.js} +2 -2
  41. package/dist/assets/{UpdateCheckDialog-CZ6NZSkP.js.map → UpdateCheckDialog-DHcAuryL.js.map} +1 -1
  42. package/dist/assets/{WorkspaceKnowledgePanel-BA7yVvWK.js → WorkspaceKnowledgePanel-BrE8xSi2.js} +2 -2
  43. package/dist/assets/{WorkspaceKnowledgePanel-BA7yVvWK.js.map → WorkspaceKnowledgePanel-BrE8xSi2.js.map} +1 -1
  44. package/dist/assets/{WorkspaceRoutinesPanel-DgCqaACO.js → WorkspaceRoutinesPanel-CpDVEwHx.js} +2 -2
  45. package/dist/assets/{WorkspaceRoutinesPanel-DgCqaACO.js.map → WorkspaceRoutinesPanel-CpDVEwHx.js.map} +1 -1
  46. package/dist/assets/WorkspaceShell-Dhm3r61t.js +44 -0
  47. package/dist/assets/WorkspaceShell-Dhm3r61t.js.map +1 -0
  48. package/dist/assets/WorkspaceShell-Dk003lIq.css +1 -0
  49. package/dist/assets/{WorkspaceView-jMPyO8oT.js → WorkspaceView-CBWFRLki.js} +2 -2
  50. package/dist/assets/{WorkspaceView-jMPyO8oT.js.map → WorkspaceView-CBWFRLki.js.map} +1 -1
  51. package/dist/assets/{docx-preview-Ba7Ciq-i.js → docx-preview-CG4CK2Qm.js} +2 -2
  52. package/dist/assets/{docx-preview-Ba7Ciq-i.js.map → docx-preview-CG4CK2Qm.js.map} +1 -1
  53. package/dist/assets/index-BRP9NWum.js +17 -0
  54. package/dist/assets/index-BRP9NWum.js.map +1 -0
  55. package/dist/assets/{pdf-C3k8l1DI.js → pdf-CFWXmhVF.js} +2 -2
  56. package/dist/assets/{pdf-C3k8l1DI.js.map → pdf-CFWXmhVF.js.map} +1 -1
  57. package/dist/assets/sessionOwnership-B2YxdBdf.js +4 -0
  58. package/dist/assets/sessionOwnership-B2YxdBdf.js.map +1 -0
  59. package/dist/assets/{sessionOwnership-BTz0Fyp5.css → sessionOwnership-CfO8CfmZ.css} +1 -1
  60. package/dist/assets/{viewModels-OLQqqyt3.js → viewModels-CYJ8m5Uf.js} +12 -12
  61. package/dist/assets/{viewModels-OLQqqyt3.js.map → viewModels-CYJ8m5Uf.js.map} +1 -1
  62. package/dist/index.html +1 -1
  63. package/dist-server/runner/agent.js +2 -2
  64. package/dist-server/server/app.js +15 -1
  65. package/dist-server/server/chatTranscriptStore.js +16 -0
  66. package/dist-server/server/config.js +3 -0
  67. package/dist-server/server/credentialVault/broker.js +272 -0
  68. package/dist-server/server/credentialVault/coordinator.js +297 -0
  69. package/dist-server/server/credentialVault/executor.js +1 -0
  70. package/dist-server/server/credentialVault/fixtureWebsiteExecutor.js +51 -0
  71. package/dist-server/server/credentialVault/index.js +49 -0
  72. package/dist-server/server/credentialVault/isolation.js +37 -0
  73. package/dist-server/server/credentialVault/privateFiles.js +17 -0
  74. package/dist-server/server/credentialVault/protectedExecutor.js +21 -0
  75. package/dist-server/server/credentialVault/schema.js +45 -0
  76. package/dist-server/server/credentialVault/sshExecutor.js +135 -0
  77. package/dist-server/server/credentialVault/store.js +308 -0
  78. package/dist-server/server/credentialVault/transport.js +127 -0
  79. package/dist-server/server/credentialVault/websiteExecutor.js +102 -0
  80. package/dist-server/server/localAuth.js +5 -0
  81. package/dist-server/server/openVikingSessionSync.js +148 -37
  82. package/dist-server/server/pushCoordinator.js +7 -4
  83. package/dist-server/server/routes.js +18 -0
  84. package/dist-server/server/runnerHub.js +14 -1
  85. package/dist-server/server/subaccountAccess.js +12 -0
  86. package/dist-server/server/unreadCenter.js +61 -0
  87. package/dist-server/server/uploads.js +4 -1
  88. package/dist-server/server/workspaceAssets.js +2 -1
  89. package/dist-server/server/workspaceRoutes.js +1 -1
  90. package/dist-server/server/workspaceRuntime.js +18 -2
  91. package/dist-server/server/workspaceStore.js +104 -43
  92. package/dist-server/shared/credentialVault.js +2 -0
  93. package/dist-server/shared/unread.js +6 -0
  94. package/dist-server/shared/uploadNames.js +14 -0
  95. package/licenses/libsodium.js/LICENSE +16 -0
  96. package/licenses/ssh2/LICENSE +19 -0
  97. package/package.json +4 -2
  98. package/release.json +3 -3
  99. package/dist/assets/AboutDialog-k7oUOua0.js.map +0 -1
  100. package/dist/assets/BotAutomationsView-CUaMkVfT.js +0 -2
  101. package/dist/assets/ChatView-CTWvNlNq.js +0 -2
  102. package/dist/assets/ChatView-CTWvNlNq.js.map +0 -1
  103. package/dist/assets/ChatView-Dx8YlcPr.css +0 -1
  104. package/dist/assets/ConversationsView-D5KvMs7J.js +0 -6
  105. package/dist/assets/ConversationsView-D5KvMs7J.js.map +0 -1
  106. package/dist/assets/FilesView-xOEZGSrD.js +0 -2
  107. package/dist/assets/FloatingResourceSearch-BF2XOLd-.css +0 -1
  108. package/dist/assets/FloatingResourceSearch-D5XwWF0V.js +0 -9
  109. package/dist/assets/FloatingResourceSearch-D5XwWF0V.js.map +0 -1
  110. package/dist/assets/HistoryView-CnUN9Qik.js +0 -2
  111. package/dist/assets/HistoryView-CnUN9Qik.js.map +0 -1
  112. package/dist/assets/HistoryView-DvuCAjlo.css +0 -1
  113. package/dist/assets/KanbanView-DXJCj1E6.js +0 -2
  114. package/dist/assets/WorkspaceShell-7wn8iTne.css +0 -1
  115. package/dist/assets/WorkspaceShell-DQZKvx2p.js +0 -44
  116. package/dist/assets/WorkspaceShell-DQZKvx2p.js.map +0 -1
  117. package/dist/assets/index-dvKMU4Xy.js +0 -17
  118. package/dist/assets/index-dvKMU4Xy.js.map +0 -1
  119. package/dist/assets/sessionOwnership-HZsbONG-.js +0 -6
  120. package/dist/assets/sessionOwnership-HZsbONG-.js.map +0 -1
@@ -1 +1 @@
1
- .conversation-list[data-v-b4830de9]{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;overflow:hidden}.conversation-list[data-v-b4830de9] .sidebar-list{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text-muted) 60%,transparent) transparent;padding:0 12px 18px}.conversation-list[data-v-b4830de9] .sidebar-list::-webkit-scrollbar{width:8px}.conversation-list[data-v-b4830de9] .sidebar-list::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-muted) 60%,transparent);background-clip:padding-box;border:2px solid #0000;border-radius:999px}.conversation-list[data-v-b4830de9] .sidebar-list:hover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-muted) 82%,transparent);background-clip:padding-box}.conversation-list[data-v-b4830de9] .sidebar-item{border-radius:12px;gap:16px;min-height:76px;padding:14px 8px}.conversation-list[data-v-b4830de9] .sidebar-item__icon{flex-basis:44px;width:44px;height:44px}.conversation-list[data-v-b4830de9] .sidebar-item__row strong{font-size:15px;font-weight:600;line-height:22px}.conversation-list[data-v-b4830de9] .sidebar-item__row--secondary{margin-top:4px;font-size:13px;line-height:19px}.conversation-list[data-v-b4830de9] .sidebar-item__row small{color:var(--text-muted);font-size:10px}.conversation-menu-dismiss[data-v-b4830de9]{z-index:200;position:fixed;inset:0}.conversation-actions[data-v-b4830de9]{border:1px solid var(--line);background:var(--surface-raised);min-width:155px;box-shadow:var(--shadow-float);border-radius:10px;padding:5px;display:grid;position:absolute}.conversation-actions button[data-v-b4830de9]{color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:9px 12px;font-size:12px}.conversation-actions button[data-v-b4830de9]:hover{background:var(--surface-hover)}.conversation-actions button.danger[data-v-b4830de9]{color:var(--danger)}.conversation-actions button[data-v-b4830de9]{align-items:center;gap:8px;min-height:36px;display:flex}.conversation-actions button[data-v-b4830de9]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.bot-model-settings[data-v-46078e43]{gap:14px;max-width:650px;display:grid}p[data-v-46078e43]{color:var(--text-secondary);margin:0;font-size:14px;line-height:1.6}fieldset[data-v-46078e43]{border:0;gap:16px;margin:0;padding:0;display:grid}label[data-v-46078e43]{gap:8px;font-size:14px;font-weight:550;display:grid}select[data-v-46078e43]{border:1px solid var(--line);width:100%;max-width:100%;min-height:44px;color:var(--text-primary);background:var(--surface);border-radius:8px;padding:10px}small[data-v-46078e43]{color:var(--text-secondary);line-height:1.6}.error[data-v-46078e43]{color:var(--danger,#c33)}button[data-v-46078e43]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;border-radius:8px;justify-self:start;padding:10px 16px}button[data-v-46078e43]:disabled{opacity:.5;cursor:default}button[data-v-46078e43]:focus-visible,select[data-v-46078e43]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.profile-approval[data-v-50d509d5]{gap:12px}.profile-approval .profile-note[data-v-50d509d5]{margin:0}.profile-approval>label[data-v-50d509d5]{cursor:pointer;align-items:flex-start;gap:10px;padding:10px 0;font-size:14px;display:flex}.profile-approval input[data-v-50d509d5]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.profile-approval small[data-v-50d509d5]{color:var(--text-secondary);margin-top:4px;font-size:12px;line-height:1.6;display:block}.bot-profile[data-v-50d509d5]{height:100%;min-height:0;color:var(--text-primary);grid-template-columns:208px minmax(0,1fr);display:grid}.bot-profile__sidebar[data-v-50d509d5]{background:var(--settings-sidebar);border-right:1px solid var(--line);min-height:0;padding:16px 12px;overflow:auto}.profile-search[data-v-50d509d5]{background:var(--settings-panel);border:1px solid var(--line);border-radius:8px;align-items:center;gap:8px;height:38px;padding:0 10px;display:flex}.profile-search input[data-v-50d509d5]{width:100%;min-width:0;color:inherit;font:13px var(--font-ui);background:0 0;border:0;outline:0}.profile-search[data-v-50d509d5]:focus-within{outline:2px solid var(--accent);outline-offset:2px}.profile-source[data-v-50d509d5]{border-bottom:1px solid var(--line);margin:16px 0;padding-bottom:16px}.profile-source>small[data-v-50d509d5]{color:var(--text-muted);margin-bottom:8px;font-size:11px;display:block}.profile-source>div[data-v-50d509d5]{align-items:center;gap:9px;margin-bottom:10px;display:flex}.profile-source span[data-v-50d509d5]{gap:2px;min-width:0;display:grid}.profile-source strong[data-v-50d509d5]{overflow-wrap:anywhere;font-size:13px;font-weight:600}.profile-source small[data-v-50d509d5]{color:var(--text-secondary);font-size:11px}.profile-source select[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface);width:100%;min-height:36px;color:inherit;font:12px var(--font-ui);border-radius:7px;padding:6px}nav[data-v-50d509d5]{gap:4px;display:grid}nav button[data-v-50d509d5]{text-align:left;min-height:44px;color:inherit;font:500 13px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;padding:9px 12px;display:flex}nav button[aria-current=page][data-v-50d509d5]{background:var(--settings-selected);font-weight:600}nav button[data-v-50d509d5]:hover{background:var(--surface-hover)}nav p[data-v-50d509d5]{color:var(--text-secondary);font-size:13px}.bot-profile__main[data-v-50d509d5]{grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;display:grid}.bot-profile__heading[data-v-50d509d5]{padding:20px 24px 16px}.bot-profile h3[data-v-50d509d5]{margin:0;font-size:17px}.bot-profile__heading p[data-v-50d509d5]{color:var(--text-secondary);margin:5px 0 0;font-size:12px}.bot-profile__content[data-v-50d509d5]{overscroll-behavior:contain;min-height:0;padding:0 24px 24px;overflow:auto}.profile-card[data-v-50d509d5]{background:var(--settings-panel);border-radius:12px;gap:16px;margin-bottom:16px;padding:20px;display:grid}.profile-card h4[data-v-50d509d5]{margin:0;font-size:15px;font-weight:600}.profile-who[data-v-50d509d5]{align-items:flex-start;gap:16px;display:flex}.profile-who>div[data-v-50d509d5]{min-width:0}.profile-who p[data-v-50d509d5]{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:13px;line-height:1.7}.profile-card>button[data-v-50d509d5]{justify-self:start}.profile-card dl[data-v-50d509d5]{margin:0}.profile-card dl>div[data-v-50d509d5]{border-top:1px solid var(--line);grid-template-columns:100px minmax(0,1fr);gap:12px;padding:10px 0;font-size:13px;display:grid}.profile-card dt[data-v-50d509d5]{color:var(--text-secondary)}.profile-card dd[data-v-50d509d5]{overflow-wrap:anywhere;margin:0}.profile-form[data-v-50d509d5]{gap:20px;display:grid}.profile-form>label[data-v-50d509d5]{gap:8px;font-size:14px;display:grid}.profile-form input[data-v-50d509d5],.profile-form textarea[data-v-50d509d5]{box-sizing:border-box;border:1px solid var(--line);width:100%;min-height:44px;color:inherit;background:var(--surface);font:14px var(--font-ui);border-radius:9px;padding:10px 12px}.profile-form textarea[data-v-50d509d5]{resize:vertical;line-height:1.7}.profile-note[data-v-50d509d5]{color:var(--text-secondary);margin:0 0 16px;font-size:13px;line-height:1.7}.profile-error[data-v-50d509d5]{color:var(--danger);background:var(--settings-panel);border-radius:9px;padding:12px;font-size:13px;line-height:1.6}.profile-permissions>label[data-v-50d509d5]{border-top:1px solid var(--line);align-items:flex-start;gap:10px;padding:12px 0;font-size:14px;display:flex}.profile-permissions input[data-v-50d509d5]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.profile-permissions small[data-v-50d509d5]{color:var(--text-secondary);margin-top:6px;font-size:12px;line-height:1.6;display:block}.bot-profile__footer[data-v-50d509d5]{border-top:1px solid var(--line);justify-content:flex-end;align-items:center;gap:10px;padding:12px 24px;display:flex}.bot-profile__footer>span[data-v-50d509d5]{color:var(--text-muted);flex:1;font-size:12px}.bot-profile__footer button[data-v-50d509d5],.profile-card>button[data-v-50d509d5]{border:1px solid var(--line);min-height:38px;color:inherit;background:var(--surface);font:13px var(--font-ui);cursor:pointer;border-radius:8px;padding:8px 14px}.bot-profile__footer .profile-save[data-v-50d509d5]{background:var(--accent);color:var(--text-on-solid);border:0}.bot-profile button[data-v-50d509d5]:disabled{cursor:default;opacity:.45}.bot-profile button[data-v-50d509d5]:focus-visible,.bot-profile input[data-v-50d509d5]:focus-visible,.bot-profile select[data-v-50d509d5]:focus-visible,.bot-profile textarea[data-v-50d509d5]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=600px){.bot-profile[data-v-50d509d5]{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.bot-profile__sidebar[data-v-50d509d5]{border-right:0;border-bottom:1px solid var(--line);padding:10px 12px;overflow:visible}.profile-search[data-v-50d509d5]{display:none}.profile-source[data-v-50d509d5]{border:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;margin:0 0 10px;padding:0;display:grid}.profile-source>small[data-v-50d509d5]{display:none}.profile-source>div[data-v-50d509d5]{margin:0}.bot-profile nav[data-v-50d509d5]{gap:4px;display:flex;overflow:auto}.bot-profile nav button[data-v-50d509d5]{white-space:nowrap;flex-shrink:0;gap:6px;min-height:44px;padding-inline:10px}.bot-profile__heading[data-v-50d509d5]{padding:16px 20px}.bot-profile__content[data-v-50d509d5]{padding:0 20px 20px}.bot-profile__footer[data-v-50d509d5]{padding:12px 20px}.bot-profile__footer>span[data-v-50d509d5]{display:none}}.bot-profile__sidebar[data-v-50d509d5]{min-width:0}@media (width<=600px){.bot-profile[data-v-50d509d5]{grid-template-columns:minmax(0,1fr)}}.usage-stats[data-v-50d509d5]{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.usage-stat[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface);border-radius:10px;gap:6px;padding:14px;display:grid}.usage-stat small[data-v-50d509d5]{color:var(--text-muted);font-size:11px}.usage-stat strong[data-v-50d509d5]{font-variant-numeric:tabular-nums;font-size:20px;font-weight:650}.usage-stat span[data-v-50d509d5]{color:var(--text-secondary);font-size:11px}.usage-table[data-v-50d509d5]{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:12px}.usage-table th[data-v-50d509d5]{color:var(--text-muted);text-align:right;border-bottom:1px solid var(--line);padding:6px 4px;font-weight:500}.usage-table th[data-v-50d509d5]:first-child,.usage-table td[data-v-50d509d5]:first-child{text-align:left}.usage-table td[data-v-50d509d5]{border-bottom:1px solid var(--line);text-align:right;padding:7px 4px}.usage-table td[data-v-50d509d5]:first-child{color:var(--text-secondary)}.profile-source .profile-source__picker[data-v-50d509d5]{border:1px solid var(--line);background:var(--settings-panel);box-sizing:border-box;border-radius:8px;min-height:48px;margin:0;padding:6px 8px;position:relative}.profile-source__identity[data-v-50d509d5]{flex:1}.profile-source__picker>select[data-v-50d509d5]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.profile-source__picker[data-v-50d509d5]:focus-within{outline:2px solid var(--accent);outline-offset:2px}@media (width<=600px){.profile-source[data-v-50d509d5]{display:block}.profile-source .profile-source__picker[data-v-50d509d5]{max-width:100%}}.persona-field[data-v-50d509d5]{border:1px solid var(--line);border-radius:10px;gap:8px;margin:0;padding:10px 12px;display:grid}.persona-field legend[data-v-50d509d5]{color:var(--text-secondary);padding:0 4px;font-size:12.5px}.anti-list[data-v-50d509d5]{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.anti-list li[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:13px;display:flex}.anti-list li button[data-v-50d509d5]{cursor:pointer;min-height:24px;color:var(--text-muted);background:0 0;border:0;padding:2px}.anti-input[data-v-50d509d5]{gap:8px;display:flex}.anti-input input[data-v-50d509d5]{flex:1}.persona-choice-group[data-v-50d509d5]{background:color-mix(in srgb,var(--surface-soft) 55%,transparent);gap:10px;padding:12px}.persona-options[data-v-50d509d5]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.radio-row[data-v-50d509d5]{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:9px;align-items:flex-start;gap:10px;min-width:0;min-height:66px;padding:11px 12px;transition:border-color .14s,background-color .14s,box-shadow .14s;display:flex}.radio-row[data-v-50d509d5]:hover:not(:has(input:disabled)){border-color:var(--line-strong);background:var(--surface-raised)}.radio-row.selected[data-v-50d509d5]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 16%,transparent)}.radio-row[data-v-50d509d5]:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.radio-row input[data-v-50d509d5]:focus-visible{outline:none}.radio-row[data-v-50d509d5]:has(input:disabled){cursor:default;opacity:.55}.radio-row input[data-v-50d509d5]{width:16px;height:16px;min-height:16px;accent-color:var(--accent);flex:none;margin:2px 0 0;padding:0}.radio-row span[data-v-50d509d5]{gap:4px;min-width:0;display:grid}.radio-row strong[data-v-50d509d5]{color:var(--text-primary);font-size:13px;font-weight:600;line-height:1.35}.radio-row small[data-v-50d509d5]{color:var(--text-muted);font-size:11.5px;line-height:1.5}.persona-advanced summary[data-v-50d509d5]{cursor:pointer;color:var(--text-secondary);margin-bottom:8px;font-size:13px}@media (width<=600px){.persona-options[data-v-50d509d5]{grid-template-columns:1fr}.radio-row[data-v-50d509d5]{min-height:60px}}@media (prefers-reduced-motion:reduce){.radio-row[data-v-50d509d5]{transition:none}}.grok-auth[data-v-bf9a1b51]{border:1px solid var(--line);background:var(--surface-raised);color:var(--text-primary);border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex}header[data-v-bf9a1b51]{align-items:center;gap:10px;display:flex}.account-icon[data-v-bf9a1b51]{background:var(--surface-soft);border-radius:10px;place-items:center;width:38px;height:38px;display:grid}header>div[data-v-bf9a1b51]{flex:1;gap:4px;display:grid}strong[data-v-bf9a1b51]{font-size:13px}small[data-v-bf9a1b51]{color:var(--text-secondary);font-size:11.5px}.connected[data-v-bf9a1b51]{color:var(--accent);align-items:center;gap:4px;font-size:10.5px;display:flex}.account[data-v-bf9a1b51]{overflow-wrap:anywhere;gap:4px;margin:0;font-size:13px;display:grid}.account span[data-v-bf9a1b51]{color:var(--text-secondary);font-size:12px}button[data-v-bf9a1b51],a.primary[data-v-bf9a1b51]{font:inherit;border:1px solid var(--line);min-height:44px;color:var(--text-primary);background:var(--surface);cursor:pointer;box-sizing:border-box;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:9px 12px;font-size:12px;text-decoration:none;display:inline-flex}.primary[data-v-bf9a1b51]{background:var(--accent)!important;color:var(--text-on-solid)!important;border-color:var(--accent)!important;font-weight:500!important}.hint[data-v-bf9a1b51],.privacy[data-v-bf9a1b51]{color:var(--text-secondary);margin:0;font-size:12px;line-height:1.7}.hint span[data-v-bf9a1b51]{margin-top:4px;display:block}.privacy[data-v-bf9a1b51]{color:var(--text-muted);border-top:1px solid var(--line);padding-top:12px;font-size:11px}.pending[data-v-bf9a1b51]{background:var(--surface-soft);border-radius:8px;align-items:flex-start;gap:8px;padding:12px;display:flex}.pending strong[data-v-bf9a1b51]{font-size:12px}.pending p[data-v-bf9a1b51]{color:var(--text-secondary);margin:5px 0 0;font-size:11.5px;line-height:1.7}.pulse[data-v-bf9a1b51]{background:var(--accent);border-radius:50%;flex:none;width:7px;height:7px;margin-top:5px}.error[data-v-bf9a1b51]{color:var(--danger);margin:0;font-size:12px;line-height:1.7}.actions[data-v-bf9a1b51]{gap:8px;display:flex}.actions button[data-v-bf9a1b51]{flex:1}.disconnect[data-v-bf9a1b51]{color:var(--text-secondary);background:0 0;border:0}button[data-v-bf9a1b51]:disabled{opacity:.5;cursor:default}summary[data-v-bf9a1b51]{cursor:pointer;color:var(--text-muted);align-content:center;min-height:32px;font-size:11.5px}details .hint[data-v-bf9a1b51]{margin:5px 0 10px}button[data-v-bf9a1b51]:focus-visible,a[data-v-bf9a1b51]:focus-visible,summary[data-v-bf9a1b51]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.host-environment-option[data-v-f6da9af7]{cursor:pointer;align-items:center;gap:8px;min-height:44px;font-size:13px;display:flex}.host-environment-option input[data-v-f6da9af7]{width:16px;height:16px;accent-color:var(--accent)}.vm-execution-option select[data-v-f6da9af7]{width:100%;min-width:0;min-height:44px}.vm-execution-option .hint[data-v-f6da9af7]{line-height:1.6}.local-vm-chat-panel[data-v-f6da9af7]{border-left:1px solid var(--line);background:var(--surface);width:400px;min-width:320px;max-width:46%;height:100%;color:var(--text-primary);flex-direction:column;display:flex}header[data-v-f6da9af7]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}header button[data-v-f6da9af7]{border:0;min-height:32px;padding:5px}.panel-body[data-v-f6da9af7]{flex-direction:column;gap:14px;padding:18px 20px;display:flex;overflow:auto}.screen-caption[data-v-f6da9af7]{color:var(--text-secondary);justify-content:space-between;align-items:center;font-size:13px;display:flex}.screen-select[data-v-f6da9af7]{border-radius:7px;max-width:58%;min-height:30px;padding:4px 8px;font-size:12px}.preview[data-v-f6da9af7]{aspect-ratio:16/10;color:#dce1e7;background:#14181e;border:0;border-radius:12px;flex:none;justify-content:center;align-items:center;width:100%;padding:0;display:flex;position:relative;overflow:hidden}.preview[data-v-f6da9af7]:disabled{opacity:1;cursor:default}.preview img[data-v-f6da9af7]{object-fit:contain;width:100%;height:100%}.empty[data-v-f6da9af7]{justify-items:center;gap:12px;font-size:13px;display:grid}.open-badge[data-v-f6da9af7]{color:#fff;background:#000b;border-radius:6px;align-items:center;gap:4px;padding:5px 7px;font-size:11px;display:flex;position:absolute;top:8px;right:8px}p[data-v-f6da9af7]{color:var(--text-secondary);margin:0;font-size:13px;line-height:1.65}label[data-v-f6da9af7]{gap:7px;font-size:13px;display:grid}button[data-v-f6da9af7],select[data-v-f6da9af7]{font:inherit;background:var(--surface-raised);color:inherit;border:1px solid var(--line);border-radius:8px;min-height:40px;padding:8px 12px}button[data-v-f6da9af7]{cursor:pointer;justify-content:center;align-items:center;gap:7px;display:inline-flex}button[data-v-f6da9af7]:disabled,select[data-v-f6da9af7]:disabled{opacity:.45;cursor:default}.primary[data-v-f6da9af7]{background:var(--accent);color:var(--text-on-solid)}.vm-actions[data-v-f6da9af7]{gap:8px;display:flex}.vm-actions button[data-v-f6da9af7]{flex:1;font-size:12px}.hint[data-v-f6da9af7]{color:var(--text-muted);font-size:12px}.problem[data-v-f6da9af7]{color:var(--danger)}.settings-link[data-v-f6da9af7]{background:0 0;border:0;align-self:flex-start;padding-left:0;font-size:12px}.control-state[data-v-f6da9af7]{background:var(--surface-soft);border-radius:8px;padding:10px}.host-permission[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:7px;padding:11px 12px;display:grid}.host-permission.offline[data-v-f6da9af7]{opacity:.6}.host-permission-head[data-v-f6da9af7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.host-permission-head strong[data-v-f6da9af7]{font-size:12.5px}.host-permission-head small[data-v-f6da9af7]{color:var(--text-muted);font-size:11px}button[data-v-f6da9af7]:focus-visible,select[data-v-f6da9af7]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.local-vm-chat-panel[data-v-f6da9af7]{z-index:35;width:min(400px,100vw);max-width:100%;position:fixed;inset:0 0 0 auto;box-shadow:-20px 0 60px #0002}}.computer-select[data-v-f6da9af7]{gap:7px;min-width:0;font-size:13px;display:grid}.env-checks[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;grid-template-columns:1fr 1fr;gap:8px;padding:4px;display:grid}.env-check[data-v-f6da9af7]{cursor:pointer;border:1px solid #0000;border-radius:8px;align-items:flex-start;gap:9px;min-width:0;padding:11px 12px;display:flex}.env-check[data-v-f6da9af7]:hover:not(:has(input:disabled)){background:var(--surface-hover)}.env-check.selected[data-v-f6da9af7]{background:color-mix(in srgb,var(--success) 8%,transparent)}.env-check input[data-v-f6da9af7]{width:16px;height:16px;accent-color:var(--success);flex:none;margin:1px 0 0}.env-check span[data-v-f6da9af7]{gap:4px;min-width:0;display:grid}.env-check b[data-v-f6da9af7]{color:var(--text-primary);align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:flex}.env-check small[data-v-f6da9af7],.env-checks .env-hint[data-v-f6da9af7]{color:var(--text-muted);font-size:11px;line-height:1.5}.env-hint[data-v-f6da9af7]{grid-column:1/-1;margin:0}.computer-tabs[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:4px;padding:4px;display:flex;overflow-x:auto}.computer-tabs button[data-v-f6da9af7]{min-height:40px;color:var(--text-secondary);white-space:nowrap;background:0 0;border:0;border-radius:7px;flex:1 0 auto;padding:8px 12px;font-size:12px}.computer-tabs button[aria-selected=true][data-v-f6da9af7]{background:var(--surface);color:var(--text-primary);font-weight:600;box-shadow:0 1px 3px #00000014}.computer-tabs button[data-v-f6da9af7]:hover:not(:disabled):not([aria-selected=true]){background:var(--surface-hover)}.computer-tabs button[data-v-f6da9af7]:focus-visible{outline-offset:-2px}.computer-options[data-v-f6da9af7]{flex-direction:column;gap:14px;display:flex}.managed-browser-option[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:10px;padding:12px;display:grid}.managed-browser-option strong[data-v-f6da9af7]{font-size:13px}.managed-browser-option button[data-v-f6da9af7]{min-height:44px}.computer-options[data-v-f6da9af7]:empty{display:none}.screen-caption[data-v-f6da9af7]{gap:8px}.screen-select[data-v-f6da9af7]{min-width:0;min-height:44px}.cloud-settings[data-v-f6da9af7]{border:1px solid var(--line);border-radius:10px;gap:10px;padding:14px;display:grid}.cloud-settings input[data-v-f6da9af7]{min-height:44px;font:inherit;color:var(--text-primary);background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;min-width:0;padding:8px}.computer-tabs[data-v-f6da9af7]{grid-template-columns:1fr 1fr;display:grid;overflow:visible}.computer-tabs button[data-v-f6da9af7]{text-align:left;white-space:normal;justify-content:flex-start;min-height:48px}.computer-tabs[data-v-f6da9af7]{background:0 0;border:0;gap:8px;padding:0}.computer-tabs button[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);flex-direction:column;align-items:flex-start;gap:7px;min-height:82px;padding:12px;display:flex}.computer-tabs button span[data-v-f6da9af7]{align-items:center;gap:6px;font-weight:500;display:flex}.computer-tabs button small[data-v-f6da9af7]{color:var(--text-muted);font-size:11px;line-height:1.5}.computer-tabs button[aria-selected=true][data-v-f6da9af7]{border-color:var(--accent);background:var(--surface-raised);box-shadow:none}.computer-tabs button[data-v-f6da9af7]:disabled{opacity:.55}.permission-list[data-v-f6da9af7]{color:var(--text-secondary);gap:8px;font-size:13px;display:grid}.inspector[data-v-8c8ae801]{min-height:0;color:var(--text-primary);background:var(--surface);flex-direction:column;flex:1;display:flex}header[data-v-8c8ae801]{box-sizing:border-box;border-bottom:1px solid var(--line);align-items:center;gap:8px;min-height:64px;padding:10px 12px 10px 16px;font-size:15px;display:flex}header>strong[data-v-8c8ae801]{flex:1}header .app-icon[data-v-8c8ae801]{color:var(--text-muted)}.inspector-toolbar[data-v-8c8ae801]{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:10px 12px 12px 16px;display:flex}.lenses[data-v-8c8ae801]{background:var(--surface-soft);border-radius:8px;padding:3px;display:flex}button[data-v-8c8ae801]{font:inherit;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;min-height:32px;padding:5px 10px;font-size:12px}.close[data-v-8c8ae801]{border-radius:8px;place-items:center;min-width:44px;min-height:44px;padding:0;display:grid}.close[data-v-8c8ae801]:hover{background:var(--surface-hover);color:var(--text-primary)}.lenses button[aria-pressed=true][data-v-8c8ae801]{background:var(--surface-raised);color:var(--text-primary);font-weight:600;box-shadow:0 1px 2px #0000000c}.inspector-toolbar>span[data-v-8c8ae801]{color:var(--text-muted);margin-left:auto;font-size:11px}.reload[data-v-8c8ae801]{place-items:center;min-width:32px;padding:6px;display:grid}.inspector-list[data-v-8c8ae801]{flex:1;min-height:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;overflow:auto}.empty[data-v-8c8ae801],.error[data-v-8c8ae801]{color:var(--text-muted);padding:10px 16px;line-height:1.7}.inspector-row[data-v-8c8ae801]{border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent)}.inspector-row.boundary[data-v-8c8ae801]{background:var(--surface-soft)}.inspector-row.error[data-v-8c8ae801]{background:color-mix(in srgb,var(--danger) 8%,transparent);padding:0}summary[data-v-8c8ae801]{box-sizing:border-box;cursor:pointer;align-items:center;gap:7px;min-height:32px;padding:6px 12px;list-style:none;display:flex}summary[data-v-8c8ae801]::-webkit-details-marker{display:none}summary[data-v-8c8ae801]:hover{background:var(--surface-hover)}.chevron[data-v-8c8ae801]{color:var(--text-muted);flex:none;transform:rotate(180deg)}details[open] .chevron[data-v-8c8ae801]{transform:rotate(-90deg)}time[data-v-8c8ae801]{font-variant-numeric:tabular-nums;color:var(--text-muted);flex:none;font-size:10.5px}.tag[data-v-8c8ae801]{text-overflow:ellipsis;white-space:nowrap;max-width:128px;color:var(--text-secondary);background:var(--surface-soft);border-radius:4px;flex:none;padding:2px 4px;font-size:10px;overflow:hidden}.native[data-v-8c8ae801]{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.summary[data-v-8c8ae801]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.error .tag[data-v-8c8ae801],.error .summary[data-v-8c8ae801]{color:var(--danger)}small[data-v-8c8ae801]{color:var(--text-muted);font-size:10px}pre[data-v-8c8ae801]{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-raised);border-top:1px solid var(--line);max-height:50vh;margin:0;padding:10px 12px;font-size:11px;line-height:1.6;overflow:auto}button[data-v-8c8ae801]:focus-visible,summary[data-v-8c8ae801]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@media (width<=600px){button[data-v-8c8ae801],summary[data-v-8c8ae801]{min-height:44px}.reload[data-v-8c8ae801]{min-width:44px}summary[data-v-8c8ae801]{gap:5px;padding-left:8px;padding-right:8px}time[data-v-8c8ae801]{font-size:9.5px}.tag[data-v-8c8ae801]{max-width:108px}}.bot-panel[data-v-7eda4b23]{border-left:1px solid var(--line);background:var(--surface);width:420px;min-width:320px;max-width:46%;height:100%;color:var(--text-primary);flex-direction:column;display:flex}header[data-v-7eda4b23]{border-bottom:1px solid var(--line);box-sizing:border-box;justify-content:center;align-items:center;min-height:64px;padding:10px 58px;display:flex;position:relative}.tabs[data-v-7eda4b23]{flex-wrap:wrap;justify-content:center;gap:2px;display:flex}.tabs button[data-v-7eda4b23]{padding:8px;font-size:12px}.tabs button[aria-pressed=true][data-v-7eda4b23]{background:var(--surface-soft);color:var(--text-primary);font-weight:600}.close[data-v-7eda4b23]{position:absolute;right:12px}button[data-v-7eda4b23]{font:inherit;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:5px;min-width:44px;min-height:44px;display:inline-flex}button[data-v-7eda4b23]:hover{background:var(--surface-hover);color:var(--text-primary)}button[data-v-7eda4b23]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.bot-panel[data-v-7eda4b23]{z-index:35;width:min(440px,100vw);max-width:100%;position:fixed;inset:0 0 0 auto;box-shadow:-20px 0 60px #0002}}[data-v-7eda4b23] .local-vm-chat-panel.embedded{width:100%;min-width:0;max-width:none;box-shadow:none;border:0;flex:1;min-height:0;position:static}[data-v-7eda4b23] .local-vm-chat-panel.embedded>header{display:none}.local-vm-workspace[data-v-3c7b5891]{background:var(--surface);width:100%;height:100%;min-height:0;max-height:none;color:var(--text-primary);border:0;flex-direction:column;margin:0;padding:0;display:flex}.local-vm-workspace[data-v-3c7b5891]::backdrop{background:#0009}header[data-v-3c7b5891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}p[data-v-3c7b5891]{color:var(--text-secondary);margin:6px 0 0;font-size:12px;line-height:1.6}.panes[data-v-3c7b5891]{background:var(--surface-soft);flex:1;grid-template-columns:1fr 1fr;gap:12px;min-height:0;padding:12px;display:grid}.pane[data-v-3c7b5891]{background:var(--surface);border:1px solid var(--line);border-radius:10px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.pane>label[data-v-3c7b5891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;font-size:13px;display:flex}.controlled[data-v-3c7b5891]{outline:2px solid var(--accent);outline-offset:-2px}button[data-v-3c7b5891],select[data-v-3c7b5891]{min-height:40px;font:inherit;border:1px solid var(--line);color:inherit;background:var(--surface-raised);border-radius:8px;padding:7px 12px}button[data-v-3c7b5891]:disabled,select[data-v-3c7b5891]:disabled{opacity:.5}button[data-v-3c7b5891]:focus-visible,select[data-v-3c7b5891]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.empty[data-v-3c7b5891]{padding:30px}.panes[data-v-3c7b5891]:has(+[role=alert]){height:auto}[role=alert][data-v-3c7b5891]{color:var(--danger);padding:0 20px}@media (width<=800px){.panes[data-v-3c7b5891]{grid-template-columns:1fr;height:auto}.local-vm-workspace[data-v-3c7b5891]{overflow:auto}.pane[data-v-3c7b5891]{min-height:70vh}}.task-plan[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface-raised);width:100%;max-width:760px;box-shadow:0 6px 22px color-mix(in srgb, var(--text-primary) 5%, transparent);box-sizing:border-box;border-radius:15px;margin:0 auto 10px;font-size:13px;overflow:hidden}.task-plan__header[data-v-f1b129e6]{align-items:center;gap:6px;min-height:58px;padding:6px 8px;display:flex}.task-plan__disclosure[data-v-f1b129e6]{text-align:left;touch-action:manipulation;background:0 0;border:0;border-radius:10px;flex:1;align-items:center;gap:11px;min-width:0;min-height:46px;padding:4px 6px;display:flex}.task-plan__disclosure[data-v-f1b129e6]:hover{background:var(--surface-hover)}.task-plan__icon[data-v-f1b129e6]{background:var(--surface-soft);width:34px;height:34px;color:var(--text-secondary);border-radius:10px;flex:0 0 34px;place-items:center;display:grid}.task-plan__heading[data-v-f1b129e6]{align-items:center;gap:8px;min-width:0;display:flex}.task-plan__heading>strong[data-v-f1b129e6]{color:var(--text-primary);white-space:nowrap;font-size:14px;font-weight:650}.task-plan__status[data-v-f1b129e6]{color:var(--text-secondary);white-space:nowrap;align-items:center;gap:5px;font-size:11px;display:inline-flex}.task-plan__status i[data-v-f1b129e6]{background:var(--success);width:6px;height:6px;box-shadow:0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent);border-radius:50%}.task-plan__count[data-v-f1b129e6]{color:var(--text-primary);font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:13px}.task-plan__count small[data-v-f1b129e6]{color:var(--text-muted);margin-left:2px;font-size:11px;font-weight:450}.task-plan__header-chevron[data-v-f1b129e6]{color:var(--text-muted);flex:none;transition:transform .16s}.task-plan--expanded .task-plan__header-chevron[data-v-f1b129e6]{transform:rotate(180deg)}.task-plan__actions[data-v-f1b129e6]{gap:6px;display:flex}.task-plan__actions[data-v-f1b129e6]:empty{display:none}.task-plan__actions button[data-v-f1b129e6]{min-height:40px;color:var(--text-secondary);border-color:#0000;padding-inline:10px}.task-plan__progress[data-v-f1b129e6]{grid-template-columns:repeat(auto-fit,minmax(28px,1fr));gap:5px;padding:0 14px;display:grid}.task-plan__progress span[data-v-f1b129e6]{background:var(--line-strong);border-radius:999px;height:3px}.task-plan__progress span.complete[data-v-f1b129e6]{background:var(--workflow-accent)}.task-plan__progress span.active[data-v-f1b129e6]{background:color-mix(in srgb, var(--workflow-accent) 52%, var(--line))}.task-plan__progress span.failed[data-v-f1b129e6]{background:var(--danger)}.task-plan__steps[data-v-f1b129e6]{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;padding:10px 14px 13px;display:grid}.task-plan__steps>div[data-v-f1b129e6]{min-width:0;color:var(--text-muted);align-items:center;gap:7px;display:flex}.task-plan__steps>div>span[data-v-f1b129e6]{border:1px solid var(--line-strong);background:var(--surface);width:20px;height:20px;color:var(--text-muted);font-variant-numeric:tabular-nums;border-radius:50%;flex:0 0 20px;place-items:center;font-size:10px;display:grid}.task-plan__steps>div.complete>span[data-v-f1b129e6]{border-color:var(--workflow-accent);background:var(--workflow-accent);color:var(--workflow-on-accent)}.task-plan__steps>div.active>span[data-v-f1b129e6]{border-color:var(--workflow-accent);color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.task-plan__steps>div.failed>span[data-v-f1b129e6]{border-color:var(--danger);color:var(--danger)}.task-plan__steps strong[data-v-f1b129e6]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;font-weight:520;overflow:hidden}.task-plan__steps .complete strong[data-v-f1b129e6],.task-plan__steps .active strong[data-v-f1b129e6]{color:var(--text-secondary)}.task-plan__result[data-v-f1b129e6]{background:var(--surface-soft);border-radius:10px;margin:0 14px 12px;padding:11px 12px}.task-plan__result>small[data-v-f1b129e6]{color:var(--text-muted);margin-bottom:3px;font-size:10px;font-weight:620;display:block}.result[data-v-f1b129e6]{max-height:12vh;color:var(--text-secondary);margin:0;font-size:12px;line-height:1.6;overflow:auto}details[data-v-f1b129e6]{border-top:1px solid var(--line)}summary[data-v-f1b129e6]{min-height:46px;color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;padding:0 14px;list-style:none;display:flex}summary[data-v-f1b129e6]::-webkit-details-marker{display:none}summary>span[data-v-f1b129e6]{flex:1;font-size:12px;font-weight:520}.task-plan__chevron[data-v-f1b129e6]{transition:transform .16s}details[open] .task-plan__chevron[data-v-f1b129e6]{transform:rotate(180deg)}.plan-details[data-v-f1b129e6]{max-height:34vh;padding:2px 14px 14px;overflow:auto}.objective[data-v-f1b129e6]{color:var(--text-secondary)}ol[data-v-f1b129e6],.criteria[data-v-f1b129e6]{margin-top:0;padding-left:20px}li[data-v-f1b129e6]{padding:7px 0}li div[data-v-f1b129e6]{justify-content:space-between;gap:12px;display:flex}li div span[data-v-f1b129e6]{color:var(--text-secondary);white-space:nowrap}p[data-v-f1b129e6]{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.criteria span[data-v-f1b129e6]{color:var(--text-secondary);font-size:12px}button[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;font:inherit;border-radius:9px;padding:8px 12px}button[data-v-f1b129e6]:hover:not(:disabled){background:var(--surface-hover)}button[data-v-f1b129e6]:disabled{cursor:default;opacity:.55}label[data-v-f1b129e6]{gap:8px;display:grid}textarea[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface);box-sizing:border-box;width:100%;color:var(--text-primary);font:inherit;resize:vertical;border-radius:9px;outline:0;padding:10px;line-height:1.5}textarea[data-v-f1b129e6]:focus{border-color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.criteria-actions[data-v-f1b129e6]{gap:8px;margin-top:10px;display:flex}.criteria-error[data-v-f1b129e6]{color:var(--danger)}summary[data-v-f1b129e6]:focus-visible,button[data-v-f1b129e6]:focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}@media (width<=600px){.task-plan[data-v-f1b129e6]{border-radius:14px}.task-plan__header[data-v-f1b129e6]{min-height:56px;padding-inline:6px}.task-plan__disclosure[data-v-f1b129e6]{gap:8px;padding-inline:6px}.task-plan__icon[data-v-f1b129e6]{display:none}.task-plan__heading[data-v-f1b129e6]{flex-direction:column;align-items:flex-start;gap:1px}.task-plan__actions button[data-v-f1b129e6]{min-width:44px;padding-inline:8px;font-size:12px}.task-plan__progress[data-v-f1b129e6]{padding-inline:12px}.task-plan__steps[data-v-f1b129e6]{scrollbar-width:none;grid-template-columns:none;grid-auto-columns:minmax(78px,1fr);grid-auto-flow:column;gap:8px;padding-inline:12px;overflow-x:auto}.task-plan__steps[data-v-f1b129e6]::-webkit-scrollbar{display:none}.task-plan__result[data-v-f1b129e6]{margin-inline:12px}summary[data-v-f1b129e6],.plan-details[data-v-f1b129e6]{padding-inline:12px}}@media (prefers-reduced-motion:reduce){.task-plan__chevron[data-v-f1b129e6],.task-plan__header-chevron[data-v-f1b129e6]{transition:none}}.workspace-approval[data-v-6cb4bac8]{box-sizing:border-box;border:1px solid var(--line);background:var(--settings-panel);width:100%;color:var(--text-primary);border-radius:18px;margin:16px 0 6px;padding:14px}h3[data-v-6cb4bac8]{align-items:center;gap:10px;margin:0;font-size:18px;font-weight:650;line-height:1.3;display:flex}h3 svg[data-v-6cb4bac8]{flex-shrink:0;width:24px;height:24px}.workspace-approval__request[data-v-6cb4bac8]{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;color:var(--text-secondary);margin:8px 0 12px;font-size:14px;line-height:1.45;overflow:auto}.workspace-approval__actions[data-v-6cb4bac8]{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}button[data-v-6cb4bac8]{min-width:0;min-height:44px;font:600 14px/1.3 var(--font-ui);white-space:nowrap;color:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:10px 6px;transition:background .15s,opacity .15s;display:flex}button svg[data-v-6cb4bac8]{flex-shrink:0;width:18px;height:18px}.workspace-approval__allow[data-v-6cb4bac8]{background:var(--accent);color:var(--text-on-solid);border:1px solid var(--accent)}.workspace-approval__deny[data-v-6cb4bac8]{background:var(--surface);border:1px solid var(--line-strong)}.workspace-approval__auto[data-v-6cb4bac8]{background:var(--settings-selected);border:1px solid #0000}button[data-v-6cb4bac8]:hover:not(:disabled){filter:brightness(.94)}button[data-v-6cb4bac8]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button[data-v-6cb4bac8]:disabled{opacity:.5;cursor:default}.workspace-approval__hint[data-v-6cb4bac8]{color:var(--text-secondary);margin:10px 0 0;font-size:13px;line-height:1.4}.workspace-approval__scope[data-v-6cb4bac8]{color:var(--text-secondary);margin:6px 0 0;font-size:12px;line-height:1.4}.workspace-approval__status[data-v-6cb4bac8],.workspace-approval__error[data-v-6cb4bac8]{margin:10px 0 0;font-size:13px;line-height:1.5}.workspace-approval__error[data-v-6cb4bac8]{color:var(--danger)}@media (prefers-reduced-motion:reduce){button[data-v-6cb4bac8]{transition:none}}.managed-browser-card[data-v-04df7c6f]{box-sizing:border-box;border:1px solid var(--line);background:var(--surface-soft);width:420px;min-width:0;max-width:100%;color:var(--text-primary);border-radius:12px;gap:10px;margin:6px 0;padding:16px;display:grid}.browser-card-heading[data-v-04df7c6f]{align-items:center;gap:8px;min-width:0;font-size:13px;display:flex}.browser-card-state[data-v-04df7c6f]{color:var(--text-secondary);text-align:right;margin-left:auto;font-size:12px}.browser-card-title[data-v-04df7c6f]{overflow-wrap:anywhere;font-size:15px;line-height:1.5}.managed-browser-card p[data-v-04df7c6f]{overflow-wrap:anywhere;color:var(--text-secondary);margin:0;font-size:13px;line-height:1.6}.managed-browser-card .browser-card-url[data-v-04df7c6f]{font-size:12px}.managed-browser-card small[data-v-04df7c6f]{color:var(--text-secondary);font-size:12px;line-height:1.6}.managed-browser-card .failed[data-v-04df7c6f],.managed-browser-card .browser-card-error[data-v-04df7c6f]{color:var(--danger)}.managed-browser-card progress[data-v-04df7c6f]{width:100%;height:6px;accent-color:var(--accent)}.managed-browser-card button[data-v-04df7c6f]{border:1px solid var(--line);min-height:44px;font:inherit;background:var(--surface);color:var(--text-primary);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:600;display:flex}.managed-browser-card button[data-v-04df7c6f]:hover{background:var(--surface-hover)}.managed-browser-card button[data-v-04df7c6f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.managed-browser-card button[data-v-04df7c6f]:active{background:var(--surface-raised)}@media (width<=480px){.managed-browser-card[data-v-04df7c6f]{width:100%;padding:12px}.browser-card-heading[data-v-04df7c6f]{flex-wrap:wrap}}.message--has-failure[data-v-b0f791e6]{flex-wrap:wrap}.message--has-failure>.failure-notice[data-v-b0f791e6]{flex:0 0 100%}.message.message--notice[data-v-b0f791e6],.message.message--failure-notice[data-v-b0f791e6]{justify-content:center}.message--notice .message__avatar[data-v-b0f791e6],.message--failure-notice .message__avatar[data-v-b0f791e6]{display:none}.message.message--notice .message__body[data-v-b0f791e6],.message.message--failure-notice .message__body[data-v-b0f791e6]{background:0 0;border:0;width:100%;max-width:100%;margin:0;padding:0}.message.message--communication[data-v-b0f791e6]{flex-direction:column;align-items:flex-start;gap:12px;margin-top:24px}.communication-caption[data-v-b0f791e6]{width:100%;min-width:0;color:var(--text-secondary);justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:400;line-height:16px;display:flex}.communication-caption>span[data-v-b0f791e6]:first-child{white-space:nowrap;flex-shrink:0}.communication-caption__name[data-v-b0f791e6]{overflow-wrap:anywhere;min-width:0;max-width:60%}.message.message--communication .message__body[data-v-b0f791e6]{background:var(--surface-soft);text-align:left;border:0;border-radius:20px;width:fit-content;max-width:min(680px,86%);margin:0;padding:12px 16px}.timeline-frame[data-v-b0f791e6]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.timeline-header[data-v-b0f791e6]{z-index:6;border-bottom:1px solid var(--line);background:color-mix(in srgb, var(--canvas) 92%, transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);align-items:center;gap:13px;min-height:62px;padding:10px 18px;display:flex}.timeline-header--transparent[data-v-b0f791e6]{-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;background:0 0;border:0;justify-content:flex-end;min-height:0;padding:11px 14px;position:absolute;top:0;left:0;right:0}.timeline-header--transparent[data-v-b0f791e6]>*{pointer-events:auto}.timeline-identity[data-v-b0f791e6]{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.timeline-heading[data-v-b0f791e6]{min-width:0}.timeline-header h2[data-v-b0f791e6]{letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:14px;font-weight:630;overflow:hidden}.timeline-header p[data-v-b0f791e6]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font-size:9px;overflow:hidden}.timeline[data-v-b0f791e6]{overflow-anchor:none;overscroll-behavior:contain;background:var(--conversation-canvas);flex:1;min-height:0;overflow-y:auto}.message-stack[data-v-b0f791e6]{width:min(780px,100%);min-height:100%;margin:0 auto;padding:24px 24px 36px}.message-stack--interaction[data-v-b0f791e6]{padding-bottom:10px}.timeline-frame--transparent .message-stack[data-v-b0f791e6]{padding-top:58px}.load-older[data-v-b0f791e6]{border:1px solid var(--line);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;margin:0 auto 18px;padding:5px 9px;font-size:10px;display:block}.load-older[data-v-b0f791e6]:hover{background:var(--surface-soft);color:var(--text-secondary)}.message[data-v-b0f791e6]{gap:10px;max-width:100%;margin:0 0 21px;display:flex;position:relative}.message__avatar[data-v-b0f791e6]{width:27px;height:27px;color:var(--text-secondary);background:0 0;flex:0 0 27px;place-items:center;font-size:11px;font-weight:700;display:grid}.message__body[data-v-b0f791e6]{min-width:0;max-width:min(680px,100% - 37px);position:relative}.message__meta[data-v-b0f791e6]{min-height:20px;color:var(--text-muted);align-items:center;gap:7px;font-size:10px;display:flex}.message__meta strong[data-v-b0f791e6]{color:var(--text-primary);align-items:center;font-size:12px;font-weight:600;display:inline-flex}.message__remote-agent[data-v-b0f791e6]{color:var(--accent);margin-right:4px}.message__meta span[data-v-b0f791e6]{color:var(--warning)}.message__meta .message__execution[data-v-b0f791e6]{max-width:230px;color:var(--text-secondary);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.message__content[data-v-b0f791e6]{color:var(--text-primary)}.message__content[data-v-b0f791e6] .plain-text,.message__content[data-v-b0f791e6] .markdown{font-size:15px}.message__content[data-v-b0f791e6] .code-lang,.message__content[data-v-b0f791e6] .code-copy{font-size:10px}.message__content[data-v-b0f791e6] .code-block code{font-size:12px}.message__content[data-v-b0f791e6] .file-link-card:after{font-size:10px}.message--user[data-v-b0f791e6]{justify-content:flex-end;margin-top:27px}.message--user .message__body[data-v-b0f791e6]{background:0 0;max-width:min(610px,76%);padding:0}.message--user[data-v-b0f791e6] .message-parts{align-items:flex-end}.message--user .message__meta[data-v-b0f791e6]{display:none}.message__delivery[data-v-b0f791e6]{min-height:18px;color:var(--text-muted);justify-content:flex-end;align-items:center;gap:4px;margin:5px 1px -4px;font-size:10px;display:flex}.message__delivery--accepted[data-v-b0f791e6]{color:var(--success)}.message__delivery--failed[data-v-b0f791e6],.message__delivery--unknown-receipt[data-v-b0f791e6]{color:var(--danger)}.message--tool-only[data-v-b0f791e6]{margin-block:4px}.message--tool-only .message__avatar[data-v-b0f791e6],.message--tool-only .message__meta[data-v-b0f791e6],.message--tool-only .message__actions[data-v-b0f791e6]{display:none}.message--tool-only .message__body[data-v-b0f791e6]{max-width:100%}.message--assistant-internal[data-v-b0f791e6]{margin-bottom:6px}.message--assistant-internal .message__reasoning[data-v-b0f791e6]{margin-bottom:4px;padding-bottom:4px}.message--assistant-internal .message__tools[data-v-b0f791e6]{margin-top:4px}.message--assistant-anonymous .message__body[data-v-b0f791e6]{max-width:min(680px,100%)}.message__reasoning[data-v-b0f791e6]{border:0;border-bottom:1px dashed var(--line-strong);max-width:420px;color:var(--text-secondary);margin:3px 0 10px;padding:0 0 8px;font-size:12px}.message__reasoning summary[data-v-b0f791e6]{color:var(--text-muted);cursor:pointer;align-items:center;gap:5px;font-size:10px;list-style:none;display:flex}.message__reasoning summary[data-v-b0f791e6]::-webkit-details-marker{display:none}.message__reasoning summary[data-v-b0f791e6]:before{content:"›";color:var(--text-muted);font-size:14px;line-height:1;transition:transform .12s}.message__reasoning[open] summary[data-v-b0f791e6]:before{transform:rotate(90deg)}.message__reasoning[data-v-b0f791e6] .markdown{margin-top:8px}.fork-divider[data-v-b0f791e6]{color:var(--text-muted);align-items:center;gap:12px;margin:8px 0 28px;font-size:11px;display:flex}.fork-divider[data-v-b0f791e6]:before,.fork-divider[data-v-b0f791e6]:after{background:var(--line);content:"";flex:1;height:1px}.fork-divider>span[data-v-b0f791e6]{border:1px solid var(--line);background:var(--surface-raised);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:5px 10px;display:inline-flex}.fork-divider strong[data-v-b0f791e6]{max-width:180px;color:var(--text-secondary);text-overflow:ellipsis;overflow:hidden}.message__tools[data-v-b0f791e6]{margin-top:9px}.message__actions[data-v-b0f791e6]{opacity:0;gap:2px;padding-top:2px;transition:opacity .12s;display:flex;position:absolute;top:100%;left:-3px}.message:hover .message__actions[data-v-b0f791e6],.message:focus-within .message__actions[data-v-b0f791e6]{opacity:1}.message--user .message__actions[data-v-b0f791e6]{left:auto;right:0}.message__actions button[data-v-b0f791e6]{width:24px;height:24px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;padding:0;display:grid}.message__actions button[data-v-b0f791e6]:hover{background:var(--surface-soft);color:var(--text-primary)}.message__actions .message-action--copied[data-v-b0f791e6]{color:var(--success)}.message__actions .message-action--copy-failed[data-v-b0f791e6]{color:var(--danger)}.message--assistant-anonymous .message__actions[data-v-b0f791e6]{align-items:center}.message__action-time[data-v-b0f791e6]{min-width:36px;color:var(--text-muted);font-variant-numeric:tabular-nums;padding:0 4px 0 3px;font-size:10px}.message--failed .message__body[data-v-b0f791e6]{border-color:color-mix(in srgb, var(--danger) 35%, var(--line))}.message--revealed .message__body[data-v-b0f791e6]{animation:1.8s reveal-message-b0f791e6}@keyframes reveal-message-b0f791e6{0%,28%{box-shadow:0 0 0 5px var(--focus-ring)}to{box-shadow:0 0 #0000}}.jump-bottom[data-v-b0f791e6]{z-index:8;border:1px solid var(--line);background:var(--surface-raised);color:var(--text-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:5px;padding:6px 10px;font-size:10px;display:flex;position:absolute;bottom:8px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #0000001a}.new-chat-empty[data-v-b0f791e6]{box-sizing:border-box;min-height:100%;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:12vh 24px;display:flex}.new-chat-empty__logo[data-v-b0f791e6]{aspect-ratio:1;opacity:.18;filter:grayscale();width:min(180px,34vw);height:auto;display:block}.new-chat-empty p[data-v-b0f791e6]{color:var(--text-secondary);letter-spacing:.02em;margin:0;font-size:17px;font-weight:520}.message-skeletons[data-v-b0f791e6]{width:min(760px,100%);margin:0 auto;padding:35px 24px}.message-skeletons div[data-v-b0f791e6]{gap:10px;margin:0 0 25px;display:flex}.message-skeletons div.user[data-v-b0f791e6]{justify-content:flex-end}.message-skeletons i[data-v-b0f791e6]{background:var(--surface-hover);border-radius:9px;width:27px;height:27px}.message-skeletons span[data-v-b0f791e6]{background:linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft));background-size:200% 100%;border-radius:12px;width:min(480px,70%);height:64px;animation:1.5s linear infinite shimmer-b0f791e6}.message-skeletons .user i[data-v-b0f791e6]{display:none}.message-skeletons .user span[data-v-b0f791e6]{width:44%;height:46px}@keyframes shimmer-b0f791e6{to{background-position:-200% 0}}@media (width<=768px){.timeline-header[data-v-b0f791e6]{min-height:54px;padding:8px 12px}.new-chat-empty[data-v-b0f791e6]{gap:15px;padding-block:9vh}.new-chat-empty__logo[data-v-b0f791e6]{width:min(150px,42vw)}.new-chat-empty p[data-v-b0f791e6]{font-size:16px}.message-stack[data-v-b0f791e6]{padding:18px 14px 30px}.message-stack--interaction[data-v-b0f791e6]{padding-bottom:8px}.message[data-v-b0f791e6]{margin-bottom:18px}.message__body[data-v-b0f791e6]{max-width:calc(100% - 37px)}.message--user .message__body[data-v-b0f791e6]{max-width:88%}.message--system .message__body[data-v-b0f791e6]{max-width:100%}.message__actions[data-v-b0f791e6]{opacity:.65}.message__meta time[data-v-b0f791e6]{display:none}}.preset-picker[data-v-22ca72e6]{margin-bottom:15px}.preset-picker__heading[data-v-22ca72e6],.role-mapping__heading[data-v-22ca72e6]{color:var(--text-secondary);justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:7px;font-size:10px;display:flex}.preset-picker__heading small[data-v-22ca72e6],.role-mapping__heading small[data-v-22ca72e6]{color:var(--text-muted);font-size:9px}.preset-grid[data-v-22ca72e6]{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.preset-grid button[data-v-22ca72e6]{border:1px solid var(--line);background:var(--surface-soft);min-height:82px;color:var(--text-primary);cursor:pointer;text-align:left;border-radius:11px;align-content:start;gap:4px;padding:10px;display:grid;position:relative}.preset-grid button[data-v-22ca72e6]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.preset-grid button.selected[data-v-22ca72e6]{border-color:color-mix(in srgb, var(--accent) 58%, var(--line));box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 13%, transparent)}.preset-grid button[data-v-22ca72e6]:disabled{cursor:not-allowed;opacity:.48}.preset-grid strong[data-v-22ca72e6]{padding-right:42px;font-size:10px}.preset-grid small[data-v-22ca72e6]{color:var(--text-muted);font-size:9px;line-height:1.4}.preset-grid em[data-v-22ca72e6]{color:var(--accent);font-size:8px;font-style:normal;position:absolute;top:9px;right:9px}.preset-help[data-v-22ca72e6]{color:var(--text-muted);margin-top:8px;font-size:11px;display:block}@media (width<=620px){.preset-grid[data-v-22ca72e6]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=420px){.preset-grid[data-v-22ca72e6]{grid-template-columns:1fr}}.knowledge-shortcuts[data-v-f572008f]{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;display:flex}.knowledge-shortcuts button[data-v-f572008f],.knowledge-shortcuts select[data-v-f572008f]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);font:inherit;cursor:pointer;border-radius:9px;padding:7px 12px;font-size:13px}.knowledge-shortcuts button[data-v-f572008f]:hover{background:var(--surface-hover)}.knowledge-shortcuts button[data-v-f572008f]:focus-visible,.knowledge-shortcuts select[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.knowledge-shortcuts label[data-v-f572008f]{align-items:center;gap:8px;font-size:13px;display:flex}.composer-knowledge[data-v-f572008f]{max-width:760px;margin:auto}.conversation-with-computer[data-v-f572008f]{min-width:0;height:100%;min-height:0;display:flex}.conversation-with-computer>.workspace-chat[data-v-f572008f]{flex:1;min-width:0}.workspace-chat[data-v-f572008f]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.new-actions[data-v-f572008f]{gap:2px;display:grid}.new-actions button[data-v-f572008f]{min-height:40px;color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;padding:0 11px;font-size:12px;font-weight:610;display:flex}.new-actions button[data-v-f572008f]:hover{background:var(--surface-hover)}.header-actions[data-v-f572008f]{gap:4px;margin-left:auto;display:flex}.error[data-v-f572008f]{color:var(--danger);justify-content:space-between;align-items:center;margin:0 18px 9px;font-size:12px;display:flex}.team-avatar-settings[data-v-f572008f]{gap:12px;display:grid}.team-avatar-options[data-v-f572008f]{gap:10px;display:flex}.team-avatar-options button[data-v-f572008f]{border:1px solid var(--line);background:var(--surface-soft);cursor:pointer;border-radius:10px;padding:5px}.team-avatar-options button[aria-pressed=true][data-v-f572008f]{border-color:var(--accent)}.nodes-overlay[data-v-f572008f]{z-index:1000;background:var(--scrim);place-items:center;display:grid;position:fixed;inset:0}.nodes-overlay>div[data-v-f572008f]{background:var(--surface-raised);border:1px solid var(--line);border-radius:16px;width:min(520px,90vw);max-height:85vh;padding:20px;overflow:auto}.editor[data-v-f572008f]{border:1px solid var(--line);background:var(--surface);width:min(520px,100vw - 48px);max-height:85vh;color:var(--text-primary);border-radius:18px;padding:25px;overflow:hidden}.editor[data-v-f572008f]::backdrop{background:#0006}.editor form[data-v-f572008f]{flex-direction:column;min-height:0;max-height:calc(85dvh - 32px);display:flex}.editor-content[data-v-f572008f]{scrollbar-gutter:stable;min-height:0;padding:0 4px;overflow:auto}.editor header[data-v-f572008f],.editor footer[data-v-f572008f]{flex-shrink:0}.editor header[data-v-f572008f]{min-height:44px}.editor .remote-picker[data-v-f572008f],.editor footer button[data-v-f572008f]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);font:inherit;cursor:pointer;border-radius:10px;padding:8px 14px;font-size:13px}.editor .remote-picker[data-v-f572008f]:hover,.editor footer .quiet-button[data-v-f572008f]:hover{background:var(--surface-hover)}.editor footer .solid-button[data-v-f572008f]{background:var(--text-primary);color:var(--surface);border-color:var(--text-primary)}.editor footer button[data-v-f572008f]:disabled{opacity:.5;cursor:default}.editor .remote-picker[data-v-f572008f]:focus-visible,.editor footer button[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.editor header[data-v-f572008f],.editor footer[data-v-f572008f]{justify-content:space-between;align-items:center;gap:12px;display:flex}.editor h2[data-v-f572008f]{margin:12px 0;font-size:20px}.editor label[data-v-f572008f]{flex-direction:column;gap:7px;margin:15px 0;font-size:13px;display:flex}.task-picker-shell[data-v-f572008f]{align-items:center;min-width:0;max-width:210px;display:inline-flex;position:relative}.task-picker-shell>.app-icon[data-v-f572008f]{pointer-events:none;color:var(--text-muted);position:absolute;right:11px}.task-picker[data-v-f572008f]{appearance:none;border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;max-width:210px;min-height:38px;color:var(--text-primary);font:inherit;text-overflow:ellipsis;cursor:pointer;box-shadow:0 1px 2px color-mix(in srgb,var(--text-primary) 5%,transparent);border-radius:999px;padding:6px 34px 6px 14px;font-size:12px;font-weight:520;transition:border-color .14s,background-color .14s,box-shadow .14s}.task-picker[data-v-f572008f]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.task-picker[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.task-picker[data-v-f572008f]:disabled{cursor:wait;opacity:.55}.task-queue-status[data-v-f572008f]{color:var(--text-muted);margin:0 20px 8px;font-size:13px}.group-options[data-v-f572008f]{border-top:1px solid var(--line);margin:12px 0}.group-options summary[data-v-f572008f]{cursor:pointer;min-height:44px;color:var(--text-secondary);align-content:center;font-size:13px}.group-options summary[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.group-help[data-v-f572008f]{color:var(--text-secondary);font-size:13px;line-height:1.6}@media (width<=720px){.task-picker-shell[data-v-f572008f],.task-picker[data-v-f572008f]{max-width:118px}.task-picker[data-v-f572008f]{min-height:44px;padding-left:12px}}.team-management-permission>span[data-v-f572008f]{align-items:center;gap:8px;min-height:44px;display:flex}.team-management-permission small[data-v-f572008f]{color:var(--text-muted);line-height:1.6}.editor input[data-v-f572008f]:not([type=checkbox]),.editor textarea[data-v-f572008f],.editor select[data-v-f572008f],.interaction input[data-v-f572008f]{border:1px solid var(--line);background:var(--surface-soft);color:inherit;font:inherit;border-radius:8px;padding:10px}.editor fieldset[data-v-f572008f]{border:1px solid var(--line);border-radius:10px}.editor fieldset label[data-v-f572008f]{flex-direction:row;align-items:center}.editor footer[data-v-f572008f]{justify-content:flex-end;margin-top:12px}.status[data-v-f572008f]{margin-top:8px}.workspace-list-back[data-v-f572008f]{display:none}@media (width<=900px){.workspace-list-back[data-v-f572008f]{display:grid}}.search-delete[data-v-f572008f]{min-width:64px;min-height:44px;color:var(--danger);font:12px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:5px;margin-right:4px;padding:6px 9px;display:inline-flex}.search-delete[data-v-f572008f]:hover:not(:disabled){background:var(--surface-hover)}.search-delete[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.search-delete[data-v-f572008f]:disabled{opacity:.5;cursor:wait}.search-delete-error[data-v-f572008f]{color:var(--danger);margin:0;padding:10px 16px 14px;font-size:12px;line-height:1.5}.search-lifecycle-actions[data-v-f572008f]{flex:none;align-items:center;gap:2px;display:flex}.search-restore[data-v-f572008f]{min-height:44px;color:var(--text-secondary);font:12px var(--font-ui);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;padding:6px 8px}.search-restore[data-v-f572008f]:hover:not(:disabled){background:var(--surface-hover)}.search-restore[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.search-restore[data-v-f572008f]:disabled{opacity:.5;cursor:wait}.lifecycle-error[data-v-f572008f]{z-index:220;left:50%;bottom:max(24px,env(safe-area-inset-bottom));border:1px solid var(--line);background:var(--surface-raised);width:max-content;max-width:min(520px,100vw - 32px);box-shadow:var(--shadow-float);color:var(--danger);border-radius:12px;align-items:flex-start;gap:12px;padding:14px 16px;font-size:13px;line-height:1.6;display:flex;position:fixed;transform:translate(-50%)}.lifecycle-error button[data-v-f572008f]{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:0 0 28px;place-items:center;display:grid}.lifecycle-error button[data-v-f572008f]:hover{background:var(--surface-hover)}.lifecycle-error button[data-v-f572008f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
1
+ .conversation-list[data-v-b4830de9]{flex-direction:column;flex:1;height:100%;min-height:0;display:flex;overflow:hidden}.conversation-list[data-v-b4830de9] .sidebar-list{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text-muted) 60%,transparent) transparent;padding:0 12px 18px}.conversation-list[data-v-b4830de9] .sidebar-list::-webkit-scrollbar{width:8px}.conversation-list[data-v-b4830de9] .sidebar-list::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-muted) 60%,transparent);background-clip:padding-box;border:2px solid #0000;border-radius:999px}.conversation-list[data-v-b4830de9] .sidebar-list:hover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-muted) 82%,transparent);background-clip:padding-box}.conversation-list[data-v-b4830de9] .sidebar-item{border-radius:12px;gap:16px;min-height:76px;padding:14px 8px}.conversation-list[data-v-b4830de9] .sidebar-item__icon{flex-basis:44px;width:44px;height:44px}.conversation-list[data-v-b4830de9] .sidebar-item__row strong{font-size:15px;font-weight:600;line-height:22px}.conversation-list[data-v-b4830de9] .sidebar-item__row--secondary{margin-top:4px;font-size:13px;line-height:19px}.conversation-list[data-v-b4830de9] .sidebar-item__row small{color:var(--text-muted);font-size:10px}.conversation-menu-dismiss[data-v-b4830de9]{z-index:200;position:fixed;inset:0}.conversation-actions[data-v-b4830de9]{border:1px solid var(--line);background:var(--surface-raised);min-width:155px;box-shadow:var(--shadow-float);border-radius:10px;padding:5px;display:grid;position:absolute}.conversation-actions button[data-v-b4830de9]{color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:9px 12px;font-size:12px}.conversation-actions button[data-v-b4830de9]:hover{background:var(--surface-hover)}.conversation-actions button.danger[data-v-b4830de9]{color:var(--danger)}.conversation-actions button[data-v-b4830de9]{align-items:center;gap:8px;min-height:36px;display:flex}.conversation-actions button[data-v-b4830de9]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.bot-model-settings[data-v-46078e43]{gap:14px;max-width:650px;display:grid}p[data-v-46078e43]{color:var(--text-secondary);margin:0;font-size:14px;line-height:1.6}fieldset[data-v-46078e43]{border:0;gap:16px;margin:0;padding:0;display:grid}label[data-v-46078e43]{gap:8px;font-size:14px;font-weight:550;display:grid}select[data-v-46078e43]{border:1px solid var(--line);width:100%;max-width:100%;min-height:44px;color:var(--text-primary);background:var(--surface);border-radius:8px;padding:10px}small[data-v-46078e43]{color:var(--text-secondary);line-height:1.6}.error[data-v-46078e43]{color:var(--danger,#c33)}button[data-v-46078e43]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;border-radius:8px;justify-self:start;padding:10px 16px}button[data-v-46078e43]:disabled{opacity:.5;cursor:default}button[data-v-46078e43]:focus-visible,select[data-v-46078e43]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.profile-approval[data-v-50d509d5]{gap:12px}.profile-approval .profile-note[data-v-50d509d5]{margin:0}.profile-approval>label[data-v-50d509d5]{cursor:pointer;align-items:flex-start;gap:10px;padding:10px 0;font-size:14px;display:flex}.profile-approval input[data-v-50d509d5]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.profile-approval small[data-v-50d509d5]{color:var(--text-secondary);margin-top:4px;font-size:12px;line-height:1.6;display:block}.bot-profile[data-v-50d509d5]{height:100%;min-height:0;color:var(--text-primary);grid-template-columns:208px minmax(0,1fr);display:grid}.bot-profile__sidebar[data-v-50d509d5]{background:var(--settings-sidebar);border-right:1px solid var(--line);min-height:0;padding:16px 12px;overflow:auto}.profile-search[data-v-50d509d5]{background:var(--settings-panel);border:1px solid var(--line);border-radius:8px;align-items:center;gap:8px;height:38px;padding:0 10px;display:flex}.profile-search input[data-v-50d509d5]{width:100%;min-width:0;color:inherit;font:13px var(--font-ui);background:0 0;border:0;outline:0}.profile-search[data-v-50d509d5]:focus-within{outline:2px solid var(--accent);outline-offset:2px}.profile-source[data-v-50d509d5]{border-bottom:1px solid var(--line);margin:16px 0;padding-bottom:16px}.profile-source>small[data-v-50d509d5]{color:var(--text-muted);margin-bottom:8px;font-size:11px;display:block}.profile-source>div[data-v-50d509d5]{align-items:center;gap:9px;margin-bottom:10px;display:flex}.profile-source span[data-v-50d509d5]{gap:2px;min-width:0;display:grid}.profile-source strong[data-v-50d509d5]{overflow-wrap:anywhere;font-size:13px;font-weight:600}.profile-source small[data-v-50d509d5]{color:var(--text-secondary);font-size:11px}.profile-source select[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface);width:100%;min-height:36px;color:inherit;font:12px var(--font-ui);border-radius:7px;padding:6px}nav[data-v-50d509d5]{gap:4px;display:grid}nav button[data-v-50d509d5]{text-align:left;min-height:44px;color:inherit;font:500 13px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;padding:9px 12px;display:flex}nav button[aria-current=page][data-v-50d509d5]{background:var(--settings-selected);font-weight:600}nav button[data-v-50d509d5]:hover{background:var(--surface-hover)}nav p[data-v-50d509d5]{color:var(--text-secondary);font-size:13px}.bot-profile__main[data-v-50d509d5]{grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;display:grid}.bot-profile__heading[data-v-50d509d5]{padding:20px 24px 16px}.bot-profile h3[data-v-50d509d5]{margin:0;font-size:17px}.bot-profile__heading p[data-v-50d509d5]{color:var(--text-secondary);margin:5px 0 0;font-size:12px}.bot-profile__content[data-v-50d509d5]{overscroll-behavior:contain;min-height:0;padding:0 24px 24px;overflow:auto}.profile-card[data-v-50d509d5]{background:var(--settings-panel);border-radius:12px;gap:16px;margin-bottom:16px;padding:20px;display:grid}.profile-card h4[data-v-50d509d5]{margin:0;font-size:15px;font-weight:600}.profile-who[data-v-50d509d5]{align-items:flex-start;gap:16px;display:flex}.profile-who>div[data-v-50d509d5]{min-width:0}.profile-who p[data-v-50d509d5]{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:13px;line-height:1.7}.profile-card>button[data-v-50d509d5]{justify-self:start}.profile-card dl[data-v-50d509d5]{margin:0}.profile-card dl>div[data-v-50d509d5]{border-top:1px solid var(--line);grid-template-columns:100px minmax(0,1fr);gap:12px;padding:10px 0;font-size:13px;display:grid}.profile-card dt[data-v-50d509d5]{color:var(--text-secondary)}.profile-card dd[data-v-50d509d5]{overflow-wrap:anywhere;margin:0}.profile-form[data-v-50d509d5]{gap:20px;display:grid}.profile-form>label[data-v-50d509d5]{gap:8px;font-size:14px;display:grid}.profile-form input[data-v-50d509d5],.profile-form textarea[data-v-50d509d5]{box-sizing:border-box;border:1px solid var(--line);width:100%;min-height:44px;color:inherit;background:var(--surface);font:14px var(--font-ui);border-radius:9px;padding:10px 12px}.profile-form textarea[data-v-50d509d5]{resize:vertical;line-height:1.7}.profile-note[data-v-50d509d5]{color:var(--text-secondary);margin:0 0 16px;font-size:13px;line-height:1.7}.profile-error[data-v-50d509d5]{color:var(--danger);background:var(--settings-panel);border-radius:9px;padding:12px;font-size:13px;line-height:1.6}.profile-permissions>label[data-v-50d509d5]{border-top:1px solid var(--line);align-items:flex-start;gap:10px;padding:12px 0;font-size:14px;display:flex}.profile-permissions input[data-v-50d509d5]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.profile-permissions small[data-v-50d509d5]{color:var(--text-secondary);margin-top:6px;font-size:12px;line-height:1.6;display:block}.bot-profile__footer[data-v-50d509d5]{border-top:1px solid var(--line);justify-content:flex-end;align-items:center;gap:10px;padding:12px 24px;display:flex}.bot-profile__footer>span[data-v-50d509d5]{color:var(--text-muted);flex:1;font-size:12px}.bot-profile__footer button[data-v-50d509d5],.profile-card>button[data-v-50d509d5]{border:1px solid var(--line);min-height:38px;color:inherit;background:var(--surface);font:13px var(--font-ui);cursor:pointer;border-radius:8px;padding:8px 14px}.bot-profile__footer .profile-save[data-v-50d509d5]{background:var(--accent);color:var(--text-on-solid);border:0}.bot-profile button[data-v-50d509d5]:disabled{cursor:default;opacity:.45}.bot-profile button[data-v-50d509d5]:focus-visible,.bot-profile input[data-v-50d509d5]:focus-visible,.bot-profile select[data-v-50d509d5]:focus-visible,.bot-profile textarea[data-v-50d509d5]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=600px){.bot-profile[data-v-50d509d5]{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.bot-profile__sidebar[data-v-50d509d5]{border-right:0;border-bottom:1px solid var(--line);padding:10px 12px;overflow:visible}.profile-search[data-v-50d509d5]{display:none}.profile-source[data-v-50d509d5]{border:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;margin:0 0 10px;padding:0;display:grid}.profile-source>small[data-v-50d509d5]{display:none}.profile-source>div[data-v-50d509d5]{margin:0}.bot-profile nav[data-v-50d509d5]{gap:4px;display:flex;overflow:auto}.bot-profile nav button[data-v-50d509d5]{white-space:nowrap;flex-shrink:0;gap:6px;min-height:44px;padding-inline:10px}.bot-profile__heading[data-v-50d509d5]{padding:16px 20px}.bot-profile__content[data-v-50d509d5]{padding:0 20px 20px}.bot-profile__footer[data-v-50d509d5]{padding:12px 20px}.bot-profile__footer>span[data-v-50d509d5]{display:none}}.bot-profile__sidebar[data-v-50d509d5]{min-width:0}@media (width<=600px){.bot-profile[data-v-50d509d5]{grid-template-columns:minmax(0,1fr)}}.usage-stats[data-v-50d509d5]{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.usage-stat[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface);border-radius:10px;gap:6px;padding:14px;display:grid}.usage-stat small[data-v-50d509d5]{color:var(--text-muted);font-size:11px}.usage-stat strong[data-v-50d509d5]{font-variant-numeric:tabular-nums;font-size:20px;font-weight:650}.usage-stat span[data-v-50d509d5]{color:var(--text-secondary);font-size:11px}.usage-table[data-v-50d509d5]{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:12px}.usage-table th[data-v-50d509d5]{color:var(--text-muted);text-align:right;border-bottom:1px solid var(--line);padding:6px 4px;font-weight:500}.usage-table th[data-v-50d509d5]:first-child,.usage-table td[data-v-50d509d5]:first-child{text-align:left}.usage-table td[data-v-50d509d5]{border-bottom:1px solid var(--line);text-align:right;padding:7px 4px}.usage-table td[data-v-50d509d5]:first-child{color:var(--text-secondary)}.profile-source .profile-source__picker[data-v-50d509d5]{border:1px solid var(--line);background:var(--settings-panel);box-sizing:border-box;border-radius:8px;min-height:48px;margin:0;padding:6px 8px;position:relative}.profile-source__identity[data-v-50d509d5]{flex:1}.profile-source__picker>select[data-v-50d509d5]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.profile-source__picker[data-v-50d509d5]:focus-within{outline:2px solid var(--accent);outline-offset:2px}@media (width<=600px){.profile-source[data-v-50d509d5]{display:block}.profile-source .profile-source__picker[data-v-50d509d5]{max-width:100%}}.persona-field[data-v-50d509d5]{border:1px solid var(--line);border-radius:10px;gap:8px;margin:0;padding:10px 12px;display:grid}.persona-field legend[data-v-50d509d5]{color:var(--text-secondary);padding:0 4px;font-size:12.5px}.anti-list[data-v-50d509d5]{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.anti-list li[data-v-50d509d5]{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:13px;display:flex}.anti-list li button[data-v-50d509d5]{cursor:pointer;min-height:24px;color:var(--text-muted);background:0 0;border:0;padding:2px}.anti-input[data-v-50d509d5]{gap:8px;display:flex}.anti-input input[data-v-50d509d5]{flex:1}.persona-choice-group[data-v-50d509d5]{background:color-mix(in srgb,var(--surface-soft) 55%,transparent);gap:10px;padding:12px}.persona-options[data-v-50d509d5]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.radio-row[data-v-50d509d5]{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:9px;align-items:flex-start;gap:10px;min-width:0;min-height:66px;padding:11px 12px;transition:border-color .14s,background-color .14s,box-shadow .14s;display:flex}.radio-row[data-v-50d509d5]:hover:not(:has(input:disabled)){border-color:var(--line-strong);background:var(--surface-raised)}.radio-row.selected[data-v-50d509d5]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 16%,transparent)}.radio-row[data-v-50d509d5]:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.radio-row input[data-v-50d509d5]:focus-visible{outline:none}.radio-row[data-v-50d509d5]:has(input:disabled){cursor:default;opacity:.55}.radio-row input[data-v-50d509d5]{width:16px;height:16px;min-height:16px;accent-color:var(--accent);flex:none;margin:2px 0 0;padding:0}.radio-row span[data-v-50d509d5]{gap:4px;min-width:0;display:grid}.radio-row strong[data-v-50d509d5]{color:var(--text-primary);font-size:13px;font-weight:600;line-height:1.35}.radio-row small[data-v-50d509d5]{color:var(--text-muted);font-size:11.5px;line-height:1.5}.persona-advanced summary[data-v-50d509d5]{cursor:pointer;color:var(--text-secondary);margin-bottom:8px;font-size:13px}@media (width<=600px){.persona-options[data-v-50d509d5]{grid-template-columns:1fr}.radio-row[data-v-50d509d5]{min-height:60px}}@media (prefers-reduced-motion:reduce){.radio-row[data-v-50d509d5]{transition:none}}.grok-auth[data-v-bf9a1b51]{border:1px solid var(--line);background:var(--surface-raised);color:var(--text-primary);border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex}header[data-v-bf9a1b51]{align-items:center;gap:10px;display:flex}.account-icon[data-v-bf9a1b51]{background:var(--surface-soft);border-radius:10px;place-items:center;width:38px;height:38px;display:grid}header>div[data-v-bf9a1b51]{flex:1;gap:4px;display:grid}strong[data-v-bf9a1b51]{font-size:13px}small[data-v-bf9a1b51]{color:var(--text-secondary);font-size:11.5px}.connected[data-v-bf9a1b51]{color:var(--accent);align-items:center;gap:4px;font-size:10.5px;display:flex}.account[data-v-bf9a1b51]{overflow-wrap:anywhere;gap:4px;margin:0;font-size:13px;display:grid}.account span[data-v-bf9a1b51]{color:var(--text-secondary);font-size:12px}button[data-v-bf9a1b51],a.primary[data-v-bf9a1b51]{font:inherit;border:1px solid var(--line);min-height:44px;color:var(--text-primary);background:var(--surface);cursor:pointer;box-sizing:border-box;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:9px 12px;font-size:12px;text-decoration:none;display:inline-flex}.primary[data-v-bf9a1b51]{background:var(--accent)!important;color:var(--text-on-solid)!important;border-color:var(--accent)!important;font-weight:500!important}.hint[data-v-bf9a1b51],.privacy[data-v-bf9a1b51]{color:var(--text-secondary);margin:0;font-size:12px;line-height:1.7}.hint span[data-v-bf9a1b51]{margin-top:4px;display:block}.privacy[data-v-bf9a1b51]{color:var(--text-muted);border-top:1px solid var(--line);padding-top:12px;font-size:11px}.pending[data-v-bf9a1b51]{background:var(--surface-soft);border-radius:8px;align-items:flex-start;gap:8px;padding:12px;display:flex}.pending strong[data-v-bf9a1b51]{font-size:12px}.pending p[data-v-bf9a1b51]{color:var(--text-secondary);margin:5px 0 0;font-size:11.5px;line-height:1.7}.pulse[data-v-bf9a1b51]{background:var(--accent);border-radius:50%;flex:none;width:7px;height:7px;margin-top:5px}.error[data-v-bf9a1b51]{color:var(--danger);margin:0;font-size:12px;line-height:1.7}.actions[data-v-bf9a1b51]{gap:8px;display:flex}.actions button[data-v-bf9a1b51]{flex:1}.disconnect[data-v-bf9a1b51]{color:var(--text-secondary);background:0 0;border:0}button[data-v-bf9a1b51]:disabled{opacity:.5;cursor:default}summary[data-v-bf9a1b51]{cursor:pointer;color:var(--text-muted);align-content:center;min-height:32px;font-size:11.5px}details .hint[data-v-bf9a1b51]{margin:5px 0 10px}button[data-v-bf9a1b51]:focus-visible,a[data-v-bf9a1b51]:focus-visible,summary[data-v-bf9a1b51]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.host-environment-option[data-v-f6da9af7]{cursor:pointer;align-items:center;gap:8px;min-height:44px;font-size:13px;display:flex}.host-environment-option input[data-v-f6da9af7]{width:16px;height:16px;accent-color:var(--accent)}.vm-execution-option select[data-v-f6da9af7]{width:100%;min-width:0;min-height:44px}.vm-execution-option .hint[data-v-f6da9af7]{line-height:1.6}.local-vm-chat-panel[data-v-f6da9af7]{border-left:1px solid var(--line);background:var(--surface);width:400px;min-width:320px;max-width:46%;height:100%;color:var(--text-primary);flex-direction:column;display:flex}header[data-v-f6da9af7]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}header button[data-v-f6da9af7]{border:0;min-height:32px;padding:5px}.panel-body[data-v-f6da9af7]{flex-direction:column;gap:14px;padding:18px 20px;display:flex;overflow:auto}.screen-caption[data-v-f6da9af7]{color:var(--text-secondary);justify-content:space-between;align-items:center;font-size:13px;display:flex}.screen-select[data-v-f6da9af7]{border-radius:7px;max-width:58%;min-height:30px;padding:4px 8px;font-size:12px}.preview[data-v-f6da9af7]{aspect-ratio:16/10;color:#dce1e7;background:#14181e;border:0;border-radius:12px;flex:none;justify-content:center;align-items:center;width:100%;padding:0;display:flex;position:relative;overflow:hidden}.preview[data-v-f6da9af7]:disabled{opacity:1;cursor:default}.preview img[data-v-f6da9af7]{object-fit:contain;width:100%;height:100%}.empty[data-v-f6da9af7]{justify-items:center;gap:12px;font-size:13px;display:grid}.open-badge[data-v-f6da9af7]{color:#fff;background:#000b;border-radius:6px;align-items:center;gap:4px;padding:5px 7px;font-size:11px;display:flex;position:absolute;top:8px;right:8px}p[data-v-f6da9af7]{color:var(--text-secondary);margin:0;font-size:13px;line-height:1.65}label[data-v-f6da9af7]{gap:7px;font-size:13px;display:grid}button[data-v-f6da9af7],select[data-v-f6da9af7]{font:inherit;background:var(--surface-raised);color:inherit;border:1px solid var(--line);border-radius:8px;min-height:40px;padding:8px 12px}button[data-v-f6da9af7]{cursor:pointer;justify-content:center;align-items:center;gap:7px;display:inline-flex}button[data-v-f6da9af7]:disabled,select[data-v-f6da9af7]:disabled{opacity:.45;cursor:default}.primary[data-v-f6da9af7]{background:var(--accent);color:var(--text-on-solid)}.vm-actions[data-v-f6da9af7]{gap:8px;display:flex}.vm-actions button[data-v-f6da9af7]{flex:1;font-size:12px}.hint[data-v-f6da9af7]{color:var(--text-muted);font-size:12px}.problem[data-v-f6da9af7]{color:var(--danger)}.settings-link[data-v-f6da9af7]{background:0 0;border:0;align-self:flex-start;padding-left:0;font-size:12px}.control-state[data-v-f6da9af7]{background:var(--surface-soft);border-radius:8px;padding:10px}.host-permission[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:7px;padding:11px 12px;display:grid}.host-permission.offline[data-v-f6da9af7]{opacity:.6}.host-permission-head[data-v-f6da9af7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.host-permission-head strong[data-v-f6da9af7]{font-size:12.5px}.host-permission-head small[data-v-f6da9af7]{color:var(--text-muted);font-size:11px}button[data-v-f6da9af7]:focus-visible,select[data-v-f6da9af7]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.local-vm-chat-panel[data-v-f6da9af7]{z-index:35;width:min(400px,100vw);max-width:100%;position:fixed;inset:0 0 0 auto;box-shadow:-20px 0 60px #0002}}.computer-select[data-v-f6da9af7]{gap:7px;min-width:0;font-size:13px;display:grid}.env-checks[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;grid-template-columns:1fr 1fr;gap:8px;padding:4px;display:grid}.env-check[data-v-f6da9af7]{cursor:pointer;border:1px solid #0000;border-radius:8px;align-items:flex-start;gap:9px;min-width:0;padding:11px 12px;display:flex}.env-check[data-v-f6da9af7]:hover:not(:has(input:disabled)){background:var(--surface-hover)}.env-check.selected[data-v-f6da9af7]{background:color-mix(in srgb,var(--success) 8%,transparent)}.env-check input[data-v-f6da9af7]{width:16px;height:16px;accent-color:var(--success);flex:none;margin:1px 0 0}.env-check span[data-v-f6da9af7]{gap:4px;min-width:0;display:grid}.env-check b[data-v-f6da9af7]{color:var(--text-primary);align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:flex}.env-check small[data-v-f6da9af7],.env-checks .env-hint[data-v-f6da9af7]{color:var(--text-muted);font-size:11px;line-height:1.5}.env-hint[data-v-f6da9af7]{grid-column:1/-1;margin:0}.computer-tabs[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:4px;padding:4px;display:flex;overflow-x:auto}.computer-tabs button[data-v-f6da9af7]{min-height:40px;color:var(--text-secondary);white-space:nowrap;background:0 0;border:0;border-radius:7px;flex:1 0 auto;padding:8px 12px;font-size:12px}.computer-tabs button[aria-selected=true][data-v-f6da9af7]{background:var(--surface);color:var(--text-primary);font-weight:600;box-shadow:0 1px 3px #00000014}.computer-tabs button[data-v-f6da9af7]:hover:not(:disabled):not([aria-selected=true]){background:var(--surface-hover)}.computer-tabs button[data-v-f6da9af7]:focus-visible{outline-offset:-2px}.computer-options[data-v-f6da9af7]{flex-direction:column;gap:14px;display:flex}.managed-browser-option[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);border-radius:10px;gap:10px;padding:12px;display:grid}.managed-browser-option strong[data-v-f6da9af7]{font-size:13px}.managed-browser-option button[data-v-f6da9af7]{min-height:44px}.computer-options[data-v-f6da9af7]:empty{display:none}.screen-caption[data-v-f6da9af7]{gap:8px}.screen-select[data-v-f6da9af7]{min-width:0;min-height:44px}.cloud-settings[data-v-f6da9af7]{border:1px solid var(--line);border-radius:10px;gap:10px;padding:14px;display:grid}.cloud-settings input[data-v-f6da9af7]{min-height:44px;font:inherit;color:var(--text-primary);background:var(--surface-raised);border:1px solid var(--line);border-radius:8px;min-width:0;padding:8px}.computer-tabs[data-v-f6da9af7]{grid-template-columns:1fr 1fr;display:grid;overflow:visible}.computer-tabs button[data-v-f6da9af7]{text-align:left;white-space:normal;justify-content:flex-start;min-height:48px}.computer-tabs[data-v-f6da9af7]{background:0 0;border:0;gap:8px;padding:0}.computer-tabs button[data-v-f6da9af7]{border:1px solid var(--line);background:var(--surface-soft);flex-direction:column;align-items:flex-start;gap:7px;min-height:82px;padding:12px;display:flex}.computer-tabs button span[data-v-f6da9af7]{align-items:center;gap:6px;font-weight:500;display:flex}.computer-tabs button small[data-v-f6da9af7]{color:var(--text-muted);font-size:11px;line-height:1.5}.computer-tabs button[aria-selected=true][data-v-f6da9af7]{border-color:var(--accent);background:var(--surface-raised);box-shadow:none}.computer-tabs button[data-v-f6da9af7]:disabled{opacity:.55}.permission-list[data-v-f6da9af7]{color:var(--text-secondary);gap:8px;font-size:13px;display:grid}.inspector[data-v-8c8ae801]{min-height:0;color:var(--text-primary);background:var(--surface);flex-direction:column;flex:1;display:flex}header[data-v-8c8ae801]{box-sizing:border-box;border-bottom:1px solid var(--line);align-items:center;gap:8px;min-height:64px;padding:10px 12px 10px 16px;font-size:15px;display:flex}header>strong[data-v-8c8ae801]{flex:1}header .app-icon[data-v-8c8ae801]{color:var(--text-muted)}.inspector-toolbar[data-v-8c8ae801]{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:10px 12px 12px 16px;display:flex}.lenses[data-v-8c8ae801]{background:var(--surface-soft);border-radius:8px;padding:3px;display:flex}button[data-v-8c8ae801]{font:inherit;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;min-height:32px;padding:5px 10px;font-size:12px}.close[data-v-8c8ae801]{border-radius:8px;place-items:center;min-width:44px;min-height:44px;padding:0;display:grid}.close[data-v-8c8ae801]:hover{background:var(--surface-hover);color:var(--text-primary)}.lenses button[aria-pressed=true][data-v-8c8ae801]{background:var(--surface-raised);color:var(--text-primary);font-weight:600;box-shadow:0 1px 2px #0000000c}.inspector-toolbar>span[data-v-8c8ae801]{color:var(--text-muted);margin-left:auto;font-size:11px}.reload[data-v-8c8ae801]{place-items:center;min-width:32px;padding:6px;display:grid}.inspector-list[data-v-8c8ae801]{flex:1;min-height:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;overflow:auto}.empty[data-v-8c8ae801],.error[data-v-8c8ae801]{color:var(--text-muted);padding:10px 16px;line-height:1.7}.inspector-row[data-v-8c8ae801]{border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent)}.inspector-row.boundary[data-v-8c8ae801]{background:var(--surface-soft)}.inspector-row.error[data-v-8c8ae801]{background:color-mix(in srgb,var(--danger) 8%,transparent);padding:0}summary[data-v-8c8ae801]{box-sizing:border-box;cursor:pointer;align-items:center;gap:7px;min-height:32px;padding:6px 12px;list-style:none;display:flex}summary[data-v-8c8ae801]::-webkit-details-marker{display:none}summary[data-v-8c8ae801]:hover{background:var(--surface-hover)}.chevron[data-v-8c8ae801]{color:var(--text-muted);flex:none;transform:rotate(180deg)}details[open] .chevron[data-v-8c8ae801]{transform:rotate(-90deg)}time[data-v-8c8ae801]{font-variant-numeric:tabular-nums;color:var(--text-muted);flex:none;font-size:10.5px}.tag[data-v-8c8ae801]{text-overflow:ellipsis;white-space:nowrap;max-width:128px;color:var(--text-secondary);background:var(--surface-soft);border-radius:4px;flex:none;padding:2px 4px;font-size:10px;overflow:hidden}.native[data-v-8c8ae801]{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.summary[data-v-8c8ae801]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.error .tag[data-v-8c8ae801],.error .summary[data-v-8c8ae801]{color:var(--danger)}small[data-v-8c8ae801]{color:var(--text-muted);font-size:10px}pre[data-v-8c8ae801]{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-raised);border-top:1px solid var(--line);max-height:50vh;margin:0;padding:10px 12px;font-size:11px;line-height:1.6;overflow:auto}button[data-v-8c8ae801]:focus-visible,summary[data-v-8c8ae801]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@media (width<=600px){button[data-v-8c8ae801],summary[data-v-8c8ae801]{min-height:44px}.reload[data-v-8c8ae801]{min-width:44px}summary[data-v-8c8ae801]{gap:5px;padding-left:8px;padding-right:8px}time[data-v-8c8ae801]{font-size:9.5px}.tag[data-v-8c8ae801]{max-width:108px}}.bot-panel[data-v-7eda4b23]{border-left:1px solid var(--line);background:var(--surface);width:420px;min-width:320px;max-width:46%;height:100%;color:var(--text-primary);flex-direction:column;display:flex}header[data-v-7eda4b23]{border-bottom:1px solid var(--line);box-sizing:border-box;justify-content:center;align-items:center;min-height:64px;padding:10px 58px;display:flex;position:relative}.tabs[data-v-7eda4b23]{flex-wrap:wrap;justify-content:center;gap:2px;display:flex}.tabs button[data-v-7eda4b23]{padding:8px;font-size:12px}.tabs button[aria-pressed=true][data-v-7eda4b23]{background:var(--surface-soft);color:var(--text-primary);font-weight:600}.close[data-v-7eda4b23]{position:absolute;right:12px}button[data-v-7eda4b23]{font:inherit;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:5px;min-width:44px;min-height:44px;display:inline-flex}button[data-v-7eda4b23]:hover{background:var(--surface-hover);color:var(--text-primary)}button[data-v-7eda4b23]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.bot-panel[data-v-7eda4b23]{z-index:35;width:min(440px,100vw);max-width:100%;position:fixed;inset:0 0 0 auto;box-shadow:-20px 0 60px #0002}}[data-v-7eda4b23] .local-vm-chat-panel.embedded{width:100%;min-width:0;max-width:none;box-shadow:none;border:0;flex:1;min-height:0;position:static}[data-v-7eda4b23] .local-vm-chat-panel.embedded>header{display:none}.local-vm-workspace[data-v-3c7b5891]{background:var(--surface);width:100%;height:100%;min-height:0;max-height:none;color:var(--text-primary);border:0;flex-direction:column;margin:0;padding:0;display:flex}.local-vm-workspace[data-v-3c7b5891]::backdrop{background:#0009}header[data-v-3c7b5891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}p[data-v-3c7b5891]{color:var(--text-secondary);margin:6px 0 0;font-size:12px;line-height:1.6}.panes[data-v-3c7b5891]{background:var(--surface-soft);flex:1;grid-template-columns:1fr 1fr;gap:12px;min-height:0;padding:12px;display:grid}.pane[data-v-3c7b5891]{background:var(--surface);border:1px solid var(--line);border-radius:10px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.pane>label[data-v-3c7b5891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;font-size:13px;display:flex}.controlled[data-v-3c7b5891]{outline:2px solid var(--accent);outline-offset:-2px}button[data-v-3c7b5891],select[data-v-3c7b5891]{min-height:40px;font:inherit;border:1px solid var(--line);color:inherit;background:var(--surface-raised);border-radius:8px;padding:7px 12px}button[data-v-3c7b5891]:disabled,select[data-v-3c7b5891]:disabled{opacity:.5}button[data-v-3c7b5891]:focus-visible,select[data-v-3c7b5891]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.empty[data-v-3c7b5891]{padding:30px}.panes[data-v-3c7b5891]:has(+[role=alert]){height:auto}[role=alert][data-v-3c7b5891]{color:var(--danger);padding:0 20px}@media (width<=800px){.panes[data-v-3c7b5891]{grid-template-columns:1fr;height:auto}.local-vm-workspace[data-v-3c7b5891]{overflow:auto}.pane[data-v-3c7b5891]{min-height:70vh}}.task-plan[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface-raised);width:100%;max-width:760px;box-shadow:0 6px 22px color-mix(in srgb, var(--text-primary) 5%, transparent);box-sizing:border-box;border-radius:15px;margin:0 auto 10px;font-size:13px;overflow:hidden}.task-plan__header[data-v-f1b129e6]{align-items:center;gap:6px;min-height:58px;padding:6px 8px;display:flex}.task-plan__disclosure[data-v-f1b129e6]{text-align:left;touch-action:manipulation;background:0 0;border:0;border-radius:10px;flex:1;align-items:center;gap:11px;min-width:0;min-height:46px;padding:4px 6px;display:flex}.task-plan__disclosure[data-v-f1b129e6]:hover{background:var(--surface-hover)}.task-plan__icon[data-v-f1b129e6]{background:var(--surface-soft);width:34px;height:34px;color:var(--text-secondary);border-radius:10px;flex:0 0 34px;place-items:center;display:grid}.task-plan__heading[data-v-f1b129e6]{align-items:center;gap:8px;min-width:0;display:flex}.task-plan__heading>strong[data-v-f1b129e6]{color:var(--text-primary);white-space:nowrap;font-size:14px;font-weight:650}.task-plan__status[data-v-f1b129e6]{color:var(--text-secondary);white-space:nowrap;align-items:center;gap:5px;font-size:11px;display:inline-flex}.task-plan__status i[data-v-f1b129e6]{background:var(--success);width:6px;height:6px;box-shadow:0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent);border-radius:50%}.task-plan__count[data-v-f1b129e6]{color:var(--text-primary);font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:13px}.task-plan__count small[data-v-f1b129e6]{color:var(--text-muted);margin-left:2px;font-size:11px;font-weight:450}.task-plan__header-chevron[data-v-f1b129e6]{color:var(--text-muted);flex:none;transition:transform .16s}.task-plan--expanded .task-plan__header-chevron[data-v-f1b129e6]{transform:rotate(180deg)}.task-plan__actions[data-v-f1b129e6]{gap:6px;display:flex}.task-plan__actions[data-v-f1b129e6]:empty{display:none}.task-plan__actions button[data-v-f1b129e6]{min-height:40px;color:var(--text-secondary);border-color:#0000;padding-inline:10px}.task-plan__progress[data-v-f1b129e6]{grid-template-columns:repeat(auto-fit,minmax(28px,1fr));gap:5px;padding:0 14px;display:grid}.task-plan__progress span[data-v-f1b129e6]{background:var(--line-strong);border-radius:999px;height:3px}.task-plan__progress span.complete[data-v-f1b129e6]{background:var(--workflow-accent)}.task-plan__progress span.active[data-v-f1b129e6]{background:color-mix(in srgb, var(--workflow-accent) 52%, var(--line))}.task-plan__progress span.failed[data-v-f1b129e6]{background:var(--danger)}.task-plan__steps[data-v-f1b129e6]{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;padding:10px 14px 13px;display:grid}.task-plan__steps>div[data-v-f1b129e6]{min-width:0;color:var(--text-muted);align-items:center;gap:7px;display:flex}.task-plan__steps>div>span[data-v-f1b129e6]{border:1px solid var(--line-strong);background:var(--surface);width:20px;height:20px;color:var(--text-muted);font-variant-numeric:tabular-nums;border-radius:50%;flex:0 0 20px;place-items:center;font-size:10px;display:grid}.task-plan__steps>div.complete>span[data-v-f1b129e6]{border-color:var(--workflow-accent);background:var(--workflow-accent);color:var(--workflow-on-accent)}.task-plan__steps>div.active>span[data-v-f1b129e6]{border-color:var(--workflow-accent);color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.task-plan__steps>div.failed>span[data-v-f1b129e6]{border-color:var(--danger);color:var(--danger)}.task-plan__steps strong[data-v-f1b129e6]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;font-weight:520;overflow:hidden}.task-plan__steps .complete strong[data-v-f1b129e6],.task-plan__steps .active strong[data-v-f1b129e6]{color:var(--text-secondary)}.task-plan__result[data-v-f1b129e6]{background:var(--surface-soft);border-radius:10px;margin:0 14px 12px;padding:11px 12px}.task-plan__result>small[data-v-f1b129e6]{color:var(--text-muted);margin-bottom:3px;font-size:10px;font-weight:620;display:block}.result[data-v-f1b129e6]{max-height:12vh;color:var(--text-secondary);margin:0;font-size:12px;line-height:1.6;overflow:auto}details[data-v-f1b129e6]{border-top:1px solid var(--line)}summary[data-v-f1b129e6]{min-height:46px;color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;padding:0 14px;list-style:none;display:flex}summary[data-v-f1b129e6]::-webkit-details-marker{display:none}summary>span[data-v-f1b129e6]{flex:1;font-size:12px;font-weight:520}.task-plan__chevron[data-v-f1b129e6]{transition:transform .16s}details[open] .task-plan__chevron[data-v-f1b129e6]{transform:rotate(180deg)}.plan-details[data-v-f1b129e6]{max-height:34vh;padding:2px 14px 14px;overflow:auto}.objective[data-v-f1b129e6]{color:var(--text-secondary)}ol[data-v-f1b129e6],.criteria[data-v-f1b129e6]{margin-top:0;padding-left:20px}li[data-v-f1b129e6]{padding:7px 0}li div[data-v-f1b129e6]{justify-content:space-between;gap:12px;display:flex}li div span[data-v-f1b129e6]{color:var(--text-secondary);white-space:nowrap}p[data-v-f1b129e6]{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.criteria span[data-v-f1b129e6]{color:var(--text-secondary);font-size:12px}button[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;font:inherit;border-radius:9px;padding:8px 12px}button[data-v-f1b129e6]:hover:not(:disabled){background:var(--surface-hover)}button[data-v-f1b129e6]:disabled{cursor:default;opacity:.55}label[data-v-f1b129e6]{gap:8px;display:grid}textarea[data-v-f1b129e6]{border:1px solid var(--line);background:var(--surface);box-sizing:border-box;width:100%;color:var(--text-primary);font:inherit;resize:vertical;border-radius:9px;outline:0;padding:10px;line-height:1.5}textarea[data-v-f1b129e6]:focus{border-color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.criteria-actions[data-v-f1b129e6]{gap:8px;margin-top:10px;display:flex}.criteria-error[data-v-f1b129e6]{color:var(--danger)}summary[data-v-f1b129e6]:focus-visible,button[data-v-f1b129e6]:focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}@media (width<=600px){.task-plan[data-v-f1b129e6]{border-radius:14px}.task-plan__header[data-v-f1b129e6]{min-height:56px;padding-inline:6px}.task-plan__disclosure[data-v-f1b129e6]{gap:8px;padding-inline:6px}.task-plan__icon[data-v-f1b129e6]{display:none}.task-plan__heading[data-v-f1b129e6]{flex-direction:column;align-items:flex-start;gap:1px}.task-plan__actions button[data-v-f1b129e6]{min-width:44px;padding-inline:8px;font-size:12px}.task-plan__progress[data-v-f1b129e6]{padding-inline:12px}.task-plan__steps[data-v-f1b129e6]{scrollbar-width:none;grid-template-columns:none;grid-auto-columns:minmax(78px,1fr);grid-auto-flow:column;gap:8px;padding-inline:12px;overflow-x:auto}.task-plan__steps[data-v-f1b129e6]::-webkit-scrollbar{display:none}.task-plan__result[data-v-f1b129e6]{margin-inline:12px}summary[data-v-f1b129e6],.plan-details[data-v-f1b129e6]{padding-inline:12px}}@media (prefers-reduced-motion:reduce){.task-plan__chevron[data-v-f1b129e6],.task-plan__header-chevron[data-v-f1b129e6]{transition:none}}.workspace-approval[data-v-6cb4bac8]{box-sizing:border-box;border:1px solid var(--line);background:var(--settings-panel);width:100%;color:var(--text-primary);border-radius:18px;margin:16px 0 6px;padding:14px}h3[data-v-6cb4bac8]{align-items:center;gap:10px;margin:0;font-size:18px;font-weight:650;line-height:1.3;display:flex}h3 svg[data-v-6cb4bac8]{flex-shrink:0;width:24px;height:24px}.workspace-approval__request[data-v-6cb4bac8]{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;color:var(--text-secondary);margin:8px 0 12px;font-size:14px;line-height:1.45;overflow:auto}.workspace-approval__actions[data-v-6cb4bac8]{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}button[data-v-6cb4bac8]{min-width:0;min-height:44px;font:600 14px/1.3 var(--font-ui);white-space:nowrap;color:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:10px 6px;transition:background .15s,opacity .15s;display:flex}button svg[data-v-6cb4bac8]{flex-shrink:0;width:18px;height:18px}.workspace-approval__allow[data-v-6cb4bac8]{background:var(--accent);color:var(--text-on-solid);border:1px solid var(--accent)}.workspace-approval__deny[data-v-6cb4bac8]{background:var(--surface);border:1px solid var(--line-strong)}.workspace-approval__auto[data-v-6cb4bac8]{background:var(--settings-selected);border:1px solid #0000}button[data-v-6cb4bac8]:hover:not(:disabled){filter:brightness(.94)}button[data-v-6cb4bac8]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button[data-v-6cb4bac8]:disabled{opacity:.5;cursor:default}.workspace-approval__hint[data-v-6cb4bac8]{color:var(--text-secondary);margin:10px 0 0;font-size:13px;line-height:1.4}.workspace-approval__scope[data-v-6cb4bac8]{color:var(--text-secondary);margin:6px 0 0;font-size:12px;line-height:1.4}.workspace-approval__status[data-v-6cb4bac8],.workspace-approval__error[data-v-6cb4bac8]{margin:10px 0 0;font-size:13px;line-height:1.5}.workspace-approval__error[data-v-6cb4bac8]{color:var(--danger)}@media (prefers-reduced-motion:reduce){button[data-v-6cb4bac8]{transition:none}}.managed-browser-card[data-v-04df7c6f]{box-sizing:border-box;border:1px solid var(--line);background:var(--surface-soft);width:420px;min-width:0;max-width:100%;color:var(--text-primary);border-radius:12px;gap:10px;margin:6px 0;padding:16px;display:grid}.browser-card-heading[data-v-04df7c6f]{align-items:center;gap:8px;min-width:0;font-size:13px;display:flex}.browser-card-state[data-v-04df7c6f]{color:var(--text-secondary);text-align:right;margin-left:auto;font-size:12px}.browser-card-title[data-v-04df7c6f]{overflow-wrap:anywhere;font-size:15px;line-height:1.5}.managed-browser-card p[data-v-04df7c6f]{overflow-wrap:anywhere;color:var(--text-secondary);margin:0;font-size:13px;line-height:1.6}.managed-browser-card .browser-card-url[data-v-04df7c6f]{font-size:12px}.managed-browser-card small[data-v-04df7c6f]{color:var(--text-secondary);font-size:12px;line-height:1.6}.managed-browser-card .failed[data-v-04df7c6f],.managed-browser-card .browser-card-error[data-v-04df7c6f]{color:var(--danger)}.managed-browser-card progress[data-v-04df7c6f]{width:100%;height:6px;accent-color:var(--accent)}.managed-browser-card button[data-v-04df7c6f]{border:1px solid var(--line);min-height:44px;font:inherit;background:var(--surface);color:var(--text-primary);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:600;display:flex}.managed-browser-card button[data-v-04df7c6f]:hover{background:var(--surface-hover)}.managed-browser-card button[data-v-04df7c6f]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.managed-browser-card button[data-v-04df7c6f]:active{background:var(--surface-raised)}@media (width<=480px){.managed-browser-card[data-v-04df7c6f]{width:100%;padding:12px}.browser-card-heading[data-v-04df7c6f]{flex-wrap:wrap}}.message--has-failure[data-v-1fedca0e]{flex-wrap:wrap}.message--has-failure>.failure-notice[data-v-1fedca0e]{flex:0 0 100%}.message.message--notice[data-v-1fedca0e],.message.message--failure-notice[data-v-1fedca0e]{justify-content:center}.message--notice .message__avatar[data-v-1fedca0e],.message--failure-notice .message__avatar[data-v-1fedca0e]{display:none}.message.message--notice .message__body[data-v-1fedca0e],.message.message--failure-notice .message__body[data-v-1fedca0e]{background:0 0;border:0;width:100%;max-width:100%;margin:0;padding:0}.message.message--communication[data-v-1fedca0e]{flex-direction:column;align-items:flex-start;gap:12px;margin-top:24px}.communication-caption[data-v-1fedca0e]{width:100%;min-width:0;color:var(--text-secondary);justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:400;line-height:16px;display:flex}.communication-caption>span[data-v-1fedca0e]:first-child{white-space:nowrap;flex-shrink:0}.communication-caption__name[data-v-1fedca0e]{overflow-wrap:anywhere;min-width:0;max-width:60%}.message.message--communication .message__body[data-v-1fedca0e]{background:var(--surface-soft);text-align:left;border:0;border-radius:20px;width:fit-content;max-width:min(680px,86%);margin:0;padding:12px 16px}.timeline-frame[data-v-1fedca0e]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.timeline-header[data-v-1fedca0e]{z-index:6;border-bottom:1px solid var(--line);background:color-mix(in srgb, var(--canvas) 92%, transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);align-items:center;gap:13px;min-height:62px;padding:10px 18px;display:flex}.timeline-header--transparent[data-v-1fedca0e]{-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;background:0 0;border:0;justify-content:flex-end;min-height:0;padding:11px 14px;position:absolute;top:0;left:0;right:0}.timeline-header--transparent[data-v-1fedca0e]>*{pointer-events:auto}.timeline-identity[data-v-1fedca0e]{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.timeline-heading[data-v-1fedca0e]{min-width:0}.timeline-header h2[data-v-1fedca0e]{letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:14px;font-weight:630;overflow:hidden}.timeline-header p[data-v-1fedca0e]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font-size:9px;overflow:hidden}.timeline[data-v-1fedca0e]{overflow-anchor:none;overscroll-behavior:contain;background:var(--conversation-canvas);flex:1;min-height:0;overflow-y:auto}.message-stack[data-v-1fedca0e]{width:min(780px,100%);min-height:100%;margin:0 auto;padding:24px 24px 36px}.message-stack--interaction[data-v-1fedca0e]{padding-bottom:10px}.timeline-frame--transparent .message-stack[data-v-1fedca0e]{padding-top:58px}.load-older[data-v-1fedca0e]{border:1px solid var(--line);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;margin:0 auto 18px;padding:5px 9px;font-size:10px;display:block}.load-older[data-v-1fedca0e]:hover{background:var(--surface-soft);color:var(--text-secondary)}.message[data-v-1fedca0e]{gap:10px;max-width:100%;margin:0 0 21px;display:flex;position:relative}.message__avatar[data-v-1fedca0e]{width:27px;height:27px;color:var(--text-secondary);background:0 0;flex:0 0 27px;place-items:center;font-size:11px;font-weight:700;display:grid}.message__body[data-v-1fedca0e]{min-width:0;max-width:min(680px,100% - 37px);position:relative}.message__meta[data-v-1fedca0e]{min-height:20px;color:var(--text-muted);align-items:center;gap:7px;font-size:10px;display:flex}.message__meta strong[data-v-1fedca0e]{color:var(--text-primary);align-items:center;font-size:12px;font-weight:600;display:inline-flex}.message__remote-agent[data-v-1fedca0e]{color:var(--accent);margin-right:4px}.message__meta span[data-v-1fedca0e]{color:var(--warning)}.message__meta .message__execution[data-v-1fedca0e]{max-width:230px;color:var(--text-secondary);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.message__content[data-v-1fedca0e]{color:var(--text-primary)}.message__content[data-v-1fedca0e] .plain-text,.message__content[data-v-1fedca0e] .markdown{font-size:15px}.message__content[data-v-1fedca0e] .code-lang,.message__content[data-v-1fedca0e] .code-copy{font-size:10px}.message__content[data-v-1fedca0e] .code-block code{font-size:12px}.message__content[data-v-1fedca0e] .file-link-card:after{font-size:10px}.message--user[data-v-1fedca0e]{justify-content:flex-end;margin-top:27px}.message--user .message__body[data-v-1fedca0e]{background:0 0;max-width:min(610px,76%);padding:0}.message--user[data-v-1fedca0e] .message-parts{align-items:flex-end}.message--user .message__meta[data-v-1fedca0e]{display:none}.message__delivery[data-v-1fedca0e]{min-height:18px;color:var(--text-muted);justify-content:flex-end;align-items:center;gap:4px;margin:5px 1px -4px;font-size:10px;display:flex}.message__delivery--accepted[data-v-1fedca0e]{color:var(--success)}.message__delivery--failed[data-v-1fedca0e],.message__delivery--unknown-receipt[data-v-1fedca0e]{color:var(--danger)}.message--tool-only[data-v-1fedca0e]{margin-block:4px}.message--tool-only .message__avatar[data-v-1fedca0e],.message--tool-only .message__meta[data-v-1fedca0e],.message--tool-only .message__actions[data-v-1fedca0e]{display:none}.message--tool-only .message__body[data-v-1fedca0e]{max-width:100%}.message--assistant-internal[data-v-1fedca0e]{margin-bottom:6px}.message--assistant-internal .message__reasoning[data-v-1fedca0e]{margin-bottom:4px;padding-bottom:4px}.message--assistant-internal .message__tools[data-v-1fedca0e]{margin-top:4px}.message--assistant-anonymous .message__body[data-v-1fedca0e]{max-width:min(680px,100%)}.message__reasoning[data-v-1fedca0e]{border:0;border-bottom:1px dashed var(--line-strong);max-width:420px;color:var(--text-secondary);margin:3px 0 10px;padding:0 0 8px;font-size:12px}.message__reasoning summary[data-v-1fedca0e]{color:var(--text-muted);cursor:pointer;align-items:center;gap:5px;font-size:10px;list-style:none;display:flex}.message__reasoning summary[data-v-1fedca0e]::-webkit-details-marker{display:none}.message__reasoning summary[data-v-1fedca0e]:before{content:"›";color:var(--text-muted);font-size:14px;line-height:1;transition:transform .12s}.message__reasoning[open] summary[data-v-1fedca0e]:before{transform:rotate(90deg)}.message__reasoning[data-v-1fedca0e] .markdown{margin-top:8px}.fork-divider[data-v-1fedca0e]{color:var(--text-muted);align-items:center;gap:12px;margin:8px 0 28px;font-size:11px;display:flex}.fork-divider[data-v-1fedca0e]:before,.fork-divider[data-v-1fedca0e]:after{background:var(--line);content:"";flex:1;height:1px}.fork-divider>span[data-v-1fedca0e]{border:1px solid var(--line);background:var(--surface-raised);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:5px 10px;display:inline-flex}.fork-divider strong[data-v-1fedca0e]{max-width:180px;color:var(--text-secondary);text-overflow:ellipsis;overflow:hidden}.message__tools[data-v-1fedca0e]{margin-top:9px}.message__actions[data-v-1fedca0e]{opacity:0;gap:2px;padding-top:2px;transition:opacity .12s;display:flex;position:absolute;top:100%;left:-3px}.message:hover .message__actions[data-v-1fedca0e],.message:focus-within .message__actions[data-v-1fedca0e]{opacity:1}.message--user .message__actions[data-v-1fedca0e]{left:auto;right:0}.message__actions button[data-v-1fedca0e]{width:24px;height:24px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;padding:0;display:grid}.message__actions button[data-v-1fedca0e]:hover{background:var(--surface-soft);color:var(--text-primary)}.message__actions .message-action--copied[data-v-1fedca0e]{color:var(--success)}.message__actions .message-action--copy-failed[data-v-1fedca0e]{color:var(--danger)}.message--assistant-anonymous .message__actions[data-v-1fedca0e]{align-items:center}.message__action-time[data-v-1fedca0e]{min-width:36px;color:var(--text-muted);font-variant-numeric:tabular-nums;padding:0 4px 0 3px;font-size:10px}.message--failed .message__body[data-v-1fedca0e]{border-color:color-mix(in srgb, var(--danger) 35%, var(--line))}.message--revealed .message__body[data-v-1fedca0e]{animation:1.8s reveal-message-1fedca0e}@keyframes reveal-message-1fedca0e{0%,28%{box-shadow:0 0 0 5px var(--focus-ring)}to{box-shadow:0 0 #0000}}.jump-bottom[data-v-1fedca0e]{z-index:8;border:1px solid var(--line);background:var(--surface-raised);color:var(--text-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:5px;padding:6px 10px;font-size:10px;display:flex;position:absolute;bottom:8px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #0000001a}.new-chat-empty[data-v-1fedca0e]{box-sizing:border-box;min-height:100%;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:12vh 24px;display:flex}.new-chat-empty__logo[data-v-1fedca0e]{aspect-ratio:1;opacity:.18;filter:grayscale();width:min(180px,34vw);height:auto;display:block}.new-chat-empty p[data-v-1fedca0e]{color:var(--text-secondary);letter-spacing:.02em;margin:0;font-size:17px;font-weight:520}.message-skeletons[data-v-1fedca0e]{width:min(760px,100%);margin:0 auto;padding:35px 24px}.message-skeletons div[data-v-1fedca0e]{gap:10px;margin:0 0 25px;display:flex}.message-skeletons div.user[data-v-1fedca0e]{justify-content:flex-end}.message-skeletons i[data-v-1fedca0e]{background:var(--surface-hover);border-radius:9px;width:27px;height:27px}.message-skeletons span[data-v-1fedca0e]{background:linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft));background-size:200% 100%;border-radius:12px;width:min(480px,70%);height:64px;animation:1.5s linear infinite shimmer-1fedca0e}.message-skeletons .user i[data-v-1fedca0e]{display:none}.message-skeletons .user span[data-v-1fedca0e]{width:44%;height:46px}@keyframes shimmer-1fedca0e{to{background-position:-200% 0}}@media (width<=768px){.timeline-header[data-v-1fedca0e]{min-height:54px;padding:8px 12px}.new-chat-empty[data-v-1fedca0e]{gap:15px;padding-block:9vh}.new-chat-empty__logo[data-v-1fedca0e]{width:min(150px,42vw)}.new-chat-empty p[data-v-1fedca0e]{font-size:16px}.message-stack[data-v-1fedca0e]{padding:18px 14px 30px}.message-stack--interaction[data-v-1fedca0e]{padding-bottom:8px}.message[data-v-1fedca0e]{margin-bottom:18px}.message__body[data-v-1fedca0e]{max-width:calc(100% - 37px)}.message--user .message__body[data-v-1fedca0e]{max-width:88%}.message--system .message__body[data-v-1fedca0e]{max-width:100%}.message__actions[data-v-1fedca0e]{opacity:.65}.message__meta time[data-v-1fedca0e]{display:none}}.preset-picker[data-v-22ca72e6]{margin-bottom:15px}.preset-picker__heading[data-v-22ca72e6],.role-mapping__heading[data-v-22ca72e6]{color:var(--text-secondary);justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:7px;font-size:10px;display:flex}.preset-picker__heading small[data-v-22ca72e6],.role-mapping__heading small[data-v-22ca72e6]{color:var(--text-muted);font-size:9px}.preset-grid[data-v-22ca72e6]{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.preset-grid button[data-v-22ca72e6]{border:1px solid var(--line);background:var(--surface-soft);min-height:82px;color:var(--text-primary);cursor:pointer;text-align:left;border-radius:11px;align-content:start;gap:4px;padding:10px;display:grid;position:relative}.preset-grid button[data-v-22ca72e6]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.preset-grid button.selected[data-v-22ca72e6]{border-color:color-mix(in srgb, var(--accent) 58%, var(--line));box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 13%, transparent)}.preset-grid button[data-v-22ca72e6]:disabled{cursor:not-allowed;opacity:.48}.preset-grid strong[data-v-22ca72e6]{padding-right:42px;font-size:10px}.preset-grid small[data-v-22ca72e6]{color:var(--text-muted);font-size:9px;line-height:1.4}.preset-grid em[data-v-22ca72e6]{color:var(--accent);font-size:8px;font-style:normal;position:absolute;top:9px;right:9px}.preset-help[data-v-22ca72e6]{color:var(--text-muted);margin-top:8px;font-size:11px;display:block}@media (width<=620px){.preset-grid[data-v-22ca72e6]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=420px){.preset-grid[data-v-22ca72e6]{grid-template-columns:1fr}}.knowledge-shortcuts[data-v-8e7c3710]{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;display:flex}.knowledge-shortcuts button[data-v-8e7c3710],.knowledge-shortcuts select[data-v-8e7c3710]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);font:inherit;cursor:pointer;border-radius:9px;padding:7px 12px;font-size:13px}.knowledge-shortcuts button[data-v-8e7c3710]:hover{background:var(--surface-hover)}.knowledge-shortcuts button[data-v-8e7c3710]:focus-visible,.knowledge-shortcuts select[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.knowledge-shortcuts label[data-v-8e7c3710]{align-items:center;gap:8px;font-size:13px;display:flex}.composer-knowledge[data-v-8e7c3710]{max-width:760px;margin:auto}.conversation-with-computer[data-v-8e7c3710]{min-width:0;height:100%;min-height:0;display:flex}.conversation-with-computer>.workspace-chat[data-v-8e7c3710]{flex:1;min-width:0}.workspace-chat[data-v-8e7c3710]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.new-actions[data-v-8e7c3710]{gap:2px;display:grid}.new-actions button[data-v-8e7c3710]{min-height:40px;color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;padding:0 11px;font-size:12px;font-weight:610;display:flex}.new-actions button[data-v-8e7c3710]:hover{background:var(--surface-hover)}.header-actions[data-v-8e7c3710]{gap:4px;margin-left:auto;display:flex}.error[data-v-8e7c3710]{color:var(--danger);justify-content:space-between;align-items:center;margin:0 18px 9px;font-size:12px;display:flex}.team-avatar-settings[data-v-8e7c3710]{gap:12px;display:grid}.team-avatar-options[data-v-8e7c3710]{gap:10px;display:flex}.team-avatar-options button[data-v-8e7c3710]{border:1px solid var(--line);background:var(--surface-soft);cursor:pointer;border-radius:10px;padding:5px}.team-avatar-options button[aria-pressed=true][data-v-8e7c3710]{border-color:var(--accent)}.nodes-overlay[data-v-8e7c3710]{z-index:1000;background:var(--scrim);place-items:center;display:grid;position:fixed;inset:0}.nodes-overlay>div[data-v-8e7c3710]{background:var(--surface-raised);border:1px solid var(--line);border-radius:16px;width:min(520px,90vw);max-height:85vh;padding:20px;overflow:auto}.editor[data-v-8e7c3710]{border:1px solid var(--line);background:var(--surface);width:min(520px,100vw - 48px);max-height:85vh;color:var(--text-primary);border-radius:18px;padding:25px;overflow:hidden}.editor[data-v-8e7c3710]::backdrop{background:#0006}.editor form[data-v-8e7c3710]{flex-direction:column;min-height:0;max-height:calc(85dvh - 32px);display:flex}.editor-content[data-v-8e7c3710]{scrollbar-gutter:stable;min-height:0;padding:0 4px;overflow:auto}.editor header[data-v-8e7c3710],.editor footer[data-v-8e7c3710]{flex-shrink:0}.editor header[data-v-8e7c3710]{min-height:44px}.editor .remote-picker[data-v-8e7c3710],.editor footer button[data-v-8e7c3710]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);font:inherit;cursor:pointer;border-radius:10px;padding:8px 14px;font-size:13px}.editor .remote-picker[data-v-8e7c3710]:hover,.editor footer .quiet-button[data-v-8e7c3710]:hover{background:var(--surface-hover)}.editor footer .solid-button[data-v-8e7c3710]{background:var(--text-primary);color:var(--surface);border-color:var(--text-primary)}.editor footer button[data-v-8e7c3710]:disabled{opacity:.5;cursor:default}.editor .remote-picker[data-v-8e7c3710]:focus-visible,.editor footer button[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.editor header[data-v-8e7c3710],.editor footer[data-v-8e7c3710]{justify-content:space-between;align-items:center;gap:12px;display:flex}.editor h2[data-v-8e7c3710]{margin:12px 0;font-size:20px}.editor label[data-v-8e7c3710]{flex-direction:column;gap:7px;margin:15px 0;font-size:13px;display:flex}.task-picker-shell[data-v-8e7c3710]{align-items:center;min-width:0;max-width:210px;display:inline-flex;position:relative}.task-picker-shell>.app-icon[data-v-8e7c3710]{pointer-events:none;color:var(--text-muted);position:absolute;right:11px}.task-picker[data-v-8e7c3710]{appearance:none;border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;max-width:210px;min-height:38px;color:var(--text-primary);font:inherit;text-overflow:ellipsis;cursor:pointer;box-shadow:0 1px 2px color-mix(in srgb,var(--text-primary) 5%,transparent);border-radius:999px;padding:6px 34px 6px 14px;font-size:12px;font-weight:520;transition:border-color .14s,background-color .14s,box-shadow .14s}.task-picker[data-v-8e7c3710]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.task-picker[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.task-picker[data-v-8e7c3710]:disabled{cursor:wait;opacity:.55}.task-queue-status[data-v-8e7c3710]{min-width:0;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;line-height:20px;overflow:hidden}.task-queue-status button[data-v-8e7c3710]{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.task-queue-status button[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.group-options[data-v-8e7c3710]{border-top:1px solid var(--line);margin:12px 0}.group-options summary[data-v-8e7c3710]{cursor:pointer;min-height:44px;color:var(--text-secondary);align-content:center;font-size:13px}.group-options summary[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.group-help[data-v-8e7c3710]{color:var(--text-secondary);font-size:13px;line-height:1.6}@media (width<=720px){.task-picker-shell[data-v-8e7c3710],.task-picker[data-v-8e7c3710]{max-width:118px}.task-picker[data-v-8e7c3710]{min-height:44px;padding-left:12px}}.team-management-permission>span[data-v-8e7c3710]{align-items:center;gap:8px;min-height:44px;display:flex}.team-management-permission small[data-v-8e7c3710]{color:var(--text-muted);line-height:1.6}.editor input[data-v-8e7c3710]:not([type=checkbox]),.editor textarea[data-v-8e7c3710],.editor select[data-v-8e7c3710],.interaction input[data-v-8e7c3710]{border:1px solid var(--line);background:var(--surface-soft);color:inherit;font:inherit;border-radius:8px;padding:10px}.editor fieldset[data-v-8e7c3710]{border:1px solid var(--line);border-radius:10px}.editor fieldset label[data-v-8e7c3710]{flex-direction:row;align-items:center}.editor footer[data-v-8e7c3710]{justify-content:flex-end;margin-top:12px}.status[data-v-8e7c3710]{margin-top:8px}.workspace-list-back[data-v-8e7c3710]{display:none}@media (width<=900px){.workspace-list-back[data-v-8e7c3710]{display:grid}}.search-delete[data-v-8e7c3710]{min-width:64px;min-height:44px;color:var(--danger);font:12px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:5px;margin-right:4px;padding:6px 9px;display:inline-flex}.search-delete[data-v-8e7c3710]:hover:not(:disabled){background:var(--surface-hover)}.search-delete[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.search-delete[data-v-8e7c3710]:disabled{opacity:.5;cursor:wait}.search-delete-error[data-v-8e7c3710]{color:var(--danger);margin:0;padding:10px 16px 14px;font-size:12px;line-height:1.5}.search-lifecycle-actions[data-v-8e7c3710]{flex:none;align-items:center;gap:2px;display:flex}.search-restore[data-v-8e7c3710]{min-height:44px;color:var(--text-secondary);font:12px var(--font-ui);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;padding:6px 8px}.search-restore[data-v-8e7c3710]:hover:not(:disabled){background:var(--surface-hover)}.search-restore[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.search-restore[data-v-8e7c3710]:disabled{opacity:.5;cursor:wait}.lifecycle-error[data-v-8e7c3710]{z-index:220;left:50%;bottom:max(24px,env(safe-area-inset-bottom));border:1px solid var(--line);background:var(--surface-raised);width:max-content;max-width:min(520px,100vw - 32px);box-shadow:var(--shadow-float);color:var(--danger);border-radius:12px;align-items:flex-start;gap:12px;padding:14px 16px;font-size:13px;line-height:1.6;display:flex;position:fixed;transform:translate(-50%)}.lifecycle-error button[data-v-8e7c3710]{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:0 0 28px;place-items:center;display:grid}.lifecycle-error button[data-v-8e7c3710]:hover{background:var(--surface-hover)}.lifecycle-error button[data-v-8e7c3710]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./WorkspaceShell-Dhm3r61t.js";import{A as t,F as n,H as r,L as i,M as a,W as o,_ as s,at as c,ct as l,d as u,et as d,g as f,h as p,l as m,m as h,nt as g,ot as _,p as v,st as y,t as b,u as x,v as S,x as C,y as w}from"./_plugin-vue_export-helper-CscYwSBt.js";import{B as T,F as E,H as D,I as O,R as k,V as A,W as j,X as M,et as N,m as P,o as F,rt as I}from"./index-BRP9NWum.js";import{f as L,g as R,h as z,i as ee,r as B}from"./viewModels-CYJ8m5Uf.js";import{t as V}from"./WorkspaceView-CBWFRLki.js";var H={class:`library-scroll`},U={key:0,class:`library-skeleton`},W={key:2,class:`library-grid`},G=[`onClick`,`onKeydown`],K=[`src`,`alt`],q=[`src`],J={key:2},Y={class:`library-thumb__actions`},X=[`onClick`],Z=[`onClick`],Q={class:`library-copy`},te=[`title`],ne=[`disabled`],re=b(C({__name:`LibraryGrid`,props:{items:{},selectedId:{default:``},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},emptyTitle:{default:`暂无文件`},emptyDescription:{default:`这里会显示来自 Hermes 的文件。`},kind:{default:`files`}},emits:[`select`,`loadMore`,`addToComposer`,`source`],setup(t,{emit:r}){let a=r;function o(e){return e.kind===`document`||e.kind===`pdf`||e.kind===`code`||e.kind===`text`?`file`:e.kind}function c(e){return{image:`图片`,video:`视频`,audio:`音频`,pdf:`文档`,document:`文档`,code:`文档`,text:`文档`,link:`网页`,file:`其他`}[e.kind]}function d(e){return e===void 0?``:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function g(e){if(!e)return``;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?``:new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`}).format(t)}return(r,v)=>(n(),s(`div`,H,[t.loading&&!t.items.length?(n(),s(`div`,U,[(n(),s(u,null,i(10,e=>h(`i`,{key:e,style:y({opacity:.95-e*.04})},null,4)),64))])):t.items.length?(n(),s(`div`,W,[(n(!0),s(u,null,i(t.items,e=>(n(),s(`article`,{key:e.id,class:_({selected:e.id===t.selectedId}),tabindex:`0`,onClick:t=>a(`select`,e),onKeydown:m(t=>a(`select`,e),[`enter`])},[h(`div`,{class:_([`library-thumb`,`library-thumb--${e.kind}`])},[e.kind===`image`&&e.previewUrl?(n(),s(`img`,{key:0,src:e.previewUrl,alt:e.name,loading:`lazy`},null,8,K)):e.kind===`video`&&e.previewUrl?(n(),s(`video`,{key:1,src:e.previewUrl,muted:``,preload:`metadata`},null,8,q)):(n(),s(`span`,J,[w(M,{name:o(e),size:36},null,8,[`name`]),h(`em`,null,l(e.name.split(`.`).at(-1)?.slice(0,5).toUpperCase())+` · `+l(c(e)),1)])),h(`div`,Y,[h(`button`,{type:`button`,title:`加入输入框`,"aria-label":`加入输入框`,onClick:x(t=>a(`addToComposer`,e),[`stop`])},[w(M,{name:`plus`,size:14})],8,X),e.sourceSessionId?(n(),s(`button`,{key:0,type:`button`,title:`查看来源`,"aria-label":`查看来源`,onClick:x(t=>a(`source`,e),[`stop`])},[w(M,{name:`external`,size:14})],8,Z)):f(``,!0)])],2),h(`div`,Q,[h(`strong`,{title:e.name},l(e.title||e.name),9,te),h(`span`,null,[h(`small`,null,l(e.sourceLabel||d(e.size)||e.kind),1),h(`time`,null,l(g(e.updatedAt||e.createdAt)),1)])])],42,G))),128))])):(n(),p(e,{key:1,icon:t.kind===`files`?`files`:`artifacts`,title:t.emptyTitle,description:t.emptyDescription},null,8,[`icon`,`title`,`description`])),t.hasMore?(n(),s(`button`,{key:3,class:`load-more`,type:`button`,disabled:t.loading,onClick:v[0]||=e=>a(`loadMore`)},l(t.loading?`加载中…`:`加载更多`),9,ne)):f(``,!0)]))}}),[[`__scopeId`,`data-v-36fcc00e`]]);async function ie(e={}){let t=e.kind===`image`||e.kind===`video`?e.kind:void 0,n=k(await E(O(`/api/app/files`,{search:e.search,kind:t,profile:e.profile,conversationOnly:e.conversationOnly||void 0,cursor:e.cursor,limit:Math.max(1,Math.min(100,e.limit??50))}))),r=D(n),i=typeof r.profile==`string`?r.profile:e.profile;return{items:j(r.items??r.files??n).map(e=>T(e,i)).filter(e=>e.id),nextCursor:typeof r.nextCursor==`string`?r.nextCursor:typeof r.next_cursor==`string`?r.next_cursor:null,total:A(r.total)||void 0}}var ae=I(`files`,()=>{let e=P(),t=g([]),n=d(),i=d(!0),a=d(!1),o=d(),s=d(``),c=d(`all`),l=d(),u=new Set,f=0,p=v(()=>t.value.filter(e=>c.value===`all`||e.kind===c.value));async function m(e=!0){if(a.value&&!e)return;let r=++f;if(e)t.value=[],n.value=void 0,i.value=!0,u.clear();else if(!i.value)return;a.value=!0,o.value=void 0;try{let a=new Map(t.value.map(e=>[e.id,e])),d=e?void 0:n.value,p=0;for(;p<20;){let e=d??`<first-page>`;if(u.has(e)){i.value=!1,o.value=`文件分页返回了重复游标,已停止加载`;break}u.add(e);let t=await ie({search:s.value.trim()||void 0,kind:c.value,profile:l.value,cursor:d,limit:50});if(r!==f)return;for(let e of t.items)a.set(e.id,e);p+=1,d=t.nextCursor??void 0,n.value=d,i.value=!!d;let m=[...a.values()].filter(e=>c.value===`all`||e.kind===c.value).length;if(!d||c.value===`all`||m>=50)break}t.value=[...a.values()]}catch(e){r===f&&(o.value=e instanceof Error?e.message:`文件库加载失败`)}finally{r===f&&(a.value=!1)}}return r(()=>e.user?.id,()=>{f+=1,t.value=[],l.value=void 0,n.value=void 0,u.clear(),a.value=!1,o.value=void 0},{flush:`sync`}),{items:t,filteredItems:p,nextCursor:n,hasMore:i,isLoading:a,error:o,query:s,kindFilter:c,profile:l,load:m,reset:()=>m(!0),loadMore:()=>m(!1)}}),oe={class:`library-workspace`},$={class:`library-header`},se={class:`file-search`},ce=[`value`],le={class:`file-tabs`,"aria-label":`文件类型筛选`},ue=[`onClick`],de={key:0},fe={class:`file-tabs__status`},pe={key:0,class:`error`},me={key:1},he=[`disabled`],ge=b(C({__name:`FilesView`,setup(e){let m=ae(),g=P(),y=F(),b=N(),x=d(null),C=d(null),T=d(``),E,D=v(()=>m.filteredItems.map(B)),O=v(()=>D.value.filter(e=>e.kind===`image`||e.kind===`video`).map(e=>({url:e.previewUrl||e.downloadUrl||``,name:e.name,type:e.kind})).filter(e=>e.url)),k=v(()=>new Map(g.profiles.map(e=>[e.name,e.agentName||e.displayName||e.name]))),A=v(()=>y.sessions.filter(e=>![`cron`,`ios_group`].includes(e.source)).filter(e=>!T.value.trim()||`${e.title} ${e.preview||``}`.toLocaleLowerCase().includes(T.value.trim().toLocaleLowerCase())).map(e=>ee(e,y.unreadCounts[e.id]??0,k.value.get(e.profile||g.activeProfile?.name||``)))),j=v(()=>{let e=e=>m.items.filter(t=>t.kind===e).length;return[{id:`all`,label:`全部`,count:m.items.length,icon:`files`},{id:`image`,label:`图片`,count:e(`image`),icon:`image`},{id:`video`,label:`视频`,count:e(`video`),icon:`video`},{id:`audio`,label:`音频`,count:e(`audio`),icon:`audio`},{id:`document`,label:`文档`,count:e(`document`),icon:`file`},{id:`other`,label:`其他`,count:e(`other`),icon:`file`}]});function I(e){m.query=e,window.clearTimeout(E),E=window.setTimeout(()=>void m.load(!0),260)}function H(e){m.kindFilter=e,m.load(!0)}async function U(e){if(e.sourceWorkspaceConversationId){await b.push(`/conversations/${encodeURIComponent(e.sourceWorkspaceConversationId)}`);return}e.sourceSessionId&&(e.sourceProfile&&g.profiles.some(t=>t.name===e.sourceProfile)&&g.selectProfile(e.sourceProfile),await b.push({path:`/chat/${encodeURIComponent(e.sourceSessionId)}`,query:{...e.sourceMessageId?{message:e.sourceMessageId}:{},...e.sourceProfile?{profile:e.sourceProfile}:{}}}))}function W(e){if(e.kind===`image`||e.kind===`video`){let t=O.value.findIndex(t=>t.url===(e.previewUrl||e.downloadUrl));C.value=t>=0?t:null;return}x.value=e}async function G(e){let t=y.sessions.find(t=>t.id===e)?.profile||g.activeProfile?.name;await b.push({path:`/chat/${encodeURIComponent(e)}`,query:t?{profile:t}:{}})}return a(()=>{m.profile=void 0,m.load(!0),y.loadSessions(g.activeProfile?.name),y.loadUnread(g.activeProfile?.name)}),t(()=>window.clearTimeout(E)),r(()=>m.items,()=>{x.value&&!m.items.some(e=>e.id===x.value?.id)&&(x.value=null)}),r(()=>g.activeProfile?.name,e=>{x.value=null,m.profile=e,m.load(!0),y.loadSessions(e),y.loadUnread(e)}),(e,t)=>(n(),s(u,null,[w(V,{"sidebar-title":`历史记录`,"sidebar-subtitle":`${c(y).sessions.length} 个会话`},{sidebar:o(()=>[w(L,{items:A.value,"active-id":c(y).activeSessionId,loading:c(y).isLoading,search:T.value,"single-line":``,"search-placeholder":`搜索会话`,"empty-title":`还没有会话`,"empty-description":`原生 Hermes 会话会在这里以只读历史显示。`,onSearch:t[0]||=e=>T.value=e,onSelect:G},null,8,[`items`,`active-id`,`loading`,`search`])]),default:o(()=>[h(`section`,oe,[h(`header`,$,[h(`div`,null,[t[5]||=h(`h2`,null,`文件库`,-1),h(`span`,null,[w(M,{name:`files`,size:15}),S(l(D.value.length),1)])]),h(`label`,se,[w(M,{name:`search`,size:15}),h(`input`,{value:c(m).query,type:`search`,placeholder:`搜索文件名、路径或会话`,onInput:t[1]||=e=>I(e.target.value)},null,40,ce)])]),h(`nav`,le,[(n(!0),s(u,null,i(j.value,e=>(n(),s(`button`,{key:e.id,type:`button`,class:_({active:e.id===c(m).kindFilter}),onClick:t=>H(e.id)},[S(l(e.label),1),e.count===void 0?f(``,!0):(n(),s(`small`,de,l(e.count),1))],10,ue))),128)),h(`div`,fe,[c(m).error?(n(),s(`span`,pe,[w(M,{name:`alert`,size:13}),S(l(c(m).error),1)])):(n(),s(`span`,me,l(c(m).nextCursor?`还有更多文件可加载`:D.value.length?`已同步到最新`:``),1)),h(`button`,{class:`icon-button`,type:`button`,"aria-label":`刷新文件库`,title:`刷新文件库`,disabled:c(m).isLoading,onClick:t[2]||=e=>c(m).load(!0)},[w(M,{name:`refresh`,size:15})],8,he)])]),w(re,{items:D.value,"selected-id":x.value?.id,loading:c(m).isLoading,"has-more":c(m).hasMore,"empty-title":`文件库还是空的`,"empty-description":`聊天中的图片、文档和附件会出现在这里。`,onSelect:W,onLoadMore:c(m).loadMore,onSource:U},null,8,[`items`,`selected-id`,`loading`,`has-more`,`onLoadMore`])])]),_:1},8,[`sidebar-subtitle`]),x.value?(n(),p(R,{key:0,item:x.value,items:D.value,"can-add-to-composer":!1,onClose:t[3]||=e=>x.value=null,onSource:U},null,8,[`item`,`items`])):f(``,!0),w(z,{modelValue:C.value,"onUpdate:modelValue":t[4]||=e=>C.value=e,images:O.value,"can-add":!1},null,8,[`modelValue`,`images`])],64))}}),[[`__scopeId`,`data-v-dc0c445f`]]);export{ge as default};
2
+ //# sourceMappingURL=FilesView-D7tA6Nu1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesView-xOEZGSrD.js","names":[],"sources":["../../src/client/components/library/LibraryGrid.vue","../../src/client/components/library/LibraryGrid.vue","../../src/client/api/files.ts","../../src/client/stores/files.ts","../../src/client/views/FilesView.vue","../../src/client/views/FilesView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport EmptyState from '@/components/common/EmptyState.vue'\nimport type { UiLibraryItem } from './types'\n\nwithDefaults(defineProps<{\n items: UiLibraryItem[]\n selectedId?: string\n loading?: boolean\n hasMore?: boolean\n emptyTitle?: string\n emptyDescription?: string\n kind?: 'files' | 'artifacts'\n}>(), {\n selectedId: '', loading: false, hasMore: false, emptyTitle: '暂无文件', emptyDescription: '这里会显示来自 Hermes 的文件。', kind: 'files',\n})\n\nconst emit = defineEmits<{\n select: [item: UiLibraryItem]\n loadMore: []\n addToComposer: [item: UiLibraryItem]\n source: [item: UiLibraryItem]\n}>()\n\nfunction iconFor(item: UiLibraryItem) {\n if (item.kind === 'document' || item.kind === 'pdf' || item.kind === 'code' || item.kind === 'text') return 'file'\n return item.kind\n}\n\nfunction kindLabel(item: UiLibraryItem) {\n return ({ image: '图片', video: '视频', audio: '音频', pdf: '文档', document: '文档', code: '文档', text: '文档', link: '网页', file: '其他' } as const)[item.kind]\n}\n\nfunction formatSize(size?: number) {\n if (size === undefined) return ''\n if (size < 1024) return `${size} B`\n if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`\n return `${(size / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction formatDate(value?: string | number | Date) {\n if (!value) return ''\n const date = value instanceof Date ? value : new Date(value)\n if (Number.isNaN(date.getTime())) return ''\n return new Intl.DateTimeFormat('zh-CN', { month: 'short', day: 'numeric' }).format(date)\n}\n</script>\n\n<template>\n <div class=\"library-scroll\">\n <div v-if=\"loading && !items.length\" class=\"library-skeleton\">\n <i v-for=\"n in 10\" :key=\"n\" :style=\"{ opacity: .95 - n * .04 }\" />\n </div>\n <EmptyState v-else-if=\"!items.length\" :icon=\"kind === 'files' ? 'files' : 'artifacts'\" :title=\"emptyTitle\" :description=\"emptyDescription\" />\n <div v-else class=\"library-grid\">\n <article\n v-for=\"item in items\"\n :key=\"item.id\"\n :class=\"{ selected: item.id === selectedId }\"\n tabindex=\"0\"\n @click=\"emit('select', item)\"\n @keydown.enter=\"emit('select', item)\"\n >\n <div class=\"library-thumb\" :class=\"`library-thumb--${item.kind}`\">\n <img v-if=\"item.kind === 'image' && item.previewUrl\" :src=\"item.previewUrl\" :alt=\"item.name\" loading=\"lazy\" />\n <video v-else-if=\"item.kind === 'video' && item.previewUrl\" :src=\"item.previewUrl\" muted preload=\"metadata\" />\n <span v-else><AppIcon :name=\"iconFor(item)\" :size=\"36\" /><em>{{ item.name.split('.').at(-1)?.slice(0, 5).toUpperCase() }} · {{ kindLabel(item) }}</em></span>\n <div class=\"library-thumb__actions\">\n <button type=\"button\" title=\"加入输入框\" aria-label=\"加入输入框\" @click.stop=\"emit('addToComposer', item)\"><AppIcon name=\"plus\" :size=\"14\" /></button>\n <button v-if=\"item.sourceSessionId\" type=\"button\" title=\"查看来源\" aria-label=\"查看来源\" @click.stop=\"emit('source', item)\"><AppIcon name=\"external\" :size=\"14\" /></button>\n </div>\n </div>\n <div class=\"library-copy\">\n <strong :title=\"item.name\">{{ item.title || item.name }}</strong>\n <span><small>{{ item.sourceLabel || formatSize(item.size) || item.kind }}</small><time>{{ formatDate(item.updatedAt || item.createdAt) }}</time></span>\n </div>\n </article>\n </div>\n <button v-if=\"hasMore\" class=\"load-more\" type=\"button\" :disabled=\"loading\" @click=\"emit('loadMore')\">{{ loading ? '加载中…' : '加载更多' }}</button>\n </div>\n</template>\n\n<style scoped>\n.library-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 20px clamp(18px, 3vw, 36px) 32px; }\n.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }\narticle { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; outline: 0; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; } article:focus-visible, article.selected { border-color: var(--line-strong); box-shadow: 0 0 0 2px var(--focus-ring); } article:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-1px); }\n.library-thumb { position: relative; display: grid; height: 154px; place-items: center; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); color: var(--text-muted); }\n.library-thumb img, .library-thumb video { width: 100%; height: 100%; object-fit: cover; }\n.library-thumb > span { display: flex; flex-direction: column; align-items: center; gap: 7px; }.library-thumb > span em { max-width: 150px; overflow: hidden; color: var(--text-muted); font-size: 11px; font-style: normal; letter-spacing: .02em; text-overflow: ellipsis; text-transform: capitalize; }\n.library-thumb--code, .library-thumb--text { background: linear-gradient(135deg, var(--surface-soft), var(--surface-raised)); }.library-thumb--link { border-style: dashed; }\n.library-thumb__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity 120ms ease, transform 140ms var(--ease-out); }.library-thumb:hover .library-thumb__actions, article:focus-within .library-thumb__actions { opacity: 1; transform: translateY(0); }.library-thumb__actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(25,25,24,.72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }\n.library-copy { padding: 10px 12px 9px; }.library-copy strong { display: block; overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.library-copy > span { display: flex; margin-top: 5px; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }.library-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.library-copy time { flex: 0 0 auto; }\n.load-more { display: block; margin: 28px auto 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 10px; }.load-more:hover { background: var(--surface-hover); }\n.library-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }.library-skeleton i { height: 208px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }\n@keyframes shimmer { to { background-position: -200% 0; } }\n@media (max-width: 600px) { .library-scroll { padding: 16px 12px 30px; }.library-grid, .library-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }.library-thumb { height: 122px; }.library-thumb__actions { opacity: 1; transform: none; }.library-copy { padding: 8px 9px; }.library-copy strong { font-size: 11px; }.library-copy > span { font-size: 9px; } }\n</style>\n","<script setup lang=\"ts\">\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport EmptyState from '@/components/common/EmptyState.vue'\nimport type { UiLibraryItem } from './types'\n\nwithDefaults(defineProps<{\n items: UiLibraryItem[]\n selectedId?: string\n loading?: boolean\n hasMore?: boolean\n emptyTitle?: string\n emptyDescription?: string\n kind?: 'files' | 'artifacts'\n}>(), {\n selectedId: '', loading: false, hasMore: false, emptyTitle: '暂无文件', emptyDescription: '这里会显示来自 Hermes 的文件。', kind: 'files',\n})\n\nconst emit = defineEmits<{\n select: [item: UiLibraryItem]\n loadMore: []\n addToComposer: [item: UiLibraryItem]\n source: [item: UiLibraryItem]\n}>()\n\nfunction iconFor(item: UiLibraryItem) {\n if (item.kind === 'document' || item.kind === 'pdf' || item.kind === 'code' || item.kind === 'text') return 'file'\n return item.kind\n}\n\nfunction kindLabel(item: UiLibraryItem) {\n return ({ image: '图片', video: '视频', audio: '音频', pdf: '文档', document: '文档', code: '文档', text: '文档', link: '网页', file: '其他' } as const)[item.kind]\n}\n\nfunction formatSize(size?: number) {\n if (size === undefined) return ''\n if (size < 1024) return `${size} B`\n if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`\n return `${(size / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction formatDate(value?: string | number | Date) {\n if (!value) return ''\n const date = value instanceof Date ? value : new Date(value)\n if (Number.isNaN(date.getTime())) return ''\n return new Intl.DateTimeFormat('zh-CN', { month: 'short', day: 'numeric' }).format(date)\n}\n</script>\n\n<template>\n <div class=\"library-scroll\">\n <div v-if=\"loading && !items.length\" class=\"library-skeleton\">\n <i v-for=\"n in 10\" :key=\"n\" :style=\"{ opacity: .95 - n * .04 }\" />\n </div>\n <EmptyState v-else-if=\"!items.length\" :icon=\"kind === 'files' ? 'files' : 'artifacts'\" :title=\"emptyTitle\" :description=\"emptyDescription\" />\n <div v-else class=\"library-grid\">\n <article\n v-for=\"item in items\"\n :key=\"item.id\"\n :class=\"{ selected: item.id === selectedId }\"\n tabindex=\"0\"\n @click=\"emit('select', item)\"\n @keydown.enter=\"emit('select', item)\"\n >\n <div class=\"library-thumb\" :class=\"`library-thumb--${item.kind}`\">\n <img v-if=\"item.kind === 'image' && item.previewUrl\" :src=\"item.previewUrl\" :alt=\"item.name\" loading=\"lazy\" />\n <video v-else-if=\"item.kind === 'video' && item.previewUrl\" :src=\"item.previewUrl\" muted preload=\"metadata\" />\n <span v-else><AppIcon :name=\"iconFor(item)\" :size=\"36\" /><em>{{ item.name.split('.').at(-1)?.slice(0, 5).toUpperCase() }} · {{ kindLabel(item) }}</em></span>\n <div class=\"library-thumb__actions\">\n <button type=\"button\" title=\"加入输入框\" aria-label=\"加入输入框\" @click.stop=\"emit('addToComposer', item)\"><AppIcon name=\"plus\" :size=\"14\" /></button>\n <button v-if=\"item.sourceSessionId\" type=\"button\" title=\"查看来源\" aria-label=\"查看来源\" @click.stop=\"emit('source', item)\"><AppIcon name=\"external\" :size=\"14\" /></button>\n </div>\n </div>\n <div class=\"library-copy\">\n <strong :title=\"item.name\">{{ item.title || item.name }}</strong>\n <span><small>{{ item.sourceLabel || formatSize(item.size) || item.kind }}</small><time>{{ formatDate(item.updatedAt || item.createdAt) }}</time></span>\n </div>\n </article>\n </div>\n <button v-if=\"hasMore\" class=\"load-more\" type=\"button\" :disabled=\"loading\" @click=\"emit('loadMore')\">{{ loading ? '加载中…' : '加载更多' }}</button>\n </div>\n</template>\n\n<style scoped>\n.library-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 20px clamp(18px, 3vw, 36px) 32px; }\n.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }\narticle { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; outline: 0; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; } article:focus-visible, article.selected { border-color: var(--line-strong); box-shadow: 0 0 0 2px var(--focus-ring); } article:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-1px); }\n.library-thumb { position: relative; display: grid; height: 154px; place-items: center; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); color: var(--text-muted); }\n.library-thumb img, .library-thumb video { width: 100%; height: 100%; object-fit: cover; }\n.library-thumb > span { display: flex; flex-direction: column; align-items: center; gap: 7px; }.library-thumb > span em { max-width: 150px; overflow: hidden; color: var(--text-muted); font-size: 11px; font-style: normal; letter-spacing: .02em; text-overflow: ellipsis; text-transform: capitalize; }\n.library-thumb--code, .library-thumb--text { background: linear-gradient(135deg, var(--surface-soft), var(--surface-raised)); }.library-thumb--link { border-style: dashed; }\n.library-thumb__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity 120ms ease, transform 140ms var(--ease-out); }.library-thumb:hover .library-thumb__actions, article:focus-within .library-thumb__actions { opacity: 1; transform: translateY(0); }.library-thumb__actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(25,25,24,.72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }\n.library-copy { padding: 10px 12px 9px; }.library-copy strong { display: block; overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.library-copy > span { display: flex; margin-top: 5px; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }.library-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.library-copy time { flex: 0 0 auto; }\n.load-more { display: block; margin: 28px auto 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 10px; }.load-more:hover { background: var(--surface-hover); }\n.library-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }.library-skeleton i { height: 208px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }\n@keyframes shimmer { to { background-position: -200% 0; } }\n@media (max-width: 600px) { .library-scroll { padding: 16px 12px 30px; }.library-grid, .library-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }.library-thumb { height: 122px; }.library-thumb__actions { opacity: 1; transform: none; }.library-copy { padding: 8px 9px; }.library-copy strong { font-size: 11px; }.library-copy > span { font-size: 9px; } }\n</style>\n","import type { FileKind, FileLibraryPage } from '@shared/types'\nimport { apiRequest, apiUrl, unwrapData } from './client'\nimport { normalizeFile, number, record, values } from '@/utils/normalize'\n\nexport interface FileQuery {\n search?: string\n kind?: FileKind | 'all'\n profile?: string\n conversationOnly?: boolean\n cursor?: string\n limit?: number\n}\n\nexport async function getFiles(query: FileQuery = {}): Promise<FileLibraryPage> {\n const serverKind = query.kind === 'image' || query.kind === 'video' ? query.kind : undefined\n const payload = unwrapData(await apiRequest<unknown>(apiUrl('/api/app/files', {\n search: query.search,\n kind: serverKind,\n profile: query.profile,\n conversationOnly: query.conversationOnly || undefined,\n cursor: query.cursor,\n limit: Math.max(1, Math.min(100, query.limit ?? 50)),\n })))\n const source = record(payload)\n const responseProfile = typeof source.profile === 'string' ? source.profile : query.profile\n return {\n items: values(source.items ?? source.files ?? payload)\n .map(item => normalizeFile(item, responseProfile)).filter(file => file.id),\n nextCursor: typeof source.nextCursor === 'string' ? source.nextCursor : typeof source.next_cursor === 'string' ? source.next_cursor : null,\n total: number(source.total) || undefined,\n }\n}\n\nexport function fileDownloadUrl(id: string, profile?: string): string {\n return apiUrl(`/api/app/files/${encodeURIComponent(id)}/download`, { profile })\n}\n\nexport function filePreviewUrl(id: string, profile?: string): string {\n return apiUrl(`/api/app/files/${encodeURIComponent(id)}/preview`, { profile })\n}\n","import { computed, ref, shallowRef, watch } from 'vue'\nimport { defineStore } from 'pinia'\nimport type { FileKind, FileLibraryItem } from '@shared/types'\nimport { getFiles } from '@/api/files'\nimport { useAuthStore } from './auth'\n\nexport const useFilesStore = defineStore('files', () => {\n const auth = useAuthStore()\n const items = shallowRef<FileLibraryItem[]>([])\n const nextCursor = ref<string>()\n const hasMore = ref(true)\n const isLoading = ref(false)\n const error = ref<string>()\n const query = ref('')\n const kindFilter = ref<FileKind | 'all'>('all')\n const profile = ref<string>()\n const visitedCursors = new Set<string>()\n let loadGeneration = 0\n\n const filteredItems = computed<FileLibraryItem[]>(() => items.value.filter(item => kindFilter.value === 'all' || item.kind === kindFilter.value))\n\n async function load(reset = true): Promise<void> {\n if (isLoading.value && !reset) return\n const generation = ++loadGeneration\n if (reset) {\n items.value = []\n nextCursor.value = undefined\n hasMore.value = true\n visitedCursors.clear()\n } else if (!hasMore.value) return\n isLoading.value = true\n error.value = undefined\n try {\n const existing = new Map(items.value.map(item => [item.id, item]))\n let cursor = reset ? undefined : nextCursor.value\n let pages = 0\n while (pages < 20) {\n const cursorKey = cursor ?? '<first-page>'\n if (visitedCursors.has(cursorKey)) {\n hasMore.value = false\n error.value = '文件分页返回了重复游标,已停止加载'\n break\n }\n visitedCursors.add(cursorKey)\n const page = await getFiles({\n search: query.value.trim() || undefined,\n kind: kindFilter.value,\n profile: profile.value,\n cursor,\n limit: 50,\n })\n if (generation !== loadGeneration) return\n for (const item of page.items) existing.set(item.id, item)\n pages += 1\n cursor = page.nextCursor ?? undefined\n nextCursor.value = cursor\n hasMore.value = Boolean(cursor)\n const matching = [...existing.values()].filter(item => kindFilter.value === 'all' || item.kind === kindFilter.value).length\n if (!cursor || kindFilter.value === 'all' || matching >= 50) break\n }\n items.value = [...existing.values()]\n } catch (cause) {\n if (generation === loadGeneration) error.value = cause instanceof Error ? cause.message : '文件库加载失败'\n } finally {\n if (generation === loadGeneration) isLoading.value = false\n }\n }\n\n const reset = () => load(true)\n watch(() => auth.user?.id, () => {\n loadGeneration += 1\n items.value = []\n profile.value = undefined\n nextCursor.value = undefined\n visitedCursors.clear()\n isLoading.value = false\n error.value = undefined\n }, { flush: 'sync' })\n const loadMore = () => load(false)\n return { items, filteredItems, nextCursor, hasMore, isLoading, error, query, kindFilter, profile, load, reset, loadMore }\n})\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\nimport type { FileKind } from '@shared/types'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport LibraryGrid from '@/components/library/LibraryGrid.vue'\nimport PreviewModal from '@/components/library/PreviewModal.vue'\nimport ImagePreviewLightbox from '@/components/library/ImagePreviewLightbox.vue'\nimport type { PreviewMedia } from '@/components/library/ImagePreviewLightbox.vue'\nimport type { LibraryFilterOption, UiLibraryItem } from '@/components/library/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { fileToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { useFilesStore } from '@/stores/files'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\n\nconst files = useFilesStore()\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst router = useRouter()\nconst selected = ref<UiLibraryItem | null>(null)\nconst mediaIndex = ref<number | null>(null)\nconst historySearch = ref('')\nlet searchTimer: number | undefined\n\nconst items = computed(() => files.filteredItems.map(fileToUi))\nconst lightboxMedia = computed(() => items.value.filter(item => item.kind === 'image' || item.kind === 'video').map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [profile.name, profile.agentName || profile.displayName || profile.name])))\nconst historyItems = computed(() => chat.sessions\n .filter(session => !['cron', 'ios_group'].includes(session.source))\n .filter(session => !historySearch.value.trim() || `${session.title} ${session.preview || ''}`.toLocaleLowerCase().includes(historySearch.value.trim().toLocaleLowerCase()))\n .map(session => sessionSidebarItem(session, chat.unreadCounts[session.id] ?? 0, agentNames.value.get(session.profile || auth.activeProfile?.name || ''))))\nconst options = computed<LibraryFilterOption[]>(() => {\n const count = (kind: string) => files.items.filter(item => item.kind === kind).length\n return [\n { id: 'all', label: '全部', count: files.items.length, icon: 'files' },\n { id: 'image', label: '图片', count: count('image'), icon: 'image' },\n { id: 'video', label: '视频', count: count('video'), icon: 'video' },\n { id: 'audio', label: '音频', count: count('audio'), icon: 'audio' },\n { id: 'document', label: '文档', count: count('document'), icon: 'file' },\n { id: 'other', label: '其他', count: count('other'), icon: 'file' },\n ]\n})\n\nfunction updateSearch(value: string) {\n files.query = value\n window.clearTimeout(searchTimer)\n searchTimer = window.setTimeout(() => void files.load(true), 260)\n}\n\nfunction updateFilter(value: string) {\n files.kindFilter = value as FileKind | 'all'\n void files.load(true)\n}\n\nasync function openSource(item: UiLibraryItem) {\n if (item.sourceWorkspaceConversationId) {\n await router.push(`/conversations/${encodeURIComponent(item.sourceWorkspaceConversationId)}`)\n return\n }\n if (!item.sourceSessionId) return\n if (item.sourceProfile && auth.profiles.some(profile => profile.name === item.sourceProfile)) {\n auth.selectProfile(item.sourceProfile)\n }\n await router.push({\n path: `/chat/${encodeURIComponent(item.sourceSessionId)}`,\n query: {\n ...(item.sourceMessageId ? { message: item.sourceMessageId } : {}),\n ...(item.sourceProfile ? { profile: item.sourceProfile } : {}),\n },\n })\n}\n\nfunction selectFile(item: UiLibraryItem) {\n if (item.kind === 'image' || item.kind === 'video') {\n const index = lightboxMedia.value.findIndex(media => media.url === (item.previewUrl || item.downloadUrl))\n mediaIndex.value = index >= 0 ? index : null\n return\n }\n selected.value = item\n}\n\nasync function selectSession(id: string) {\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name\n await router.push({ path: `/chat/${encodeURIComponent(id)}`, query: profile ? { profile } : {} })\n}\n\nonMounted(() => {\n files.profile = undefined\n void files.load(true)\n void chat.loadSessions(auth.activeProfile?.name)\n void chat.loadUnread(auth.activeProfile?.name)\n})\nonBeforeUnmount(() => window.clearTimeout(searchTimer))\nwatch(() => files.items, () => {\n if (selected.value && !files.items.some(item => item.id === selected.value?.id)) selected.value = null\n})\nwatch(() => auth.activeProfile?.name, profile => {\n selected.value = null\n files.profile = profile\n void files.load(true)\n void chat.loadSessions(profile)\n void chat.loadUnread(profile)\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${chat.sessions.length} 个会话`\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"historyItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n :search=\"historySearch\"\n single-line\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有会话\"\n empty-description=\"原生 Hermes 会话会在这里以只读历史显示。\"\n @search=\"historySearch = $event\"\n @select=\"selectSession\"\n />\n </template>\n <section class=\"library-workspace\">\n <header class=\"library-header\">\n <div><h2>文件库</h2><span><AppIcon name=\"files\" :size=\"15\" />{{ items.length }}</span></div>\n <label class=\"file-search\"><AppIcon name=\"search\" :size=\"15\" /><input :value=\"files.query\" type=\"search\" placeholder=\"搜索文件名、路径或会话\" @input=\"updateSearch(($event.target as HTMLInputElement).value)\" /></label>\n </header>\n <nav class=\"file-tabs\" aria-label=\"文件类型筛选\">\n <button v-for=\"option in options\" :key=\"option.id\" type=\"button\" :class=\"{ active: option.id === files.kindFilter }\" @click=\"updateFilter(option.id)\">{{ option.label }}<small v-if=\"option.count !== undefined\">{{ option.count }}</small></button>\n <div class=\"file-tabs__status\"><span v-if=\"files.error\" class=\"error\"><AppIcon name=\"alert\" :size=\"13\" />{{ files.error }}</span><span v-else>{{ files.nextCursor ? '还有更多文件可加载' : items.length ? '已同步到最新' : '' }}</span><button class=\"icon-button\" type=\"button\" aria-label=\"刷新文件库\" title=\"刷新文件库\" :disabled=\"files.isLoading\" @click=\"files.load(true)\"><AppIcon name=\"refresh\" :size=\"15\" /></button></div>\n </nav>\n <LibraryGrid\n :items=\"items\"\n :selected-id=\"selected?.id\"\n :loading=\"files.isLoading\"\n :has-more=\"files.hasMore\"\n empty-title=\"文件库还是空的\"\n empty-description=\"聊天中的图片、文档和附件会出现在这里。\"\n @select=\"selectFile\"\n @load-more=\"files.loadMore\"\n @source=\"openSource\"\n />\n </section>\n </WorkspaceView>\n <PreviewModal v-if=\"selected\" :item=\"selected\" :items=\"items\" :can-add-to-composer=\"false\" @close=\"selected = null\" @source=\"openSource\" />\n <ImagePreviewLightbox v-model=\"mediaIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n</template>\n\n<style scoped>\n.library-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.library-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); }.library-header > div { display: flex; align-items: center; gap: 10px; }.library-header h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.library-header span { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }.file-search { display: flex; width: min(280px, 38vw); min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-muted); }.file-search:focus-within { border-color: var(--line-strong); }.file-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 11px; }\n.file-tabs { display: flex; min-height: 46px; align-items: center; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }.file-tabs > button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; white-space: nowrap; }.file-tabs > button:hover, .file-tabs > button.active { background: var(--surface-soft); color: var(--text-primary); }.file-tabs > button.active { font-weight: 650; }.file-tabs > button small { margin-left: 4px; color: var(--text-muted); font-size: 8px; }.file-tabs__status { display: flex; min-width: 0; align-items: center; gap: 7px; margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.file-tabs__status > span { overflow: hidden; text-overflow: ellipsis; }.file-tabs__status .error { color: var(--danger); }.file-tabs__status .icon-button { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }.file-tabs__status .icon-button:hover { background: var(--surface-soft); color: var(--text-primary); }\n@media (max-width: 600px) { .library-header { min-height: 52px; padding: 0 13px; }.library-header h2 { font-size: 14px; }.file-search { width: min(180px, 52vw); }.file-tabs { padding: 0 13px; }.file-tabs__status { display: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\nimport type { FileKind } from '@shared/types'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport LibraryGrid from '@/components/library/LibraryGrid.vue'\nimport PreviewModal from '@/components/library/PreviewModal.vue'\nimport ImagePreviewLightbox from '@/components/library/ImagePreviewLightbox.vue'\nimport type { PreviewMedia } from '@/components/library/ImagePreviewLightbox.vue'\nimport type { LibraryFilterOption, UiLibraryItem } from '@/components/library/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { fileToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { useFilesStore } from '@/stores/files'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\n\nconst files = useFilesStore()\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst router = useRouter()\nconst selected = ref<UiLibraryItem | null>(null)\nconst mediaIndex = ref<number | null>(null)\nconst historySearch = ref('')\nlet searchTimer: number | undefined\n\nconst items = computed(() => files.filteredItems.map(fileToUi))\nconst lightboxMedia = computed(() => items.value.filter(item => item.kind === 'image' || item.kind === 'video').map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [profile.name, profile.agentName || profile.displayName || profile.name])))\nconst historyItems = computed(() => chat.sessions\n .filter(session => !['cron', 'ios_group'].includes(session.source))\n .filter(session => !historySearch.value.trim() || `${session.title} ${session.preview || ''}`.toLocaleLowerCase().includes(historySearch.value.trim().toLocaleLowerCase()))\n .map(session => sessionSidebarItem(session, chat.unreadCounts[session.id] ?? 0, agentNames.value.get(session.profile || auth.activeProfile?.name || ''))))\nconst options = computed<LibraryFilterOption[]>(() => {\n const count = (kind: string) => files.items.filter(item => item.kind === kind).length\n return [\n { id: 'all', label: '全部', count: files.items.length, icon: 'files' },\n { id: 'image', label: '图片', count: count('image'), icon: 'image' },\n { id: 'video', label: '视频', count: count('video'), icon: 'video' },\n { id: 'audio', label: '音频', count: count('audio'), icon: 'audio' },\n { id: 'document', label: '文档', count: count('document'), icon: 'file' },\n { id: 'other', label: '其他', count: count('other'), icon: 'file' },\n ]\n})\n\nfunction updateSearch(value: string) {\n files.query = value\n window.clearTimeout(searchTimer)\n searchTimer = window.setTimeout(() => void files.load(true), 260)\n}\n\nfunction updateFilter(value: string) {\n files.kindFilter = value as FileKind | 'all'\n void files.load(true)\n}\n\nasync function openSource(item: UiLibraryItem) {\n if (item.sourceWorkspaceConversationId) {\n await router.push(`/conversations/${encodeURIComponent(item.sourceWorkspaceConversationId)}`)\n return\n }\n if (!item.sourceSessionId) return\n if (item.sourceProfile && auth.profiles.some(profile => profile.name === item.sourceProfile)) {\n auth.selectProfile(item.sourceProfile)\n }\n await router.push({\n path: `/chat/${encodeURIComponent(item.sourceSessionId)}`,\n query: {\n ...(item.sourceMessageId ? { message: item.sourceMessageId } : {}),\n ...(item.sourceProfile ? { profile: item.sourceProfile } : {}),\n },\n })\n}\n\nfunction selectFile(item: UiLibraryItem) {\n if (item.kind === 'image' || item.kind === 'video') {\n const index = lightboxMedia.value.findIndex(media => media.url === (item.previewUrl || item.downloadUrl))\n mediaIndex.value = index >= 0 ? index : null\n return\n }\n selected.value = item\n}\n\nasync function selectSession(id: string) {\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name\n await router.push({ path: `/chat/${encodeURIComponent(id)}`, query: profile ? { profile } : {} })\n}\n\nonMounted(() => {\n files.profile = undefined\n void files.load(true)\n void chat.loadSessions(auth.activeProfile?.name)\n void chat.loadUnread(auth.activeProfile?.name)\n})\nonBeforeUnmount(() => window.clearTimeout(searchTimer))\nwatch(() => files.items, () => {\n if (selected.value && !files.items.some(item => item.id === selected.value?.id)) selected.value = null\n})\nwatch(() => auth.activeProfile?.name, profile => {\n selected.value = null\n files.profile = profile\n void files.load(true)\n void chat.loadSessions(profile)\n void chat.loadUnread(profile)\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${chat.sessions.length} 个会话`\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"historyItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n :search=\"historySearch\"\n single-line\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有会话\"\n empty-description=\"原生 Hermes 会话会在这里以只读历史显示。\"\n @search=\"historySearch = $event\"\n @select=\"selectSession\"\n />\n </template>\n <section class=\"library-workspace\">\n <header class=\"library-header\">\n <div><h2>文件库</h2><span><AppIcon name=\"files\" :size=\"15\" />{{ items.length }}</span></div>\n <label class=\"file-search\"><AppIcon name=\"search\" :size=\"15\" /><input :value=\"files.query\" type=\"search\" placeholder=\"搜索文件名、路径或会话\" @input=\"updateSearch(($event.target as HTMLInputElement).value)\" /></label>\n </header>\n <nav class=\"file-tabs\" aria-label=\"文件类型筛选\">\n <button v-for=\"option in options\" :key=\"option.id\" type=\"button\" :class=\"{ active: option.id === files.kindFilter }\" @click=\"updateFilter(option.id)\">{{ option.label }}<small v-if=\"option.count !== undefined\">{{ option.count }}</small></button>\n <div class=\"file-tabs__status\"><span v-if=\"files.error\" class=\"error\"><AppIcon name=\"alert\" :size=\"13\" />{{ files.error }}</span><span v-else>{{ files.nextCursor ? '还有更多文件可加载' : items.length ? '已同步到最新' : '' }}</span><button class=\"icon-button\" type=\"button\" aria-label=\"刷新文件库\" title=\"刷新文件库\" :disabled=\"files.isLoading\" @click=\"files.load(true)\"><AppIcon name=\"refresh\" :size=\"15\" /></button></div>\n </nav>\n <LibraryGrid\n :items=\"items\"\n :selected-id=\"selected?.id\"\n :loading=\"files.isLoading\"\n :has-more=\"files.hasMore\"\n empty-title=\"文件库还是空的\"\n empty-description=\"聊天中的图片、文档和附件会出现在这里。\"\n @select=\"selectFile\"\n @load-more=\"files.loadMore\"\n @source=\"openSource\"\n />\n </section>\n </WorkspaceView>\n <PreviewModal v-if=\"selected\" :item=\"selected\" :items=\"items\" :can-add-to-composer=\"false\" @close=\"selected = null\" @source=\"openSource\" />\n <ImagePreviewLightbox v-model=\"mediaIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n</template>\n\n<style scoped>\n.library-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.library-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); }.library-header > div { display: flex; align-items: center; gap: 10px; }.library-header h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.library-header span { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }.file-search { display: flex; width: min(280px, 38vw); min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-muted); }.file-search:focus-within { border-color: var(--line-strong); }.file-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 11px; }\n.file-tabs { display: flex; min-height: 46px; align-items: center; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }.file-tabs > button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; white-space: nowrap; }.file-tabs > button:hover, .file-tabs > button.active { background: var(--surface-soft); color: var(--text-primary); }.file-tabs > button.active { font-weight: 650; }.file-tabs > button small { margin-left: 4px; color: var(--text-muted); font-size: 8px; }.file-tabs__status { display: flex; min-width: 0; align-items: center; gap: 7px; margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.file-tabs__status > span { overflow: hidden; text-overflow: ellipsis; }.file-tabs__status .error { color: var(--danger); }.file-tabs__status .icon-button { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }.file-tabs__status .icon-button:hover { background: var(--surface-soft); color: var(--text-primary); }\n@media (max-width: 600px) { .library-header { min-height: 52px; padding: 0 13px; }.library-header h2 { font-size: 14px; }.file-search { width: min(180px, 52vw); }.file-tabs { padding: 0 13px; }.file-tabs__status { display: none; } }\n</style>\n"],"mappings":"4kCAiBA,IAAM,EAAO,EAOb,SAAS,EAAQ,EAAqB,CAEpC,OADI,EAAK,OAAS,YAAc,EAAK,OAAS,OAAS,EAAK,OAAS,QAAU,EAAK,OAAS,OAAe,OACrG,EAAK,IACd,CAEA,SAAS,EAAU,EAAqB,CACtC,MAAQ,CAAE,MAAO,KAAM,MAAO,KAAM,MAAO,KAAM,IAAK,KAAM,SAAU,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,IAAK,EAAY,EAAK,KAC9I,CAEA,SAAS,EAAW,EAAe,CAIjC,OAHI,IAAS,IAAA,GAAkB,GAC3B,EAAO,KAAa,GAAG,EAAK,IAC5B,EAAO,QAAoB,IAAI,EAAO,KAAA,CAAM,QAAQ,CAAC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ApB,EAAA,EAAA,EAA2I,EAAA,OAA5G,KAAM,EAAA,MAAW,MAAO,EAAA,MAAQ,sBAAqB,GAAQ,QAAK,AAAA,EAAA,KAAA,GAAE,EAAA,MAAQ,KAAU,SAAQ,sCAC7H,EAAsF,EAAA,CAAvD,WAAA,EAAA,MAAA,sBAAA,AAAA,EAAA,KAAA,GAAA,EAAU,MAAA,EAAG,OAAQ,EAAA,MAAgB,UAAS"}
1
+ {"version":3,"file":"FilesView-D7tA6Nu1.js","names":[],"sources":["../../src/client/components/library/LibraryGrid.vue","../../src/client/components/library/LibraryGrid.vue","../../src/client/api/files.ts","../../src/client/stores/files.ts","../../src/client/views/FilesView.vue","../../src/client/views/FilesView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport EmptyState from '@/components/common/EmptyState.vue'\nimport type { UiLibraryItem } from './types'\n\nwithDefaults(defineProps<{\n items: UiLibraryItem[]\n selectedId?: string\n loading?: boolean\n hasMore?: boolean\n emptyTitle?: string\n emptyDescription?: string\n kind?: 'files' | 'artifacts'\n}>(), {\n selectedId: '', loading: false, hasMore: false, emptyTitle: '暂无文件', emptyDescription: '这里会显示来自 Hermes 的文件。', kind: 'files',\n})\n\nconst emit = defineEmits<{\n select: [item: UiLibraryItem]\n loadMore: []\n addToComposer: [item: UiLibraryItem]\n source: [item: UiLibraryItem]\n}>()\n\nfunction iconFor(item: UiLibraryItem) {\n if (item.kind === 'document' || item.kind === 'pdf' || item.kind === 'code' || item.kind === 'text') return 'file'\n return item.kind\n}\n\nfunction kindLabel(item: UiLibraryItem) {\n return ({ image: '图片', video: '视频', audio: '音频', pdf: '文档', document: '文档', code: '文档', text: '文档', link: '网页', file: '其他' } as const)[item.kind]\n}\n\nfunction formatSize(size?: number) {\n if (size === undefined) return ''\n if (size < 1024) return `${size} B`\n if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`\n return `${(size / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction formatDate(value?: string | number | Date) {\n if (!value) return ''\n const date = value instanceof Date ? value : new Date(value)\n if (Number.isNaN(date.getTime())) return ''\n return new Intl.DateTimeFormat('zh-CN', { month: 'short', day: 'numeric' }).format(date)\n}\n</script>\n\n<template>\n <div class=\"library-scroll\">\n <div v-if=\"loading && !items.length\" class=\"library-skeleton\">\n <i v-for=\"n in 10\" :key=\"n\" :style=\"{ opacity: .95 - n * .04 }\" />\n </div>\n <EmptyState v-else-if=\"!items.length\" :icon=\"kind === 'files' ? 'files' : 'artifacts'\" :title=\"emptyTitle\" :description=\"emptyDescription\" />\n <div v-else class=\"library-grid\">\n <article\n v-for=\"item in items\"\n :key=\"item.id\"\n :class=\"{ selected: item.id === selectedId }\"\n tabindex=\"0\"\n @click=\"emit('select', item)\"\n @keydown.enter=\"emit('select', item)\"\n >\n <div class=\"library-thumb\" :class=\"`library-thumb--${item.kind}`\">\n <img v-if=\"item.kind === 'image' && item.previewUrl\" :src=\"item.previewUrl\" :alt=\"item.name\" loading=\"lazy\" />\n <video v-else-if=\"item.kind === 'video' && item.previewUrl\" :src=\"item.previewUrl\" muted preload=\"metadata\" />\n <span v-else><AppIcon :name=\"iconFor(item)\" :size=\"36\" /><em>{{ item.name.split('.').at(-1)?.slice(0, 5).toUpperCase() }} · {{ kindLabel(item) }}</em></span>\n <div class=\"library-thumb__actions\">\n <button type=\"button\" title=\"加入输入框\" aria-label=\"加入输入框\" @click.stop=\"emit('addToComposer', item)\"><AppIcon name=\"plus\" :size=\"14\" /></button>\n <button v-if=\"item.sourceSessionId\" type=\"button\" title=\"查看来源\" aria-label=\"查看来源\" @click.stop=\"emit('source', item)\"><AppIcon name=\"external\" :size=\"14\" /></button>\n </div>\n </div>\n <div class=\"library-copy\">\n <strong :title=\"item.name\">{{ item.title || item.name }}</strong>\n <span><small>{{ item.sourceLabel || formatSize(item.size) || item.kind }}</small><time>{{ formatDate(item.updatedAt || item.createdAt) }}</time></span>\n </div>\n </article>\n </div>\n <button v-if=\"hasMore\" class=\"load-more\" type=\"button\" :disabled=\"loading\" @click=\"emit('loadMore')\">{{ loading ? '加载中…' : '加载更多' }}</button>\n </div>\n</template>\n\n<style scoped>\n.library-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 20px clamp(18px, 3vw, 36px) 32px; }\n.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }\narticle { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; outline: 0; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; } article:focus-visible, article.selected { border-color: var(--line-strong); box-shadow: 0 0 0 2px var(--focus-ring); } article:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-1px); }\n.library-thumb { position: relative; display: grid; height: 154px; place-items: center; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); color: var(--text-muted); }\n.library-thumb img, .library-thumb video { width: 100%; height: 100%; object-fit: cover; }\n.library-thumb > span { display: flex; flex-direction: column; align-items: center; gap: 7px; }.library-thumb > span em { max-width: 150px; overflow: hidden; color: var(--text-muted); font-size: 11px; font-style: normal; letter-spacing: .02em; text-overflow: ellipsis; text-transform: capitalize; }\n.library-thumb--code, .library-thumb--text { background: linear-gradient(135deg, var(--surface-soft), var(--surface-raised)); }.library-thumb--link { border-style: dashed; }\n.library-thumb__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity 120ms ease, transform 140ms var(--ease-out); }.library-thumb:hover .library-thumb__actions, article:focus-within .library-thumb__actions { opacity: 1; transform: translateY(0); }.library-thumb__actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(25,25,24,.72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }\n.library-copy { padding: 10px 12px 9px; }.library-copy strong { display: block; overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.library-copy > span { display: flex; margin-top: 5px; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }.library-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.library-copy time { flex: 0 0 auto; }\n.load-more { display: block; margin: 28px auto 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 10px; }.load-more:hover { background: var(--surface-hover); }\n.library-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }.library-skeleton i { height: 208px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }\n@keyframes shimmer { to { background-position: -200% 0; } }\n@media (max-width: 600px) { .library-scroll { padding: 16px 12px 30px; }.library-grid, .library-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }.library-thumb { height: 122px; }.library-thumb__actions { opacity: 1; transform: none; }.library-copy { padding: 8px 9px; }.library-copy strong { font-size: 11px; }.library-copy > span { font-size: 9px; } }\n</style>\n","<script setup lang=\"ts\">\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport EmptyState from '@/components/common/EmptyState.vue'\nimport type { UiLibraryItem } from './types'\n\nwithDefaults(defineProps<{\n items: UiLibraryItem[]\n selectedId?: string\n loading?: boolean\n hasMore?: boolean\n emptyTitle?: string\n emptyDescription?: string\n kind?: 'files' | 'artifacts'\n}>(), {\n selectedId: '', loading: false, hasMore: false, emptyTitle: '暂无文件', emptyDescription: '这里会显示来自 Hermes 的文件。', kind: 'files',\n})\n\nconst emit = defineEmits<{\n select: [item: UiLibraryItem]\n loadMore: []\n addToComposer: [item: UiLibraryItem]\n source: [item: UiLibraryItem]\n}>()\n\nfunction iconFor(item: UiLibraryItem) {\n if (item.kind === 'document' || item.kind === 'pdf' || item.kind === 'code' || item.kind === 'text') return 'file'\n return item.kind\n}\n\nfunction kindLabel(item: UiLibraryItem) {\n return ({ image: '图片', video: '视频', audio: '音频', pdf: '文档', document: '文档', code: '文档', text: '文档', link: '网页', file: '其他' } as const)[item.kind]\n}\n\nfunction formatSize(size?: number) {\n if (size === undefined) return ''\n if (size < 1024) return `${size} B`\n if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`\n return `${(size / 1024 / 1024).toFixed(1)} MB`\n}\n\nfunction formatDate(value?: string | number | Date) {\n if (!value) return ''\n const date = value instanceof Date ? value : new Date(value)\n if (Number.isNaN(date.getTime())) return ''\n return new Intl.DateTimeFormat('zh-CN', { month: 'short', day: 'numeric' }).format(date)\n}\n</script>\n\n<template>\n <div class=\"library-scroll\">\n <div v-if=\"loading && !items.length\" class=\"library-skeleton\">\n <i v-for=\"n in 10\" :key=\"n\" :style=\"{ opacity: .95 - n * .04 }\" />\n </div>\n <EmptyState v-else-if=\"!items.length\" :icon=\"kind === 'files' ? 'files' : 'artifacts'\" :title=\"emptyTitle\" :description=\"emptyDescription\" />\n <div v-else class=\"library-grid\">\n <article\n v-for=\"item in items\"\n :key=\"item.id\"\n :class=\"{ selected: item.id === selectedId }\"\n tabindex=\"0\"\n @click=\"emit('select', item)\"\n @keydown.enter=\"emit('select', item)\"\n >\n <div class=\"library-thumb\" :class=\"`library-thumb--${item.kind}`\">\n <img v-if=\"item.kind === 'image' && item.previewUrl\" :src=\"item.previewUrl\" :alt=\"item.name\" loading=\"lazy\" />\n <video v-else-if=\"item.kind === 'video' && item.previewUrl\" :src=\"item.previewUrl\" muted preload=\"metadata\" />\n <span v-else><AppIcon :name=\"iconFor(item)\" :size=\"36\" /><em>{{ item.name.split('.').at(-1)?.slice(0, 5).toUpperCase() }} · {{ kindLabel(item) }}</em></span>\n <div class=\"library-thumb__actions\">\n <button type=\"button\" title=\"加入输入框\" aria-label=\"加入输入框\" @click.stop=\"emit('addToComposer', item)\"><AppIcon name=\"plus\" :size=\"14\" /></button>\n <button v-if=\"item.sourceSessionId\" type=\"button\" title=\"查看来源\" aria-label=\"查看来源\" @click.stop=\"emit('source', item)\"><AppIcon name=\"external\" :size=\"14\" /></button>\n </div>\n </div>\n <div class=\"library-copy\">\n <strong :title=\"item.name\">{{ item.title || item.name }}</strong>\n <span><small>{{ item.sourceLabel || formatSize(item.size) || item.kind }}</small><time>{{ formatDate(item.updatedAt || item.createdAt) }}</time></span>\n </div>\n </article>\n </div>\n <button v-if=\"hasMore\" class=\"load-more\" type=\"button\" :disabled=\"loading\" @click=\"emit('loadMore')\">{{ loading ? '加载中…' : '加载更多' }}</button>\n </div>\n</template>\n\n<style scoped>\n.library-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 20px clamp(18px, 3vw, 36px) 32px; }\n.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }\narticle { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; outline: 0; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; } article:focus-visible, article.selected { border-color: var(--line-strong); box-shadow: 0 0 0 2px var(--focus-ring); } article:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-1px); }\n.library-thumb { position: relative; display: grid; height: 154px; place-items: center; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); color: var(--text-muted); }\n.library-thumb img, .library-thumb video { width: 100%; height: 100%; object-fit: cover; }\n.library-thumb > span { display: flex; flex-direction: column; align-items: center; gap: 7px; }.library-thumb > span em { max-width: 150px; overflow: hidden; color: var(--text-muted); font-size: 11px; font-style: normal; letter-spacing: .02em; text-overflow: ellipsis; text-transform: capitalize; }\n.library-thumb--code, .library-thumb--text { background: linear-gradient(135deg, var(--surface-soft), var(--surface-raised)); }.library-thumb--link { border-style: dashed; }\n.library-thumb__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity 120ms ease, transform 140ms var(--ease-out); }.library-thumb:hover .library-thumb__actions, article:focus-within .library-thumb__actions { opacity: 1; transform: translateY(0); }.library-thumb__actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(25,25,24,.72); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }\n.library-copy { padding: 10px 12px 9px; }.library-copy strong { display: block; overflow: hidden; font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.library-copy > span { display: flex; margin-top: 5px; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }.library-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.library-copy time { flex: 0 0 auto; }\n.load-more { display: block; margin: 28px auto 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 10px; }.load-more:hover { background: var(--surface-hover); }\n.library-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 12px; }.library-skeleton i { height: 208px; border-radius: 11px; background: linear-gradient(90deg, var(--surface-soft), var(--surface-hover), var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }\n@keyframes shimmer { to { background-position: -200% 0; } }\n@media (max-width: 600px) { .library-scroll { padding: 16px 12px 30px; }.library-grid, .library-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }.library-thumb { height: 122px; }.library-thumb__actions { opacity: 1; transform: none; }.library-copy { padding: 8px 9px; }.library-copy strong { font-size: 11px; }.library-copy > span { font-size: 9px; } }\n</style>\n","import type { FileKind, FileLibraryPage } from '@shared/types'\nimport { apiRequest, apiUrl, unwrapData } from './client'\nimport { normalizeFile, number, record, values } from '@/utils/normalize'\n\nexport interface FileQuery {\n search?: string\n kind?: FileKind | 'all'\n profile?: string\n conversationOnly?: boolean\n cursor?: string\n limit?: number\n}\n\nexport async function getFiles(query: FileQuery = {}): Promise<FileLibraryPage> {\n const serverKind = query.kind === 'image' || query.kind === 'video' ? query.kind : undefined\n const payload = unwrapData(await apiRequest<unknown>(apiUrl('/api/app/files', {\n search: query.search,\n kind: serverKind,\n profile: query.profile,\n conversationOnly: query.conversationOnly || undefined,\n cursor: query.cursor,\n limit: Math.max(1, Math.min(100, query.limit ?? 50)),\n })))\n const source = record(payload)\n const responseProfile = typeof source.profile === 'string' ? source.profile : query.profile\n return {\n items: values(source.items ?? source.files ?? payload)\n .map(item => normalizeFile(item, responseProfile)).filter(file => file.id),\n nextCursor: typeof source.nextCursor === 'string' ? source.nextCursor : typeof source.next_cursor === 'string' ? source.next_cursor : null,\n total: number(source.total) || undefined,\n }\n}\n\nexport function fileDownloadUrl(id: string, profile?: string): string {\n return apiUrl(`/api/app/files/${encodeURIComponent(id)}/download`, { profile })\n}\n\nexport function filePreviewUrl(id: string, profile?: string): string {\n return apiUrl(`/api/app/files/${encodeURIComponent(id)}/preview`, { profile })\n}\n","import { computed, ref, shallowRef, watch } from 'vue'\nimport { defineStore } from 'pinia'\nimport type { FileKind, FileLibraryItem } from '@shared/types'\nimport { getFiles } from '@/api/files'\nimport { useAuthStore } from './auth'\n\nexport const useFilesStore = defineStore('files', () => {\n const auth = useAuthStore()\n const items = shallowRef<FileLibraryItem[]>([])\n const nextCursor = ref<string>()\n const hasMore = ref(true)\n const isLoading = ref(false)\n const error = ref<string>()\n const query = ref('')\n const kindFilter = ref<FileKind | 'all'>('all')\n const profile = ref<string>()\n const visitedCursors = new Set<string>()\n let loadGeneration = 0\n\n const filteredItems = computed<FileLibraryItem[]>(() => items.value.filter(item => kindFilter.value === 'all' || item.kind === kindFilter.value))\n\n async function load(reset = true): Promise<void> {\n if (isLoading.value && !reset) return\n const generation = ++loadGeneration\n if (reset) {\n items.value = []\n nextCursor.value = undefined\n hasMore.value = true\n visitedCursors.clear()\n } else if (!hasMore.value) return\n isLoading.value = true\n error.value = undefined\n try {\n const existing = new Map(items.value.map(item => [item.id, item]))\n let cursor = reset ? undefined : nextCursor.value\n let pages = 0\n while (pages < 20) {\n const cursorKey = cursor ?? '<first-page>'\n if (visitedCursors.has(cursorKey)) {\n hasMore.value = false\n error.value = '文件分页返回了重复游标,已停止加载'\n break\n }\n visitedCursors.add(cursorKey)\n const page = await getFiles({\n search: query.value.trim() || undefined,\n kind: kindFilter.value,\n profile: profile.value,\n cursor,\n limit: 50,\n })\n if (generation !== loadGeneration) return\n for (const item of page.items) existing.set(item.id, item)\n pages += 1\n cursor = page.nextCursor ?? undefined\n nextCursor.value = cursor\n hasMore.value = Boolean(cursor)\n const matching = [...existing.values()].filter(item => kindFilter.value === 'all' || item.kind === kindFilter.value).length\n if (!cursor || kindFilter.value === 'all' || matching >= 50) break\n }\n items.value = [...existing.values()]\n } catch (cause) {\n if (generation === loadGeneration) error.value = cause instanceof Error ? cause.message : '文件库加载失败'\n } finally {\n if (generation === loadGeneration) isLoading.value = false\n }\n }\n\n const reset = () => load(true)\n watch(() => auth.user?.id, () => {\n loadGeneration += 1\n items.value = []\n profile.value = undefined\n nextCursor.value = undefined\n visitedCursors.clear()\n isLoading.value = false\n error.value = undefined\n }, { flush: 'sync' })\n const loadMore = () => load(false)\n return { items, filteredItems, nextCursor, hasMore, isLoading, error, query, kindFilter, profile, load, reset, loadMore }\n})\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\nimport type { FileKind } from '@shared/types'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport LibraryGrid from '@/components/library/LibraryGrid.vue'\nimport PreviewModal from '@/components/library/PreviewModal.vue'\nimport ImagePreviewLightbox from '@/components/library/ImagePreviewLightbox.vue'\nimport type { PreviewMedia } from '@/components/library/ImagePreviewLightbox.vue'\nimport type { LibraryFilterOption, UiLibraryItem } from '@/components/library/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { fileToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { useFilesStore } from '@/stores/files'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\n\nconst files = useFilesStore()\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst router = useRouter()\nconst selected = ref<UiLibraryItem | null>(null)\nconst mediaIndex = ref<number | null>(null)\nconst historySearch = ref('')\nlet searchTimer: number | undefined\n\nconst items = computed(() => files.filteredItems.map(fileToUi))\nconst lightboxMedia = computed(() => items.value.filter(item => item.kind === 'image' || item.kind === 'video').map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [profile.name, profile.agentName || profile.displayName || profile.name])))\nconst historyItems = computed(() => chat.sessions\n .filter(session => !['cron', 'ios_group'].includes(session.source))\n .filter(session => !historySearch.value.trim() || `${session.title} ${session.preview || ''}`.toLocaleLowerCase().includes(historySearch.value.trim().toLocaleLowerCase()))\n .map(session => sessionSidebarItem(session, chat.unreadCounts[session.id] ?? 0, agentNames.value.get(session.profile || auth.activeProfile?.name || ''))))\nconst options = computed<LibraryFilterOption[]>(() => {\n const count = (kind: string) => files.items.filter(item => item.kind === kind).length\n return [\n { id: 'all', label: '全部', count: files.items.length, icon: 'files' },\n { id: 'image', label: '图片', count: count('image'), icon: 'image' },\n { id: 'video', label: '视频', count: count('video'), icon: 'video' },\n { id: 'audio', label: '音频', count: count('audio'), icon: 'audio' },\n { id: 'document', label: '文档', count: count('document'), icon: 'file' },\n { id: 'other', label: '其他', count: count('other'), icon: 'file' },\n ]\n})\n\nfunction updateSearch(value: string) {\n files.query = value\n window.clearTimeout(searchTimer)\n searchTimer = window.setTimeout(() => void files.load(true), 260)\n}\n\nfunction updateFilter(value: string) {\n files.kindFilter = value as FileKind | 'all'\n void files.load(true)\n}\n\nasync function openSource(item: UiLibraryItem) {\n if (item.sourceWorkspaceConversationId) {\n await router.push(`/conversations/${encodeURIComponent(item.sourceWorkspaceConversationId)}`)\n return\n }\n if (!item.sourceSessionId) return\n if (item.sourceProfile && auth.profiles.some(profile => profile.name === item.sourceProfile)) {\n auth.selectProfile(item.sourceProfile)\n }\n await router.push({\n path: `/chat/${encodeURIComponent(item.sourceSessionId)}`,\n query: {\n ...(item.sourceMessageId ? { message: item.sourceMessageId } : {}),\n ...(item.sourceProfile ? { profile: item.sourceProfile } : {}),\n },\n })\n}\n\nfunction selectFile(item: UiLibraryItem) {\n if (item.kind === 'image' || item.kind === 'video') {\n const index = lightboxMedia.value.findIndex(media => media.url === (item.previewUrl || item.downloadUrl))\n mediaIndex.value = index >= 0 ? index : null\n return\n }\n selected.value = item\n}\n\nasync function selectSession(id: string) {\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name\n await router.push({ path: `/chat/${encodeURIComponent(id)}`, query: profile ? { profile } : {} })\n}\n\nonMounted(() => {\n files.profile = undefined\n void files.load(true)\n void chat.loadSessions(auth.activeProfile?.name)\n void chat.loadUnread(auth.activeProfile?.name)\n})\nonBeforeUnmount(() => window.clearTimeout(searchTimer))\nwatch(() => files.items, () => {\n if (selected.value && !files.items.some(item => item.id === selected.value?.id)) selected.value = null\n})\nwatch(() => auth.activeProfile?.name, profile => {\n selected.value = null\n files.profile = profile\n void files.load(true)\n void chat.loadSessions(profile)\n void chat.loadUnread(profile)\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${chat.sessions.length} 个会话`\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"historyItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n :search=\"historySearch\"\n single-line\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有会话\"\n empty-description=\"原生 Hermes 会话会在这里以只读历史显示。\"\n @search=\"historySearch = $event\"\n @select=\"selectSession\"\n />\n </template>\n <section class=\"library-workspace\">\n <header class=\"library-header\">\n <div><h2>文件库</h2><span><AppIcon name=\"files\" :size=\"15\" />{{ items.length }}</span></div>\n <label class=\"file-search\"><AppIcon name=\"search\" :size=\"15\" /><input :value=\"files.query\" type=\"search\" placeholder=\"搜索文件名、路径或会话\" @input=\"updateSearch(($event.target as HTMLInputElement).value)\" /></label>\n </header>\n <nav class=\"file-tabs\" aria-label=\"文件类型筛选\">\n <button v-for=\"option in options\" :key=\"option.id\" type=\"button\" :class=\"{ active: option.id === files.kindFilter }\" @click=\"updateFilter(option.id)\">{{ option.label }}<small v-if=\"option.count !== undefined\">{{ option.count }}</small></button>\n <div class=\"file-tabs__status\"><span v-if=\"files.error\" class=\"error\"><AppIcon name=\"alert\" :size=\"13\" />{{ files.error }}</span><span v-else>{{ files.nextCursor ? '还有更多文件可加载' : items.length ? '已同步到最新' : '' }}</span><button class=\"icon-button\" type=\"button\" aria-label=\"刷新文件库\" title=\"刷新文件库\" :disabled=\"files.isLoading\" @click=\"files.load(true)\"><AppIcon name=\"refresh\" :size=\"15\" /></button></div>\n </nav>\n <LibraryGrid\n :items=\"items\"\n :selected-id=\"selected?.id\"\n :loading=\"files.isLoading\"\n :has-more=\"files.hasMore\"\n empty-title=\"文件库还是空的\"\n empty-description=\"聊天中的图片、文档和附件会出现在这里。\"\n @select=\"selectFile\"\n @load-more=\"files.loadMore\"\n @source=\"openSource\"\n />\n </section>\n </WorkspaceView>\n <PreviewModal v-if=\"selected\" :item=\"selected\" :items=\"items\" :can-add-to-composer=\"false\" @close=\"selected = null\" @source=\"openSource\" />\n <ImagePreviewLightbox v-model=\"mediaIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n</template>\n\n<style scoped>\n.library-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.library-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); }.library-header > div { display: flex; align-items: center; gap: 10px; }.library-header h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.library-header span { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }.file-search { display: flex; width: min(280px, 38vw); min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-muted); }.file-search:focus-within { border-color: var(--line-strong); }.file-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 11px; }\n.file-tabs { display: flex; min-height: 46px; align-items: center; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }.file-tabs > button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; white-space: nowrap; }.file-tabs > button:hover, .file-tabs > button.active { background: var(--surface-soft); color: var(--text-primary); }.file-tabs > button.active { font-weight: 650; }.file-tabs > button small { margin-left: 4px; color: var(--text-muted); font-size: 8px; }.file-tabs__status { display: flex; min-width: 0; align-items: center; gap: 7px; margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.file-tabs__status > span { overflow: hidden; text-overflow: ellipsis; }.file-tabs__status .error { color: var(--danger); }.file-tabs__status .icon-button { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }.file-tabs__status .icon-button:hover { background: var(--surface-soft); color: var(--text-primary); }\n@media (max-width: 600px) { .library-header { min-height: 52px; padding: 0 13px; }.library-header h2 { font-size: 14px; }.file-search { width: min(180px, 52vw); }.file-tabs { padding: 0 13px; }.file-tabs__status { display: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRouter } from 'vue-router'\nimport type { FileKind } from '@shared/types'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport LibraryGrid from '@/components/library/LibraryGrid.vue'\nimport PreviewModal from '@/components/library/PreviewModal.vue'\nimport ImagePreviewLightbox from '@/components/library/ImagePreviewLightbox.vue'\nimport type { PreviewMedia } from '@/components/library/ImagePreviewLightbox.vue'\nimport type { LibraryFilterOption, UiLibraryItem } from '@/components/library/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { fileToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { useFilesStore } from '@/stores/files'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\n\nconst files = useFilesStore()\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst router = useRouter()\nconst selected = ref<UiLibraryItem | null>(null)\nconst mediaIndex = ref<number | null>(null)\nconst historySearch = ref('')\nlet searchTimer: number | undefined\n\nconst items = computed(() => files.filteredItems.map(fileToUi))\nconst lightboxMedia = computed(() => items.value.filter(item => item.kind === 'image' || item.kind === 'video').map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [profile.name, profile.agentName || profile.displayName || profile.name])))\nconst historyItems = computed(() => chat.sessions\n .filter(session => !['cron', 'ios_group'].includes(session.source))\n .filter(session => !historySearch.value.trim() || `${session.title} ${session.preview || ''}`.toLocaleLowerCase().includes(historySearch.value.trim().toLocaleLowerCase()))\n .map(session => sessionSidebarItem(session, chat.unreadCounts[session.id] ?? 0, agentNames.value.get(session.profile || auth.activeProfile?.name || ''))))\nconst options = computed<LibraryFilterOption[]>(() => {\n const count = (kind: string) => files.items.filter(item => item.kind === kind).length\n return [\n { id: 'all', label: '全部', count: files.items.length, icon: 'files' },\n { id: 'image', label: '图片', count: count('image'), icon: 'image' },\n { id: 'video', label: '视频', count: count('video'), icon: 'video' },\n { id: 'audio', label: '音频', count: count('audio'), icon: 'audio' },\n { id: 'document', label: '文档', count: count('document'), icon: 'file' },\n { id: 'other', label: '其他', count: count('other'), icon: 'file' },\n ]\n})\n\nfunction updateSearch(value: string) {\n files.query = value\n window.clearTimeout(searchTimer)\n searchTimer = window.setTimeout(() => void files.load(true), 260)\n}\n\nfunction updateFilter(value: string) {\n files.kindFilter = value as FileKind | 'all'\n void files.load(true)\n}\n\nasync function openSource(item: UiLibraryItem) {\n if (item.sourceWorkspaceConversationId) {\n await router.push(`/conversations/${encodeURIComponent(item.sourceWorkspaceConversationId)}`)\n return\n }\n if (!item.sourceSessionId) return\n if (item.sourceProfile && auth.profiles.some(profile => profile.name === item.sourceProfile)) {\n auth.selectProfile(item.sourceProfile)\n }\n await router.push({\n path: `/chat/${encodeURIComponent(item.sourceSessionId)}`,\n query: {\n ...(item.sourceMessageId ? { message: item.sourceMessageId } : {}),\n ...(item.sourceProfile ? { profile: item.sourceProfile } : {}),\n },\n })\n}\n\nfunction selectFile(item: UiLibraryItem) {\n if (item.kind === 'image' || item.kind === 'video') {\n const index = lightboxMedia.value.findIndex(media => media.url === (item.previewUrl || item.downloadUrl))\n mediaIndex.value = index >= 0 ? index : null\n return\n }\n selected.value = item\n}\n\nasync function selectSession(id: string) {\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name\n await router.push({ path: `/chat/${encodeURIComponent(id)}`, query: profile ? { profile } : {} })\n}\n\nonMounted(() => {\n files.profile = undefined\n void files.load(true)\n void chat.loadSessions(auth.activeProfile?.name)\n void chat.loadUnread(auth.activeProfile?.name)\n})\nonBeforeUnmount(() => window.clearTimeout(searchTimer))\nwatch(() => files.items, () => {\n if (selected.value && !files.items.some(item => item.id === selected.value?.id)) selected.value = null\n})\nwatch(() => auth.activeProfile?.name, profile => {\n selected.value = null\n files.profile = profile\n void files.load(true)\n void chat.loadSessions(profile)\n void chat.loadUnread(profile)\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${chat.sessions.length} 个会话`\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"historyItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n :search=\"historySearch\"\n single-line\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有会话\"\n empty-description=\"原生 Hermes 会话会在这里以只读历史显示。\"\n @search=\"historySearch = $event\"\n @select=\"selectSession\"\n />\n </template>\n <section class=\"library-workspace\">\n <header class=\"library-header\">\n <div><h2>文件库</h2><span><AppIcon name=\"files\" :size=\"15\" />{{ items.length }}</span></div>\n <label class=\"file-search\"><AppIcon name=\"search\" :size=\"15\" /><input :value=\"files.query\" type=\"search\" placeholder=\"搜索文件名、路径或会话\" @input=\"updateSearch(($event.target as HTMLInputElement).value)\" /></label>\n </header>\n <nav class=\"file-tabs\" aria-label=\"文件类型筛选\">\n <button v-for=\"option in options\" :key=\"option.id\" type=\"button\" :class=\"{ active: option.id === files.kindFilter }\" @click=\"updateFilter(option.id)\">{{ option.label }}<small v-if=\"option.count !== undefined\">{{ option.count }}</small></button>\n <div class=\"file-tabs__status\"><span v-if=\"files.error\" class=\"error\"><AppIcon name=\"alert\" :size=\"13\" />{{ files.error }}</span><span v-else>{{ files.nextCursor ? '还有更多文件可加载' : items.length ? '已同步到最新' : '' }}</span><button class=\"icon-button\" type=\"button\" aria-label=\"刷新文件库\" title=\"刷新文件库\" :disabled=\"files.isLoading\" @click=\"files.load(true)\"><AppIcon name=\"refresh\" :size=\"15\" /></button></div>\n </nav>\n <LibraryGrid\n :items=\"items\"\n :selected-id=\"selected?.id\"\n :loading=\"files.isLoading\"\n :has-more=\"files.hasMore\"\n empty-title=\"文件库还是空的\"\n empty-description=\"聊天中的图片、文档和附件会出现在这里。\"\n @select=\"selectFile\"\n @load-more=\"files.loadMore\"\n @source=\"openSource\"\n />\n </section>\n </WorkspaceView>\n <PreviewModal v-if=\"selected\" :item=\"selected\" :items=\"items\" :can-add-to-composer=\"false\" @close=\"selected = null\" @source=\"openSource\" />\n <ImagePreviewLightbox v-model=\"mediaIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n</template>\n\n<style scoped>\n.library-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.library-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); }.library-header > div { display: flex; align-items: center; gap: 10px; }.library-header h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.library-header span { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }.file-search { display: flex; width: min(280px, 38vw); min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-muted); }.file-search:focus-within { border-color: var(--line-strong); }.file-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 11px; }\n.file-tabs { display: flex; min-height: 46px; align-items: center; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }.file-tabs > button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 10px; white-space: nowrap; }.file-tabs > button:hover, .file-tabs > button.active { background: var(--surface-soft); color: var(--text-primary); }.file-tabs > button.active { font-weight: 650; }.file-tabs > button small { margin-left: 4px; color: var(--text-muted); font-size: 8px; }.file-tabs__status { display: flex; min-width: 0; align-items: center; gap: 7px; margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }.file-tabs__status > span { overflow: hidden; text-overflow: ellipsis; }.file-tabs__status .error { color: var(--danger); }.file-tabs__status .icon-button { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); cursor: pointer; }.file-tabs__status .icon-button:hover { background: var(--surface-soft); color: var(--text-primary); }\n@media (max-width: 600px) { .library-header { min-height: 52px; padding: 0 13px; }.library-header h2 { font-size: 14px; }.file-search { width: min(180px, 52vw); }.file-tabs { padding: 0 13px; }.file-tabs__status {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