@lsamien/yaoyao 0.4.80 → 0.4.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/bin/hermes-yaoyao-updater.mjs +97 -1
- package/bin/lib/npm-release.d.mts +10 -0
- package/bin/lib/npm-release.mjs +93 -0
- package/build-info.json +17 -3
- package/desktop/main.mjs +28 -26
- package/dist/assets/{AboutDialog-on4AME1V.js → AboutDialog-g6pYSCjs.js} +2 -2
- package/dist/assets/{AboutDialog-on4AME1V.js.map → AboutDialog-g6pYSCjs.js.map} +1 -1
- package/dist/assets/{BotAutomationsView-Bmb14qI5.js → BotAutomationsView-D1qf-5yf.js} +2 -2
- package/dist/assets/{BotAutomationsView-Bmb14qI5.js.map → BotAutomationsView-D1qf-5yf.js.map} +1 -1
- package/dist/assets/{BotPluginsDialog-6WPFFQnG.js → BotPluginsDialog-BOSzPlLZ.js} +2 -2
- package/dist/assets/{BotPluginsDialog-6WPFFQnG.js.map → BotPluginsDialog-BOSzPlLZ.js.map} +1 -1
- package/dist/assets/{BotSettingsDialog-wWHnGtBg.js → BotSettingsDialog-Ba-380qV.js} +4 -4
- package/dist/assets/{BotSettingsDialog-wWHnGtBg.js.map → BotSettingsDialog-Ba-380qV.js.map} +1 -1
- package/dist/assets/{ChatView-BKNyjhWf.js → ChatView-DHyj3yzu.js} +2 -2
- package/dist/assets/{ChatView-BKNyjhWf.js.map → ChatView-DHyj3yzu.js.map} +1 -1
- package/dist/assets/{ComputerPanel-DP9Sge1E.js → ComputerPanel-D1hglwwV.js} +2 -2
- package/dist/assets/{ComputerPanel-DP9Sge1E.js.map → ComputerPanel-D1hglwwV.js.map} +1 -1
- package/dist/assets/{ComputerViewerView-WjPHo035.js → ComputerViewerView-BDL1eNKT.js} +2 -2
- package/dist/assets/{ComputerViewerView-WjPHo035.js.map → ComputerViewerView-BDL1eNKT.js.map} +1 -1
- package/dist/assets/{ConversationsView-BRNIpK57.js → ConversationsView-BaWBEaBU.js} +5 -5
- package/dist/assets/{ConversationsView-BRNIpK57.js.map → ConversationsView-BaWBEaBU.js.map} +1 -1
- package/dist/assets/{ConversationsView-CbArO1v2.css → ConversationsView-CdPjaDik.css} +1 -1
- package/dist/assets/{FilesView-ETwEkBC-.js → FilesView-AjaCIyCs.js} +2 -2
- package/dist/assets/{FilesView-ETwEkBC-.js.map → FilesView-AjaCIyCs.js.map} +1 -1
- package/dist/assets/FloatingResourceSearch-CeLuyNWO.js +9 -0
- package/dist/assets/{FloatingResourceSearch-CxF6Ko17.js.map → FloatingResourceSearch-CeLuyNWO.js.map} +1 -1
- package/dist/assets/{FloatingResourceSearch-3GOuDkuO.css → FloatingResourceSearch-CqauCQAf.css} +1 -1
- package/dist/assets/{HistoryView-uwkxvrTT.js → HistoryView-C96yRoyB.js} +2 -2
- package/dist/assets/{HistoryView-uwkxvrTT.js.map → HistoryView-C96yRoyB.js.map} +1 -1
- package/dist/assets/{KanbanView-BjiWhQiB.js → KanbanView-CVbjfqiX.js} +2 -2
- package/dist/assets/{KanbanView-BjiWhQiB.js.map → KanbanView-CVbjfqiX.js.map} +1 -1
- package/dist/assets/{LocalVmSettingsPanel-BAVywgEJ.js → LocalVmSettingsPanel-DcDIRVsO.js} +2 -2
- package/dist/assets/{LocalVmSettingsPanel-BAVywgEJ.js.map → LocalVmSettingsPanel-DcDIRVsO.js.map} +1 -1
- package/dist/assets/{RunnerSettingsPanel-spsPiohB.js → RunnerSettingsPanel-XYeXVx5y.js} +2 -2
- package/dist/assets/{RunnerSettingsPanel-spsPiohB.js.map → RunnerSettingsPanel-XYeXVx5y.js.map} +1 -1
- package/dist/assets/{StandaloneDialog-Ctcd4omg.js → StandaloneDialog-C6HIM_jc.js} +2 -2
- package/dist/assets/{StandaloneDialog-Ctcd4omg.js.map → StandaloneDialog-C6HIM_jc.js.map} +1 -1
- package/dist/assets/{UpdateCheckDialog-C43LDN1t.js → UpdateCheckDialog-Dv1d1s42.js} +2 -2
- package/dist/assets/{UpdateCheckDialog-C43LDN1t.js.map → UpdateCheckDialog-Dv1d1s42.js.map} +1 -1
- package/dist/assets/{WorkspaceKnowledgePanel-CDbdIzXZ.js → WorkspaceKnowledgePanel-Dnauu0Hw.js} +2 -2
- package/dist/assets/{WorkspaceKnowledgePanel-CDbdIzXZ.js.map → WorkspaceKnowledgePanel-Dnauu0Hw.js.map} +1 -1
- package/dist/assets/{WorkspaceRoutinesPanel-h7wcBTnK.js → WorkspaceRoutinesPanel-WNI3qP4D.js} +2 -2
- package/dist/assets/{WorkspaceRoutinesPanel-h7wcBTnK.js.map → WorkspaceRoutinesPanel-WNI3qP4D.js.map} +1 -1
- package/dist/assets/WorkspaceShell-BT92dIOL.css +1 -0
- package/dist/assets/WorkspaceShell-Bl2QMnvN.js +44 -0
- package/dist/assets/WorkspaceShell-Bl2QMnvN.js.map +1 -0
- package/dist/assets/{WorkspaceView-zDyCd5Ys.js → WorkspaceView-Dhdw4Kml.js} +2 -2
- package/dist/assets/{WorkspaceView-zDyCd5Ys.js.map → WorkspaceView-Dhdw4Kml.js.map} +1 -1
- package/dist/assets/{docx-preview-DOVGRYbk.js → docx-preview-BNRkFvPc.js} +2 -2
- package/dist/assets/{docx-preview-DOVGRYbk.js.map → docx-preview-BNRkFvPc.js.map} +1 -1
- package/dist/assets/{index-CRBIQ5t6.js → index-DU4OTLup.js} +3 -3
- package/dist/assets/{index-CRBIQ5t6.js.map → index-DU4OTLup.js.map} +1 -1
- package/dist/assets/{pdf-CyfBRmEm.js → pdf-C6_9GF5Z.js} +2 -2
- package/dist/assets/{pdf-CyfBRmEm.js.map → pdf-C6_9GF5Z.js.map} +1 -1
- package/dist/assets/{sessionOwnership-BhbWRxbS.js → sessionOwnership-D9vGe33s.js} +2 -2
- package/dist/assets/{sessionOwnership-BhbWRxbS.js.map → sessionOwnership-D9vGe33s.js.map} +1 -1
- package/dist/assets/{viewModels-DNhmBuoz.js → viewModels-BLN4GfVX.js} +5 -5
- package/dist/assets/viewModels-BLN4GfVX.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist-server/server/app.js +2 -0
- package/dist-server/server/chatCache.js +3 -2
- package/dist-server/server/chatPresentation.js +32 -0
- package/dist-server/server/chatTranscriptApi.js +2 -1
- package/dist-server/server/config.js +2 -0
- package/dist-server/server/credentialVault/adapterExecutor.js +23 -0
- package/dist-server/server/credentialVault/botAccess.js +161 -0
- package/dist-server/server/credentialVault/broker.js +61 -6
- package/dist-server/server/credentialVault/coordinator.js +108 -15
- package/dist-server/server/credentialVault/localClient.js +129 -8
- package/dist-server/server/credentialVault/localExecutor.js +15 -0
- package/dist-server/server/credentialVault/protectedExecutor.js +3 -19
- package/dist-server/server/credentialVault/schema.js +11 -4
- package/dist-server/server/credentialVault/sshExecutor.js +111 -15
- package/dist-server/server/credentialVault/store.js +11 -5
- package/dist-server/server/credentialVault/transport.js +4 -1
- package/dist-server/server/jsonCompression.js +29 -0
- package/dist-server/server/routes.js +14 -1
- package/dist-server/server/runnerHub.js +12 -1
- package/dist-server/server/updateManager.js +42 -10
- package/dist-server/server/workspaceRoutes.js +30 -4
- package/dist-server/server/workspaceSync.js +22 -4
- package/dist-server/shared/desktopUpdate.js +1 -0
- package/package.json +1 -1
- package/release.json +3 -3
- package/dist/assets/FloatingResourceSearch-CxF6Ko17.js +0 -9
- package/dist/assets/WorkspaceShell-Bx8se0l7.js +0 -44
- package/dist/assets/WorkspaceShell-Bx8se0l7.js.map +0 -1
- package/dist/assets/WorkspaceShell-DXti6BpF.css +0 -1
- package/dist/assets/viewModels-DNhmBuoz.js.map +0 -1
package/dist/assets/{FloatingResourceSearch-3GOuDkuO.css → FloatingResourceSearch-CqauCQAf.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
.composer-area[data-v-41dd5183]{z-index:12;padding:12px max(24px, calc((100% - 760px) / 2)) max(18px, env(safe-area-inset-bottom));background:var(--conversation-canvas);flex:none;position:relative}.composer-activity-slot[data-v-41dd5183]{align-items:center;gap:8px;width:100%;max-width:760px;height:20px;margin:0 auto 3px;display:flex}.composer-activity[data-v-41dd5183]{min-width:0;color:var(--text-muted);align-items:center;gap:7px;font-size:10px;display:inline-flex}.composer-activity strong[data-v-41dd5183]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-weight:560;overflow:hidden}.composer-typing-dots[data-v-41dd5183]{align-items:center;gap:2px;display:inline-flex}.composer-typing-dots i[data-v-41dd5183]{background:currentColor;border-radius:50%;width:3px;height:3px;animation:1.05s ease-in-out infinite composer-typing-41dd5183}.composer-typing-dots i[data-v-41dd5183]:nth-child(2){animation-delay:.14s}.composer-typing-dots i[data-v-41dd5183]:nth-child(3){animation-delay:.28s}@keyframes composer-typing-41dd5183{0%,65%,to{opacity:.3;transform:translateY(0)}32%{opacity:1;transform:translateY(-2px)}}.composer-activity-enter-active[data-v-41dd5183],.composer-activity-leave-active[data-v-41dd5183]{transition:opacity .12s ease, transform .12s var(--ease-out)}.composer-activity-enter-from[data-v-41dd5183],.composer-activity-leave-to[data-v-41dd5183]{opacity:0;transform:translateY(3px)}.composer-shell[data-v-41dd5183]{border:1px solid var(--input-border-color);background:var(--chat-composer-bg);cursor:text;border-radius:18px;flex-direction:column;align-items:stretch;gap:8px;width:100%;max-width:760px;min-height:72px;margin-inline:auto;padding:13px 14px 9px;transition:border-color .14s,box-shadow .15s,background-color .14s;display:flex;position:relative;box-shadow:0 8px 24px #2924270f}.dark .composer-shell[data-v-41dd5183]{box-shadow:0 8px 28px #00000052}.composer-shell[data-v-41dd5183]:hover:not(:focus-within){border-color:var(--input-border-hover-color)}.composer-shell[data-v-41dd5183]:focus-within{border-color:var(--input-border-focus-color);box-shadow:0 10px 32px #0000001c}.dark .composer-shell[data-v-41dd5183]:focus-within{box-shadow:0 12px 34px #0006}.composer-shell--drag[data-v-41dd5183]{background:color-mix(in srgb, var(--chat-composer-bg) 90%, var(--text-primary));border-color:var(--text-primary)!important}.composer-shell--disabled[data-v-41dd5183]{opacity:.68}.composer-file-input[data-v-41dd5183]{display:none}.composer-resize[data-v-41dd5183]{z-index:4;cursor:row-resize;touch-action:none;border-radius:999px;height:10px;position:absolute;top:-5px;left:9px;right:9px}.composer-resize[data-v-41dd5183]:hover:after{content:"";background:var(--line-strong);border-radius:2px;height:2px;position:absolute;top:4px;left:38%;right:38%}.composer-textarea[data-v-41dd5183]{resize:none;width:100%;min-height:30px;max-height:400px;color:var(--text-primary);font-family:var(--font-ui);background:0 0;border:0;outline:0;flex:auto;padding:0;font-size:14px;line-height:1.5;display:block;overflow-y:auto}.composer-textarea[data-v-41dd5183]::placeholder{color:var(--input-placeholder-color);opacity:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-textarea[data-v-41dd5183]:disabled{cursor:not-allowed}.composer-context[data-v-41dd5183]{z-index:1;max-width:calc(100% - 28px);color:var(--text-muted);pointer-events:none;align-items:center;gap:6px;font-size:10px;display:flex;position:absolute;top:8px;right:14px}.composer-context span[data-v-41dd5183]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-context.warning[data-v-41dd5183]{color:var(--warning)}.composer-context i[data-v-41dd5183]{background:var(--surface-hover);border-radius:3px;flex:0 0 60px;width:60px;height:4px;display:block;overflow:hidden}.composer-context b[data-v-41dd5183]{border-radius:inherit;background:currentColor;height:100%;transition:width .22s;display:block}.composer-context+.composer-textarea[data-v-41dd5183]{padding-top:9px}.composer-toolbar[data-v-41dd5183]{justify-content:space-between;align-items:center;gap:12px;min-height:32px;margin-top:auto;display:flex}.composer-tools[data-v-41dd5183],.composer-actions[data-v-41dd5183]{align-items:center;gap:5px;min-width:0;display:flex}.composer-tools[data-v-41dd5183]{flex:1}.composer-actions[data-v-41dd5183]{flex:none;gap:7px}.composer-popover-anchor[data-v-41dd5183]{flex:none;display:flex;position:relative}.composer-action-icon[data-v-41dd5183]{flex:none;width:20px;height:20px;display:block}.composer-tool.composer-add[data-v-41dd5183]{background:var(--surface-soft);width:36px;height:36px;color:var(--text-primary);padding:0}.composer-popover.composer-add-menu[data-v-41dd5183]{cursor:default;width:min(280px,100vw - 64px);padding:8px}.composer-add-menu button[data-v-41dd5183]{width:100%;min-height:44px;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;padding:9px 12px;font-size:14px;display:flex}.composer-add-menu button[data-v-41dd5183]:hover:not(:disabled){background:var(--surface-hover)}.composer-add-menu button[data-v-41dd5183]:disabled{opacity:.5;cursor:not-allowed}.composer-add-menu button>span[data-v-41dd5183]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.composer-add-menu strong[data-v-41dd5183]{font-weight:500}.composer-add-menu small[data-v-41dd5183]{color:var(--text-secondary);font-size:12px;line-height:1.4}.composer-add-menu__divider[data-v-41dd5183]{background:var(--line);height:1px;margin:6px 12px}.composer-delivery-chip[data-v-41dd5183]{--goal-color:var(--delivery-accent);background:color-mix(in srgb, var(--goal-color) 12%, transparent);min-height:36px;color:var(--goal-color);font:inherit;white-space:nowrap;cursor:pointer;border:0;border-radius:999px;flex:none;align-items:center;gap:7px;padding:0 11px;font-size:13px;display:inline-flex}.composer-delivery-chip[data-v-41dd5183]:hover:not(:disabled){background:color-mix(in srgb, var(--goal-color) 18%, transparent)}.composer-delivery-chip[data-v-41dd5183]:disabled{opacity:.5;cursor:not-allowed}.composer-add[data-v-41dd5183]:focus-visible,.composer-add-menu button[data-v-41dd5183]:focus-visible,.composer-delivery-chip[data-v-41dd5183]:focus-visible,.composer-mention-hint[data-v-41dd5183]:focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}.composer-tool[data-v-41dd5183]{min-width:28px;max-width:175px;height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;gap:4px;padding:0 6px;font-size:11px;display:inline-flex}.composer-tool[data-v-41dd5183]:hover,.composer-tool.active[data-v-41dd5183]{background:var(--surface-hover);color:var(--text-primary)}.composer-tool[data-v-41dd5183]:disabled{cursor:not-allowed;opacity:.36}.composer-tool span[data-v-41dd5183]{text-overflow:ellipsis;min-width:0;overflow:hidden}.composer-tool--icon[data-v-41dd5183]{width:28px;padding:0}.composer-tool--model[data-v-41dd5183]{min-width:0}.composer-fast-mode.active[data-v-41dd5183]{color:#1677ff;background:#1677ff1f}.composer-fast-mode.active[data-v-41dd5183]:hover{color:#1677ff;background:#1677ff2e}.dark .composer-fast-mode.active[data-v-41dd5183]{color:#4c9aff}.composer-mention-hint[data-v-41dd5183]{color:var(--text-muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.composer-mention-hint b[data-v-41dd5183]{background:var(--surface-soft);width:21px;height:21px;color:var(--text-secondary);border-radius:7px;place-items:center;font-size:12px;display:grid}.composer-popover[data-v-41dd5183]{z-index:30;border:1px solid var(--line);background:var(--surface-raised);width:min(320px,100vw - 48px);box-shadow:var(--shadow-float);border-radius:13px;padding:12px;position:absolute;bottom:calc(100% + 10px);left:0}.composer-popover--reasoning[data-v-41dd5183]{--reasoning-accent:#e8a735}.composer-popover__heading[data-v-41dd5183],.composer-popover__range[data-v-41dd5183]{justify-content:space-between;align-items:center;gap:16px;display:flex}.composer-popover__heading[data-v-41dd5183]{color:var(--text-secondary);margin-bottom:12px;font-size:12px}.composer-popover__heading strong[data-v-41dd5183]{color:var(--reasoning-accent);font-weight:650}.composer-popover__range[data-v-41dd5183]{color:var(--text-muted);margin-top:8px;font-size:9px}.reasoning-slider[data-v-41dd5183]{appearance:none;cursor:pointer;background:linear-gradient(90deg,#38bdf8 0%,#22d3ee 20%,#34d399 40%,#facc15 62%,#fb923c 82%,#ef4444 100%);border-radius:99px;width:100%;height:10px;margin:0;display:block}.reasoning-slider[data-v-41dd5183]::-webkit-slider-thumb{appearance:none;background:#f8fafc;border:2px solid #fff;border-radius:50%;width:22px;height:22px;box-shadow:0 2px 8px #18122c47}.reasoning-slider[data-v-41dd5183]::-moz-range-thumb{background:#f8fafc;border:2px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 2px 8px #18122c47}.composer-popover--settings[data-v-41dd5183]{width:220px;padding:6px}.composer-setting-row[data-v-41dd5183]{width:100%;min-height:38px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:11px;display:flex}.composer-setting-row[data-v-41dd5183]:hover{background:var(--surface-hover);color:var(--text-primary)}.composer-setting-row>span[data-v-41dd5183]{align-items:center;gap:7px;display:inline-flex}.queue-toggle[data-v-41dd5183]{height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 7px;font-size:10px}.composer-queue-slot[data-v-41dd5183]{place-items:center;width:48px;height:34px;display:grid}.queue-toggle[data-v-41dd5183]:hover,.queue-toggle.active[data-v-41dd5183]{background:var(--surface-hover);color:var(--text-primary)}.composer-send-hitbox[data-v-41dd5183]{place-items:center;width:34px;height:34px;display:grid}.composer-stop-hitbox[data-v-41dd5183]{place-items:center;width:30px;height:34px;display:grid}.composer-send[data-v-41dd5183]{background:var(--accent);width:34px;min-width:34px;height:34px;color:var(--text-on-solid);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;transition:transform .15s,box-shadow .15s;display:grid;box-shadow:0 4px 12px #2924272e}.composer-send[data-v-41dd5183]:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 7px 16px #29242738}.composer-send[data-v-41dd5183]:disabled{cursor:not-allowed;color:#fff;background:#9f9f9f}.composer-send--stop[data-v-41dd5183]{background:var(--accent)}.composer-stop[data-v-41dd5183]{border:1px solid var(--line);background:var(--surface-raised);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:color .15s,border-color .15s;display:grid}.composer-stop[data-v-41dd5183]:hover{color:var(--danger);border-color:var(--danger)}.composer-sending[data-v-41dd5183]{color:var(--text-muted);white-space:nowrap;flex-shrink:0;align-items:center;gap:5px;margin-left:auto;font-size:9px;display:inline-flex}.composer-sending i[data-v-41dd5183]{background:var(--warning);border-radius:50%;width:5px;height:5px;animation:1s ease-in-out infinite composer-pulse-41dd5183}@keyframes composer-pulse-41dd5183{50%{opacity:.25;transform:scale(.7)}}.composer-attachments[data-v-41dd5183]{flex-wrap:wrap;gap:8px;width:100%;min-width:0;display:flex}.composer-context+.composer-attachments[data-v-41dd5183]{padding-top:16px}.composer-attachment[data-v-41dd5183]{border:1px solid var(--line);background:var(--surface-raised);max-width:min(210px,100%);min-height:48px;color:var(--text-secondary);border-radius:10px;align-items:center;gap:8px;padding:6px 28px 6px 9px;display:flex;position:relative;overflow:hidden}.composer-attachment.image[data-v-41dd5183]{width:64px;height:64px;padding:0}.composer-attachment img[data-v-41dd5183]{object-fit:cover;width:100%;height:100%}.composer-attachment>span[data-v-41dd5183]{flex-direction:column;min-width:0;display:flex}.composer-attachment strong[data-v-41dd5183],.composer-attachment small[data-v-41dd5183]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-attachment strong[data-v-41dd5183]{color:var(--text-primary);font-size:10px;font-weight:560}.composer-attachment small[data-v-41dd5183]{color:var(--text-muted);margin-top:3px;font-size:9px}.composer-attachment>button[data-v-41dd5183]{color:#fff;cursor:pointer;background:#00000085;border:0;border-radius:50%;place-items:center;width:20px;height:20px;padding:0;display:grid;position:absolute;top:4px;right:4px}.composer-reference[data-v-41dd5183]{border-left:2px solid var(--text-muted);background:var(--surface-soft);width:calc(100% - 16px);max-width:744px;min-height:36px;color:var(--text-muted);border-radius:7px;align-items:center;gap:9px;margin:0 auto 8px;padding:5px 7px 5px 10px;display:flex}.composer-reference>span[data-v-41dd5183]{flex-direction:column;flex:1;min-width:0;display:flex}.composer-reference small[data-v-41dd5183]{font-size:9px}.composer-reference strong[data-v-41dd5183]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500;overflow:hidden}.composer-reference button[data-v-41dd5183]{width:26px;height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;padding:0;display:grid}.composer-reference button[data-v-41dd5183]:hover{background:var(--surface-hover);color:var(--text-primary)}.composer-menu[data-v-41dd5183]{z-index:20;border:1px solid var(--line);background:var(--surface-raised);max-height:280px;box-shadow:var(--shadow-float);border-radius:12px;padding:5px;position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;overflow-y:auto}.composer-menu__label[data-v-41dd5183]{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;padding:5px 8px 7px;font-size:9px;font-weight:650}.composer-menu button[data-v-41dd5183]{width:100%;min-height:42px;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:9px;padding:5px 8px;display:flex}.composer-menu button.active[data-v-41dd5183],.composer-menu button[data-v-41dd5183]:hover{background:var(--surface-hover)}.composer-menu button[data-v-41dd5183]:disabled{cursor:not-allowed;opacity:.48}.composer-menu__avatar[data-v-41dd5183]{width:28px;height:28px;color:var(--text-secondary);background:0 0;border-radius:8px;place-items:center;font-size:11px;display:grid}.composer-menu button>span[data-v-41dd5183]:nth-child(2){flex-direction:column;flex:1;min-width:0;display:flex}.composer-menu strong[data-v-41dd5183]{font-size:11px}.composer-menu small[data-v-41dd5183]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.composer-menu em[data-v-41dd5183]{color:var(--text-muted);font-size:9px;font-style:normal}.composer-drop-hint[data-v-41dd5183]{z-index:25;border:1px dashed var(--line-strong);background:color-mix(in srgb, var(--chat-composer-bg) 90%, transparent);color:var(--text-secondary);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);pointer-events:none;border-radius:13px;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex;position:absolute;inset:6px}.composer-error[data-v-41dd5183]{background:var(--danger);color:#fff;max-width:min(420px,100% - 32px);box-shadow:var(--shadow-float);border-radius:8px;margin:0;padding:7px 10px;font-size:10px;position:absolute;bottom:calc(100% - 8px);right:max(24px,50% - 380px)}.composer-menu-enter-active[data-v-41dd5183],.composer-menu-leave-active[data-v-41dd5183]{transition:opacity .12s ease, transform .12s var(--ease-out)}.composer-menu-enter-from[data-v-41dd5183],.composer-menu-leave-to[data-v-41dd5183]{opacity:0;transform:translateY(4px)}@media (width<=768px){.composer-area[data-v-41dd5183]{padding:8px 12px max(12px, env(safe-area-inset-bottom))}.composer-shell[data-v-41dd5183]{min-height:118px}.composer-textarea[data-v-41dd5183]{font-size:16px}.composer-textarea[data-v-41dd5183]::placeholder{font-size:13px;line-height:1.35}.composer-tool span[data-v-41dd5183],.composer-tool[data-v-41dd5183]>svg:last-child,.composer-mention-hint span[data-v-41dd5183]{display:none}.composer-tool[data-v-41dd5183]{width:30px;min-width:30px;padding:0}.composer-tools[data-v-41dd5183]{gap:3px}.composer-mention-hint[data-v-41dd5183]{display:none}.composer-tool.composer-add[data-v-41dd5183]{width:44px;height:44px}.composer-add[data-v-41dd5183]>svg:last-child{display:block}.composer-delivery-chip[data-v-41dd5183]{min-height:44px;padding-inline:10px}.composer-toolbar[data-v-41dd5183]{align-items:flex-end;gap:7px}.composer-send-hitbox[data-v-41dd5183]{width:44px;height:44px;margin:-5px}.composer-send[data-v-41dd5183]{width:34px;min-width:34px;height:34px}.composer-menu[data-v-41dd5183]{left:6px;right:6px}.composer-context[data-v-41dd5183]{font-size:8px}.composer-context i[data-v-41dd5183]{display:none}.composer-popover[data-v-41dd5183]{width:min(220px,100vw - 96px)}.composer-error[data-v-41dd5183]{right:12px}}@media (width<=360px){.queue-toggle[data-v-41dd5183]{display:none}.composer-toolbar[data-v-41dd5183]{gap:3px}}.system-message-notice[data-v-fd32abae]{width:100%;min-width:0;color:var(--text-muted);text-align:center;font-size:13px;line-height:1.6}.system-message-notice__label[data-v-fd32abae]{box-sizing:border-box;width:fit-content;max-width:100%;min-height:44px;color:inherit;font:inherit;overflow-wrap:anywhere;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;gap:6px;margin:0 auto;padding:8px 4px;font-weight:400;text-decoration:none;list-style:none;display:flex}.system-message-notice__label[data-v-fd32abae] svg{flex-shrink:0}summary[data-v-fd32abae],a[data-v-fd32abae]{cursor:pointer}summary[data-v-fd32abae]::-webkit-details-marker{display:none}summary[data-v-fd32abae]:hover,a[data-v-fd32abae]:hover{color:var(--text-secondary)}summary[data-v-fd32abae]:focus-visible,a[data-v-fd32abae]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.system-message-notice__details[data-v-fd32abae]{box-sizing:border-box;border:1px solid var(--line);width:min(640px,100%);max-height:360px;color:var(--text-secondary);background:var(--surface);text-align:left;overflow-wrap:anywhere;border-radius:8px;margin:4px auto 12px;padding:12px 16px;overflow:auto}.system-message-notice__details[data-v-fd32abae] .markdown{text-align:left;font-size:13px}.failure-notice[data-v-739155c5]{margin-top:6px}p[data-v-739155c5]{margin:0 0 8px}pre[data-v-739155c5]{border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;font:12px/1.6 var(--font-code);margin:0;padding-top:10px;overflow:auto}.thinking-indicator[data-v-c9d2172f]{min-height:34px;color:var(--text-muted);align-items:center;column-gap:8px;margin:5px 0 20px;display:flex}.thinking-indicator__dots[data-v-c9d2172f]{align-items:center;gap:4px;height:16px;display:inline-flex}.thinking-indicator__dot[data-v-c9d2172f]{background:color-mix(in srgb, var(--accent) 90%, transparent);width:6px;height:6px;animation:.9s ease-in-out infinite thinking-dot-bounce-c9d2172f;animation-delay:calc(var(--dot-index) * .15s);border-radius:50%}@keyframes thinking-dot-bounce-c9d2172f{0%,55%,to{transform:translateY(0)}28%{transform:translateY(-5px)}}@media (prefers-reduced-motion:reduce){.thinking-indicator__dot[data-v-c9d2172f]{animation:none;transform:none}}.interaction-card[data-v-66a47616]{border:1px solid var(--line);background:var(--surface-raised);width:min(640px,100%);box-shadow:0 10px 34px color-mix(in srgb, var(--text-primary) 8%, transparent);box-sizing:border-box;border-radius:16px;margin:20px auto 4px;padding:16px;position:relative}.interaction-card__handle[data-v-66a47616]{display:none}.interaction-card__heading[data-v-66a47616]{align-items:flex-start;gap:12px;display:flex}.interaction-card__icon[data-v-66a47616]{background:color-mix(in srgb, var(--workflow-accent) 10%, var(--surface-soft));width:38px;height:38px;color:var(--workflow-accent);border-radius:11px;flex:0 0 38px;place-items:center;display:grid}.interaction-card__heading>div[data-v-66a47616]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.interaction-card__heading small[data-v-66a47616]{color:var(--text-muted);letter-spacing:.06em;font-size:10px;font-weight:650}.interaction-card__heading strong[data-v-66a47616]{color:var(--text-primary);font-size:15px;font-weight:650;line-height:1.5}.interaction-card__prompt[data-v-66a47616]{color:var(--text-secondary);margin:10px 0 0 50px;font-size:13px;line-height:1.6}.interaction-card__details[data-v-66a47616]{color:var(--text-muted);margin:10px 0 0 50px;font-size:11px}.interaction-card__details summary[data-v-66a47616]{cursor:pointer;align-items:center;gap:5px;min-height:32px;list-style:none;display:inline-flex}.interaction-card__details summary[data-v-66a47616]::-webkit-details-marker{display:none}.interaction-card__details[open] summary .app-icon[data-v-66a47616]{transform:rotate(180deg)}.interaction-card__details pre[data-v-66a47616]{max-height:180px;font:10px/1.55 var(--font-code);white-space:pre-wrap;overflow:auto}.interaction-card__actions[data-v-66a47616]{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.interaction-card button[data-v-66a47616]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;font:13px var(--font-ui);border-radius:10px;padding:9px 15px}.interaction-card button[data-v-66a47616]:hover:not(:disabled){background:var(--surface-hover)}.interaction-card button[data-v-66a47616]:disabled{cursor:default;opacity:.5}.interaction-card .solid-button[data-v-66a47616]{border-color:var(--workflow-accent);background:var(--workflow-accent);min-width:112px;color:var(--workflow-on-accent);justify-content:center;align-items:center;gap:7px;font-weight:620;display:inline-flex}.interaction-card .solid-button[data-v-66a47616]:hover:not(:disabled){background:color-mix(in srgb, var(--workflow-accent) 88%, var(--text-primary))}.interaction-card__answer[data-v-66a47616]{gap:10px;margin-top:13px;display:grid}.interaction-card__options[data-v-66a47616]{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0;margin:0;padding:0;display:grid}.interaction-card__options legend[data-v-66a47616]{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.interaction-card__options label[data-v-66a47616]{border:1px solid var(--line);background:var(--surface);box-sizing:border-box;min-width:0;min-height:54px;color:var(--text-secondary);cursor:pointer;border-radius:11px;grid-template-columns:18px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:8px 11px;transition:border-color .14s,background-color .14s,box-shadow .14s;display:grid}.interaction-card__options label[data-v-66a47616]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.interaction-card__options label.selected[data-v-66a47616]{border-color:var(--workflow-accent);background:color-mix(in srgb, var(--workflow-accent) 6%, var(--surface));box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 10%, transparent);color:var(--text-primary)}.interaction-card__options input[data-v-66a47616]{width:17px;height:17px;accent-color:var(--workflow-accent);cursor:pointer;margin:0}.interaction-card__options span[data-v-66a47616]{overflow-wrap:anywhere;min-width:0;font-size:13px;font-weight:560;line-height:1.45}.interaction-card__options .app-icon[data-v-66a47616]{color:var(--workflow-accent)}.interaction-card__custom[data-v-66a47616]{gap:6px;display:grid}.interaction-card__custom>label[data-v-66a47616]{color:var(--text-secondary);font-size:11px;font-weight:560}.interaction-card__custom-row[data-v-66a47616]{align-items:stretch;gap:8px;display:flex}.interaction-card__custom textarea[data-v-66a47616]{border:1px solid var(--line);background:var(--surface-soft);box-sizing:border-box;width:100%;min-height:58px;color:var(--text-primary);font:13px/1.55 var(--font-ui);resize:vertical;border-radius:11px;outline:0;padding:9px 11px}.interaction-card__custom textarea[data-v-66a47616]::placeholder{color:var(--input-placeholder-color)}.interaction-card__custom textarea[data-v-66a47616]:focus{border-color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.interaction-card__hint[data-v-66a47616]{color:var(--text-muted);margin-top:-2px;font-size:10px;line-height:1.4}.interaction-card[data-v-66a47616] :is(button,input,textarea,summary):focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}@media (width<=768px){.interaction-card[data-v-66a47616]{z-index:5;width:100%;padding:24px 14px max(16px, env(safe-area-inset-bottom));box-shadow:0 -10px 34px color-mix(in srgb, var(--text-primary) 14%, transparent);border-radius:22px 22px 15px 15px;margin:22px auto 0;position:sticky;bottom:8px}.interaction-card__handle[data-v-66a47616]{background:var(--line-strong);border-radius:999px;width:38px;height:4px;display:block;position:absolute;top:8px;left:50%;transform:translate(-50%)}.interaction-card__heading[data-v-66a47616]{gap:10px}.interaction-card__icon[data-v-66a47616]{flex-basis:36px;width:36px;height:36px}.interaction-card__heading strong[data-v-66a47616]{font-size:15px}.interaction-card__prompt[data-v-66a47616],.interaction-card__details[data-v-66a47616]{margin-left:46px}.interaction-card__answer[data-v-66a47616]{gap:11px;margin-top:14px}.interaction-card__options[data-v-66a47616]{grid-template-columns:1fr}.interaction-card__options label[data-v-66a47616]{min-height:52px;padding-block:10px}.interaction-card__custom-row[data-v-66a47616]{flex-direction:column;align-items:stretch;gap:10px}.interaction-card__custom textarea[data-v-66a47616]{min-height:58px}.interaction-card__hint[data-v-66a47616]{display:none}.interaction-card .solid-button[data-v-66a47616]{width:100%;min-height:50px}.interaction-card__actions>button[data-v-66a47616]{flex:1;min-height:48px}}@media (prefers-reduced-motion:reduce){.interaction-card__options label[data-v-66a47616]{transition:none}}.tool-trace[data-v-2d9f52c4]{color:var(--text-muted);margin:7px 0}.tool-trace>button[data-v-2d9f52c4]{min-height:22px;color:inherit;cursor:pointer;font:10px/1.5 var(--font-code);text-align:left;background:0 0;border:0;align-items:center;gap:7px;padding:0;display:inline-flex}.tool-trace>button[data-v-2d9f52c4]:hover{color:var(--text-secondary)}.tool-trace>button strong[data-v-2d9f52c4]{font:inherit;letter-spacing:.01em;font-weight:400}.tool-trace>button small[data-v-2d9f52c4]{color:var(--danger);font:inherit}.tool-trace__caret[data-v-2d9f52c4]{width:9px;color:var(--text-muted);font-size:13px;line-height:1;transition:transform .12s;display:inline-block}.tool-trace__caret.open[data-v-2d9f52c4]{transform:rotate(90deg)}.tool-trace__details[data-v-2d9f52c4]{border-left:1px dashed var(--line-strong);margin:4px 0 4px 16px}.tool-trace__details section+section[data-v-2d9f52c4]{margin-top:7px}.tool-trace__details small[data-v-2d9f52c4]{color:var(--text-muted);font:8px/1.4 var(--font-ui);letter-spacing:.05em;padding:0 9px 2px;display:block}.tool-trace__details pre[data-v-2d9f52c4]{max-width:min(680px,100%);max-height:260px;color:var(--text-secondary);font:10px/1.55 var(--font-code);white-space:pre-wrap;overflow-wrap:anywhere;background:0 0;margin:0;padding:4px 9px 7px;overflow:auto}.tool-trace--error[data-v-2d9f52c4]{color:var(--danger)}.turn-trace[data-v-ba03de2b]{margin:2px 0 9px}.turn-trace__summary[data-v-ba03de2b]{color:var(--text-secondary);margin:0 0 8px;font-size:12px}.turn-trace__content[data-v-ba03de2b]{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:min(420px,52vh);margin:1px 0 6px;padding:2px 8px 4px 0;display:grid;overflow-y:auto}.turn-trace__item[data-v-ba03de2b]{min-width:0}.turn-trace__reasoning[data-v-ba03de2b]{max-width:620px;color:var(--text-secondary);padding:7px 0 5px}.turn-trace__reasoning header[data-v-ba03de2b]{min-height:22px;color:var(--text-muted);align-items:center;gap:5px;margin-bottom:6px;font-size:9px;display:flex}.turn-trace__reasoning[data-v-ba03de2b] .markdown{font-size:11px;line-height:1.58}.turn-trace[data-v-ba03de2b] .turn-trace__tool{margin:0;padding:5px 0}.turn-trace[data-v-ba03de2b] .turn-trace__tool .tool-trace__details{border-left:0;margin-left:0}.turn-trace[data-v-ba03de2b] .turn-trace__tool .tool-trace__details pre{max-height:none;overflow:visible}@media (prefers-reduced-motion:reduce){.turn-trace[data-v-ba03de2b],.turn-trace>summary[data-v-ba03de2b],.turn-trace__caret[data-v-ba03de2b]{transition:none}}.floating-resource-search__backdrop[data-v-171c037c]{z-index:70;background:color-mix(in srgb, var(--text-primary) 20%, transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);place-items:start center;padding:min(18vh,150px) 20px 20px;display:grid;position:fixed;inset:0}.floating-resource-search[data-v-171c037c]{border:1px solid var(--line);background:var(--surface);width:min(100%,580px);box-shadow:0 20px 60px color-mix(in srgb, var(--text-primary) 22%, transparent);border-radius:14px;overflow:hidden}.floating-resource-search--split[data-v-171c037c]{width:min(100%,720px)}.floating-resource-search header[data-v-171c037c]{border-bottom:1px solid var(--line);align-items:center;gap:7px;padding:10px;display:flex}.floating-resource-search label[data-v-171c037c]{border:1px solid var(--line);min-width:0;min-height:37px;color:var(--text-muted);background:var(--surface-soft);border-radius:9px;flex:1;align-items:center;gap:9px;padding:0 10px;display:flex}.floating-resource-search label[data-v-171c037c]:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 3px var(--focus-ring)}.floating-resource-search input[data-v-171c037c]{min-width:0;color:var(--text-primary);font:13px var(--font-ui);background:0 0;border:0;outline:0;flex:1}.floating-resource-search header button[data-v-171c037c]{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:0 0 34px;place-items:center;padding:0;display:grid}.floating-resource-search header button[data-v-171c037c]:hover,.floating-resource-search__results button[data-v-171c037c]:hover{background:var(--surface-hover);color:var(--text-primary)}.floating-resource-search__back[data-v-171c037c]{margin-right:-2px}.floating-resource-search__body--split[data-v-171c037c]{grid-template-columns:184px minmax(0,1fr);min-height:min(430px,55vh);display:grid}.floating-resource-search__navigation[data-v-171c037c]{border-right:1px solid var(--line);min-width:0;padding:7px;overflow-y:auto}.floating-resource-search__navigation-heading[data-v-171c037c]{color:var(--text-muted);padding:9px 9px 5px;font-size:10px;font-weight:650}.floating-resource-search__navigation button[data-v-171c037c]{width:100%;min-height:38px;color:var(--text-secondary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:5px 9px;display:flex}.floating-resource-search__navigation button[data-v-171c037c]:hover,.floating-resource-search__navigation button.active[data-v-171c037c]{background:var(--surface-hover);color:var(--text-primary)}.floating-resource-search__navigation button.active[data-v-171c037c]{font-weight:650}.floating-resource-search__navigation button span[data-v-171c037c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.floating-resource-search__result-pane[data-v-171c037c]{min-width:0;overflow:hidden}.floating-resource-search__context[data-v-171c037c]{align-items:baseline;gap:8px;padding:11px 16px 3px;display:flex}.floating-resource-search__context strong[data-v-171c037c]{font-size:12px}.floating-resource-search__context span[data-v-171c037c]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.floating-resource-search__results[data-v-171c037c]{max-height:min(480px,50vh);padding:7px;overflow:auto}.floating-resource-search__body--split .floating-resource-search__results[data-v-171c037c]{max-height:min(392px,50vh)}.floating-resource-search__section[data-v-171c037c]{color:var(--text-muted);padding:9px 9px 4px;font-size:10px;font-weight:650}.floating-resource-search__results button[data-v-171c037c]{width:100%;min-height:48px;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;padding:7px 9px;display:flex}.floating-resource-search__icon[data-v-171c037c]{background:var(--surface-soft);width:30px;height:30px;color:var(--text-muted);border-radius:8px;flex:0 0 30px;place-items:center;display:grid}.floating-resource-search__copy[data-v-171c037c]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.floating-resource-search__copy strong[data-v-171c037c],.floating-resource-search__copy small[data-v-171c037c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.floating-resource-search__copy strong[data-v-171c037c]{font-size:12px}.floating-resource-search__copy small[data-v-171c037c],.floating-resource-search__results>button>small[data-v-171c037c]{color:var(--text-muted);font-size:10px}.floating-resource-search__results>p[data-v-171c037c]{color:var(--text-muted);text-align:center;margin:0;padding:28px 12px;font-size:12px}@media (width<=600px){.floating-resource-search__backdrop[data-v-171c037c]{place-items:end center;padding:0}.floating-resource-search[data-v-171c037c],.floating-resource-search--split[data-v-171c037c]{border-radius:18px 18px 0 0;width:100%}.floating-resource-search header[data-v-171c037c]{padding:12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left))}.floating-resource-search label[data-v-171c037c]{min-height:42px}.floating-resource-search__body--split[data-v-171c037c]{grid-template-columns:128px minmax(0,1fr);min-height:min(520px,65vh)}.floating-resource-search__navigation[data-v-171c037c]{padding-bottom:max(7px, env(safe-area-inset-bottom))}.floating-resource-search__results[data-v-171c037c]{max-height:min(520px,65vh);padding-bottom:max(7px, env(safe-area-inset-bottom))}}.floating-resource-search__icon--avatar[data-v-171c037c]{background:0 0}.floating-resource-search__tabs[data-v-171c037c]{border-bottom:1px solid var(--line);justify-content:center;gap:6px;padding:10px;display:flex}.floating-resource-search__tabs button[data-v-171c037c]{min-height:34px;color:var(--text-secondary);font:13px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:9px;padding:6px 18px;display:flex}.floating-resource-search__tabs button[aria-selected=true][data-v-171c037c]{background:var(--surface-hover);color:var(--text-primary);font-weight:650}.floating-resource-search__tabs small[data-v-171c037c]{color:var(--text-muted);font-size:11px}.floating-resource-search__row[data-v-171c037c]{align-items:center;gap:8px;display:flex}.floating-resource-search__row .floating-resource-search__select[data-v-171c037c]{flex:1;min-width:0}.floating-resource-search__select>small[data-v-171c037c]{color:var(--text-muted);flex-shrink:0;font-size:10px}.floating-resource-search__select[data-v-171c037c]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
|
|
1
|
+
.composer-area[data-v-41dd5183]{z-index:12;padding:12px max(24px, calc((100% - 760px) / 2)) max(18px, env(safe-area-inset-bottom));background:var(--conversation-canvas);flex:none;position:relative}.composer-activity-slot[data-v-41dd5183]{align-items:center;gap:8px;width:100%;max-width:760px;height:20px;margin:0 auto 3px;display:flex}.composer-activity[data-v-41dd5183]{min-width:0;color:var(--text-muted);align-items:center;gap:7px;font-size:10px;display:inline-flex}.composer-activity strong[data-v-41dd5183]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-weight:560;overflow:hidden}.composer-typing-dots[data-v-41dd5183]{align-items:center;gap:2px;display:inline-flex}.composer-typing-dots i[data-v-41dd5183]{background:currentColor;border-radius:50%;width:3px;height:3px;animation:1.05s ease-in-out infinite composer-typing-41dd5183}.composer-typing-dots i[data-v-41dd5183]:nth-child(2){animation-delay:.14s}.composer-typing-dots i[data-v-41dd5183]:nth-child(3){animation-delay:.28s}@keyframes composer-typing-41dd5183{0%,65%,to{opacity:.3;transform:translateY(0)}32%{opacity:1;transform:translateY(-2px)}}.composer-activity-enter-active[data-v-41dd5183],.composer-activity-leave-active[data-v-41dd5183]{transition:opacity .12s ease, transform .12s var(--ease-out)}.composer-activity-enter-from[data-v-41dd5183],.composer-activity-leave-to[data-v-41dd5183]{opacity:0;transform:translateY(3px)}.composer-shell[data-v-41dd5183]{border:1px solid var(--input-border-color);background:var(--chat-composer-bg);cursor:text;border-radius:18px;flex-direction:column;align-items:stretch;gap:8px;width:100%;max-width:760px;min-height:72px;margin-inline:auto;padding:13px 14px 9px;transition:border-color .14s,box-shadow .15s,background-color .14s;display:flex;position:relative;box-shadow:0 8px 24px #2924270f}.dark .composer-shell[data-v-41dd5183]{box-shadow:0 8px 28px #00000052}.composer-shell[data-v-41dd5183]:hover:not(:focus-within){border-color:var(--input-border-hover-color)}.composer-shell[data-v-41dd5183]:focus-within{border-color:var(--input-border-focus-color);box-shadow:0 10px 32px #0000001c}.dark .composer-shell[data-v-41dd5183]:focus-within{box-shadow:0 12px 34px #0006}.composer-shell--drag[data-v-41dd5183]{background:color-mix(in srgb, var(--chat-composer-bg) 90%, var(--text-primary));border-color:var(--text-primary)!important}.composer-shell--disabled[data-v-41dd5183]{opacity:.68}.composer-file-input[data-v-41dd5183]{display:none}.composer-resize[data-v-41dd5183]{z-index:4;cursor:row-resize;touch-action:none;border-radius:999px;height:10px;position:absolute;top:-5px;left:9px;right:9px}.composer-resize[data-v-41dd5183]:hover:after{content:"";background:var(--line-strong);border-radius:2px;height:2px;position:absolute;top:4px;left:38%;right:38%}.composer-textarea[data-v-41dd5183]{resize:none;width:100%;min-height:30px;max-height:400px;color:var(--text-primary);font-family:var(--font-ui);background:0 0;border:0;outline:0;flex:auto;padding:0;font-size:14px;line-height:1.5;display:block;overflow-y:auto}.composer-textarea[data-v-41dd5183]::placeholder{color:var(--input-placeholder-color);opacity:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-textarea[data-v-41dd5183]:disabled{cursor:not-allowed}.composer-context[data-v-41dd5183]{z-index:1;max-width:calc(100% - 28px);color:var(--text-muted);pointer-events:none;align-items:center;gap:6px;font-size:10px;display:flex;position:absolute;top:8px;right:14px}.composer-context span[data-v-41dd5183]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-context.warning[data-v-41dd5183]{color:var(--warning)}.composer-context i[data-v-41dd5183]{background:var(--surface-hover);border-radius:3px;flex:0 0 60px;width:60px;height:4px;display:block;overflow:hidden}.composer-context b[data-v-41dd5183]{border-radius:inherit;background:currentColor;height:100%;transition:width .22s;display:block}.composer-context+.composer-textarea[data-v-41dd5183]{padding-top:9px}.composer-toolbar[data-v-41dd5183]{justify-content:space-between;align-items:center;gap:12px;min-height:32px;margin-top:auto;display:flex}.composer-tools[data-v-41dd5183],.composer-actions[data-v-41dd5183]{align-items:center;gap:5px;min-width:0;display:flex}.composer-tools[data-v-41dd5183]{flex:1}.composer-actions[data-v-41dd5183]{flex:none;gap:7px}.composer-popover-anchor[data-v-41dd5183]{flex:none;display:flex;position:relative}.composer-action-icon[data-v-41dd5183]{flex:none;width:20px;height:20px;display:block}.composer-tool.composer-add[data-v-41dd5183]{background:var(--surface-soft);width:36px;height:36px;color:var(--text-primary);padding:0}.composer-popover.composer-add-menu[data-v-41dd5183]{cursor:default;width:min(280px,100vw - 64px);padding:8px}.composer-add-menu button[data-v-41dd5183]{width:100%;min-height:44px;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;padding:9px 12px;font-size:14px;display:flex}.composer-add-menu button[data-v-41dd5183]:hover:not(:disabled){background:var(--surface-hover)}.composer-add-menu button[data-v-41dd5183]:disabled{opacity:.5;cursor:not-allowed}.composer-add-menu button>span[data-v-41dd5183]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.composer-add-menu strong[data-v-41dd5183]{font-weight:500}.composer-add-menu small[data-v-41dd5183]{color:var(--text-secondary);font-size:12px;line-height:1.4}.composer-add-menu__divider[data-v-41dd5183]{background:var(--line);height:1px;margin:6px 12px}.composer-delivery-chip[data-v-41dd5183]{--goal-color:var(--delivery-accent);background:color-mix(in srgb, var(--goal-color) 12%, transparent);min-height:36px;color:var(--goal-color);font:inherit;white-space:nowrap;cursor:pointer;border:0;border-radius:999px;flex:none;align-items:center;gap:7px;padding:0 11px;font-size:13px;display:inline-flex}.composer-delivery-chip[data-v-41dd5183]:hover:not(:disabled){background:color-mix(in srgb, var(--goal-color) 18%, transparent)}.composer-delivery-chip[data-v-41dd5183]:disabled{opacity:.5;cursor:not-allowed}.composer-add[data-v-41dd5183]:focus-visible,.composer-add-menu button[data-v-41dd5183]:focus-visible,.composer-delivery-chip[data-v-41dd5183]:focus-visible,.composer-mention-hint[data-v-41dd5183]:focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}.composer-tool[data-v-41dd5183]{min-width:28px;max-width:175px;height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;gap:4px;padding:0 6px;font-size:11px;display:inline-flex}.composer-tool[data-v-41dd5183]:hover,.composer-tool.active[data-v-41dd5183]{background:var(--surface-hover);color:var(--text-primary)}.composer-tool[data-v-41dd5183]:disabled{cursor:not-allowed;opacity:.36}.composer-tool span[data-v-41dd5183]{text-overflow:ellipsis;min-width:0;overflow:hidden}.composer-tool--icon[data-v-41dd5183]{width:28px;padding:0}.composer-tool--model[data-v-41dd5183]{min-width:0}.composer-fast-mode.active[data-v-41dd5183]{color:#1677ff;background:#1677ff1f}.composer-fast-mode.active[data-v-41dd5183]:hover{color:#1677ff;background:#1677ff2e}.dark .composer-fast-mode.active[data-v-41dd5183]{color:#4c9aff}.composer-mention-hint[data-v-41dd5183]{color:var(--text-muted);align-items:center;gap:4px;font-size:11px;display:inline-flex}.composer-mention-hint b[data-v-41dd5183]{background:var(--surface-soft);width:21px;height:21px;color:var(--text-secondary);border-radius:7px;place-items:center;font-size:12px;display:grid}.composer-popover[data-v-41dd5183]{z-index:30;border:1px solid var(--line);background:var(--surface-raised);width:min(320px,100vw - 48px);box-shadow:var(--shadow-float);border-radius:13px;padding:12px;position:absolute;bottom:calc(100% + 10px);left:0}.composer-popover--reasoning[data-v-41dd5183]{--reasoning-accent:#e8a735}.composer-popover__heading[data-v-41dd5183],.composer-popover__range[data-v-41dd5183]{justify-content:space-between;align-items:center;gap:16px;display:flex}.composer-popover__heading[data-v-41dd5183]{color:var(--text-secondary);margin-bottom:12px;font-size:12px}.composer-popover__heading strong[data-v-41dd5183]{color:var(--reasoning-accent);font-weight:650}.composer-popover__range[data-v-41dd5183]{color:var(--text-muted);margin-top:8px;font-size:9px}.reasoning-slider[data-v-41dd5183]{appearance:none;cursor:pointer;background:linear-gradient(90deg,#38bdf8 0%,#22d3ee 20%,#34d399 40%,#facc15 62%,#fb923c 82%,#ef4444 100%);border-radius:99px;width:100%;height:10px;margin:0;display:block}.reasoning-slider[data-v-41dd5183]::-webkit-slider-thumb{appearance:none;background:#f8fafc;border:2px solid #fff;border-radius:50%;width:22px;height:22px;box-shadow:0 2px 8px #18122c47}.reasoning-slider[data-v-41dd5183]::-moz-range-thumb{background:#f8fafc;border:2px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 2px 8px #18122c47}.composer-popover--settings[data-v-41dd5183]{width:220px;padding:6px}.composer-setting-row[data-v-41dd5183]{width:100%;min-height:38px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:11px;display:flex}.composer-setting-row[data-v-41dd5183]:hover{background:var(--surface-hover);color:var(--text-primary)}.composer-setting-row>span[data-v-41dd5183]{align-items:center;gap:7px;display:inline-flex}.queue-toggle[data-v-41dd5183]{height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 7px;font-size:10px}.composer-queue-slot[data-v-41dd5183]{place-items:center;width:48px;height:34px;display:grid}.queue-toggle[data-v-41dd5183]:hover,.queue-toggle.active[data-v-41dd5183]{background:var(--surface-hover);color:var(--text-primary)}.composer-send-hitbox[data-v-41dd5183]{place-items:center;width:34px;height:34px;display:grid}.composer-stop-hitbox[data-v-41dd5183]{place-items:center;width:30px;height:34px;display:grid}.composer-send[data-v-41dd5183]{background:var(--accent);width:34px;min-width:34px;height:34px;color:var(--text-on-solid);cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;transition:transform .15s,box-shadow .15s;display:grid;box-shadow:0 4px 12px #2924272e}.composer-send[data-v-41dd5183]:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 7px 16px #29242738}.composer-send[data-v-41dd5183]:disabled{cursor:not-allowed;color:#fff;background:#9f9f9f}.composer-send--stop[data-v-41dd5183]{background:var(--accent)}.composer-stop[data-v-41dd5183]{border:1px solid var(--line);background:var(--surface-raised);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:color .15s,border-color .15s;display:grid}.composer-stop[data-v-41dd5183]:hover{color:var(--danger);border-color:var(--danger)}.composer-sending[data-v-41dd5183]{color:var(--text-muted);white-space:nowrap;flex-shrink:0;align-items:center;gap:5px;margin-left:auto;font-size:9px;display:inline-flex}.composer-sending i[data-v-41dd5183]{background:var(--warning);border-radius:50%;width:5px;height:5px;animation:1s ease-in-out infinite composer-pulse-41dd5183}@keyframes composer-pulse-41dd5183{50%{opacity:.25;transform:scale(.7)}}.composer-attachments[data-v-41dd5183]{flex-wrap:wrap;gap:8px;width:100%;min-width:0;display:flex}.composer-context+.composer-attachments[data-v-41dd5183]{padding-top:16px}.composer-attachment[data-v-41dd5183]{border:1px solid var(--line);background:var(--surface-raised);max-width:min(210px,100%);min-height:48px;color:var(--text-secondary);border-radius:10px;align-items:center;gap:8px;padding:6px 28px 6px 9px;display:flex;position:relative;overflow:hidden}.composer-attachment.image[data-v-41dd5183]{width:64px;height:64px;padding:0}.composer-attachment img[data-v-41dd5183]{object-fit:cover;width:100%;height:100%}.composer-attachment>span[data-v-41dd5183]{flex-direction:column;min-width:0;display:flex}.composer-attachment strong[data-v-41dd5183],.composer-attachment small[data-v-41dd5183]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-attachment strong[data-v-41dd5183]{color:var(--text-primary);font-size:10px;font-weight:560}.composer-attachment small[data-v-41dd5183]{color:var(--text-muted);margin-top:3px;font-size:9px}.composer-attachment>button[data-v-41dd5183]{color:#fff;cursor:pointer;background:#00000085;border:0;border-radius:50%;place-items:center;width:20px;height:20px;padding:0;display:grid;position:absolute;top:4px;right:4px}.composer-reference[data-v-41dd5183]{border-left:2px solid var(--text-muted);background:var(--surface-soft);width:calc(100% - 16px);max-width:744px;min-height:36px;color:var(--text-muted);border-radius:7px;align-items:center;gap:9px;margin:0 auto 8px;padding:5px 7px 5px 10px;display:flex}.composer-reference>span[data-v-41dd5183]{flex-direction:column;flex:1;min-width:0;display:flex}.composer-reference small[data-v-41dd5183]{font-size:9px}.composer-reference strong[data-v-41dd5183]{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500;overflow:hidden}.composer-reference button[data-v-41dd5183]{width:26px;height:26px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;padding:0;display:grid}.composer-reference button[data-v-41dd5183]:hover{background:var(--surface-hover);color:var(--text-primary)}.composer-menu[data-v-41dd5183]{z-index:20;border:1px solid var(--line);background:var(--surface-raised);max-height:280px;box-shadow:var(--shadow-float);border-radius:12px;padding:5px;position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;overflow-y:auto}.composer-menu__label[data-v-41dd5183]{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;padding:5px 8px 7px;font-size:9px;font-weight:650}.composer-menu button[data-v-41dd5183]{width:100%;min-height:42px;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:9px;padding:5px 8px;display:flex}.composer-menu button.active[data-v-41dd5183],.composer-menu button[data-v-41dd5183]:hover{background:var(--surface-hover)}.composer-menu button[data-v-41dd5183]:disabled{cursor:not-allowed;opacity:.48}.composer-menu__avatar[data-v-41dd5183]{width:28px;height:28px;color:var(--text-secondary);background:0 0;border-radius:8px;place-items:center;font-size:11px;display:grid}.composer-menu button>span[data-v-41dd5183]:nth-child(2){flex-direction:column;flex:1;min-width:0;display:flex}.composer-menu strong[data-v-41dd5183]{font-size:11px}.composer-menu small[data-v-41dd5183]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.composer-menu em[data-v-41dd5183]{color:var(--text-muted);font-size:9px;font-style:normal}.composer-drop-hint[data-v-41dd5183]{z-index:25;border:1px dashed var(--line-strong);background:color-mix(in srgb, var(--chat-composer-bg) 90%, transparent);color:var(--text-secondary);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);pointer-events:none;border-radius:13px;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex;position:absolute;inset:6px}.composer-error[data-v-41dd5183]{background:var(--danger);color:#fff;max-width:min(420px,100% - 32px);box-shadow:var(--shadow-float);border-radius:8px;margin:0;padding:7px 10px;font-size:10px;position:absolute;bottom:calc(100% - 8px);right:max(24px,50% - 380px)}.composer-menu-enter-active[data-v-41dd5183],.composer-menu-leave-active[data-v-41dd5183]{transition:opacity .12s ease, transform .12s var(--ease-out)}.composer-menu-enter-from[data-v-41dd5183],.composer-menu-leave-to[data-v-41dd5183]{opacity:0;transform:translateY(4px)}@media (width<=768px){.composer-area[data-v-41dd5183]{padding:8px 12px max(12px, env(safe-area-inset-bottom))}.composer-shell[data-v-41dd5183]{min-height:118px}.composer-textarea[data-v-41dd5183]{font-size:16px}.composer-textarea[data-v-41dd5183]::placeholder{font-size:13px;line-height:1.35}.composer-tool span[data-v-41dd5183],.composer-tool[data-v-41dd5183]>svg:last-child,.composer-mention-hint span[data-v-41dd5183]{display:none}.composer-tool[data-v-41dd5183]{width:30px;min-width:30px;padding:0}.composer-tools[data-v-41dd5183]{gap:3px}.composer-mention-hint[data-v-41dd5183]{display:none}.composer-tool.composer-add[data-v-41dd5183]{width:44px;height:44px}.composer-add[data-v-41dd5183]>svg:last-child{display:block}.composer-delivery-chip[data-v-41dd5183]{min-height:44px;padding-inline:10px}.composer-toolbar[data-v-41dd5183]{align-items:flex-end;gap:7px}.composer-send-hitbox[data-v-41dd5183]{width:44px;height:44px;margin:-5px}.composer-send[data-v-41dd5183]{width:34px;min-width:34px;height:34px}.composer-menu[data-v-41dd5183]{left:6px;right:6px}.composer-context[data-v-41dd5183]{font-size:8px}.composer-context i[data-v-41dd5183]{display:none}.composer-popover[data-v-41dd5183]{width:min(220px,100vw - 96px)}.composer-error[data-v-41dd5183]{right:12px}}@media (width<=360px){.queue-toggle[data-v-41dd5183]{display:none}.composer-toolbar[data-v-41dd5183]{gap:3px}}.system-message-notice[data-v-fd32abae]{width:100%;min-width:0;color:var(--text-muted);text-align:center;font-size:13px;line-height:1.6}.system-message-notice__label[data-v-fd32abae]{box-sizing:border-box;width:fit-content;max-width:100%;min-height:44px;color:inherit;font:inherit;overflow-wrap:anywhere;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;gap:6px;margin:0 auto;padding:8px 4px;font-weight:400;text-decoration:none;list-style:none;display:flex}.system-message-notice__label[data-v-fd32abae] svg{flex-shrink:0}summary[data-v-fd32abae],a[data-v-fd32abae]{cursor:pointer}summary[data-v-fd32abae]::-webkit-details-marker{display:none}summary[data-v-fd32abae]:hover,a[data-v-fd32abae]:hover{color:var(--text-secondary)}summary[data-v-fd32abae]:focus-visible,a[data-v-fd32abae]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.system-message-notice__details[data-v-fd32abae]{box-sizing:border-box;border:1px solid var(--line);width:min(640px,100%);max-height:360px;color:var(--text-secondary);background:var(--surface);text-align:left;overflow-wrap:anywhere;border-radius:8px;margin:4px auto 12px;padding:12px 16px;overflow:auto}.system-message-notice__details[data-v-fd32abae] .markdown{text-align:left;font-size:13px}.failure-notice[data-v-739155c5]{margin-top:6px}p[data-v-739155c5]{margin:0 0 8px}pre[data-v-739155c5]{border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;font:12px/1.6 var(--font-code);margin:0;padding-top:10px;overflow:auto}.thinking-indicator[data-v-c9d2172f]{min-height:34px;color:var(--text-muted);align-items:center;column-gap:8px;margin:5px 0 20px;display:flex}.thinking-indicator__dots[data-v-c9d2172f]{align-items:center;gap:4px;height:16px;display:inline-flex}.thinking-indicator__dot[data-v-c9d2172f]{background:color-mix(in srgb, var(--accent) 90%, transparent);width:6px;height:6px;animation:.9s ease-in-out infinite thinking-dot-bounce-c9d2172f;animation-delay:calc(var(--dot-index) * .15s);border-radius:50%}@keyframes thinking-dot-bounce-c9d2172f{0%,55%,to{transform:translateY(0)}28%{transform:translateY(-5px)}}@media (prefers-reduced-motion:reduce){.thinking-indicator__dot[data-v-c9d2172f]{animation:none;transform:none}}.interaction-card[data-v-66a47616]{border:1px solid var(--line);background:var(--surface-raised);width:min(640px,100%);box-shadow:0 10px 34px color-mix(in srgb, var(--text-primary) 8%, transparent);box-sizing:border-box;border-radius:16px;margin:20px auto 4px;padding:16px;position:relative}.interaction-card__handle[data-v-66a47616]{display:none}.interaction-card__heading[data-v-66a47616]{align-items:flex-start;gap:12px;display:flex}.interaction-card__icon[data-v-66a47616]{background:color-mix(in srgb, var(--workflow-accent) 10%, var(--surface-soft));width:38px;height:38px;color:var(--workflow-accent);border-radius:11px;flex:0 0 38px;place-items:center;display:grid}.interaction-card__heading>div[data-v-66a47616]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.interaction-card__heading small[data-v-66a47616]{color:var(--text-muted);letter-spacing:.06em;font-size:10px;font-weight:650}.interaction-card__heading strong[data-v-66a47616]{color:var(--text-primary);font-size:15px;font-weight:650;line-height:1.5}.interaction-card__prompt[data-v-66a47616]{color:var(--text-secondary);margin:10px 0 0 50px;font-size:13px;line-height:1.6}.interaction-card__details[data-v-66a47616]{color:var(--text-muted);margin:10px 0 0 50px;font-size:11px}.interaction-card__details summary[data-v-66a47616]{cursor:pointer;align-items:center;gap:5px;min-height:32px;list-style:none;display:inline-flex}.interaction-card__details summary[data-v-66a47616]::-webkit-details-marker{display:none}.interaction-card__details[open] summary .app-icon[data-v-66a47616]{transform:rotate(180deg)}.interaction-card__details pre[data-v-66a47616]{max-height:180px;font:10px/1.55 var(--font-code);white-space:pre-wrap;overflow:auto}.interaction-card__actions[data-v-66a47616]{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.interaction-card button[data-v-66a47616]{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text-primary);cursor:pointer;font:13px var(--font-ui);border-radius:10px;padding:9px 15px}.interaction-card button[data-v-66a47616]:hover:not(:disabled){background:var(--surface-hover)}.interaction-card button[data-v-66a47616]:disabled{cursor:default;opacity:.5}.interaction-card .solid-button[data-v-66a47616]{border-color:var(--workflow-accent);background:var(--workflow-accent);min-width:112px;color:var(--workflow-on-accent);justify-content:center;align-items:center;gap:7px;font-weight:620;display:inline-flex}.interaction-card .solid-button[data-v-66a47616]:hover:not(:disabled){background:color-mix(in srgb, var(--workflow-accent) 88%, var(--text-primary))}.interaction-card__answer[data-v-66a47616]{gap:10px;margin-top:13px;display:grid}.interaction-card__options[data-v-66a47616]{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0;margin:0;padding:0;display:grid}.interaction-card__options legend[data-v-66a47616]{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.interaction-card__options label[data-v-66a47616]{border:1px solid var(--line);background:var(--surface);box-sizing:border-box;min-width:0;min-height:54px;color:var(--text-secondary);cursor:pointer;border-radius:11px;grid-template-columns:18px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:8px 11px;transition:border-color .14s,background-color .14s,box-shadow .14s;display:grid}.interaction-card__options label[data-v-66a47616]:hover{border-color:var(--line-strong);background:var(--surface-hover)}.interaction-card__options label.selected[data-v-66a47616]{border-color:var(--workflow-accent);background:color-mix(in srgb, var(--workflow-accent) 6%, var(--surface));box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 10%, transparent);color:var(--text-primary)}.interaction-card__options input[data-v-66a47616]{width:17px;height:17px;accent-color:var(--workflow-accent);cursor:pointer;margin:0}.interaction-card__options span[data-v-66a47616]{overflow-wrap:anywhere;min-width:0;font-size:13px;font-weight:560;line-height:1.45}.interaction-card__options .app-icon[data-v-66a47616]{color:var(--workflow-accent)}.interaction-card__custom[data-v-66a47616]{gap:6px;display:grid}.interaction-card__custom>label[data-v-66a47616]{color:var(--text-secondary);font-size:11px;font-weight:560}.interaction-card__custom-row[data-v-66a47616]{align-items:stretch;gap:8px;display:flex}.interaction-card__custom textarea[data-v-66a47616]{border:1px solid var(--line);background:var(--surface-soft);box-sizing:border-box;width:100%;min-height:58px;color:var(--text-primary);font:13px/1.55 var(--font-ui);resize:vertical;border-radius:11px;outline:0;padding:9px 11px}.interaction-card__custom textarea[data-v-66a47616]::placeholder{color:var(--input-placeholder-color)}.interaction-card__custom textarea[data-v-66a47616]:focus{border-color:var(--workflow-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--workflow-accent) 14%, transparent)}.interaction-card__hint[data-v-66a47616]{color:var(--text-muted);margin-top:-2px;font-size:10px;line-height:1.4}.interaction-card[data-v-66a47616] :is(button,input,textarea,summary):focus-visible{outline:2px solid var(--workflow-accent);outline-offset:2px}@media (width<=768px){.interaction-card[data-v-66a47616]{z-index:5;width:100%;padding:24px 14px max(16px, env(safe-area-inset-bottom));box-shadow:0 -10px 34px color-mix(in srgb, var(--text-primary) 14%, transparent);border-radius:22px 22px 15px 15px;margin:22px auto 0;position:sticky;bottom:8px}.interaction-card__handle[data-v-66a47616]{background:var(--line-strong);border-radius:999px;width:38px;height:4px;display:block;position:absolute;top:8px;left:50%;transform:translate(-50%)}.interaction-card__heading[data-v-66a47616]{gap:10px}.interaction-card__icon[data-v-66a47616]{flex-basis:36px;width:36px;height:36px}.interaction-card__heading strong[data-v-66a47616]{font-size:15px}.interaction-card__prompt[data-v-66a47616],.interaction-card__details[data-v-66a47616]{margin-left:46px}.interaction-card__answer[data-v-66a47616]{gap:11px;margin-top:14px}.interaction-card__options[data-v-66a47616]{grid-template-columns:1fr}.interaction-card__options label[data-v-66a47616]{min-height:52px;padding-block:10px}.interaction-card__custom-row[data-v-66a47616]{flex-direction:column;align-items:stretch;gap:10px}.interaction-card__custom textarea[data-v-66a47616]{min-height:58px}.interaction-card__hint[data-v-66a47616]{display:none}.interaction-card .solid-button[data-v-66a47616]{width:100%;min-height:50px}.interaction-card__actions>button[data-v-66a47616]{flex:1;min-height:48px}}@media (prefers-reduced-motion:reduce){.interaction-card__options label[data-v-66a47616]{transition:none}}.tool-trace[data-v-1d132b69]{color:var(--text-muted);margin:7px 0}.tool-trace>button[data-v-1d132b69]{min-height:22px;color:inherit;cursor:pointer;font:10px/1.5 var(--font-code);text-align:left;background:0 0;border:0;align-items:center;gap:7px;padding:0;display:inline-flex}.tool-trace>button[data-v-1d132b69]:hover{color:var(--text-secondary)}.tool-trace>button strong[data-v-1d132b69]{font:inherit;letter-spacing:.01em;font-weight:400}.tool-trace>button small[data-v-1d132b69]{color:var(--danger);font:inherit}.tool-trace__caret[data-v-1d132b69]{width:9px;color:var(--text-muted);font-size:13px;line-height:1;transition:transform .12s;display:inline-block}.tool-trace__caret.open[data-v-1d132b69]{transform:rotate(90deg)}.tool-trace__details[data-v-1d132b69]{border-left:1px dashed var(--line-strong);margin:4px 0 4px 16px}.tool-trace__details section+section[data-v-1d132b69]{margin-top:7px}.tool-trace__details small[data-v-1d132b69]{color:var(--text-muted);font:8px/1.4 var(--font-ui);letter-spacing:.05em;padding:0 9px 2px;display:block}.tool-trace__details pre[data-v-1d132b69]{max-width:min(680px,100%);max-height:260px;color:var(--text-secondary);font:10px/1.55 var(--font-code);white-space:pre-wrap;overflow-wrap:anywhere;background:0 0;margin:0;padding:4px 9px 7px;overflow:auto}.tool-trace--error[data-v-1d132b69]{color:var(--danger)}.turn-trace[data-v-cea5c2eb]{margin:2px 0 9px}.turn-trace__summary[data-v-cea5c2eb]{color:var(--text-secondary);margin:0 0 8px;font-size:12px}.turn-trace__content[data-v-cea5c2eb]{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:min(420px,52vh);margin:1px 0 6px;padding:2px 8px 4px 0;display:grid;overflow-y:auto}.turn-trace__item[data-v-cea5c2eb]{min-width:0}.turn-trace__reasoning[data-v-cea5c2eb]{max-width:620px;color:var(--text-secondary);padding:7px 0 5px}.turn-trace__reasoning header[data-v-cea5c2eb]{min-height:22px;color:var(--text-muted);align-items:center;gap:5px;margin-bottom:6px;font-size:9px;display:flex}.turn-trace__reasoning[data-v-cea5c2eb] .markdown{font-size:11px;line-height:1.58}.turn-trace[data-v-cea5c2eb] .turn-trace__tool{margin:0;padding:5px 0}.turn-trace[data-v-cea5c2eb] .turn-trace__tool .tool-trace__details{border-left:0;margin-left:0}.turn-trace[data-v-cea5c2eb] .turn-trace__tool .tool-trace__details pre{max-height:none;overflow:visible}@media (prefers-reduced-motion:reduce){.turn-trace[data-v-cea5c2eb],.turn-trace>summary[data-v-cea5c2eb],.turn-trace__caret[data-v-cea5c2eb]{transition:none}}.floating-resource-search__backdrop[data-v-171c037c]{z-index:70;background:color-mix(in srgb, var(--text-primary) 20%, transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);place-items:start center;padding:min(18vh,150px) 20px 20px;display:grid;position:fixed;inset:0}.floating-resource-search[data-v-171c037c]{border:1px solid var(--line);background:var(--surface);width:min(100%,580px);box-shadow:0 20px 60px color-mix(in srgb, var(--text-primary) 22%, transparent);border-radius:14px;overflow:hidden}.floating-resource-search--split[data-v-171c037c]{width:min(100%,720px)}.floating-resource-search header[data-v-171c037c]{border-bottom:1px solid var(--line);align-items:center;gap:7px;padding:10px;display:flex}.floating-resource-search label[data-v-171c037c]{border:1px solid var(--line);min-width:0;min-height:37px;color:var(--text-muted);background:var(--surface-soft);border-radius:9px;flex:1;align-items:center;gap:9px;padding:0 10px;display:flex}.floating-resource-search label[data-v-171c037c]:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 3px var(--focus-ring)}.floating-resource-search input[data-v-171c037c]{min-width:0;color:var(--text-primary);font:13px var(--font-ui);background:0 0;border:0;outline:0;flex:1}.floating-resource-search header button[data-v-171c037c]{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:0 0 34px;place-items:center;padding:0;display:grid}.floating-resource-search header button[data-v-171c037c]:hover,.floating-resource-search__results button[data-v-171c037c]:hover{background:var(--surface-hover);color:var(--text-primary)}.floating-resource-search__back[data-v-171c037c]{margin-right:-2px}.floating-resource-search__body--split[data-v-171c037c]{grid-template-columns:184px minmax(0,1fr);min-height:min(430px,55vh);display:grid}.floating-resource-search__navigation[data-v-171c037c]{border-right:1px solid var(--line);min-width:0;padding:7px;overflow-y:auto}.floating-resource-search__navigation-heading[data-v-171c037c]{color:var(--text-muted);padding:9px 9px 5px;font-size:10px;font-weight:650}.floating-resource-search__navigation button[data-v-171c037c]{width:100%;min-height:38px;color:var(--text-secondary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:5px 9px;display:flex}.floating-resource-search__navigation button[data-v-171c037c]:hover,.floating-resource-search__navigation button.active[data-v-171c037c]{background:var(--surface-hover);color:var(--text-primary)}.floating-resource-search__navigation button.active[data-v-171c037c]{font-weight:650}.floating-resource-search__navigation button span[data-v-171c037c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.floating-resource-search__result-pane[data-v-171c037c]{min-width:0;overflow:hidden}.floating-resource-search__context[data-v-171c037c]{align-items:baseline;gap:8px;padding:11px 16px 3px;display:flex}.floating-resource-search__context strong[data-v-171c037c]{font-size:12px}.floating-resource-search__context span[data-v-171c037c]{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.floating-resource-search__results[data-v-171c037c]{max-height:min(480px,50vh);padding:7px;overflow:auto}.floating-resource-search__body--split .floating-resource-search__results[data-v-171c037c]{max-height:min(392px,50vh)}.floating-resource-search__section[data-v-171c037c]{color:var(--text-muted);padding:9px 9px 4px;font-size:10px;font-weight:650}.floating-resource-search__results button[data-v-171c037c]{width:100%;min-height:48px;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:10px;padding:7px 9px;display:flex}.floating-resource-search__icon[data-v-171c037c]{background:var(--surface-soft);width:30px;height:30px;color:var(--text-muted);border-radius:8px;flex:0 0 30px;place-items:center;display:grid}.floating-resource-search__copy[data-v-171c037c]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.floating-resource-search__copy strong[data-v-171c037c],.floating-resource-search__copy small[data-v-171c037c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.floating-resource-search__copy strong[data-v-171c037c]{font-size:12px}.floating-resource-search__copy small[data-v-171c037c],.floating-resource-search__results>button>small[data-v-171c037c]{color:var(--text-muted);font-size:10px}.floating-resource-search__results>p[data-v-171c037c]{color:var(--text-muted);text-align:center;margin:0;padding:28px 12px;font-size:12px}@media (width<=600px){.floating-resource-search__backdrop[data-v-171c037c]{place-items:end center;padding:0}.floating-resource-search[data-v-171c037c],.floating-resource-search--split[data-v-171c037c]{border-radius:18px 18px 0 0;width:100%}.floating-resource-search header[data-v-171c037c]{padding:12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left))}.floating-resource-search label[data-v-171c037c]{min-height:42px}.floating-resource-search__body--split[data-v-171c037c]{grid-template-columns:128px minmax(0,1fr);min-height:min(520px,65vh)}.floating-resource-search__navigation[data-v-171c037c]{padding-bottom:max(7px, env(safe-area-inset-bottom))}.floating-resource-search__results[data-v-171c037c]{max-height:min(520px,65vh);padding-bottom:max(7px, env(safe-area-inset-bottom))}}.floating-resource-search__icon--avatar[data-v-171c037c]{background:0 0}.floating-resource-search__tabs[data-v-171c037c]{border-bottom:1px solid var(--line);justify-content:center;gap:6px;padding:10px;display:flex}.floating-resource-search__tabs button[data-v-171c037c]{min-height:34px;color:var(--text-secondary);font:13px var(--font-ui);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:9px;padding:6px 18px;display:flex}.floating-resource-search__tabs button[aria-selected=true][data-v-171c037c]{background:var(--surface-hover);color:var(--text-primary);font-weight:650}.floating-resource-search__tabs small[data-v-171c037c]{color:var(--text-muted);font-size:11px}.floating-resource-search__row[data-v-171c037c]{align-items:center;gap:8px;display:flex}.floating-resource-search__row .floating-resource-search__select[data-v-171c037c]{flex:1;min-width:0}.floating-resource-search__select>small[data-v-171c037c]{color:var(--text-muted);flex-shrink:0;font-size:10px}.floating-resource-search__select[data-v-171c037c]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,r as t}from"./WorkspaceShell-
|
|
2
|
-
//# sourceMappingURL=HistoryView-
|
|
1
|
+
import{i as e,r as t}from"./WorkspaceShell-Bl2QMnvN.js";import{A as n,D as r,F as i,H as a,M as ee,W as o,_ as s,at as c,ct as te,d as ne,et as l,f as re,g as u,h as d,m as ie,n as ae,p as f,st as oe,t as se,u as ce,v as p,x as m,y as h}from"./_plugin-vue_export-helper-CscYwSBt.js";import{$ as le,X as g,d as _,et as ue,l as de,m as fe,o as pe,s as me}from"./index-DU4OTLup.js";import{_ as he,f as ge,g as _e,h as ve,i as ye,n as be,t as xe}from"./viewModels-BLN4GfVX.js";import{_ as v,g as y,h as Se,t as Ce}from"./FloatingResourceSearch-CeLuyNWO.js";import{n as we,r as Te,t as b}from"./sessionOwnership-D9vGe33s.js";import{t as Ee}from"./WorkspaceView-Dhdw4Kml.js";var De={class:`chat-workspace`},Oe={key:0,class:`chat-error`,role:`alert`},x=se(m({__name:`HistoryView`,setup(se){let m=fe(),x=pe(),S=le(),C=ue(),w=l(null),T=l(null),E=l(null),D=l(null),O=l(!1);l(!1),l(!1);let k=l(!1);l(!1);let A=l(``),j=l(!1),ke=l(``),M=l({x:8,y:8});l(null);let N=l(null),P=l(null),F=l(``);function I(t){let n=e(t);n&&n===m.activeProfile?.name&&x.loadModels(n).catch(()=>void 0)}let L=f(()=>[...x.sessions].filter(e=>!b(e)&&![`cron`,`ios_group`,`yaoyao_workspace`].includes(e.source))),R=f(()=>new Map(m.profiles.map(e=>[e.name,e.agentName||e.displayName||e.name]))),Ae=f(()=>Object.fromEntries(m.profiles.flatMap(e=>e.agentAvatar?[[e.name,e.agentAvatar]]:[]))),z=f(()=>L.value.map(e=>ye(e,x.unreadCounts[e.id]??0,R.value.get(e.profile||m.activeProfile?.name||``)))),B=f(()=>be(x.messages,e=>e?R.value.get(e):void 0)),V=f(()=>Se(B.value)),H=f(()=>V.value.map(e=>({url:e.previewUrl||e.downloadUrl||``,name:e.name,type:e.kind})).filter(e=>e.url)),U=f(()=>x.activeSession),je=f(()=>x.sessions.find(e=>e.id===A.value));f(()=>[`connected`,`ready`].includes(x.connectionState)),f(()=>xe(x.pendingApproval,x.pendingClarification)),f(()=>w.value?{id:w.value.id,content:w.value.content,author:w.value.author}:null),f(()=>{let e=U.value?.parentSessionId;return e?x.sessions.find(t=>t.id===e&&t.profile===U.value?.profile)?.title||e:``}),f(()=>x.selectedModel?de(x.selectedModel):``);let W=[{id:``,label:`默认`,description:`使用模型或 Profile 的默认强度`},{id:`none`,label:`关闭`,description:`不使用额外推理`},{id:`low`,label:`低`,description:`更快的轻量推理`},{id:`medium`,label:`中`,description:`速度与深度平衡`},{id:`high`,label:`高`,description:`更深入地分析复杂问题`},{id:`xhigh`,label:`极高`,description:`适用于最复杂的任务`}];f(()=>W.map(e=>({id:e.id,label:e.label,detail:e.description}))),f(()=>W.find(e=>e.id===(x.reasoningEffort||``))?.label||`默认`);let Me=f(()=>({left:`${M.value.x}px`,top:`${M.value.y}px`}));function G(){let e=typeof S.query.profile==`string`?S.query.profile:``;return m.profiles.some(t=>t.name===e)?e:``}function K(e,t){return{path:`/history/${encodeURIComponent(e)}`,query:{profile:t}}}async function Ne(e){for(let t of m.profiles)try{if((await _(e,t.name)).id===e)return t.name}catch{}return m.activeProfile?.name||``}async function q(e){!e||m.activeProfile?.name===e||(x.switchProfile(e),F.value=e,m.selectProfile(e),await r())}async function Pe(){let e=typeof S.params.sessionId==`string`?S.params.sessionId:``,t=G()||(e?await Ne(e):m.activeProfile?.name||``);if(t&&m.activeProfile?.name!==t&&(e&&await C.replace(K(e,t)),await q(t)),await x.loadSessions(t,`history`),e){let n=await _(e,t).catch(()=>void 0);if(n&&b(n)){await C.replace({path:`/chat/${encodeURIComponent(e)}`,query:{profile:t}});return}}e&&x.activeSessionId!==e&&await x.selectSession(e,t),e&&t&&G()!==t&&await C.replace(K(e,t)),x.loadUnread(t).catch(()=>void 0),!e&&x.activeSession&&b(x.activeSession)&&x.clearSelection()}async function J(e){O.value=!1,T.value=null;let t=x.sessions.find(t=>t.id===e)?.profile||m.activeProfile?.name||`default`;await C.push(K(e,t)),await q(t),x.activeProfileName!==t&&await x.loadSessions(t,`history`),await x.selectSession(e,t),await x.markRead(e,t).catch(()=>void 0),w.value=null}function Fe(e){let t=v(e.name,e.url||``,e.id,e.kind);t.size=e.size,t.kind===`image`||t.kind===`video`?Y(t):(O.value=!1,T.value=null,E.value=t)}function Y(e){let t=y(e.previewUrl||e.downloadUrl||``),n=H.value.findIndex(e=>y(e.url)===t);D.value=n>=0?n:null}function Ie({name:e,url:t}){let n=v(e,t);n.kind===`image`||n.kind===`video`?Y(n):(O.value=!1,E.value=n)}function Le(e=m.activeProfile?.name||`default`){k.value=me(m.user?.id??`local`,e)}function X(e,t){A.value=e;let n=x.sessions.find(t=>t.id===e);ke.value=n?.title||``,j.value=!1;let r=t?.currentTarget instanceof HTMLElement?t.currentTarget.getBoundingClientRect():null,i=t?.type===`contextmenu`?t.clientX:r?r.right-208:window.innerWidth-208-14,a=t?.type===`contextmenu`?t.clientY:r?r.bottom+5:46;M.value={x:Math.max(8,Math.min(i,window.innerWidth-208-8)),y:Math.max(8,Math.min(a,window.innerHeight-176-8))}}function Z(){A.value=``,j.value=!1}function Q(e){!A.value||e.target.closest(`.session-actions`)||Z()}function Re(e){e.key===`Escape`&&A.value&&Z()}async function ze(){let e=je.value;e&&(Z(),(e.id!==x.activeSessionId||e.profile!==x.activeProfileName)&&await J(e.id),T.value=null,O.value=!0)}function $(){let e=O.value;T.value=null,O.value=!1,e&&r(()=>P.value?.focus())}function Be(e){N.value?.scrollToAnchor(e.messageId,e.anchorId),window.matchMedia(`(max-width: 900px)`).matches&&$()}async function Ve(){let e=typeof S.query.message==`string`?S.query.message:``;if(e){await r();for(let t=0;t<10;t+=1){if(N.value?.scrollToMessage(e)||!x.hasMoreBefore)return;await x.loadOlder(),await r()}}}return ee(async()=>{Le(),document.addEventListener(`pointerdown`,Q),document.addEventListener(`keydown`,Re),window.addEventListener(t,I),await Pe(),await Ve()}),n(()=>{document.removeEventListener(`pointerdown`,Q),document.removeEventListener(`keydown`,Re),window.removeEventListener(t,I)}),a(()=>m.activeProfile?.name,async(e,t)=>{if(!e||e===t)return;if(Le(e),O.value=!1,T.value=null,F.value===e){F.value=``;return}x.switchProfile(e);let n=typeof S.params.sessionId==`string`?S.params.sessionId:``;if(n&&G()===e){await Promise.allSettled([x.loadSessions(e,`history`),x.loadUnread(e)]),await x.selectSession(n,e);return}await C.replace({path:`/history`,query:{profile:e}}),await Promise.allSettled([x.loadSessions(e,`history`),x.loadUnread(e)])}),a(()=>x.activeSessionId,async e=>{let t=x.activeProfileName||m.activeProfile?.name||``;!e||S.params.sessionId===e&&G()===t||await C.replace(K(e,t))}),(e,t)=>(i(),s(ne,null,[h(Ee,{"sidebar-title":`历史记录`,"sidebar-subtitle":`${L.value.length} 个会话`,"inspector-open":!!T.value||O.value,"inspector-close-label":O.value?`关闭会话大纲`:`关闭预览`,onCloseInspector:$},{sidebar:o(()=>[h(ge,{items:z.value,"active-id":c(x).activeSessionId,loading:c(x).isLoading,"external-search":``,"single-line":``,"has-more":c(x).hasMoreSessions,"loading-more":c(x).isLoadingMoreSessions,"search-placeholder":`搜索会话`,"empty-title":`还没有历史会话`,"empty-description":`Hermes 会话会在这里以只读历史显示。`,onLoadMore:t[0]||=e=>c(x).loadMoreSessions(c(m).activeProfile?.name),onSelect:J,onMore:X,onContextMenu:X},null,8,[`items`,`active-id`,`loading`,`has-more`,`loading-more`])]),inspector:o(()=>[O.value?(i(),d(we,{key:0,messages:B.value,"has-older":c(x).hasMoreBefore,onNavigate:Be},null,8,[`messages`,`has-older`])):T.value?(i(),d(he,{key:1,item:T.value,"can-add-to-composer":!1,onClose:t[2]||=e=>T.value=null},null,8,[`item`])):u(``,!0)]),default:o(()=>[ie(`div`,De,[h(Te,{ref_key:`timeline`,ref:N,messages:B.value,title:U.value?.title||`历史记录`,subtitle:U.value?`${U.value.profile||c(m).activeProfile?.name||``} · ${U.value.model||`默认模型`}`:`选择左侧会话查看历史`,loading:c(x).activeRouteState?.isLoadingHistory||c(x).isLoading,"loading-older":c(x).activeRouteState?.isLoadingHistory,"has-older":c(x).hasMoreBefore,connected:!1,synced:c(x).historySynced,"show-tools":k.value,thinking:!1,"show-assistant-identity":!1,"agent-avatars":Ae.value,"allow-branch":!1,"empty-title":`选择历史记录`,"empty-description":`从左侧选择一条 Hermes 历史会话查看。`,"read-only":``,"transparent-header":``,onLoadOlder:c(x).loadOlder,onPreview:Fe,onPreviewFile:Ie},{"header-actions":o(()=>[U.value?(i(),s(`button`,{key:0,ref_key:`headerSessionMenuButton`,ref:P,class:`icon-button header-session-menu`,type:`button`,title:`会话操作`,"aria-label":`会话操作`,onClick:t[1]||=e=>X(U.value.id,e)},[h(g,{name:`dots`,size:18})],512)):u(``,!0)]),_:1},8,[`messages`,`title`,`subtitle`,`loading`,`loading-older`,`has-older`,`synced`,`show-tools`,`agent-avatars`,`onLoadOlder`]),c(x).error?(i(),s(`p`,Oe,[h(g,{name:`alert`,size:13}),p(te(c(x).error),1)])):u(``,!0)])]),_:1},8,[`sidebar-subtitle`,`inspector-open`,`inspector-close-label`]),h(Ce,{section:`chat`,label:`搜索会话`,items:z.value,onSelect:J},null,8,[`items`]),E.value?(i(),d(_e,{key:0,item:E.value,items:V.value,"can-add-to-composer":!1,onClose:t[3]||=e=>E.value=null,onSource:t[4]||=e=>E.value=null},null,8,[`item`,`items`])):u(``,!0),h(ve,{modelValue:D.value,"onUpdate:modelValue":t[5]||=e=>D.value=e,images:H.value,"can-add":!1},null,8,[`modelValue`,`images`]),(i(),d(re,{to:`body`},[h(ae,{name:`session-menu`},{default:o(()=>[A.value?(i(),s(`section`,{key:0,class:`session-actions`,style:oe(Me.value),role:`menu`,"aria-label":`会话操作`,onContextmenu:t[6]||=ce(()=>{},[`prevent`])},[ie(`button`,{class:`action-row`,role:`menuitem`,type:`button`,onClick:ze},[h(g,{name:`menu`,size:14}),t[7]||=p(`会话大纲`,-1)])],36)):u(``,!0)]),_:1})]))],64))}}),[[`__scopeId`,`data-v-9dbad2f2`]]);export{x as default};
|
|
2
|
+
//# sourceMappingURL=HistoryView-C96yRoyB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryView-uwkxvrTT.js","names":[],"sources":["../../src/client/views/HistoryView.vue","../../src/client/views/HistoryView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport YaoYaoSidebarIcon from '@/components/common/YaoYaoSidebarIcon.vue'\nimport type { ChoiceOption } from '@/components/common/types'\nimport ComposerShell from '@/components/composer/ComposerShell.vue'\nimport ModelChoiceDialog from '@/components/composer/ModelChoiceDialog.vue'\nimport type { ComposerOption, ComposerReference, ComposerSubmit } from '@/components/composer/types'\nimport PreviewInspector from '@/components/library/PreviewInspector.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 { UiLibraryItem } from '@/components/library/types'\nimport { mediaItemsFromMessages, mediaUrlIdentity, previewItemFromUrl } from '@/components/library/mediaSequence'\nimport MessageTimeline from '@/components/messages/MessageTimeline.vue'\nimport SessionOutline from '@/components/messages/SessionOutline.vue'\nimport type { UiMessage } from '@/components/messages/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport FloatingResourceSearch from '@/components/app/FloatingResourceSearch.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { chatInteraction, chatMessagesToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { consumeLibraryItemForComposer, loadComposerFile } from '@/components/workspace/pendingComposer'\nimport { readAgentShowThinking, writeAgentShowThinking } from '@/utils/sessionPreferences'\nimport { modelChoiceId, modelForChoiceId } from '@/utils/sessionModel'\nimport { MODEL_CATALOG_CHANGED_EVENT, modelCatalogChangedProfile } from '@/utils/modelCatalogEvents'\nimport { isOwnedChatSession } from '@/utils/sessionOwnership'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\nimport { getSession } from '@/api/sessions'\n\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst route = useRoute()\nconst router = useRouter()\nconst quoted = ref<UiMessage | null>(null)\nconst preview = ref<UiLibraryItem | null>(null)\nconst filePreview = ref<UiLibraryItem | null>(null)\nconst mediaPreviewIndex = ref<number | null>(null)\nconst outlineOpen = ref(false)\nconst modelDialog = ref(false)\nconst modelSwitching = ref(false)\nconst showThinking = ref(false)\nconst queueMode = ref(false)\nconst actionSessionId = ref('')\nconst renaming = ref(false)\nconst renameValue = ref('')\nconst actionMenuPosition = ref({ x: 8, y: 8 })\nconst composer = ref<InstanceType<typeof ComposerShell> | null>(null)\nconst timeline = ref<InstanceType<typeof MessageTimeline> | null>(null)\nconst headerSessionMenuButton = ref<HTMLButtonElement | null>(null)\nconst restoringRouteProfile = ref('')\nlet modelSyncTimer: number | undefined\n\nfunction handleModelCatalogChanged(event: Event) {\n const profile = modelCatalogChangedProfile(event)\n if (profile && profile === auth.activeProfile?.name) void chat.loadModels(profile).catch(() => undefined)\n}\n\nconst sessions = computed(() => [...chat.sessions]\n .filter(session => !isOwnedChatSession(session)\n && !['cron', 'ios_group', 'yaoyao_workspace'].includes(session.source)))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [\n profile.name,\n profile.agentName || profile.displayName || profile.name,\n])))\nconst agentAvatars = computed(() => Object.fromEntries(auth.profiles.flatMap(profile =>\n profile.agentAvatar ? [[profile.name, profile.agentAvatar] as const] : []\n)))\nconst sidebarItems = computed(() => sessions.value.map(session => sessionSidebarItem(\n session,\n chat.unreadCounts[session.id] ?? 0,\n agentNames.value.get(session.profile || auth.activeProfile?.name || ''),\n)))\nconst messages = computed(() => chatMessagesToUi(chat.messages, profile => profile ? agentNames.value.get(profile) : undefined))\nconst conversationMediaItems = computed(() => mediaItemsFromMessages(messages.value))\nconst lightboxMedia = computed(() => conversationMediaItems.value.map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst activeSession = computed(() => chat.activeSession)\nconst actionSession = computed(() => chat.sessions.find(session => session.id === actionSessionId.value))\nconst connected = computed(() => ['connected', 'ready'].includes(chat.connectionState))\nconst interaction = computed(() => chatInteraction(chat.pendingApproval, chat.pendingClarification))\nconst reference = computed<ComposerReference | null>(() => quoted.value ? { id: quoted.value.id, content: quoted.value.content, author: quoted.value.author } : null)\nconst forkSourceTitle = computed(() => {\n const parentId = activeSession.value?.parentSessionId\n if (!parentId) return ''\n return chat.sessions.find(session => session.id === parentId && session.profile === activeSession.value?.profile)?.title || parentId\n})\nconst selectedModelId = computed(() => chat.selectedModel ? modelChoiceId(chat.selectedModel) : '')\nconst reasoningOptions: ChoiceOption[] = [\n { id: '', label: '默认', description: '使用模型或 Profile 的默认强度' },\n { id: 'none', label: '关闭', description: '不使用额外推理' },\n { id: 'low', label: '低', description: '更快的轻量推理' },\n { id: 'medium', label: '中', description: '速度与深度平衡' },\n { id: 'high', label: '高', description: '更深入地分析复杂问题' },\n { id: 'xhigh', label: '极高', description: '适用于最复杂的任务' },\n]\nconst reasoningComposerOptions = computed<ComposerOption[]>(() => reasoningOptions.map(option => ({\n id: option.id,\n label: option.label,\n detail: option.description,\n})))\nconst reasoningLabel = computed(() => reasoningOptions.find(option => option.id === (chat.reasoningEffort || ''))?.label || '默认')\nconst actionMenuStyle = computed(() => ({ left: `${actionMenuPosition.value.x}px`, top: `${actionMenuPosition.value.y}px` }))\n\nfunction routeProfile(): string {\n const value = typeof route.query.profile === 'string' ? route.query.profile : ''\n return auth.profiles.some(profile => profile.name === value) ? value : ''\n}\n\nfunction sessionLocation(id: string, profile: string) {\n return { path: `/history/${encodeURIComponent(id)}`, query: { profile } }\n}\n\nasync function findLegacySessionProfile(sessionId: string): Promise<string> {\n for (const profile of auth.profiles) {\n try {\n const session = await getSession(sessionId, profile.name)\n if (session.id === sessionId) return profile.name\n } catch { /* Try the next profile: 9119 returns 404 for a foreign session. */ }\n }\n return auth.activeProfile?.name || ''\n}\n\nasync function ensureRouteProfile(profile: string): Promise<void> {\n if (!profile || auth.activeProfile?.name === profile) return\n chat.switchProfile(profile)\n restoringRouteProfile.value = profile\n auth.selectProfile(profile)\n await nextTick()\n}\n\nasync function refreshSessions() {\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n const profile = routeProfile() || (requestedId ? await findLegacySessionProfile(requestedId) : auth.activeProfile?.name || '')\n if (profile && auth.activeProfile?.name !== profile) {\n if (requestedId) await router.replace(sessionLocation(requestedId, profile))\n await ensureRouteProfile(profile)\n }\n // The session route is the authoritative navigation target. A secondary\n // unread-count request must never prevent its history from being restored.\n await chat.loadSessions(profile, 'history')\n if (requestedId) {\n const target = await getSession(requestedId, profile).catch(() => undefined)\n if (target && isOwnedChatSession(target)) {\n await router.replace({ path: `/chat/${encodeURIComponent(requestedId)}`, query: { profile } })\n return\n }\n }\n if (requestedId && chat.activeSessionId !== requestedId) await chat.selectSession(requestedId, profile)\n if (requestedId && profile && routeProfile() !== profile) await router.replace(sessionLocation(requestedId, profile))\n void chat.loadUnread(profile).catch(() => undefined)\n if (!requestedId && chat.activeSession && isOwnedChatSession(chat.activeSession)) {\n chat.clearSelection()\n }\n}\n\nasync function chooseSession(id: string) {\n outlineOpen.value = false\n preview.value = null\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name || 'default'\n await router.push(sessionLocation(id, profile))\n await ensureRouteProfile(profile)\n if (chat.activeProfileName !== profile) await chat.loadSessions(profile, 'history')\n await chat.selectSession(id, profile)\n await chat.markRead(id, profile).catch(() => undefined)\n quoted.value = null\n}\n\nasync function createSession() {\n outlineOpen.value = false\n preview.value = null\n const id = chat.createSession(auth.activeProfile?.name)\n await router.push(sessionLocation(id, auth.activeProfile?.name || 'default'))\n}\n\nasync function send(payload: ComposerSubmit) {\n try {\n await chat.send(payload.text, payload.files, queueMode.value ? 'queue' : chat.isStreaming ? 'steer' : 'submit')\n composer.value?.clearAfterSend()\n } catch { /* store exposes the error and the composer keeps its draft */ }\n}\n\nfunction openAttachment(attachment: NonNullable<UiMessage['attachments']>[number]) {\n const item = previewItemFromUrl(attachment.name, attachment.url || '', attachment.id, attachment.kind)\n item.size = attachment.size\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; preview.value = null; filePreview.value = item }\n}\n\nfunction openMedia(item: UiLibraryItem) {\n const target = mediaUrlIdentity(item.previewUrl || item.downloadUrl || '')\n const index = lightboxMedia.value.findIndex(media => mediaUrlIdentity(media.url) === target)\n mediaPreviewIndex.value = index >= 0 ? index : null\n}\n\nfunction openLocalFile({ name, url }: { name: string; url: string }) {\n const item = previewItemFromUrl(name, url)\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; filePreview.value = item }\n}\n\nasync function addPreviewToComposer(item: UiLibraryItem) {\n const file = await loadComposerFile(item)\n if (!file || !composer.value) return\n composer.value.attachFiles([file])\n preview.value = null\n filePreview.value = null\n mediaPreviewIndex.value = null\n await nextTick()\n composer.value?.focus()\n}\n\nasync function addMediaToComposer(media: PreviewMedia) {\n await addPreviewToComposer(previewItemFromUrl(media.name, media.url, `preview:${media.url}`, media.type))\n}\n\nasync function selectModel(id: string) {\n if (id === selectedModelId.value) {\n modelDialog.value = false\n return\n }\n const model = modelForChoiceId(chat.models, id)\n if (!model || modelSwitching.value) return\n modelSwitching.value = true\n try {\n await chat.setModel(model)\n modelDialog.value = false\n } finally {\n modelSwitching.value = false\n }\n}\n\nfunction selectReasoning(id: string) {\n chat.reasoningEffort = id || undefined\n}\n\nasync function toggleFastMode(enabled: boolean) {\n try { await chat.setFastMode(enabled) } catch { /* store restores the acknowledged state */ }\n}\n\nfunction restoreShowThinking(profile = auth.activeProfile?.name || 'default') {\n showThinking.value = readAgentShowThinking(auth.user?.id ?? 'local', profile)\n}\n\nfunction toggleShowThinking() {\n showThinking.value = !showThinking.value\n writeAgentShowThinking(auth.user?.id ?? 'local', auth.activeProfile?.name || 'default', showThinking.value)\n}\n\nfunction openSessionActions(id: string, event?: MouseEvent) {\n actionSessionId.value = id\n const session = chat.sessions.find(item => item.id === id)\n renameValue.value = session?.title || ''\n renaming.value = false\n const menuWidth = 208\n const menuHeight = 176\n const inset = 8\n const anchor = event?.currentTarget instanceof HTMLElement ? event.currentTarget.getBoundingClientRect() : null\n const requestedX = event?.type === 'contextmenu' ? event.clientX : anchor ? anchor.right - menuWidth : window.innerWidth - menuWidth - 14\n const requestedY = event?.type === 'contextmenu' ? event.clientY : anchor ? anchor.bottom + 5 : 46\n actionMenuPosition.value = {\n x: Math.max(inset, Math.min(requestedX, window.innerWidth - menuWidth - inset)),\n y: Math.max(inset, Math.min(requestedY, window.innerHeight - menuHeight - inset)),\n }\n}\n\nfunction closeSessionActions() {\n actionSessionId.value = ''\n renaming.value = false\n}\n\nfunction handleSessionActionPointer(event: PointerEvent) {\n if (!actionSessionId.value || (event.target as HTMLElement).closest('.session-actions')) return\n closeSessionActions()\n}\n\nfunction handleSessionActionKey(event: KeyboardEvent) {\n if (event.key === 'Escape' && actionSessionId.value) closeSessionActions()\n}\n\nasync function saveRename() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session || !renameValue.value.trim()) return\n await chat.renameSession(session.id, renameValue.value.trim(), session.profile)\n closeSessionActions()\n}\n\nasync function toggleSessionPinned() {\n const session = actionSession.value\n if (!session) return\n await chat.setSessionPinned(session.id, !session.pinned, session.profile)\n closeSessionActions()\n}\n\nasync function openSessionOutline() {\n const session = actionSession.value\n if (!session) return\n closeSessionActions()\n if (session.id !== chat.activeSessionId || session.profile !== chat.activeProfileName) await chooseSession(session.id)\n preview.value = null\n outlineOpen.value = true\n}\n\nfunction closeInspector() {\n const restoreMenuFocus = outlineOpen.value\n preview.value = null\n outlineOpen.value = false\n if (restoreMenuFocus) void nextTick(() => headerSessionMenuButton.value?.focus())\n}\n\nfunction navigateOutline(target: { messageId: string; anchorId: string }) {\n timeline.value?.scrollToAnchor(target.messageId, target.anchorId)\n if (window.matchMedia('(max-width: 900px)').matches) closeInspector()\n}\n\nasync function deleteSession() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session) return\n await chat.removeSession(session.id, session.profile)\n closeSessionActions()\n if (route.params.sessionId === session.id) await router.replace('/chat')\n}\n\nasync function branch() {\n const id = await chat.branchSession()\n if (id) await router.push(sessionLocation(id, chat.activeProfileName || auth.activeProfile?.name || 'default'))\n}\n\nasync function revealSourceMessage() {\n const messageId = typeof route.query.message === 'string' ? route.query.message : ''\n if (!messageId) return\n await nextTick()\n for (let attempt = 0; attempt < 10; attempt += 1) {\n if (timeline.value?.scrollToMessage(messageId)) return\n if (!chat.hasMoreBefore) return\n await chat.loadOlder()\n await nextTick()\n }\n}\n\nonMounted(async () => {\n restoreShowThinking()\n document.addEventListener('pointerdown', handleSessionActionPointer)\n document.addEventListener('keydown', handleSessionActionKey)\n window.addEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n await refreshSessions()\n await revealSourceMessage()\n})\n\nonBeforeUnmount(() => {\n document.removeEventListener('pointerdown', handleSessionActionPointer)\n document.removeEventListener('keydown', handleSessionActionKey)\n window.removeEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n if (modelSyncTimer !== undefined) window.clearInterval(modelSyncTimer)\n})\n\nwatch(() => auth.activeProfile?.name, async (profile, previous) => {\n if (!profile || profile === previous) return\n restoreShowThinking(profile)\n outlineOpen.value = false\n preview.value = null\n if (restoringRouteProfile.value === profile) {\n restoringRouteProfile.value = ''\n return\n }\n chat.switchProfile(profile)\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n if (requestedId && routeProfile() === profile) {\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n await chat.selectSession(requestedId, profile)\n return\n }\n await router.replace({ path: '/history', query: { profile } })\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n})\n\nwatch(() => chat.activeSessionId, async id => {\n const profile = chat.activeProfileName || auth.activeProfile?.name || ''\n if (!id || (route.params.sessionId === id && routeProfile() === profile)) return\n await router.replace(sessionLocation(id, profile))\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${sessions.length} 个会话`\" :inspector-open=\"!!preview || outlineOpen\" :inspector-close-label=\"outlineOpen ? '关闭会话大纲' : '关闭预览'\" @close-inspector=\"closeInspector\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"sidebarItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n external-search\n single-line\n :has-more=\"chat.hasMoreSessions\"\n :loading-more=\"chat.isLoadingMoreSessions\"\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有历史会话\"\n empty-description=\"Hermes 会话会在这里以只读历史显示。\"\n @load-more=\"chat.loadMoreSessions(auth.activeProfile?.name)\"\n @select=\"chooseSession\"\n @more=\"openSessionActions\"\n @context-menu=\"openSessionActions\"\n />\n </template>\n\n <div class=\"chat-workspace\">\n <MessageTimeline\n ref=\"timeline\"\n :messages=\"messages\"\n :title=\"activeSession?.title || '历史记录'\"\n :subtitle=\"activeSession ? `${activeSession.profile || auth.activeProfile?.name || ''} · ${activeSession.model || '默认模型'}` : '选择左侧会话查看历史'\"\n :loading=\"chat.activeRouteState?.isLoadingHistory || chat.isLoading\"\n :loading-older=\"chat.activeRouteState?.isLoadingHistory\"\n :has-older=\"chat.hasMoreBefore\"\n :connected=\"false\"\n :synced=\"chat.historySynced\"\n :show-tools=\"showThinking\"\n :thinking=\"false\"\n :show-assistant-identity=\"false\"\n :agent-avatars=\"agentAvatars\"\n :allow-branch=\"false\"\n empty-title=\"选择历史记录\"\n empty-description=\"从左侧选择一条 Hermes 历史会话查看。\"\n read-only\n transparent-header\n @load-older=\"chat.loadOlder\"\n @preview=\"openAttachment\"\n @preview-file=\"openLocalFile\"\n >\n <template #header-actions>\n <button v-if=\"activeSession\" ref=\"headerSessionMenuButton\" class=\"icon-button header-session-menu\" type=\"button\" title=\"会话操作\" aria-label=\"会话操作\" @click=\"openSessionActions(activeSession.id, $event)\"><AppIcon name=\"dots\" :size=\"18\" /></button>\n </template>\n </MessageTimeline>\n <p v-if=\"chat.error\" class=\"chat-error\" role=\"alert\"><AppIcon name=\"alert\" :size=\"13\" />{{ chat.error }}</p>\n </div>\n\n <template #inspector>\n <SessionOutline v-if=\"outlineOpen\" :messages=\"messages\" :has-older=\"chat.hasMoreBefore\" @navigate=\"navigateOutline\" />\n <PreviewInspector v-else-if=\"preview\" :item=\"preview\" :can-add-to-composer=\"false\" @close=\"preview = null\" />\n </template>\n </WorkspaceView>\n\n <FloatingResourceSearch section=\"chat\" label=\"搜索会话\" :items=\"sidebarItems\" @select=\"chooseSession\" />\n <PreviewModal v-if=\"filePreview\" :item=\"filePreview\" :items=\"conversationMediaItems\" :can-add-to-composer=\"false\" @close=\"filePreview = null\" @source=\"filePreview = null\" />\n <ImagePreviewLightbox v-model=\"mediaPreviewIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n\n <Teleport to=\"body\">\n <Transition name=\"session-menu\">\n <section v-if=\"actionSessionId\" class=\"session-actions\" :style=\"actionMenuStyle\" role=\"menu\" aria-label=\"会话操作\" @contextmenu.prevent>\n <button class=\"action-row\" role=\"menuitem\" type=\"button\" @click=\"openSessionOutline\"><AppIcon name=\"menu\" :size=\"14\" />会话大纲</button>\n </section>\n </Transition>\n </Teleport>\n</template>\n\n<style scoped>\n.chat-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.sidebar-primary-action { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 12px; font-weight: 610; text-align: left; transition: background-color 120ms ease; }\n.sidebar-primary-action:hover, .sidebar-primary-action:focus-visible { background: var(--surface-hover); outline: 0; }\n.sidebar-primary-action:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }\n.header-session-menu { color: var(--text-muted); background: transparent; }.header-session-menu:hover { color: var(--text-primary); background: var(--surface-soft); }\n.chat-error { display: flex; width: min(760px, calc(100% - 32px)); margin: 0 auto 4px; align-items: center; gap: 6px; color: var(--danger); font-size: 9px; }\n.session-actions { position: fixed; z-index: 205; width: 208px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 12px 34px rgba(0,0,0,.16); }.action-row { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; text-align: left; }.action-row:hover, .action-row:focus-visible { outline: 0; background: var(--surface-soft); color: var(--text-primary); }.action-row.danger { color: var(--danger); }.session-actions label { display: flex; flex-direction: column; gap: 6px; padding: 4px; color: var(--text-muted); font-size: 9px; }.session-actions input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text-primary); font-size: 11px; }.session-actions input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.session-actions > div { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; padding: 0 4px 3px; }.session-actions :deep(.quiet-button), .session-actions :deep(.solid-button) { min-height: 29px; padding-inline: 10px; font-size: 10px; }\n.session-menu-enter-active, .session-menu-leave-active { transition: opacity 100ms ease, transform 120ms var(--ease-out); transform-origin: top right; }.session-menu-enter-from, .session-menu-leave-to { opacity: 0; transform: translateY(-3px) scale(.98); }\n@media (prefers-reduced-motion: reduce) { .sidebar-primary-action, .session-menu-enter-active, .session-menu-leave-active { transition: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport YaoYaoSidebarIcon from '@/components/common/YaoYaoSidebarIcon.vue'\nimport type { ChoiceOption } from '@/components/common/types'\nimport ComposerShell from '@/components/composer/ComposerShell.vue'\nimport ModelChoiceDialog from '@/components/composer/ModelChoiceDialog.vue'\nimport type { ComposerOption, ComposerReference, ComposerSubmit } from '@/components/composer/types'\nimport PreviewInspector from '@/components/library/PreviewInspector.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 { UiLibraryItem } from '@/components/library/types'\nimport { mediaItemsFromMessages, mediaUrlIdentity, previewItemFromUrl } from '@/components/library/mediaSequence'\nimport MessageTimeline from '@/components/messages/MessageTimeline.vue'\nimport SessionOutline from '@/components/messages/SessionOutline.vue'\nimport type { UiMessage } from '@/components/messages/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport FloatingResourceSearch from '@/components/app/FloatingResourceSearch.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { chatInteraction, chatMessagesToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { consumeLibraryItemForComposer, loadComposerFile } from '@/components/workspace/pendingComposer'\nimport { readAgentShowThinking, writeAgentShowThinking } from '@/utils/sessionPreferences'\nimport { modelChoiceId, modelForChoiceId } from '@/utils/sessionModel'\nimport { MODEL_CATALOG_CHANGED_EVENT, modelCatalogChangedProfile } from '@/utils/modelCatalogEvents'\nimport { isOwnedChatSession } from '@/utils/sessionOwnership'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\nimport { getSession } from '@/api/sessions'\n\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst route = useRoute()\nconst router = useRouter()\nconst quoted = ref<UiMessage | null>(null)\nconst preview = ref<UiLibraryItem | null>(null)\nconst filePreview = ref<UiLibraryItem | null>(null)\nconst mediaPreviewIndex = ref<number | null>(null)\nconst outlineOpen = ref(false)\nconst modelDialog = ref(false)\nconst modelSwitching = ref(false)\nconst showThinking = ref(false)\nconst queueMode = ref(false)\nconst actionSessionId = ref('')\nconst renaming = ref(false)\nconst renameValue = ref('')\nconst actionMenuPosition = ref({ x: 8, y: 8 })\nconst composer = ref<InstanceType<typeof ComposerShell> | null>(null)\nconst timeline = ref<InstanceType<typeof MessageTimeline> | null>(null)\nconst headerSessionMenuButton = ref<HTMLButtonElement | null>(null)\nconst restoringRouteProfile = ref('')\nlet modelSyncTimer: number | undefined\n\nfunction handleModelCatalogChanged(event: Event) {\n const profile = modelCatalogChangedProfile(event)\n if (profile && profile === auth.activeProfile?.name) void chat.loadModels(profile).catch(() => undefined)\n}\n\nconst sessions = computed(() => [...chat.sessions]\n .filter(session => !isOwnedChatSession(session)\n && !['cron', 'ios_group', 'yaoyao_workspace'].includes(session.source)))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [\n profile.name,\n profile.agentName || profile.displayName || profile.name,\n])))\nconst agentAvatars = computed(() => Object.fromEntries(auth.profiles.flatMap(profile =>\n profile.agentAvatar ? [[profile.name, profile.agentAvatar] as const] : []\n)))\nconst sidebarItems = computed(() => sessions.value.map(session => sessionSidebarItem(\n session,\n chat.unreadCounts[session.id] ?? 0,\n agentNames.value.get(session.profile || auth.activeProfile?.name || ''),\n)))\nconst messages = computed(() => chatMessagesToUi(chat.messages, profile => profile ? agentNames.value.get(profile) : undefined))\nconst conversationMediaItems = computed(() => mediaItemsFromMessages(messages.value))\nconst lightboxMedia = computed(() => conversationMediaItems.value.map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst activeSession = computed(() => chat.activeSession)\nconst actionSession = computed(() => chat.sessions.find(session => session.id === actionSessionId.value))\nconst connected = computed(() => ['connected', 'ready'].includes(chat.connectionState))\nconst interaction = computed(() => chatInteraction(chat.pendingApproval, chat.pendingClarification))\nconst reference = computed<ComposerReference | null>(() => quoted.value ? { id: quoted.value.id, content: quoted.value.content, author: quoted.value.author } : null)\nconst forkSourceTitle = computed(() => {\n const parentId = activeSession.value?.parentSessionId\n if (!parentId) return ''\n return chat.sessions.find(session => session.id === parentId && session.profile === activeSession.value?.profile)?.title || parentId\n})\nconst selectedModelId = computed(() => chat.selectedModel ? modelChoiceId(chat.selectedModel) : '')\nconst reasoningOptions: ChoiceOption[] = [\n { id: '', label: '默认', description: '使用模型或 Profile 的默认强度' },\n { id: 'none', label: '关闭', description: '不使用额外推理' },\n { id: 'low', label: '低', description: '更快的轻量推理' },\n { id: 'medium', label: '中', description: '速度与深度平衡' },\n { id: 'high', label: '高', description: '更深入地分析复杂问题' },\n { id: 'xhigh', label: '极高', description: '适用于最复杂的任务' },\n]\nconst reasoningComposerOptions = computed<ComposerOption[]>(() => reasoningOptions.map(option => ({\n id: option.id,\n label: option.label,\n detail: option.description,\n})))\nconst reasoningLabel = computed(() => reasoningOptions.find(option => option.id === (chat.reasoningEffort || ''))?.label || '默认')\nconst actionMenuStyle = computed(() => ({ left: `${actionMenuPosition.value.x}px`, top: `${actionMenuPosition.value.y}px` }))\n\nfunction routeProfile(): string {\n const value = typeof route.query.profile === 'string' ? route.query.profile : ''\n return auth.profiles.some(profile => profile.name === value) ? value : ''\n}\n\nfunction sessionLocation(id: string, profile: string) {\n return { path: `/history/${encodeURIComponent(id)}`, query: { profile } }\n}\n\nasync function findLegacySessionProfile(sessionId: string): Promise<string> {\n for (const profile of auth.profiles) {\n try {\n const session = await getSession(sessionId, profile.name)\n if (session.id === sessionId) return profile.name\n } catch { /* Try the next profile: 9119 returns 404 for a foreign session. */ }\n }\n return auth.activeProfile?.name || ''\n}\n\nasync function ensureRouteProfile(profile: string): Promise<void> {\n if (!profile || auth.activeProfile?.name === profile) return\n chat.switchProfile(profile)\n restoringRouteProfile.value = profile\n auth.selectProfile(profile)\n await nextTick()\n}\n\nasync function refreshSessions() {\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n const profile = routeProfile() || (requestedId ? await findLegacySessionProfile(requestedId) : auth.activeProfile?.name || '')\n if (profile && auth.activeProfile?.name !== profile) {\n if (requestedId) await router.replace(sessionLocation(requestedId, profile))\n await ensureRouteProfile(profile)\n }\n // The session route is the authoritative navigation target. A secondary\n // unread-count request must never prevent its history from being restored.\n await chat.loadSessions(profile, 'history')\n if (requestedId) {\n const target = await getSession(requestedId, profile).catch(() => undefined)\n if (target && isOwnedChatSession(target)) {\n await router.replace({ path: `/chat/${encodeURIComponent(requestedId)}`, query: { profile } })\n return\n }\n }\n if (requestedId && chat.activeSessionId !== requestedId) await chat.selectSession(requestedId, profile)\n if (requestedId && profile && routeProfile() !== profile) await router.replace(sessionLocation(requestedId, profile))\n void chat.loadUnread(profile).catch(() => undefined)\n if (!requestedId && chat.activeSession && isOwnedChatSession(chat.activeSession)) {\n chat.clearSelection()\n }\n}\n\nasync function chooseSession(id: string) {\n outlineOpen.value = false\n preview.value = null\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name || 'default'\n await router.push(sessionLocation(id, profile))\n await ensureRouteProfile(profile)\n if (chat.activeProfileName !== profile) await chat.loadSessions(profile, 'history')\n await chat.selectSession(id, profile)\n await chat.markRead(id, profile).catch(() => undefined)\n quoted.value = null\n}\n\nasync function createSession() {\n outlineOpen.value = false\n preview.value = null\n const id = chat.createSession(auth.activeProfile?.name)\n await router.push(sessionLocation(id, auth.activeProfile?.name || 'default'))\n}\n\nasync function send(payload: ComposerSubmit) {\n try {\n await chat.send(payload.text, payload.files, queueMode.value ? 'queue' : chat.isStreaming ? 'steer' : 'submit')\n composer.value?.clearAfterSend()\n } catch { /* store exposes the error and the composer keeps its draft */ }\n}\n\nfunction openAttachment(attachment: NonNullable<UiMessage['attachments']>[number]) {\n const item = previewItemFromUrl(attachment.name, attachment.url || '', attachment.id, attachment.kind)\n item.size = attachment.size\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; preview.value = null; filePreview.value = item }\n}\n\nfunction openMedia(item: UiLibraryItem) {\n const target = mediaUrlIdentity(item.previewUrl || item.downloadUrl || '')\n const index = lightboxMedia.value.findIndex(media => mediaUrlIdentity(media.url) === target)\n mediaPreviewIndex.value = index >= 0 ? index : null\n}\n\nfunction openLocalFile({ name, url }: { name: string; url: string }) {\n const item = previewItemFromUrl(name, url)\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; filePreview.value = item }\n}\n\nasync function addPreviewToComposer(item: UiLibraryItem) {\n const file = await loadComposerFile(item)\n if (!file || !composer.value) return\n composer.value.attachFiles([file])\n preview.value = null\n filePreview.value = null\n mediaPreviewIndex.value = null\n await nextTick()\n composer.value?.focus()\n}\n\nasync function addMediaToComposer(media: PreviewMedia) {\n await addPreviewToComposer(previewItemFromUrl(media.name, media.url, `preview:${media.url}`, media.type))\n}\n\nasync function selectModel(id: string) {\n if (id === selectedModelId.value) {\n modelDialog.value = false\n return\n }\n const model = modelForChoiceId(chat.models, id)\n if (!model || modelSwitching.value) return\n modelSwitching.value = true\n try {\n await chat.setModel(model)\n modelDialog.value = false\n } finally {\n modelSwitching.value = false\n }\n}\n\nfunction selectReasoning(id: string) {\n chat.reasoningEffort = id || undefined\n}\n\nasync function toggleFastMode(enabled: boolean) {\n try { await chat.setFastMode(enabled) } catch { /* store restores the acknowledged state */ }\n}\n\nfunction restoreShowThinking(profile = auth.activeProfile?.name || 'default') {\n showThinking.value = readAgentShowThinking(auth.user?.id ?? 'local', profile)\n}\n\nfunction toggleShowThinking() {\n showThinking.value = !showThinking.value\n writeAgentShowThinking(auth.user?.id ?? 'local', auth.activeProfile?.name || 'default', showThinking.value)\n}\n\nfunction openSessionActions(id: string, event?: MouseEvent) {\n actionSessionId.value = id\n const session = chat.sessions.find(item => item.id === id)\n renameValue.value = session?.title || ''\n renaming.value = false\n const menuWidth = 208\n const menuHeight = 176\n const inset = 8\n const anchor = event?.currentTarget instanceof HTMLElement ? event.currentTarget.getBoundingClientRect() : null\n const requestedX = event?.type === 'contextmenu' ? event.clientX : anchor ? anchor.right - menuWidth : window.innerWidth - menuWidth - 14\n const requestedY = event?.type === 'contextmenu' ? event.clientY : anchor ? anchor.bottom + 5 : 46\n actionMenuPosition.value = {\n x: Math.max(inset, Math.min(requestedX, window.innerWidth - menuWidth - inset)),\n y: Math.max(inset, Math.min(requestedY, window.innerHeight - menuHeight - inset)),\n }\n}\n\nfunction closeSessionActions() {\n actionSessionId.value = ''\n renaming.value = false\n}\n\nfunction handleSessionActionPointer(event: PointerEvent) {\n if (!actionSessionId.value || (event.target as HTMLElement).closest('.session-actions')) return\n closeSessionActions()\n}\n\nfunction handleSessionActionKey(event: KeyboardEvent) {\n if (event.key === 'Escape' && actionSessionId.value) closeSessionActions()\n}\n\nasync function saveRename() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session || !renameValue.value.trim()) return\n await chat.renameSession(session.id, renameValue.value.trim(), session.profile)\n closeSessionActions()\n}\n\nasync function toggleSessionPinned() {\n const session = actionSession.value\n if (!session) return\n await chat.setSessionPinned(session.id, !session.pinned, session.profile)\n closeSessionActions()\n}\n\nasync function openSessionOutline() {\n const session = actionSession.value\n if (!session) return\n closeSessionActions()\n if (session.id !== chat.activeSessionId || session.profile !== chat.activeProfileName) await chooseSession(session.id)\n preview.value = null\n outlineOpen.value = true\n}\n\nfunction closeInspector() {\n const restoreMenuFocus = outlineOpen.value\n preview.value = null\n outlineOpen.value = false\n if (restoreMenuFocus) void nextTick(() => headerSessionMenuButton.value?.focus())\n}\n\nfunction navigateOutline(target: { messageId: string; anchorId: string }) {\n timeline.value?.scrollToAnchor(target.messageId, target.anchorId)\n if (window.matchMedia('(max-width: 900px)').matches) closeInspector()\n}\n\nasync function deleteSession() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session) return\n await chat.removeSession(session.id, session.profile)\n closeSessionActions()\n if (route.params.sessionId === session.id) await router.replace('/chat')\n}\n\nasync function branch() {\n const id = await chat.branchSession()\n if (id) await router.push(sessionLocation(id, chat.activeProfileName || auth.activeProfile?.name || 'default'))\n}\n\nasync function revealSourceMessage() {\n const messageId = typeof route.query.message === 'string' ? route.query.message : ''\n if (!messageId) return\n await nextTick()\n for (let attempt = 0; attempt < 10; attempt += 1) {\n if (timeline.value?.scrollToMessage(messageId)) return\n if (!chat.hasMoreBefore) return\n await chat.loadOlder()\n await nextTick()\n }\n}\n\nonMounted(async () => {\n restoreShowThinking()\n document.addEventListener('pointerdown', handleSessionActionPointer)\n document.addEventListener('keydown', handleSessionActionKey)\n window.addEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n await refreshSessions()\n await revealSourceMessage()\n})\n\nonBeforeUnmount(() => {\n document.removeEventListener('pointerdown', handleSessionActionPointer)\n document.removeEventListener('keydown', handleSessionActionKey)\n window.removeEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n if (modelSyncTimer !== undefined) window.clearInterval(modelSyncTimer)\n})\n\nwatch(() => auth.activeProfile?.name, async (profile, previous) => {\n if (!profile || profile === previous) return\n restoreShowThinking(profile)\n outlineOpen.value = false\n preview.value = null\n if (restoringRouteProfile.value === profile) {\n restoringRouteProfile.value = ''\n return\n }\n chat.switchProfile(profile)\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n if (requestedId && routeProfile() === profile) {\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n await chat.selectSession(requestedId, profile)\n return\n }\n await router.replace({ path: '/history', query: { profile } })\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n})\n\nwatch(() => chat.activeSessionId, async id => {\n const profile = chat.activeProfileName || auth.activeProfile?.name || ''\n if (!id || (route.params.sessionId === id && routeProfile() === profile)) return\n await router.replace(sessionLocation(id, profile))\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${sessions.length} 个会话`\" :inspector-open=\"!!preview || outlineOpen\" :inspector-close-label=\"outlineOpen ? '关闭会话大纲' : '关闭预览'\" @close-inspector=\"closeInspector\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"sidebarItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n external-search\n single-line\n :has-more=\"chat.hasMoreSessions\"\n :loading-more=\"chat.isLoadingMoreSessions\"\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有历史会话\"\n empty-description=\"Hermes 会话会在这里以只读历史显示。\"\n @load-more=\"chat.loadMoreSessions(auth.activeProfile?.name)\"\n @select=\"chooseSession\"\n @more=\"openSessionActions\"\n @context-menu=\"openSessionActions\"\n />\n </template>\n\n <div class=\"chat-workspace\">\n <MessageTimeline\n ref=\"timeline\"\n :messages=\"messages\"\n :title=\"activeSession?.title || '历史记录'\"\n :subtitle=\"activeSession ? `${activeSession.profile || auth.activeProfile?.name || ''} · ${activeSession.model || '默认模型'}` : '选择左侧会话查看历史'\"\n :loading=\"chat.activeRouteState?.isLoadingHistory || chat.isLoading\"\n :loading-older=\"chat.activeRouteState?.isLoadingHistory\"\n :has-older=\"chat.hasMoreBefore\"\n :connected=\"false\"\n :synced=\"chat.historySynced\"\n :show-tools=\"showThinking\"\n :thinking=\"false\"\n :show-assistant-identity=\"false\"\n :agent-avatars=\"agentAvatars\"\n :allow-branch=\"false\"\n empty-title=\"选择历史记录\"\n empty-description=\"从左侧选择一条 Hermes 历史会话查看。\"\n read-only\n transparent-header\n @load-older=\"chat.loadOlder\"\n @preview=\"openAttachment\"\n @preview-file=\"openLocalFile\"\n >\n <template #header-actions>\n <button v-if=\"activeSession\" ref=\"headerSessionMenuButton\" class=\"icon-button header-session-menu\" type=\"button\" title=\"会话操作\" aria-label=\"会话操作\" @click=\"openSessionActions(activeSession.id, $event)\"><AppIcon name=\"dots\" :size=\"18\" /></button>\n </template>\n </MessageTimeline>\n <p v-if=\"chat.error\" class=\"chat-error\" role=\"alert\"><AppIcon name=\"alert\" :size=\"13\" />{{ chat.error }}</p>\n </div>\n\n <template #inspector>\n <SessionOutline v-if=\"outlineOpen\" :messages=\"messages\" :has-older=\"chat.hasMoreBefore\" @navigate=\"navigateOutline\" />\n <PreviewInspector v-else-if=\"preview\" :item=\"preview\" :can-add-to-composer=\"false\" @close=\"preview = null\" />\n </template>\n </WorkspaceView>\n\n <FloatingResourceSearch section=\"chat\" label=\"搜索会话\" :items=\"sidebarItems\" @select=\"chooseSession\" />\n <PreviewModal v-if=\"filePreview\" :item=\"filePreview\" :items=\"conversationMediaItems\" :can-add-to-composer=\"false\" @close=\"filePreview = null\" @source=\"filePreview = null\" />\n <ImagePreviewLightbox v-model=\"mediaPreviewIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n\n <Teleport to=\"body\">\n <Transition name=\"session-menu\">\n <section v-if=\"actionSessionId\" class=\"session-actions\" :style=\"actionMenuStyle\" role=\"menu\" aria-label=\"会话操作\" @contextmenu.prevent>\n <button class=\"action-row\" role=\"menuitem\" type=\"button\" @click=\"openSessionOutline\"><AppIcon name=\"menu\" :size=\"14\" />会话大纲</button>\n </section>\n </Transition>\n </Teleport>\n</template>\n\n<style scoped>\n.chat-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.sidebar-primary-action { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 12px; font-weight: 610; text-align: left; transition: background-color 120ms ease; }\n.sidebar-primary-action:hover, .sidebar-primary-action:focus-visible { background: var(--surface-hover); outline: 0; }\n.sidebar-primary-action:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }\n.header-session-menu { color: var(--text-muted); background: transparent; }.header-session-menu:hover { color: var(--text-primary); background: var(--surface-soft); }\n.chat-error { display: flex; width: min(760px, calc(100% - 32px)); margin: 0 auto 4px; align-items: center; gap: 6px; color: var(--danger); font-size: 9px; }\n.session-actions { position: fixed; z-index: 205; width: 208px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 12px 34px rgba(0,0,0,.16); }.action-row { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; text-align: left; }.action-row:hover, .action-row:focus-visible { outline: 0; background: var(--surface-soft); color: var(--text-primary); }.action-row.danger { color: var(--danger); }.session-actions label { display: flex; flex-direction: column; gap: 6px; padding: 4px; color: var(--text-muted); font-size: 9px; }.session-actions input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text-primary); font-size: 11px; }.session-actions input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.session-actions > div { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; padding: 0 4px 3px; }.session-actions :deep(.quiet-button), .session-actions :deep(.solid-button) { min-height: 29px; padding-inline: 10px; font-size: 10px; }\n.session-menu-enter-active, .session-menu-leave-active { transition: opacity 100ms ease, transform 120ms var(--ease-out); transform-origin: top right; }.session-menu-enter-from, .session-menu-leave-to { opacity: 0; transform: translateY(-3px) scale(.98); }\n@media (prefers-reduced-motion: reduce) { .sidebar-primary-action, .session-menu-enter-active, .session-menu-leave-active { transition: none; } }\n</style>\n"],"mappings":"+wBA+BA,IAAM,EAAO,GAAa,EACpB,EAAO,GAAa,EACpB,EAAQ,GAAS,EACjB,EAAS,GAAU,EACnB,EAAS,EAAsB,IAAI,EACnC,EAAU,EAA0B,IAAI,EACxC,EAAc,EAA0B,IAAI,EAC5C,EAAoB,EAAmB,IAAI,EAC3C,EAAc,EAAI,EAAK,EACT,EAAI,EAAK,EACN,EAAI,EAAK,EAChC,IAAM,EAAe,EAAI,EAAK,EACZ,EAAI,EAAK,EAC3B,IAAM,EAAkB,EAAI,EAAE,EACxB,EAAW,EAAI,EAAK,EACpB,GAAc,EAAI,EAAE,EACpB,EAAqB,EAAI,CAAE,EAAG,EAAG,EAAG,CAAE,CAAC,EAC5B,EAA+C,IAAI,EAC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Q,OAAO,MAAM,OAAQ,MAAO,EAAA,MAAe,SAAQ,qBAC/D,EAAA,OAApB,EAAA,EAAA,EAA6K,GAAA,OAA3I,KAAM,EAAA,MAAc,MAAO,EAAA,MAAyB,sBAAqB,GAAQ,QAAK,AAAA,EAAA,KAAA,GAAE,EAAA,MAAW,KAAU,SAAM,AAAA,EAAA,KAAA,GAAE,EAAA,MAAW,yCAClK,EAA6F,GAAA,CAA9D,WAAA,EAAA,MAAA,sBAAA,AAAA,EAAA,KAAA,GAAA,EAAiB,MAAA,EAAG,OAAQ,EAAA,MAAgB,UAAS,qCAEpF,EAAA,EAAA,EAMW,GAAA,CAND,GAAG,MAAM,EAAA,CACjB,EAIa,GAAA,CAJD,KAAK,cAAc,EAAA,CAC7B,QAAA,MAEU,CAFK,EAAA,OAAf,EAAA,EAAA,EAEU,UAAA,OAFsB,MAAM,kBAAmB,MAAK,GAAE,GAAA,KAAe,EAAE,KAAK,OAAO,aAAW,OAAQ,cAAW,AAAA,EAAA,KAAA,OAAZ,CAAA,EAAoB,CAAA,SAAA,CAAA,CACjI,EAAA,CAAA,GAAoI,SAAA,CAA5H,MAAM,aAAa,KAAK,WAAW,KAAK,SAAU,QAAO,EAAoB,EAAA,CAAA,EAAkC,EAAA,CAAzB,KAAK,OAAQ,KAAM,EAAM,CAAA,EAAA,AAAA,EAAA,KAAA,EAAA,OAAI,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA,GAAA,EAAA,GAAA,EAAA,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"HistoryView-C96yRoyB.js","names":[],"sources":["../../src/client/views/HistoryView.vue","../../src/client/views/HistoryView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport YaoYaoSidebarIcon from '@/components/common/YaoYaoSidebarIcon.vue'\nimport type { ChoiceOption } from '@/components/common/types'\nimport ComposerShell from '@/components/composer/ComposerShell.vue'\nimport ModelChoiceDialog from '@/components/composer/ModelChoiceDialog.vue'\nimport type { ComposerOption, ComposerReference, ComposerSubmit } from '@/components/composer/types'\nimport PreviewInspector from '@/components/library/PreviewInspector.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 { UiLibraryItem } from '@/components/library/types'\nimport { mediaItemsFromMessages, mediaUrlIdentity, previewItemFromUrl } from '@/components/library/mediaSequence'\nimport MessageTimeline from '@/components/messages/MessageTimeline.vue'\nimport SessionOutline from '@/components/messages/SessionOutline.vue'\nimport type { UiMessage } from '@/components/messages/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport FloatingResourceSearch from '@/components/app/FloatingResourceSearch.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { chatInteraction, chatMessagesToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { consumeLibraryItemForComposer, loadComposerFile } from '@/components/workspace/pendingComposer'\nimport { readAgentShowThinking, writeAgentShowThinking } from '@/utils/sessionPreferences'\nimport { modelChoiceId, modelForChoiceId } from '@/utils/sessionModel'\nimport { MODEL_CATALOG_CHANGED_EVENT, modelCatalogChangedProfile } from '@/utils/modelCatalogEvents'\nimport { isOwnedChatSession } from '@/utils/sessionOwnership'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\nimport { getSession } from '@/api/sessions'\n\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst route = useRoute()\nconst router = useRouter()\nconst quoted = ref<UiMessage | null>(null)\nconst preview = ref<UiLibraryItem | null>(null)\nconst filePreview = ref<UiLibraryItem | null>(null)\nconst mediaPreviewIndex = ref<number | null>(null)\nconst outlineOpen = ref(false)\nconst modelDialog = ref(false)\nconst modelSwitching = ref(false)\nconst showThinking = ref(false)\nconst queueMode = ref(false)\nconst actionSessionId = ref('')\nconst renaming = ref(false)\nconst renameValue = ref('')\nconst actionMenuPosition = ref({ x: 8, y: 8 })\nconst composer = ref<InstanceType<typeof ComposerShell> | null>(null)\nconst timeline = ref<InstanceType<typeof MessageTimeline> | null>(null)\nconst headerSessionMenuButton = ref<HTMLButtonElement | null>(null)\nconst restoringRouteProfile = ref('')\nlet modelSyncTimer: number | undefined\n\nfunction handleModelCatalogChanged(event: Event) {\n const profile = modelCatalogChangedProfile(event)\n if (profile && profile === auth.activeProfile?.name) void chat.loadModels(profile).catch(() => undefined)\n}\n\nconst sessions = computed(() => [...chat.sessions]\n .filter(session => !isOwnedChatSession(session)\n && !['cron', 'ios_group', 'yaoyao_workspace'].includes(session.source)))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [\n profile.name,\n profile.agentName || profile.displayName || profile.name,\n])))\nconst agentAvatars = computed(() => Object.fromEntries(auth.profiles.flatMap(profile =>\n profile.agentAvatar ? [[profile.name, profile.agentAvatar] as const] : []\n)))\nconst sidebarItems = computed(() => sessions.value.map(session => sessionSidebarItem(\n session,\n chat.unreadCounts[session.id] ?? 0,\n agentNames.value.get(session.profile || auth.activeProfile?.name || ''),\n)))\nconst messages = computed(() => chatMessagesToUi(chat.messages, profile => profile ? agentNames.value.get(profile) : undefined))\nconst conversationMediaItems = computed(() => mediaItemsFromMessages(messages.value))\nconst lightboxMedia = computed(() => conversationMediaItems.value.map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst activeSession = computed(() => chat.activeSession)\nconst actionSession = computed(() => chat.sessions.find(session => session.id === actionSessionId.value))\nconst connected = computed(() => ['connected', 'ready'].includes(chat.connectionState))\nconst interaction = computed(() => chatInteraction(chat.pendingApproval, chat.pendingClarification))\nconst reference = computed<ComposerReference | null>(() => quoted.value ? { id: quoted.value.id, content: quoted.value.content, author: quoted.value.author } : null)\nconst forkSourceTitle = computed(() => {\n const parentId = activeSession.value?.parentSessionId\n if (!parentId) return ''\n return chat.sessions.find(session => session.id === parentId && session.profile === activeSession.value?.profile)?.title || parentId\n})\nconst selectedModelId = computed(() => chat.selectedModel ? modelChoiceId(chat.selectedModel) : '')\nconst reasoningOptions: ChoiceOption[] = [\n { id: '', label: '默认', description: '使用模型或 Profile 的默认强度' },\n { id: 'none', label: '关闭', description: '不使用额外推理' },\n { id: 'low', label: '低', description: '更快的轻量推理' },\n { id: 'medium', label: '中', description: '速度与深度平衡' },\n { id: 'high', label: '高', description: '更深入地分析复杂问题' },\n { id: 'xhigh', label: '极高', description: '适用于最复杂的任务' },\n]\nconst reasoningComposerOptions = computed<ComposerOption[]>(() => reasoningOptions.map(option => ({\n id: option.id,\n label: option.label,\n detail: option.description,\n})))\nconst reasoningLabel = computed(() => reasoningOptions.find(option => option.id === (chat.reasoningEffort || ''))?.label || '默认')\nconst actionMenuStyle = computed(() => ({ left: `${actionMenuPosition.value.x}px`, top: `${actionMenuPosition.value.y}px` }))\n\nfunction routeProfile(): string {\n const value = typeof route.query.profile === 'string' ? route.query.profile : ''\n return auth.profiles.some(profile => profile.name === value) ? value : ''\n}\n\nfunction sessionLocation(id: string, profile: string) {\n return { path: `/history/${encodeURIComponent(id)}`, query: { profile } }\n}\n\nasync function findLegacySessionProfile(sessionId: string): Promise<string> {\n for (const profile of auth.profiles) {\n try {\n const session = await getSession(sessionId, profile.name)\n if (session.id === sessionId) return profile.name\n } catch { /* Try the next profile: 9119 returns 404 for a foreign session. */ }\n }\n return auth.activeProfile?.name || ''\n}\n\nasync function ensureRouteProfile(profile: string): Promise<void> {\n if (!profile || auth.activeProfile?.name === profile) return\n chat.switchProfile(profile)\n restoringRouteProfile.value = profile\n auth.selectProfile(profile)\n await nextTick()\n}\n\nasync function refreshSessions() {\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n const profile = routeProfile() || (requestedId ? await findLegacySessionProfile(requestedId) : auth.activeProfile?.name || '')\n if (profile && auth.activeProfile?.name !== profile) {\n if (requestedId) await router.replace(sessionLocation(requestedId, profile))\n await ensureRouteProfile(profile)\n }\n // The session route is the authoritative navigation target. A secondary\n // unread-count request must never prevent its history from being restored.\n await chat.loadSessions(profile, 'history')\n if (requestedId) {\n const target = await getSession(requestedId, profile).catch(() => undefined)\n if (target && isOwnedChatSession(target)) {\n await router.replace({ path: `/chat/${encodeURIComponent(requestedId)}`, query: { profile } })\n return\n }\n }\n if (requestedId && chat.activeSessionId !== requestedId) await chat.selectSession(requestedId, profile)\n if (requestedId && profile && routeProfile() !== profile) await router.replace(sessionLocation(requestedId, profile))\n void chat.loadUnread(profile).catch(() => undefined)\n if (!requestedId && chat.activeSession && isOwnedChatSession(chat.activeSession)) {\n chat.clearSelection()\n }\n}\n\nasync function chooseSession(id: string) {\n outlineOpen.value = false\n preview.value = null\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name || 'default'\n await router.push(sessionLocation(id, profile))\n await ensureRouteProfile(profile)\n if (chat.activeProfileName !== profile) await chat.loadSessions(profile, 'history')\n await chat.selectSession(id, profile)\n await chat.markRead(id, profile).catch(() => undefined)\n quoted.value = null\n}\n\nasync function createSession() {\n outlineOpen.value = false\n preview.value = null\n const id = chat.createSession(auth.activeProfile?.name)\n await router.push(sessionLocation(id, auth.activeProfile?.name || 'default'))\n}\n\nasync function send(payload: ComposerSubmit) {\n try {\n await chat.send(payload.text, payload.files, queueMode.value ? 'queue' : chat.isStreaming ? 'steer' : 'submit')\n composer.value?.clearAfterSend()\n } catch { /* store exposes the error and the composer keeps its draft */ }\n}\n\nfunction openAttachment(attachment: NonNullable<UiMessage['attachments']>[number]) {\n const item = previewItemFromUrl(attachment.name, attachment.url || '', attachment.id, attachment.kind)\n item.size = attachment.size\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; preview.value = null; filePreview.value = item }\n}\n\nfunction openMedia(item: UiLibraryItem) {\n const target = mediaUrlIdentity(item.previewUrl || item.downloadUrl || '')\n const index = lightboxMedia.value.findIndex(media => mediaUrlIdentity(media.url) === target)\n mediaPreviewIndex.value = index >= 0 ? index : null\n}\n\nfunction openLocalFile({ name, url }: { name: string; url: string }) {\n const item = previewItemFromUrl(name, url)\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; filePreview.value = item }\n}\n\nasync function addPreviewToComposer(item: UiLibraryItem) {\n const file = await loadComposerFile(item)\n if (!file || !composer.value) return\n composer.value.attachFiles([file])\n preview.value = null\n filePreview.value = null\n mediaPreviewIndex.value = null\n await nextTick()\n composer.value?.focus()\n}\n\nasync function addMediaToComposer(media: PreviewMedia) {\n await addPreviewToComposer(previewItemFromUrl(media.name, media.url, `preview:${media.url}`, media.type))\n}\n\nasync function selectModel(id: string) {\n if (id === selectedModelId.value) {\n modelDialog.value = false\n return\n }\n const model = modelForChoiceId(chat.models, id)\n if (!model || modelSwitching.value) return\n modelSwitching.value = true\n try {\n await chat.setModel(model)\n modelDialog.value = false\n } finally {\n modelSwitching.value = false\n }\n}\n\nfunction selectReasoning(id: string) {\n chat.reasoningEffort = id || undefined\n}\n\nasync function toggleFastMode(enabled: boolean) {\n try { await chat.setFastMode(enabled) } catch { /* store restores the acknowledged state */ }\n}\n\nfunction restoreShowThinking(profile = auth.activeProfile?.name || 'default') {\n showThinking.value = readAgentShowThinking(auth.user?.id ?? 'local', profile)\n}\n\nfunction toggleShowThinking() {\n showThinking.value = !showThinking.value\n writeAgentShowThinking(auth.user?.id ?? 'local', auth.activeProfile?.name || 'default', showThinking.value)\n}\n\nfunction openSessionActions(id: string, event?: MouseEvent) {\n actionSessionId.value = id\n const session = chat.sessions.find(item => item.id === id)\n renameValue.value = session?.title || ''\n renaming.value = false\n const menuWidth = 208\n const menuHeight = 176\n const inset = 8\n const anchor = event?.currentTarget instanceof HTMLElement ? event.currentTarget.getBoundingClientRect() : null\n const requestedX = event?.type === 'contextmenu' ? event.clientX : anchor ? anchor.right - menuWidth : window.innerWidth - menuWidth - 14\n const requestedY = event?.type === 'contextmenu' ? event.clientY : anchor ? anchor.bottom + 5 : 46\n actionMenuPosition.value = {\n x: Math.max(inset, Math.min(requestedX, window.innerWidth - menuWidth - inset)),\n y: Math.max(inset, Math.min(requestedY, window.innerHeight - menuHeight - inset)),\n }\n}\n\nfunction closeSessionActions() {\n actionSessionId.value = ''\n renaming.value = false\n}\n\nfunction handleSessionActionPointer(event: PointerEvent) {\n if (!actionSessionId.value || (event.target as HTMLElement).closest('.session-actions')) return\n closeSessionActions()\n}\n\nfunction handleSessionActionKey(event: KeyboardEvent) {\n if (event.key === 'Escape' && actionSessionId.value) closeSessionActions()\n}\n\nasync function saveRename() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session || !renameValue.value.trim()) return\n await chat.renameSession(session.id, renameValue.value.trim(), session.profile)\n closeSessionActions()\n}\n\nasync function toggleSessionPinned() {\n const session = actionSession.value\n if (!session) return\n await chat.setSessionPinned(session.id, !session.pinned, session.profile)\n closeSessionActions()\n}\n\nasync function openSessionOutline() {\n const session = actionSession.value\n if (!session) return\n closeSessionActions()\n if (session.id !== chat.activeSessionId || session.profile !== chat.activeProfileName) await chooseSession(session.id)\n preview.value = null\n outlineOpen.value = true\n}\n\nfunction closeInspector() {\n const restoreMenuFocus = outlineOpen.value\n preview.value = null\n outlineOpen.value = false\n if (restoreMenuFocus) void nextTick(() => headerSessionMenuButton.value?.focus())\n}\n\nfunction navigateOutline(target: { messageId: string; anchorId: string }) {\n timeline.value?.scrollToAnchor(target.messageId, target.anchorId)\n if (window.matchMedia('(max-width: 900px)').matches) closeInspector()\n}\n\nasync function deleteSession() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session) return\n await chat.removeSession(session.id, session.profile)\n closeSessionActions()\n if (route.params.sessionId === session.id) await router.replace('/chat')\n}\n\nasync function branch() {\n const id = await chat.branchSession()\n if (id) await router.push(sessionLocation(id, chat.activeProfileName || auth.activeProfile?.name || 'default'))\n}\n\nasync function revealSourceMessage() {\n const messageId = typeof route.query.message === 'string' ? route.query.message : ''\n if (!messageId) return\n await nextTick()\n for (let attempt = 0; attempt < 10; attempt += 1) {\n if (timeline.value?.scrollToMessage(messageId)) return\n if (!chat.hasMoreBefore) return\n await chat.loadOlder()\n await nextTick()\n }\n}\n\nonMounted(async () => {\n restoreShowThinking()\n document.addEventListener('pointerdown', handleSessionActionPointer)\n document.addEventListener('keydown', handleSessionActionKey)\n window.addEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n await refreshSessions()\n await revealSourceMessage()\n})\n\nonBeforeUnmount(() => {\n document.removeEventListener('pointerdown', handleSessionActionPointer)\n document.removeEventListener('keydown', handleSessionActionKey)\n window.removeEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n if (modelSyncTimer !== undefined) window.clearInterval(modelSyncTimer)\n})\n\nwatch(() => auth.activeProfile?.name, async (profile, previous) => {\n if (!profile || profile === previous) return\n restoreShowThinking(profile)\n outlineOpen.value = false\n preview.value = null\n if (restoringRouteProfile.value === profile) {\n restoringRouteProfile.value = ''\n return\n }\n chat.switchProfile(profile)\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n if (requestedId && routeProfile() === profile) {\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n await chat.selectSession(requestedId, profile)\n return\n }\n await router.replace({ path: '/history', query: { profile } })\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n})\n\nwatch(() => chat.activeSessionId, async id => {\n const profile = chat.activeProfileName || auth.activeProfile?.name || ''\n if (!id || (route.params.sessionId === id && routeProfile() === profile)) return\n await router.replace(sessionLocation(id, profile))\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${sessions.length} 个会话`\" :inspector-open=\"!!preview || outlineOpen\" :inspector-close-label=\"outlineOpen ? '关闭会话大纲' : '关闭预览'\" @close-inspector=\"closeInspector\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"sidebarItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n external-search\n single-line\n :has-more=\"chat.hasMoreSessions\"\n :loading-more=\"chat.isLoadingMoreSessions\"\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有历史会话\"\n empty-description=\"Hermes 会话会在这里以只读历史显示。\"\n @load-more=\"chat.loadMoreSessions(auth.activeProfile?.name)\"\n @select=\"chooseSession\"\n @more=\"openSessionActions\"\n @context-menu=\"openSessionActions\"\n />\n </template>\n\n <div class=\"chat-workspace\">\n <MessageTimeline\n ref=\"timeline\"\n :messages=\"messages\"\n :title=\"activeSession?.title || '历史记录'\"\n :subtitle=\"activeSession ? `${activeSession.profile || auth.activeProfile?.name || ''} · ${activeSession.model || '默认模型'}` : '选择左侧会话查看历史'\"\n :loading=\"chat.activeRouteState?.isLoadingHistory || chat.isLoading\"\n :loading-older=\"chat.activeRouteState?.isLoadingHistory\"\n :has-older=\"chat.hasMoreBefore\"\n :connected=\"false\"\n :synced=\"chat.historySynced\"\n :show-tools=\"showThinking\"\n :thinking=\"false\"\n :show-assistant-identity=\"false\"\n :agent-avatars=\"agentAvatars\"\n :allow-branch=\"false\"\n empty-title=\"选择历史记录\"\n empty-description=\"从左侧选择一条 Hermes 历史会话查看。\"\n read-only\n transparent-header\n @load-older=\"chat.loadOlder\"\n @preview=\"openAttachment\"\n @preview-file=\"openLocalFile\"\n >\n <template #header-actions>\n <button v-if=\"activeSession\" ref=\"headerSessionMenuButton\" class=\"icon-button header-session-menu\" type=\"button\" title=\"会话操作\" aria-label=\"会话操作\" @click=\"openSessionActions(activeSession.id, $event)\"><AppIcon name=\"dots\" :size=\"18\" /></button>\n </template>\n </MessageTimeline>\n <p v-if=\"chat.error\" class=\"chat-error\" role=\"alert\"><AppIcon name=\"alert\" :size=\"13\" />{{ chat.error }}</p>\n </div>\n\n <template #inspector>\n <SessionOutline v-if=\"outlineOpen\" :messages=\"messages\" :has-older=\"chat.hasMoreBefore\" @navigate=\"navigateOutline\" />\n <PreviewInspector v-else-if=\"preview\" :item=\"preview\" :can-add-to-composer=\"false\" @close=\"preview = null\" />\n </template>\n </WorkspaceView>\n\n <FloatingResourceSearch section=\"chat\" label=\"搜索会话\" :items=\"sidebarItems\" @select=\"chooseSession\" />\n <PreviewModal v-if=\"filePreview\" :item=\"filePreview\" :items=\"conversationMediaItems\" :can-add-to-composer=\"false\" @close=\"filePreview = null\" @source=\"filePreview = null\" />\n <ImagePreviewLightbox v-model=\"mediaPreviewIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n\n <Teleport to=\"body\">\n <Transition name=\"session-menu\">\n <section v-if=\"actionSessionId\" class=\"session-actions\" :style=\"actionMenuStyle\" role=\"menu\" aria-label=\"会话操作\" @contextmenu.prevent>\n <button class=\"action-row\" role=\"menuitem\" type=\"button\" @click=\"openSessionOutline\"><AppIcon name=\"menu\" :size=\"14\" />会话大纲</button>\n </section>\n </Transition>\n </Teleport>\n</template>\n\n<style scoped>\n.chat-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.sidebar-primary-action { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 12px; font-weight: 610; text-align: left; transition: background-color 120ms ease; }\n.sidebar-primary-action:hover, .sidebar-primary-action:focus-visible { background: var(--surface-hover); outline: 0; }\n.sidebar-primary-action:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }\n.header-session-menu { color: var(--text-muted); background: transparent; }.header-session-menu:hover { color: var(--text-primary); background: var(--surface-soft); }\n.chat-error { display: flex; width: min(760px, calc(100% - 32px)); margin: 0 auto 4px; align-items: center; gap: 6px; color: var(--danger); font-size: 9px; }\n.session-actions { position: fixed; z-index: 205; width: 208px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 12px 34px rgba(0,0,0,.16); }.action-row { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; text-align: left; }.action-row:hover, .action-row:focus-visible { outline: 0; background: var(--surface-soft); color: var(--text-primary); }.action-row.danger { color: var(--danger); }.session-actions label { display: flex; flex-direction: column; gap: 6px; padding: 4px; color: var(--text-muted); font-size: 9px; }.session-actions input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text-primary); font-size: 11px; }.session-actions input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.session-actions > div { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; padding: 0 4px 3px; }.session-actions :deep(.quiet-button), .session-actions :deep(.solid-button) { min-height: 29px; padding-inline: 10px; font-size: 10px; }\n.session-menu-enter-active, .session-menu-leave-active { transition: opacity 100ms ease, transform 120ms var(--ease-out); transform-origin: top right; }.session-menu-enter-from, .session-menu-leave-to { opacity: 0; transform: translateY(-3px) scale(.98); }\n@media (prefers-reduced-motion: reduce) { .sidebar-primary-action, .session-menu-enter-active, .session-menu-leave-active { transition: none; } }\n</style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport AppIcon from '@/components/common/AppIcon.vue'\nimport YaoYaoSidebarIcon from '@/components/common/YaoYaoSidebarIcon.vue'\nimport type { ChoiceOption } from '@/components/common/types'\nimport ComposerShell from '@/components/composer/ComposerShell.vue'\nimport ModelChoiceDialog from '@/components/composer/ModelChoiceDialog.vue'\nimport type { ComposerOption, ComposerReference, ComposerSubmit } from '@/components/composer/types'\nimport PreviewInspector from '@/components/library/PreviewInspector.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 { UiLibraryItem } from '@/components/library/types'\nimport { mediaItemsFromMessages, mediaUrlIdentity, previewItemFromUrl } from '@/components/library/mediaSequence'\nimport MessageTimeline from '@/components/messages/MessageTimeline.vue'\nimport SessionOutline from '@/components/messages/SessionOutline.vue'\nimport type { UiMessage } from '@/components/messages/types'\nimport ResourceSidebar from '@/components/app/ResourceSidebar.vue'\nimport FloatingResourceSearch from '@/components/app/FloatingResourceSearch.vue'\nimport WorkspaceView from '@/components/workspace/WorkspaceView.vue'\nimport { chatInteraction, chatMessagesToUi, sessionSidebarItem } from '@/components/workspace/viewModels'\nimport { consumeLibraryItemForComposer, loadComposerFile } from '@/components/workspace/pendingComposer'\nimport { readAgentShowThinking, writeAgentShowThinking } from '@/utils/sessionPreferences'\nimport { modelChoiceId, modelForChoiceId } from '@/utils/sessionModel'\nimport { MODEL_CATALOG_CHANGED_EVENT, modelCatalogChangedProfile } from '@/utils/modelCatalogEvents'\nimport { isOwnedChatSession } from '@/utils/sessionOwnership'\nimport { useAuthStore } from '@/stores/auth'\nimport { useChatStore } from '@/stores/chat'\nimport { getSession } from '@/api/sessions'\n\nconst auth = useAuthStore()\nconst chat = useChatStore()\nconst route = useRoute()\nconst router = useRouter()\nconst quoted = ref<UiMessage | null>(null)\nconst preview = ref<UiLibraryItem | null>(null)\nconst filePreview = ref<UiLibraryItem | null>(null)\nconst mediaPreviewIndex = ref<number | null>(null)\nconst outlineOpen = ref(false)\nconst modelDialog = ref(false)\nconst modelSwitching = ref(false)\nconst showThinking = ref(false)\nconst queueMode = ref(false)\nconst actionSessionId = ref('')\nconst renaming = ref(false)\nconst renameValue = ref('')\nconst actionMenuPosition = ref({ x: 8, y: 8 })\nconst composer = ref<InstanceType<typeof ComposerShell> | null>(null)\nconst timeline = ref<InstanceType<typeof MessageTimeline> | null>(null)\nconst headerSessionMenuButton = ref<HTMLButtonElement | null>(null)\nconst restoringRouteProfile = ref('')\nlet modelSyncTimer: number | undefined\n\nfunction handleModelCatalogChanged(event: Event) {\n const profile = modelCatalogChangedProfile(event)\n if (profile && profile === auth.activeProfile?.name) void chat.loadModels(profile).catch(() => undefined)\n}\n\nconst sessions = computed(() => [...chat.sessions]\n .filter(session => !isOwnedChatSession(session)\n && !['cron', 'ios_group', 'yaoyao_workspace'].includes(session.source)))\nconst agentNames = computed(() => new Map(auth.profiles.map(profile => [\n profile.name,\n profile.agentName || profile.displayName || profile.name,\n])))\nconst agentAvatars = computed(() => Object.fromEntries(auth.profiles.flatMap(profile =>\n profile.agentAvatar ? [[profile.name, profile.agentAvatar] as const] : []\n)))\nconst sidebarItems = computed(() => sessions.value.map(session => sessionSidebarItem(\n session,\n chat.unreadCounts[session.id] ?? 0,\n agentNames.value.get(session.profile || auth.activeProfile?.name || ''),\n)))\nconst messages = computed(() => chatMessagesToUi(chat.messages, profile => profile ? agentNames.value.get(profile) : undefined))\nconst conversationMediaItems = computed(() => mediaItemsFromMessages(messages.value))\nconst lightboxMedia = computed(() => conversationMediaItems.value.map(item => ({ url: item.previewUrl || item.downloadUrl || '', name: item.name, type: item.kind as 'image' | 'video' })).filter(item => item.url))\nconst activeSession = computed(() => chat.activeSession)\nconst actionSession = computed(() => chat.sessions.find(session => session.id === actionSessionId.value))\nconst connected = computed(() => ['connected', 'ready'].includes(chat.connectionState))\nconst interaction = computed(() => chatInteraction(chat.pendingApproval, chat.pendingClarification))\nconst reference = computed<ComposerReference | null>(() => quoted.value ? { id: quoted.value.id, content: quoted.value.content, author: quoted.value.author } : null)\nconst forkSourceTitle = computed(() => {\n const parentId = activeSession.value?.parentSessionId\n if (!parentId) return ''\n return chat.sessions.find(session => session.id === parentId && session.profile === activeSession.value?.profile)?.title || parentId\n})\nconst selectedModelId = computed(() => chat.selectedModel ? modelChoiceId(chat.selectedModel) : '')\nconst reasoningOptions: ChoiceOption[] = [\n { id: '', label: '默认', description: '使用模型或 Profile 的默认强度' },\n { id: 'none', label: '关闭', description: '不使用额外推理' },\n { id: 'low', label: '低', description: '更快的轻量推理' },\n { id: 'medium', label: '中', description: '速度与深度平衡' },\n { id: 'high', label: '高', description: '更深入地分析复杂问题' },\n { id: 'xhigh', label: '极高', description: '适用于最复杂的任务' },\n]\nconst reasoningComposerOptions = computed<ComposerOption[]>(() => reasoningOptions.map(option => ({\n id: option.id,\n label: option.label,\n detail: option.description,\n})))\nconst reasoningLabel = computed(() => reasoningOptions.find(option => option.id === (chat.reasoningEffort || ''))?.label || '默认')\nconst actionMenuStyle = computed(() => ({ left: `${actionMenuPosition.value.x}px`, top: `${actionMenuPosition.value.y}px` }))\n\nfunction routeProfile(): string {\n const value = typeof route.query.profile === 'string' ? route.query.profile : ''\n return auth.profiles.some(profile => profile.name === value) ? value : ''\n}\n\nfunction sessionLocation(id: string, profile: string) {\n return { path: `/history/${encodeURIComponent(id)}`, query: { profile } }\n}\n\nasync function findLegacySessionProfile(sessionId: string): Promise<string> {\n for (const profile of auth.profiles) {\n try {\n const session = await getSession(sessionId, profile.name)\n if (session.id === sessionId) return profile.name\n } catch { /* Try the next profile: 9119 returns 404 for a foreign session. */ }\n }\n return auth.activeProfile?.name || ''\n}\n\nasync function ensureRouteProfile(profile: string): Promise<void> {\n if (!profile || auth.activeProfile?.name === profile) return\n chat.switchProfile(profile)\n restoringRouteProfile.value = profile\n auth.selectProfile(profile)\n await nextTick()\n}\n\nasync function refreshSessions() {\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n const profile = routeProfile() || (requestedId ? await findLegacySessionProfile(requestedId) : auth.activeProfile?.name || '')\n if (profile && auth.activeProfile?.name !== profile) {\n if (requestedId) await router.replace(sessionLocation(requestedId, profile))\n await ensureRouteProfile(profile)\n }\n // The session route is the authoritative navigation target. A secondary\n // unread-count request must never prevent its history from being restored.\n await chat.loadSessions(profile, 'history')\n if (requestedId) {\n const target = await getSession(requestedId, profile).catch(() => undefined)\n if (target && isOwnedChatSession(target)) {\n await router.replace({ path: `/chat/${encodeURIComponent(requestedId)}`, query: { profile } })\n return\n }\n }\n if (requestedId && chat.activeSessionId !== requestedId) await chat.selectSession(requestedId, profile)\n if (requestedId && profile && routeProfile() !== profile) await router.replace(sessionLocation(requestedId, profile))\n void chat.loadUnread(profile).catch(() => undefined)\n if (!requestedId && chat.activeSession && isOwnedChatSession(chat.activeSession)) {\n chat.clearSelection()\n }\n}\n\nasync function chooseSession(id: string) {\n outlineOpen.value = false\n preview.value = null\n const session = chat.sessions.find(item => item.id === id)\n const profile = session?.profile || auth.activeProfile?.name || 'default'\n await router.push(sessionLocation(id, profile))\n await ensureRouteProfile(profile)\n if (chat.activeProfileName !== profile) await chat.loadSessions(profile, 'history')\n await chat.selectSession(id, profile)\n await chat.markRead(id, profile).catch(() => undefined)\n quoted.value = null\n}\n\nasync function createSession() {\n outlineOpen.value = false\n preview.value = null\n const id = chat.createSession(auth.activeProfile?.name)\n await router.push(sessionLocation(id, auth.activeProfile?.name || 'default'))\n}\n\nasync function send(payload: ComposerSubmit) {\n try {\n await chat.send(payload.text, payload.files, queueMode.value ? 'queue' : chat.isStreaming ? 'steer' : 'submit')\n composer.value?.clearAfterSend()\n } catch { /* store exposes the error and the composer keeps its draft */ }\n}\n\nfunction openAttachment(attachment: NonNullable<UiMessage['attachments']>[number]) {\n const item = previewItemFromUrl(attachment.name, attachment.url || '', attachment.id, attachment.kind)\n item.size = attachment.size\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; preview.value = null; filePreview.value = item }\n}\n\nfunction openMedia(item: UiLibraryItem) {\n const target = mediaUrlIdentity(item.previewUrl || item.downloadUrl || '')\n const index = lightboxMedia.value.findIndex(media => mediaUrlIdentity(media.url) === target)\n mediaPreviewIndex.value = index >= 0 ? index : null\n}\n\nfunction openLocalFile({ name, url }: { name: string; url: string }) {\n const item = previewItemFromUrl(name, url)\n if (item.kind === 'image' || item.kind === 'video') openMedia(item)\n else { outlineOpen.value = false; filePreview.value = item }\n}\n\nasync function addPreviewToComposer(item: UiLibraryItem) {\n const file = await loadComposerFile(item)\n if (!file || !composer.value) return\n composer.value.attachFiles([file])\n preview.value = null\n filePreview.value = null\n mediaPreviewIndex.value = null\n await nextTick()\n composer.value?.focus()\n}\n\nasync function addMediaToComposer(media: PreviewMedia) {\n await addPreviewToComposer(previewItemFromUrl(media.name, media.url, `preview:${media.url}`, media.type))\n}\n\nasync function selectModel(id: string) {\n if (id === selectedModelId.value) {\n modelDialog.value = false\n return\n }\n const model = modelForChoiceId(chat.models, id)\n if (!model || modelSwitching.value) return\n modelSwitching.value = true\n try {\n await chat.setModel(model)\n modelDialog.value = false\n } finally {\n modelSwitching.value = false\n }\n}\n\nfunction selectReasoning(id: string) {\n chat.reasoningEffort = id || undefined\n}\n\nasync function toggleFastMode(enabled: boolean) {\n try { await chat.setFastMode(enabled) } catch { /* store restores the acknowledged state */ }\n}\n\nfunction restoreShowThinking(profile = auth.activeProfile?.name || 'default') {\n showThinking.value = readAgentShowThinking(auth.user?.id ?? 'local', profile)\n}\n\nfunction toggleShowThinking() {\n showThinking.value = !showThinking.value\n writeAgentShowThinking(auth.user?.id ?? 'local', auth.activeProfile?.name || 'default', showThinking.value)\n}\n\nfunction openSessionActions(id: string, event?: MouseEvent) {\n actionSessionId.value = id\n const session = chat.sessions.find(item => item.id === id)\n renameValue.value = session?.title || ''\n renaming.value = false\n const menuWidth = 208\n const menuHeight = 176\n const inset = 8\n const anchor = event?.currentTarget instanceof HTMLElement ? event.currentTarget.getBoundingClientRect() : null\n const requestedX = event?.type === 'contextmenu' ? event.clientX : anchor ? anchor.right - menuWidth : window.innerWidth - menuWidth - 14\n const requestedY = event?.type === 'contextmenu' ? event.clientY : anchor ? anchor.bottom + 5 : 46\n actionMenuPosition.value = {\n x: Math.max(inset, Math.min(requestedX, window.innerWidth - menuWidth - inset)),\n y: Math.max(inset, Math.min(requestedY, window.innerHeight - menuHeight - inset)),\n }\n}\n\nfunction closeSessionActions() {\n actionSessionId.value = ''\n renaming.value = false\n}\n\nfunction handleSessionActionPointer(event: PointerEvent) {\n if (!actionSessionId.value || (event.target as HTMLElement).closest('.session-actions')) return\n closeSessionActions()\n}\n\nfunction handleSessionActionKey(event: KeyboardEvent) {\n if (event.key === 'Escape' && actionSessionId.value) closeSessionActions()\n}\n\nasync function saveRename() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session || !renameValue.value.trim()) return\n await chat.renameSession(session.id, renameValue.value.trim(), session.profile)\n closeSessionActions()\n}\n\nasync function toggleSessionPinned() {\n const session = actionSession.value\n if (!session) return\n await chat.setSessionPinned(session.id, !session.pinned, session.profile)\n closeSessionActions()\n}\n\nasync function openSessionOutline() {\n const session = actionSession.value\n if (!session) return\n closeSessionActions()\n if (session.id !== chat.activeSessionId || session.profile !== chat.activeProfileName) await chooseSession(session.id)\n preview.value = null\n outlineOpen.value = true\n}\n\nfunction closeInspector() {\n const restoreMenuFocus = outlineOpen.value\n preview.value = null\n outlineOpen.value = false\n if (restoreMenuFocus) void nextTick(() => headerSessionMenuButton.value?.focus())\n}\n\nfunction navigateOutline(target: { messageId: string; anchorId: string }) {\n timeline.value?.scrollToAnchor(target.messageId, target.anchorId)\n if (window.matchMedia('(max-width: 900px)').matches) closeInspector()\n}\n\nasync function deleteSession() {\n const session = chat.sessions.find(item => item.id === actionSessionId.value)\n if (!session) return\n await chat.removeSession(session.id, session.profile)\n closeSessionActions()\n if (route.params.sessionId === session.id) await router.replace('/chat')\n}\n\nasync function branch() {\n const id = await chat.branchSession()\n if (id) await router.push(sessionLocation(id, chat.activeProfileName || auth.activeProfile?.name || 'default'))\n}\n\nasync function revealSourceMessage() {\n const messageId = typeof route.query.message === 'string' ? route.query.message : ''\n if (!messageId) return\n await nextTick()\n for (let attempt = 0; attempt < 10; attempt += 1) {\n if (timeline.value?.scrollToMessage(messageId)) return\n if (!chat.hasMoreBefore) return\n await chat.loadOlder()\n await nextTick()\n }\n}\n\nonMounted(async () => {\n restoreShowThinking()\n document.addEventListener('pointerdown', handleSessionActionPointer)\n document.addEventListener('keydown', handleSessionActionKey)\n window.addEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n await refreshSessions()\n await revealSourceMessage()\n})\n\nonBeforeUnmount(() => {\n document.removeEventListener('pointerdown', handleSessionActionPointer)\n document.removeEventListener('keydown', handleSessionActionKey)\n window.removeEventListener(MODEL_CATALOG_CHANGED_EVENT, handleModelCatalogChanged)\n if (modelSyncTimer !== undefined) window.clearInterval(modelSyncTimer)\n})\n\nwatch(() => auth.activeProfile?.name, async (profile, previous) => {\n if (!profile || profile === previous) return\n restoreShowThinking(profile)\n outlineOpen.value = false\n preview.value = null\n if (restoringRouteProfile.value === profile) {\n restoringRouteProfile.value = ''\n return\n }\n chat.switchProfile(profile)\n const requestedId = typeof route.params.sessionId === 'string' ? route.params.sessionId : ''\n if (requestedId && routeProfile() === profile) {\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n await chat.selectSession(requestedId, profile)\n return\n }\n await router.replace({ path: '/history', query: { profile } })\n await Promise.allSettled([chat.loadSessions(profile, 'history'), chat.loadUnread(profile)])\n})\n\nwatch(() => chat.activeSessionId, async id => {\n const profile = chat.activeProfileName || auth.activeProfile?.name || ''\n if (!id || (route.params.sessionId === id && routeProfile() === profile)) return\n await router.replace(sessionLocation(id, profile))\n})\n</script>\n\n<template>\n <WorkspaceView sidebar-title=\"历史记录\" :sidebar-subtitle=\"`${sessions.length} 个会话`\" :inspector-open=\"!!preview || outlineOpen\" :inspector-close-label=\"outlineOpen ? '关闭会话大纲' : '关闭预览'\" @close-inspector=\"closeInspector\">\n <template #sidebar>\n <ResourceSidebar\n :items=\"sidebarItems\"\n :active-id=\"chat.activeSessionId\"\n :loading=\"chat.isLoading\"\n external-search\n single-line\n :has-more=\"chat.hasMoreSessions\"\n :loading-more=\"chat.isLoadingMoreSessions\"\n search-placeholder=\"搜索会话\"\n empty-title=\"还没有历史会话\"\n empty-description=\"Hermes 会话会在这里以只读历史显示。\"\n @load-more=\"chat.loadMoreSessions(auth.activeProfile?.name)\"\n @select=\"chooseSession\"\n @more=\"openSessionActions\"\n @context-menu=\"openSessionActions\"\n />\n </template>\n\n <div class=\"chat-workspace\">\n <MessageTimeline\n ref=\"timeline\"\n :messages=\"messages\"\n :title=\"activeSession?.title || '历史记录'\"\n :subtitle=\"activeSession ? `${activeSession.profile || auth.activeProfile?.name || ''} · ${activeSession.model || '默认模型'}` : '选择左侧会话查看历史'\"\n :loading=\"chat.activeRouteState?.isLoadingHistory || chat.isLoading\"\n :loading-older=\"chat.activeRouteState?.isLoadingHistory\"\n :has-older=\"chat.hasMoreBefore\"\n :connected=\"false\"\n :synced=\"chat.historySynced\"\n :show-tools=\"showThinking\"\n :thinking=\"false\"\n :show-assistant-identity=\"false\"\n :agent-avatars=\"agentAvatars\"\n :allow-branch=\"false\"\n empty-title=\"选择历史记录\"\n empty-description=\"从左侧选择一条 Hermes 历史会话查看。\"\n read-only\n transparent-header\n @load-older=\"chat.loadOlder\"\n @preview=\"openAttachment\"\n @preview-file=\"openLocalFile\"\n >\n <template #header-actions>\n <button v-if=\"activeSession\" ref=\"headerSessionMenuButton\" class=\"icon-button header-session-menu\" type=\"button\" title=\"会话操作\" aria-label=\"会话操作\" @click=\"openSessionActions(activeSession.id, $event)\"><AppIcon name=\"dots\" :size=\"18\" /></button>\n </template>\n </MessageTimeline>\n <p v-if=\"chat.error\" class=\"chat-error\" role=\"alert\"><AppIcon name=\"alert\" :size=\"13\" />{{ chat.error }}</p>\n </div>\n\n <template #inspector>\n <SessionOutline v-if=\"outlineOpen\" :messages=\"messages\" :has-older=\"chat.hasMoreBefore\" @navigate=\"navigateOutline\" />\n <PreviewInspector v-else-if=\"preview\" :item=\"preview\" :can-add-to-composer=\"false\" @close=\"preview = null\" />\n </template>\n </WorkspaceView>\n\n <FloatingResourceSearch section=\"chat\" label=\"搜索会话\" :items=\"sidebarItems\" @select=\"chooseSession\" />\n <PreviewModal v-if=\"filePreview\" :item=\"filePreview\" :items=\"conversationMediaItems\" :can-add-to-composer=\"false\" @close=\"filePreview = null\" @source=\"filePreview = null\" />\n <ImagePreviewLightbox v-model=\"mediaPreviewIndex\" :images=\"lightboxMedia\" :can-add=\"false\" />\n\n <Teleport to=\"body\">\n <Transition name=\"session-menu\">\n <section v-if=\"actionSessionId\" class=\"session-actions\" :style=\"actionMenuStyle\" role=\"menu\" aria-label=\"会话操作\" @contextmenu.prevent>\n <button class=\"action-row\" role=\"menuitem\" type=\"button\" @click=\"openSessionOutline\"><AppIcon name=\"menu\" :size=\"14\" />会话大纲</button>\n </section>\n </Transition>\n </Teleport>\n</template>\n\n<style scoped>\n.chat-workspace { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }\n.sidebar-primary-action { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 12px; font-weight: 610; text-align: left; transition: background-color 120ms ease; }\n.sidebar-primary-action:hover, .sidebar-primary-action:focus-visible { background: var(--surface-hover); outline: 0; }\n.sidebar-primary-action:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }\n.header-session-menu { color: var(--text-muted); background: transparent; }.header-session-menu:hover { color: var(--text-primary); background: var(--surface-soft); }\n.chat-error { display: flex; width: min(760px, calc(100% - 32px)); margin: 0 auto 4px; align-items: center; gap: 6px; color: var(--danger); font-size: 9px; }\n.session-actions { position: fixed; z-index: 205; width: 208px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 12px 34px rgba(0,0,0,.16); }.action-row { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 11px; text-align: left; }.action-row:hover, .action-row:focus-visible { outline: 0; background: var(--surface-soft); color: var(--text-primary); }.action-row.danger { color: var(--danger); }.session-actions label { display: flex; flex-direction: column; gap: 6px; padding: 4px; color: var(--text-muted); font-size: 9px; }.session-actions input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text-primary); font-size: 11px; }.session-actions input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--focus-ring); }.session-actions > div { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; padding: 0 4px 3px; }.session-actions :deep(.quiet-button), .session-actions :deep(.solid-button) { min-height: 29px; padding-inline: 10px; font-size: 10px; }\n.session-menu-enter-active, .session-menu-leave-active { transition: opacity 100ms ease, transform 120ms var(--ease-out); transform-origin: top right; }.session-menu-enter-from, .session-menu-leave-to { opacity: 0; transform: translateY(-3px) scale(.98); }\n@media (prefers-reduced-motion: reduce) { .sidebar-primary-action, .session-menu-enter-active, .session-menu-leave-active { transition: none; } }\n</style>\n"],"mappings":"+wBA+BA,IAAM,EAAO,GAAa,EACpB,EAAO,GAAa,EACpB,EAAQ,GAAS,EACjB,EAAS,GAAU,EACnB,EAAS,EAAsB,IAAI,EACnC,EAAU,EAA0B,IAAI,EACxC,EAAc,EAA0B,IAAI,EAC5C,EAAoB,EAAmB,IAAI,EAC3C,EAAc,EAAI,EAAK,EACT,EAAI,EAAK,EACN,EAAI,EAAK,EAChC,IAAM,EAAe,EAAI,EAAK,EACZ,EAAI,EAAK,EAC3B,IAAM,EAAkB,EAAI,EAAE,EACxB,EAAW,EAAI,EAAK,EACpB,GAAc,EAAI,EAAE,EACpB,EAAqB,EAAI,CAAE,EAAG,EAAG,EAAG,CAAE,CAAC,EAC5B,EAA+C,IAAI,EACpE,IAAM,EAAW,EAAiD,IAAI,EAChE,EAA0B,EAA8B,IAAI,EAC5D,EAAwB,EAAI,EAAE,EAGpC,SAAS,EAA0B,EAAc,CAC/C,IAAM,EAAU,EAA2B,CAAK,EAC5C,GAAW,IAAY,EAAK,e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