@inupedia/spotlight-vue 0.8.3 → 0.8.5

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.
@@ -1 +1 @@
1
- .inspira-card-spotlight[data-v-451e3591]{position:relative;display:flex;width:100%;min-width:0;height:100%;overflow:hidden;border-radius:12px}.inspira-card-spotlight__content[data-v-451e3591]{position:relative;z-index:10;width:100%;min-width:0;height:100%}.inspira-card-spotlight__gradient[data-v-451e3591]{pointer-events:none;position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s ease}.inspira-card-spotlight:hover .inspira-card-spotlight__gradient[data-v-451e3591]{opacity:1}.border-beam-official[data-v-3cee2783]{--size: var(--v602b8bb2);--duration: var(--e7874400);--anchor: var(--v5fc92b5b);--border-width: var(--c1a8d7d8);--color-from: var(--v2bd85f47);--color-to: var(--v055f9958);--delay: var(--v770d7dfd);position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:calc(var(--border-width) * 1px) solid transparent;mask-image:linear-gradient(transparent,transparent),linear-gradient(#fff,#fff);mask-clip:padding-box,border-box;mask-composite:intersect;-webkit-mask-image:linear-gradient(transparent,transparent),linear-gradient(white,white);-webkit-mask-clip:padding-box,border-box;-webkit-mask-composite:source-in}.border-beam-official[data-v-3cee2783]:after{content:"";position:absolute;top:0;left:0;width:calc(var(--size) * 1px);aspect-ratio:1 / 1;background:linear-gradient(to left,var(--color-from),var(--color-to),transparent);offset-anchor:calc(var(--anchor) * 1%) 50%;offset-path:rect(0 auto auto 0 round calc(var(--size) * 1px));animation:border-beam-official-anim-3cee2783 var(--duration) infinite linear;animation-delay:var(--delay)}@keyframes border-beam-official-anim-3cee2783{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.border-beam-official[data-v-3cee2783]:after{animation:none}}.spotlight-backdrop[data-v-b381bab1]{position:fixed;inset:0;background:radial-gradient(120% 80% at 50% 0%,#bae6fd47,#f0fdfa14 42%,#0f172a38);backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;transition:background .28s ease,backdrop-filter .28s ease}.spotlight-panel[data-v-b381bab1]{position:fixed;left:50%;top:12vh;transform:translate(-50%);width:min(680px,calc(100% - 40px));max-height:82vh;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,system-ui,sans-serif;background:linear-gradient(165deg,#ffffffeb,#f8fafce0 52%,#f0fdfadb);border-radius:22px;border:1px solid rgba(148,163,184,.28);box-shadow:0 24px 64px #0f172a1f,0 8px 24px #0f172a0f,inset 0 1px #ffffffd9;padding:16px 16px 14px;color:#0f172a;display:flex;flex-direction:column;gap:12px;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35)}.spotlight-panel.is-memory-on[data-v-b381bab1]{border-color:#2dd4bf6b;box-shadow:0 24px 64px #0f172a1f,0 0 0 1px #2dd4bf1f,0 12px 36px #2dd4bf1a}.spotlight-panel-beam[data-v-b381bab1]{z-index:2}.spotlight-permission-banner[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.24);background:#ffffffb8}.spotlight-permission-banner-body[data-v-b381bab1]{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:#475569}.spotlight-permission-banner-body strong[data-v-b381bab1]{color:#0f172a;font-weight:600}.spotlight-permission-banner-actions[data-v-b381bab1]{display:flex;gap:8px;flex-shrink:0}.spotlight-permission-btn[data-v-b381bab1]{border:0;border-radius:999px;min-height:32px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .18s ease,transform .18s ease}.spotlight-permission-btn[data-v-b381bab1]:active{transform:scale(.98);opacity:.88}.spotlight-permission-btn.is-approve[data-v-b381bab1]{background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff}.spotlight-permission-btn.is-dismiss[data-v-b381bab1]{background:#94a3b82e;color:#334155}.spotlight-input-shell[data-v-b381bab1],.spotlight-list-shell[data-v-b381bab1]{position:relative;width:100%;min-width:0;border-radius:14px;box-sizing:border-box}.spotlight-input-wrap[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:14px;border:1px solid rgba(148,163,184,.22);box-sizing:border-box;background:#ffffffc7;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.spotlight-voice-shell[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.22);background:#ffffffc7;box-sizing:border-box}.spotlight-voice-text[data-v-b381bab1]{font-size:15px;line-height:1.4;color:#334155}.spotlight-voice-mic[data-v-b381bab1]{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(148,163,184,.28);background:#f8fafce6;color:#ef4444}.spotlight-voice-shell.is-transcribing .spotlight-voice-mic[data-v-b381bab1]{color:#0ea5e9}.spotlight-input-wrap.is-running[data-v-b381bab1]{border-color:#0ea5e973;box-shadow:0 0 0 3px #0ea5e91a}.spotlight-input-wrap.is-done[data-v-b381bab1]{border-color:#10b9816b}.spotlight-input-wrap.is-error[data-v-b381bab1]{border-color:#ef444473}.spotlight-input[data-v-b381bab1]{flex:1;min-width:0;border:0;outline:none;background:transparent;color:#0f172a;font-size:17px;font-weight:400;letter-spacing:-.01em}.spotlight-input[data-v-b381bab1]::placeholder{color:#94a3b8}.spotlight-agent-badge[data-v-b381bab1]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#f8fafceb;color:#64748b;font-size:12px;font-weight:600}.spotlight-agent-badge-dot[data-v-b381bab1]{width:7px;height:7px;border-radius:50%;background:#94a3b8}.spotlight-agent-badge.is-running[data-v-b381bab1]{color:#0284c7}.spotlight-agent-badge.is-running .spotlight-agent-badge-dot[data-v-b381bab1]{background:#0ea5e9}.spotlight-agent-badge.is-done[data-v-b381bab1]{color:#059669}.spotlight-agent-badge.is-done .spotlight-agent-badge-dot[data-v-b381bab1]{background:#10b981}.spotlight-agent-badge.is-error[data-v-b381bab1]{color:#dc2626}.spotlight-agent-badge.is-error .spotlight-agent-badge-dot[data-v-b381bab1]{background:#ef4444}.spotlight-command-deck[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;position:relative;z-index:3}.spotlight-command-deck-meta[data-v-b381bab1]{display:flex;align-items:center;gap:10px;min-width:0}.spotlight-command-deck-kicker[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;letter-spacing:.02em}.spotlight-command-deck-status[data-v-b381bab1]{color:#0f172a;font-size:13px;font-weight:600;letter-spacing:-.01em}.spotlight-memory-dot-btn[data-v-b381bab1]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:-8px -6px -8px 0;padding:0 10px;border:0;border-radius:999px;background:transparent;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent;transition:transform .18s ease}.spotlight-memory-label[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.spotlight-memory-dot-btn[data-v-b381bab1]:active{transform:scale(.94)}.spotlight-memory-dot-btn[data-v-b381bab1]:focus-visible{outline:none;box-shadow:0 0 0 3px #2dd4bf59}.spotlight-memory-dot[data-v-b381bab1]{position:relative;width:8px;height:8px;border-radius:50%;background:#cbd5e1;transition:background .28s ease,box-shadow .28s ease,transform .28s ease}.spotlight-memory-dot.is-on[data-v-b381bab1]{background:#14b8a6;box-shadow:0 0 #14b8a673;animation:spotlight-memory-dot-pulse-b381bab1 3.2s ease-in-out infinite}.spotlight-memory-dot.is-on[data-v-b381bab1]:after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(45,212,191,.35);opacity:0;animation:spotlight-memory-dot-ring-b381bab1 3.2s ease-in-out infinite}@keyframes spotlight-memory-dot-pulse-b381bab1{0%,to{opacity:.72;box-shadow:0 0 #14b8a647;transform:scale(.96)}50%{opacity:1;box-shadow:0 0 0 6px #14b8a600;transform:scale(1)}}@keyframes spotlight-memory-dot-ring-b381bab1{0%,to{opacity:0;transform:scale(.85)}50%{opacity:.55;transform:scale(1.15)}}.spotlight-list[data-v-b381bab1]{margin:0;padding:6px;list-style:none;max-height:min(54vh,480px);overflow:auto;border-radius:14px;border:1px solid rgba(148,163,184,.2);background:#ffffff9e}.spotlight-item[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .18s ease}.spotlight-item[data-v-b381bab1]:hover,.spotlight-item.is-selected[data-v-b381bab1]{background:#f1f5f9f2}.spotlight-item.is-selected[data-v-b381bab1]{background:#ccfbf1b8}.spotlight-item-label[data-v-b381bab1]{color:#0f172a;font-size:15px;font-weight:400;letter-spacing:-.01em}.spotlight-item-hint[data-v-b381bab1],.spotlight-list-divider[data-v-b381bab1]{color:#94a3b8;font-size:12px;font-weight:500}.spotlight-list-divider[data-v-b381bab1]{display:flex;align-items:center;gap:10px;padding:8px 12px 4px;pointer-events:none}.spotlight-list-divider[data-v-b381bab1]:after{content:"";flex:1;height:.5px;background:#94a3b847}.spotlight-voice-mic-icon[data-v-b381bab1]{position:relative;display:block;width:14px;height:18px}.spotlight-voice-mic-body[data-v-b381bab1]{position:absolute;inset:0 2px 6px;border:2px solid currentColor;border-radius:999px}.spotlight-voice-mic-stem[data-v-b381bab1]{position:absolute;left:50%;bottom:0;width:2px;height:5px;transform:translate(-50%);background:currentColor;border-radius:1px}.spotlight-voice-shell.is-recording[data-v-b381bab1]{border-color:#ef444459;box-shadow:0 0 0 3px #ef444414}.spotlight-voice-shell.is-transcribing[data-v-b381bab1]{border-color:#0ea5e959;box-shadow:0 0 0 3px #0ea5e914}.spotlight-voice-beam[data-v-b381bab1]{display:block}.spotlight-item--empty[data-v-b381bab1]{cursor:default;opacity:.72}@media(max-width:768px){.spotlight-panel[data-v-b381bab1]{width:calc(100% - 24px);top:8vh;padding:14px}.spotlight-command-deck[data-v-b381bab1]{flex-wrap:wrap}.spotlight-input[data-v-b381bab1]{font-size:16px}.spotlight-agent-badge[data-v-b381bab1]{align-self:flex-start}}@media(prefers-reduced-motion:reduce){.spotlight-backdrop[data-v-b381bab1],.spotlight-panel[data-v-b381bab1],.spotlight-input-wrap[data-v-b381bab1],.spotlight-memory-dot[data-v-b381bab1],.spotlight-memory-dot.is-on[data-v-b381bab1]:after,.spotlight-item[data-v-b381bab1],.spotlight-permission-btn[data-v-b381bab1],.spotlight-memory-dot-btn[data-v-b381bab1]{transition:none;animation:none}}.thinking-bar[data-v-de0d91bb]{--tb-text: #0f172a;--tb-text-secondary: #475569;--tb-text-muted: #64748b;--tb-text-faint: #94a3b8;--tb-border: rgba(148, 163, 184, .28);--tb-surface: rgba(255, 255, 255, .94);--tb-surface-soft: rgba(248, 250, 252, .92);--tb-surface-inset: rgba(255, 255, 255, .88);--tb-accent: #14b8a6;--tb-info: #0ea5e9;--tb-success: #10b981;--tb-error: #ef4444;--tb-radius-xl: 22px;--tb-radius-lg: 16px;--tb-radius-md: 14px;--tb-radius-sm: 12px;--tb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;position:fixed;width:min(720px,calc(100vw - 48px));max-height:min(78vh,820px);display:flex;flex-direction:column;min-height:0;font-family:var(--tb-font);background:linear-gradient(165deg,#fffffff5,#f8fafcf0 55%,#f0fdfaeb);border-radius:var(--tb-radius-xl);border:1px solid var(--tb-border);box-shadow:0 24px 64px #0f172a1a,0 8px 24px #0f172a0d,inset 0 1px #ffffffe6;color:var(--tb-text);z-index:10000;overflow:hidden;opacity:0;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35);transition:opacity .28s ease,transform .28s ease}.thinking-bar--open[data-v-de0d91bb]{opacity:1}.thinking-bar--embedded[data-v-de0d91bb]{position:relative;right:auto;bottom:auto;width:100%;max-height:100%}.thinking-bar--centered[data-v-de0d91bb]{left:50%;top:50%;width:min(980px,calc(100vw - 56px));transform:translate(-50%,-50%) scale(.98);transform-origin:center}.thinking-bar--centered.thinking-bar--open[data-v-de0d91bb]{transform:translate(-50%,-50%) scale(1)}.thinking-bar--corner[data-v-de0d91bb]{right:24px;bottom:24px;width:min(520px,calc(100vw - 28px));max-height:min(76vh,calc(100vh - 36px));border-radius:20px;transform:scale(.98);transform-origin:right bottom}.thinking-bar--corner.thinking-bar--open[data-v-de0d91bb]{transform:scale(1)}.thinking-bar-grid[data-v-de0d91bb]{display:none}.thinking-bar-header[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--tb-border);flex-shrink:0}.thinking-bar-title-stack[data-v-de0d91bb]{display:grid;gap:2px;min-width:0}.thinking-bar-kicker[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:12px;font-weight:600;letter-spacing:.02em}.thinking-bar-title[data-v-de0d91bb]{color:var(--tb-text);font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.35;min-width:0}.thinking-bar-memory-badge[data-v-de0d91bb]{display:inline-flex;width:fit-content;margin-top:4px;padding:3px 8px;border-radius:999px;border:1px solid rgba(14,165,233,.28);background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-memory-refresh[data-v-de0d91bb]{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;border:1px solid color-mix(in srgb,var(--spotlight-accent, #0f766e) 35%,transparent);border-radius:999px;padding:4px 9px;background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 8%,transparent);color:inherit;font:inherit;font-size:12px;line-height:1.35;white-space:nowrap;cursor:pointer}.thinking-bar-memory-refresh[data-v-de0d91bb]:hover{background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 16%,transparent)}.thinking-bar-memory-result[data-v-de0d91bb]{position:relative;display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;padding:18px;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle at 8% 0%,rgba(20,184,166,.1),transparent 34%),#f8fafc8f}.thinking-bar-memory-result-intro[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid rgba(20,184,166,.24);border-radius:var(--tb-radius-lg);background:#f0fdfad1}.thinking-bar-memory-result-icon[data-v-de0d91bb]{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:999px;background:var(--tb-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 6px 14px #14b8a633}.thinking-bar-memory-result-copy[data-v-de0d91bb]{display:grid;min-width:0;gap:3px}.thinking-bar-memory-result-eyebrow[data-v-de0d91bb]{color:#0f766e;font-size:11px;font-weight:700;letter-spacing:.04em}.thinking-bar-memory-result-copy strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.45}.thinking-bar-memory-result-copy p[data-v-de0d91bb]{margin:0;color:var(--tb-text-muted);font-size:12px;line-height:1.55}.thinking-bar-memory-result-answer[data-v-de0d91bb]{min-width:0;padding:18px 20px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-lg);background:#ffffffe6;box-shadow:0 8px 24px #0f172a0a}.thinking-bar-memory-result-answer-label[data-v-de0d91bb]{margin-bottom:10px;color:var(--tb-text-muted);font-size:11px;font-weight:700;letter-spacing:.06em}.thinking-bar-memory-result-footer[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--tb-text-muted);font-size:11px;line-height:1.5}.thinking-bar-memory-result-refresh[data-v-de0d91bb]{flex:0 0 auto;padding:7px 12px;color:#0f766e;font-size:12px;font-weight:600}.thinking-bar-metrics[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;margin-left:auto}.thinking-bar-metric[data-v-de0d91bb]{display:grid;min-width:58px;padding:7px 9px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);text-align:center}.thinking-bar-metric strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.1}.thinking-bar-metric em[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:10px;font-style:normal;line-height:1.2}.thinking-bar-close[data-v-de0d91bb]{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.thinking-bar-close[data-v-de0d91bb]:hover{background:var(--tb-surface-soft);color:var(--tb-text)}.thinking-bar-steps[data-v-de0d91bb]{padding:14px 16px 16px;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#f8fafc73}.thinking-bar-steps[data-v-de0d91bb],.thinking-bar-step-body[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb],.thinking-bar-tool-result-table-wrap[data-v-de0d91bb],.thinking-bar-file-tree-body[data-v-de0d91bb],.thinking-bar-file-preview-body[data-v-de0d91bb]{-ms-overflow-style:none;scrollbar-width:none}.thinking-bar-steps[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-step-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-call-block[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-tree-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-preview-body[data-v-de0d91bb]::-webkit-scrollbar{display:none}.thinking-bar-step[data-v-de0d91bb]{position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-width:0;padding:12px 14px;border-radius:var(--tb-radius-lg);border:1px solid var(--tb-border);background:var(--tb-surface-inset);box-shadow:0 1px 2px #0f172a0a;overflow:hidden}.thinking-bar-step.active[data-v-de0d91bb]{border-color:#14b8a661;box-shadow:0 0 0 1px #14b8a61f}.thinking-bar-step.done[data-v-de0d91bb]{border-color:#0ea5e947}.thinking-bar-step.error[data-v-de0d91bb]{border-color:#ef444452}.thinking-bar-step.pending[data-v-de0d91bb]{opacity:.72}.thinking-bar-step-inner[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;min-width:0}.thinking-bar-step-status[data-v-de0d91bb]{flex-shrink:0;width:10px;height:10px;margin-top:5px;border-radius:999px;background:var(--tb-text-faint)}.thinking-bar-step-status.is-active[data-v-de0d91bb]{background:var(--tb-accent);box-shadow:0 0 0 4px #14b8a62e}.thinking-bar-step-status.is-done[data-v-de0d91bb]{background:var(--tb-info)}.thinking-bar-step-status.is-error[data-v-de0d91bb]{background:var(--tb-error)}.thinking-bar-step-column[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;font-weight:600;line-height:1.45}.thinking-bar-step.pending .thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-step-body[data-v-de0d91bb]{max-height:min(42vh,400px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.thinking-bar-step-text[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-step-process[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-gather-process[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-gather-headline[data-v-de0d91bb],.thinking-bar-gather-note[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-gather-note[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-source-list[data-v-de0d91bb]{margin:0;padding:0 0 0 1.35em;color:var(--tb-text);font-size:14px;line-height:1.55}.thinking-bar-source-list li+li[data-v-de0d91bb]{margin-top:6px}.thinking-bar-step-markdown[data-v-de0d91bb]{white-space:normal}.thinking-bar-md-preview[data-v-de0d91bb]{--md-theme-bg-color: transparent;--md-color: var(--tb-text-secondary);--md-bk-color: transparent;--md-border-color: var(--tb-border);--md-code-bg-color: rgba(241, 245, 249, .98);--md-code-color: #0f766e;--md-table-even-color: rgba(248, 250, 252, .98);--md-table-odd-color: rgba(255, 255, 255, .98);--md-table-header-bg-color: rgba(241, 245, 249, .98)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview-wrapper{padding:0}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview li,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview li{color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h3,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h3{margin:8px 0 4px;color:var(--tb-text);font-size:14px;font-weight:600}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview strong{color:var(--tb-text)}.thinking-bar-tool-step-flow[data-v-de0d91bb]{--thinking-detail-gap: 10px;display:flex;flex-direction:column;gap:var(--thinking-detail-gap)}.thinking-bar-step-answer-section[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-step-section-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details[data-v-de0d91bb],.thinking-bar-tool-call[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-tool-call--nested[data-v-de0d91bb]{border-style:dashed;background:#ffffffb8}.thinking-bar-execution-details-summary[data-v-de0d91bb],.thinking-bar-tool-call-head[data-v-de0d91bb]{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none;background:var(--tb-surface-soft)}.thinking-bar-execution-details-summary[data-v-de0d91bb]::-webkit-details-marker,.thinking-bar-tool-call-head[data-v-de0d91bb]::-webkit-details-marker{display:none}.thinking-bar-tool-call-head-main[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.thinking-bar-tool-call-head-side[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;flex-shrink:0}.thinking-bar-execution-details-title[data-v-de0d91bb],.thinking-bar-tool-call-name[data-v-de0d91bb],.thinking-bar-workspace-title[data-v-de0d91bb],.thinking-bar-nested-tools-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details-meta[data-v-de0d91bb]{margin-left:auto;padding:2px 8px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{color:var(--tb-text-faint);font-size:12px;transition:transform .18s ease}.thinking-bar-execution-details[open] .thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call[open] .thinking-bar-tool-call-caret[data-v-de0d91bb]{transform:rotate(180deg)}.thinking-bar-execution-details-body[data-v-de0d91bb],.thinking-bar-tool-call-body[data-v-de0d91bb]{display:grid;gap:var(--thinking-detail-gap, 10px);padding:12px;border-top:1px solid var(--tb-border);max-height:min(40vh,380px);overflow-y:auto}.thinking-bar-execution-planning[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb]{margin:0;padding:10px 12px;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border);background:#fffffff5;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.thinking-bar-tool-call-block[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px;max-height:min(28vh,280px);overflow:auto}.thinking-bar-tool-call-block-title[data-v-de0d91bb]{margin:0;color:#0d9488;font-size:11px;font-weight:700;letter-spacing:.03em}.thinking-bar-tool-call-block--error[data-v-de0d91bb]{border-color:#ef444447}.thinking-bar-tool-call-block--error .thinking-bar-tool-call-block-title[data-v-de0d91bb]{color:#dc2626}.thinking-bar-tool-call-pre[data-v-de0d91bb],.thinking-bar-tool-trace-item[data-v-de0d91bb],.thinking-bar-tool-call-id[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.thinking-bar-tool-call-id[data-v-de0d91bb]{font-size:11px;color:var(--tb-text-faint)}.thinking-bar-tool-call-status[data-v-de0d91bb]{padding:3px 9px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-tool-call-status.is-running[data-v-de0d91bb]{background:#f59e0b1f;border-color:#f59e0b47;color:#b45309}.thinking-bar-tool-call-status.is-done[data-v-de0d91bb]{background:#10b9811f;border-color:#10b98147;color:#047857}.thinking-bar-tool-call-status.is-error[data-v-de0d91bb]{background:#ef44441a;border-color:#ef444447;color:#b91c1c}.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]{overflow:auto;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border)}.thinking-bar-tool-result-table[data-v-de0d91bb]{width:100%;border-collapse:collapse;font-size:12px}.thinking-bar-tool-result-table th[data-v-de0d91bb],.thinking-bar-tool-result-table td[data-v-de0d91bb]{padding:8px 10px;text-align:left;border-bottom:1px solid var(--tb-border);white-space:pre-wrap;word-break:break-word}.thinking-bar-tool-result-table th[data-v-de0d91bb]{background:#f1f5f9fa;color:var(--tb-text);font-weight:600}.thinking-bar-tool-result-table td[data-v-de0d91bb]{color:var(--tb-text-secondary);background:#fff}.thinking-bar-tool-result-image-shell[data-v-de0d91bb]{padding:8px;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachments[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment[data-v-de0d91bb]{padding:10px;border-radius:var(--tb-radius-md);border:1px solid rgba(14,165,233,.22);background:var(--tb-surface);text-decoration:none;color:inherit}.thinking-bar-attachment-name[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-attachment-type[data-v-de0d91bb]{color:#0284c7;font-size:12px}.thinking-bar-workspace-shell[data-v-de0d91bb]{display:grid;grid-template-columns:minmax(210px,240px) minmax(0,1fr);gap:10px}.thinking-bar-file-tree-pane[data-v-de0d91bb],.thinking-bar-file-preview[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-file-tree-head[data-v-de0d91bb],.thinking-bar-file-preview-head[data-v-de0d91bb]{padding:10px 12px;border-bottom:1px solid var(--tb-border);color:var(--tb-text-secondary);font-size:12px;font-weight:600}.thinking-bar-file-tree-body[data-v-de0d91bb]{max-height:min(200px,100%);overflow:auto;padding:6px 0}.thinking-bar-tree-row[data-v-de0d91bb]{width:100%;min-height:34px;display:flex;align-items:center;gap:6px;padding:0 10px;border:0;background:transparent;color:var(--tb-text-secondary);text-align:left;cursor:pointer}.thinking-bar-tree-row[data-v-de0d91bb]:hover{background:#f1f5f9f2}.thinking-bar-tree-row--file.active[data-v-de0d91bb]{background:#ccfbf1a6;color:#0f766e}.thinking-bar-file-preview-body[data-v-de0d91bb]{margin:0;padding:12px;color:var(--tb-text-secondary);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-preview-chip[data-v-de0d91bb]{padding:2px 8px;border-radius:999px;background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-empty-preview[data-v-de0d91bb]{padding:16px;color:var(--tb-text-muted);font-size:13px}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview table{display:block;overflow:auto;border-radius:var(--tb-radius-sm)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview thead th{position:static}.thinking-bar-step-answer[data-v-de0d91bb]{margin:0}.thinking-bar-chat-items[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-chat-item[data-v-de0d91bb]{min-width:0}.thinking-bar-tool-trace-list[data-v-de0d91bb]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.thinking-bar-tool-trace-item[data-v-de0d91bb]{color:var(--tb-text-secondary);line-height:1.5}.thinking-bar-tool-result-image[data-v-de0d91bb]{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-tool-result-html[data-v-de0d91bb]{width:100%;min-height:min(200px,22vh);border:none;border-radius:var(--tb-radius-sm);background:#fff}.thinking-bar-attachment[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment-image[data-v-de0d91bb]{width:100%;max-height:240px;object-fit:contain;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachment-meta[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.thinking-bar-workspace[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px;margin-top:4px}.thinking-bar-tree-node[data-v-de0d91bb]{display:block}.thinking-bar-tree-row--directory[data-v-de0d91bb]{color:var(--tb-text)}.thinking-bar-tree-caret[data-v-de0d91bb],.thinking-bar-tree-icon[data-v-de0d91bb]{flex-shrink:0}.thinking-bar-tree-label[data-v-de0d91bb]{min-width:0;font-size:12px;line-height:1.5;word-break:break-word}.thinking-bar-file-preview[data-v-de0d91bb]{min-width:0;display:flex;flex-direction:column;min-height:0}.thinking-bar-file-preview-title[data-v-de0d91bb]{min-width:0;display:flex;align-items:center;gap:8px}.thinking-bar-image-shell[data-v-de0d91bb]{flex:1;display:flex;align-items:center;justify-content:center;padding:12px;background:#f8fafcfa}.thinking-bar-image-preview[data-v-de0d91bb]{max-width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-html-preview[data-v-de0d91bb]{flex:1;min-height:min(200px,28vh);border:none;background:#fff}.thinking-bar--corner .thinking-bar-title[data-v-de0d91bb]{font-size:16px}.thinking-bar--corner .thinking-bar-step-label[data-v-de0d91bb]{font-size:14px}.thinking-bar--corner .thinking-bar-step-text[data-v-de0d91bb],.thinking-bar--corner .thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview{font-size:13px}.thinking-bar--corner .thinking-bar-tool-call-body[data-v-de0d91bb]{max-height:min(36vh,300px)}.thinking-bar--corner .thinking-bar-tool-call-block[data-v-de0d91bb]{max-height:min(24vh,200px)}.thinking-bar--corner .thinking-bar-header[data-v-de0d91bb]{padding:14px 16px 12px}.thinking-bar--corner .thinking-bar-steps[data-v-de0d91bb]{padding:12px 14px 14px}@media(max-width:768px){.thinking-bar--centered[data-v-de0d91bb]{width:calc(100vw - 24px);max-height:72vh}.thinking-bar--corner[data-v-de0d91bb]{right:12px;bottom:12px;width:min(360px,calc(100vw - 24px))}.thinking-bar-header[data-v-de0d91bb]{align-items:flex-start;flex-wrap:wrap}.thinking-bar-metrics[data-v-de0d91bb]{display:none}.thinking-bar-workspace-shell[data-v-de0d91bb]{grid-template-columns:1fr}.thinking-bar-memory-result[data-v-de0d91bb]{padding:14px}.thinking-bar-memory-result-footer[data-v-de0d91bb]{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.thinking-bar[data-v-de0d91bb],.thinking-bar-close[data-v-de0d91bb],.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{transition:none}}.live2d-panel-shell[data-v-8602f159]{position:fixed;right:220px;bottom:16px;z-index:5000;width:min(420px,42vw);height:min(560px,52vh);pointer-events:none}.live2d-panel[data-v-8602f159]{position:absolute;inset:0;pointer-events:auto;touch-action:none;background:transparent}.live2d-speech-bubble[data-v-8602f159]{position:absolute;right:calc(100% - 36px);bottom:44%;width:min(360px,40vw);max-height:32vh;overflow:hidden auto;border-radius:20px;border:1px solid rgba(148,163,184,.35);background:linear-gradient(165deg,#fffffff5,#f0fdfaf0);box-shadow:0 18px 36px #0f172a1a,inset 0 1px #ffffffe6;color:#0f172a;padding:10px 12px;pointer-events:auto}.live2d-speech-bubble.is-speaking[data-v-8602f159]{border-color:#14b8a673;box-shadow:0 20px 40px #14b8a624,0 0 0 1px #0ea5e92e,inset 0 1px #ffffffe6}.live2d-speech-head[data-v-8602f159]{display:inline-flex;align-items:center;gap:8px;color:#0d9488;font-size:12px;line-height:1}.live2d-speech-dot[data-v-8602f159]{width:8px;height:8px;border-radius:999px;background:currentcolor;box-shadow:0 0 12px currentcolor}.live2d-speech-bubble.is-speaking .live2d-speech-dot[data-v-8602f159]{animation:speech-pulse-8602f159 1.1s ease-in-out infinite}.live2d-speech-text[data-v-8602f159]{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.55;color:#334155}.speech-bubble-enter-active[data-v-8602f159],.speech-bubble-leave-active[data-v-8602f159]{transition:all .28s ease}.speech-bubble-enter-from[data-v-8602f159],.speech-bubble-leave-to[data-v-8602f159]{opacity:0;transform:translate(10px) scale(.98)}@keyframes speech-pulse-8602f159{0%{opacity:.65;transform:scale(.95)}50%{opacity:1;transform:scale(1.12)}to{opacity:.65;transform:scale(.95)}}
1
+ .inspira-card-spotlight[data-v-451e3591]{position:relative;display:flex;width:100%;min-width:0;height:100%;overflow:hidden;border-radius:12px}.inspira-card-spotlight__content[data-v-451e3591]{position:relative;z-index:10;width:100%;min-width:0;height:100%}.inspira-card-spotlight__gradient[data-v-451e3591]{pointer-events:none;position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s ease}.inspira-card-spotlight:hover .inspira-card-spotlight__gradient[data-v-451e3591]{opacity:1}.border-beam-official[data-v-3cee2783]{--size: var(--v602b8bb2);--duration: var(--e7874400);--anchor: var(--v5fc92b5b);--border-width: var(--c1a8d7d8);--color-from: var(--v2bd85f47);--color-to: var(--v055f9958);--delay: var(--v770d7dfd);position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:calc(var(--border-width) * 1px) solid transparent;mask-image:linear-gradient(transparent,transparent),linear-gradient(#fff,#fff);mask-clip:padding-box,border-box;mask-composite:intersect;-webkit-mask-image:linear-gradient(transparent,transparent),linear-gradient(white,white);-webkit-mask-clip:padding-box,border-box;-webkit-mask-composite:source-in}.border-beam-official[data-v-3cee2783]:after{content:"";position:absolute;top:0;left:0;width:calc(var(--size) * 1px);aspect-ratio:1 / 1;background:linear-gradient(to left,var(--color-from),var(--color-to),transparent);offset-anchor:calc(var(--anchor) * 1%) 50%;offset-path:rect(0 auto auto 0 round calc(var(--size) * 1px));animation:border-beam-official-anim-3cee2783 var(--duration) infinite linear;animation-delay:var(--delay)}@keyframes border-beam-official-anim-3cee2783{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.border-beam-official[data-v-3cee2783]:after{animation:none}}.spotlight-backdrop[data-v-b381bab1]{position:fixed;inset:0;background:radial-gradient(120% 80% at 50% 0%,#bae6fd47,#f0fdfa14 42%,#0f172a38);backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;transition:background .28s ease,backdrop-filter .28s ease}.spotlight-panel[data-v-b381bab1]{position:fixed;left:50%;top:12vh;transform:translate(-50%);width:min(680px,calc(100% - 40px));max-height:82vh;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,system-ui,sans-serif;background:linear-gradient(165deg,#ffffffeb,#f8fafce0 52%,#f0fdfadb);border-radius:22px;border:1px solid rgba(148,163,184,.28);box-shadow:0 24px 64px #0f172a1f,0 8px 24px #0f172a0f,inset 0 1px #ffffffd9;padding:16px 16px 14px;color:#0f172a;display:flex;flex-direction:column;gap:12px;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35)}.spotlight-panel.is-memory-on[data-v-b381bab1]{border-color:#2dd4bf6b;box-shadow:0 24px 64px #0f172a1f,0 0 0 1px #2dd4bf1f,0 12px 36px #2dd4bf1a}.spotlight-panel-beam[data-v-b381bab1]{z-index:2}.spotlight-permission-banner[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.24);background:#ffffffb8}.spotlight-permission-banner-body[data-v-b381bab1]{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:#475569}.spotlight-permission-banner-body strong[data-v-b381bab1]{color:#0f172a;font-weight:600}.spotlight-permission-banner-actions[data-v-b381bab1]{display:flex;gap:8px;flex-shrink:0}.spotlight-permission-btn[data-v-b381bab1]{border:0;border-radius:999px;min-height:32px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .18s ease,transform .18s ease}.spotlight-permission-btn[data-v-b381bab1]:active{transform:scale(.98);opacity:.88}.spotlight-permission-btn.is-approve[data-v-b381bab1]{background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff}.spotlight-permission-btn.is-dismiss[data-v-b381bab1]{background:#94a3b82e;color:#334155}.spotlight-input-shell[data-v-b381bab1],.spotlight-list-shell[data-v-b381bab1]{position:relative;width:100%;min-width:0;border-radius:14px;box-sizing:border-box}.spotlight-input-wrap[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:14px;border:1px solid rgba(148,163,184,.22);box-sizing:border-box;background:#ffffffc7;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.spotlight-voice-shell[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.22);background:#ffffffc7;box-sizing:border-box}.spotlight-voice-text[data-v-b381bab1]{font-size:15px;line-height:1.4;color:#334155}.spotlight-voice-mic[data-v-b381bab1]{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(148,163,184,.28);background:#f8fafce6;color:#ef4444}.spotlight-voice-shell.is-transcribing .spotlight-voice-mic[data-v-b381bab1]{color:#0ea5e9}.spotlight-input-wrap.is-running[data-v-b381bab1]{border-color:#0ea5e973;box-shadow:0 0 0 3px #0ea5e91a}.spotlight-input-wrap.is-done[data-v-b381bab1]{border-color:#10b9816b}.spotlight-input-wrap.is-error[data-v-b381bab1]{border-color:#ef444473}.spotlight-input[data-v-b381bab1]{flex:1;min-width:0;border:0;outline:none;background:transparent;color:#0f172a;font-size:17px;font-weight:400;letter-spacing:-.01em}.spotlight-input[data-v-b381bab1]::placeholder{color:#94a3b8}.spotlight-agent-badge[data-v-b381bab1]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#f8fafceb;color:#64748b;font-size:12px;font-weight:600}.spotlight-agent-badge-dot[data-v-b381bab1]{width:7px;height:7px;border-radius:50%;background:#94a3b8}.spotlight-agent-badge.is-running[data-v-b381bab1]{color:#0284c7}.spotlight-agent-badge.is-running .spotlight-agent-badge-dot[data-v-b381bab1]{background:#0ea5e9}.spotlight-agent-badge.is-done[data-v-b381bab1]{color:#059669}.spotlight-agent-badge.is-done .spotlight-agent-badge-dot[data-v-b381bab1]{background:#10b981}.spotlight-agent-badge.is-error[data-v-b381bab1]{color:#dc2626}.spotlight-agent-badge.is-error .spotlight-agent-badge-dot[data-v-b381bab1]{background:#ef4444}.spotlight-command-deck[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;position:relative;z-index:3}.spotlight-command-deck-meta[data-v-b381bab1]{display:flex;align-items:center;gap:10px;min-width:0}.spotlight-command-deck-kicker[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;letter-spacing:.02em}.spotlight-command-deck-status[data-v-b381bab1]{color:#0f172a;font-size:13px;font-weight:600;letter-spacing:-.01em}.spotlight-memory-dot-btn[data-v-b381bab1]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:-8px -6px -8px 0;padding:0 10px;border:0;border-radius:999px;background:transparent;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent;transition:transform .18s ease}.spotlight-memory-label[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.spotlight-memory-dot-btn[data-v-b381bab1]:active{transform:scale(.94)}.spotlight-memory-dot-btn[data-v-b381bab1]:focus-visible{outline:none;box-shadow:0 0 0 3px #2dd4bf59}.spotlight-memory-dot[data-v-b381bab1]{position:relative;width:8px;height:8px;border-radius:50%;background:#cbd5e1;transition:background .28s ease,box-shadow .28s ease,transform .28s ease}.spotlight-memory-dot.is-on[data-v-b381bab1]{background:#14b8a6;box-shadow:0 0 #14b8a673;animation:spotlight-memory-dot-pulse-b381bab1 3.2s ease-in-out infinite}.spotlight-memory-dot.is-on[data-v-b381bab1]:after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(45,212,191,.35);opacity:0;animation:spotlight-memory-dot-ring-b381bab1 3.2s ease-in-out infinite}@keyframes spotlight-memory-dot-pulse-b381bab1{0%,to{opacity:.72;box-shadow:0 0 #14b8a647;transform:scale(.96)}50%{opacity:1;box-shadow:0 0 0 6px #14b8a600;transform:scale(1)}}@keyframes spotlight-memory-dot-ring-b381bab1{0%,to{opacity:0;transform:scale(.85)}50%{opacity:.55;transform:scale(1.15)}}.spotlight-list[data-v-b381bab1]{margin:0;padding:6px;list-style:none;max-height:min(54vh,480px);overflow:auto;border-radius:14px;border:1px solid rgba(148,163,184,.2);background:#ffffff9e}.spotlight-item[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .18s ease}.spotlight-item[data-v-b381bab1]:hover,.spotlight-item.is-selected[data-v-b381bab1]{background:#f1f5f9f2}.spotlight-item.is-selected[data-v-b381bab1]{background:#ccfbf1b8}.spotlight-item-label[data-v-b381bab1]{color:#0f172a;font-size:15px;font-weight:400;letter-spacing:-.01em}.spotlight-item-hint[data-v-b381bab1],.spotlight-list-divider[data-v-b381bab1]{color:#94a3b8;font-size:12px;font-weight:500}.spotlight-list-divider[data-v-b381bab1]{display:flex;align-items:center;gap:10px;padding:8px 12px 4px;pointer-events:none}.spotlight-list-divider[data-v-b381bab1]:after{content:"";flex:1;height:.5px;background:#94a3b847}.spotlight-voice-mic-icon[data-v-b381bab1]{position:relative;display:block;width:14px;height:18px}.spotlight-voice-mic-body[data-v-b381bab1]{position:absolute;inset:0 2px 6px;border:2px solid currentColor;border-radius:999px}.spotlight-voice-mic-stem[data-v-b381bab1]{position:absolute;left:50%;bottom:0;width:2px;height:5px;transform:translate(-50%);background:currentColor;border-radius:1px}.spotlight-voice-shell.is-recording[data-v-b381bab1]{border-color:#ef444459;box-shadow:0 0 0 3px #ef444414}.spotlight-voice-shell.is-transcribing[data-v-b381bab1]{border-color:#0ea5e959;box-shadow:0 0 0 3px #0ea5e914}.spotlight-voice-beam[data-v-b381bab1]{display:block}.spotlight-item--empty[data-v-b381bab1]{cursor:default;opacity:.72}@media(max-width:768px){.spotlight-panel[data-v-b381bab1]{width:calc(100% - 24px);top:8vh;padding:14px}.spotlight-command-deck[data-v-b381bab1]{flex-wrap:wrap}.spotlight-input[data-v-b381bab1]{font-size:16px}.spotlight-agent-badge[data-v-b381bab1]{align-self:flex-start}}@media(prefers-reduced-motion:reduce){.spotlight-backdrop[data-v-b381bab1],.spotlight-panel[data-v-b381bab1],.spotlight-input-wrap[data-v-b381bab1],.spotlight-memory-dot[data-v-b381bab1],.spotlight-memory-dot.is-on[data-v-b381bab1]:after,.spotlight-item[data-v-b381bab1],.spotlight-permission-btn[data-v-b381bab1],.spotlight-memory-dot-btn[data-v-b381bab1]{transition:none;animation:none}}.thinking-bar[data-v-de0d91bb]{--tb-text: #0f172a;--tb-text-secondary: #475569;--tb-text-muted: #64748b;--tb-text-faint: #94a3b8;--tb-border: rgba(148, 163, 184, .28);--tb-surface: rgba(255, 255, 255, .94);--tb-surface-soft: rgba(248, 250, 252, .92);--tb-surface-inset: rgba(255, 255, 255, .88);--tb-accent: #14b8a6;--tb-info: #0ea5e9;--tb-success: #10b981;--tb-error: #ef4444;--tb-radius-xl: 22px;--tb-radius-lg: 16px;--tb-radius-md: 14px;--tb-radius-sm: 12px;--tb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;position:fixed;width:min(720px,calc(100vw - 48px));max-height:min(78vh,820px);display:flex;flex-direction:column;min-height:0;font-family:var(--tb-font);background:linear-gradient(165deg,#fffffff5,#f8fafcf0 55%,#f0fdfaeb);border-radius:var(--tb-radius-xl);border:1px solid var(--tb-border);box-shadow:0 24px 64px #0f172a1a,0 8px 24px #0f172a0d,inset 0 1px #ffffffe6;color:var(--tb-text);z-index:10000;overflow:hidden;opacity:0;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35);transition:opacity .28s ease,transform .28s ease}.thinking-bar--open[data-v-de0d91bb]{opacity:1}.thinking-bar--embedded[data-v-de0d91bb]{position:relative;right:auto;bottom:auto;width:100%;max-height:100%}.thinking-bar--centered[data-v-de0d91bb]{left:50%;top:50%;width:min(980px,calc(100vw - 56px));transform:translate(-50%,-50%) scale(.98);transform-origin:center}.thinking-bar--centered.thinking-bar--open[data-v-de0d91bb]{transform:translate(-50%,-50%) scale(1)}.thinking-bar--corner[data-v-de0d91bb]{right:24px;bottom:24px;width:min(520px,calc(100vw - 28px));max-height:min(76vh,calc(100vh - 36px));border-radius:20px;transform:scale(.98);transform-origin:right bottom}.thinking-bar--corner.thinking-bar--open[data-v-de0d91bb]{transform:scale(1)}.thinking-bar-grid[data-v-de0d91bb]{display:none}.thinking-bar-header[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--tb-border);flex-shrink:0}.thinking-bar-title-stack[data-v-de0d91bb]{display:grid;gap:2px;min-width:0}.thinking-bar-kicker[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:12px;font-weight:600;letter-spacing:.02em}.thinking-bar-title[data-v-de0d91bb]{color:var(--tb-text);font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.35;min-width:0}.thinking-bar-memory-badge[data-v-de0d91bb]{display:inline-flex;width:fit-content;margin-top:4px;padding:3px 8px;border-radius:999px;border:1px solid rgba(14,165,233,.28);background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-memory-refresh[data-v-de0d91bb]{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;border:1px solid color-mix(in srgb,var(--spotlight-accent, #0f766e) 35%,transparent);border-radius:999px;padding:4px 9px;background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 8%,transparent);color:inherit;font:inherit;font-size:12px;line-height:1.35;white-space:nowrap;cursor:pointer}.thinking-bar-memory-refresh[data-v-de0d91bb]:hover{background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 16%,transparent)}.thinking-bar-memory-result[data-v-de0d91bb]{position:relative;display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;padding:18px;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle at 8% 0%,rgba(20,184,166,.1),transparent 34%),#f8fafc8f}.thinking-bar-memory-result-intro[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid rgba(20,184,166,.24);border-radius:var(--tb-radius-lg);background:#f0fdfad1}.thinking-bar-memory-result-icon[data-v-de0d91bb]{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:999px;background:var(--tb-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 6px 14px #14b8a633}.thinking-bar-memory-result-copy[data-v-de0d91bb]{display:grid;min-width:0;gap:3px}.thinking-bar-memory-result-eyebrow[data-v-de0d91bb]{color:#0f766e;font-size:11px;font-weight:700;letter-spacing:.04em}.thinking-bar-memory-result-copy strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.45}.thinking-bar-memory-result-copy p[data-v-de0d91bb]{margin:0;color:var(--tb-text-muted);font-size:12px;line-height:1.55}.thinking-bar-memory-result-answer[data-v-de0d91bb]{min-width:0;padding:18px 20px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-lg);background:#ffffffe6;box-shadow:0 8px 24px #0f172a0a}.thinking-bar-memory-result-answer-label[data-v-de0d91bb]{margin-bottom:10px;color:var(--tb-text-muted);font-size:11px;font-weight:700;letter-spacing:.06em}.thinking-bar-memory-result-footer[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--tb-text-muted);font-size:11px;line-height:1.5}.thinking-bar-memory-result-refresh[data-v-de0d91bb]{flex:0 0 auto;padding:7px 12px;color:#0f766e;font-size:12px;font-weight:600}.thinking-bar-metrics[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;margin-left:auto}.thinking-bar-metric[data-v-de0d91bb]{display:grid;min-width:58px;padding:7px 9px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);text-align:center}.thinking-bar-metric strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.1}.thinking-bar-metric em[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:10px;font-style:normal;line-height:1.2}.thinking-bar-close[data-v-de0d91bb]{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.thinking-bar-close[data-v-de0d91bb]:hover{background:var(--tb-surface-soft);color:var(--tb-text)}.thinking-bar-steps[data-v-de0d91bb]{padding:14px 16px 16px;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#f8fafc73}.thinking-bar-steps[data-v-de0d91bb],.thinking-bar-step-body[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb],.thinking-bar-tool-result-table-wrap[data-v-de0d91bb],.thinking-bar-file-tree-body[data-v-de0d91bb],.thinking-bar-file-preview-body[data-v-de0d91bb]{-ms-overflow-style:none;scrollbar-width:none}.thinking-bar-steps[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-step-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-call-block[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-tree-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-preview-body[data-v-de0d91bb]::-webkit-scrollbar{display:none}.thinking-bar-step[data-v-de0d91bb]{position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-width:0;padding:12px 14px;border-radius:var(--tb-radius-lg);border:1px solid var(--tb-border);background:var(--tb-surface-inset);box-shadow:0 1px 2px #0f172a0a;overflow:hidden}.thinking-bar-step.active[data-v-de0d91bb]{border-color:#14b8a661;box-shadow:0 0 0 1px #14b8a61f}.thinking-bar-step.done[data-v-de0d91bb]{border-color:#0ea5e947}.thinking-bar-step.error[data-v-de0d91bb]{border-color:#ef444452}.thinking-bar-step.pending[data-v-de0d91bb]{opacity:.72}.thinking-bar-step-inner[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;min-width:0}.thinking-bar-step-status[data-v-de0d91bb]{flex-shrink:0;width:10px;height:10px;margin-top:5px;border-radius:999px;background:var(--tb-text-faint)}.thinking-bar-step-status.is-active[data-v-de0d91bb]{background:var(--tb-accent);box-shadow:0 0 0 4px #14b8a62e}.thinking-bar-step-status.is-done[data-v-de0d91bb]{background:var(--tb-info)}.thinking-bar-step-status.is-error[data-v-de0d91bb]{background:var(--tb-error)}.thinking-bar-step-column[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;font-weight:600;line-height:1.45}.thinking-bar-step.pending .thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-step-body[data-v-de0d91bb]{max-height:min(42vh,400px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.thinking-bar-step-text[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-step-process[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-gather-process[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-gather-headline[data-v-de0d91bb],.thinking-bar-gather-note[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-gather-note[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-source-list[data-v-de0d91bb]{margin:0;padding:0 0 0 1.35em;color:var(--tb-text);font-size:14px;line-height:1.55}.thinking-bar-source-list li+li[data-v-de0d91bb]{margin-top:6px}.thinking-bar-step-markdown[data-v-de0d91bb]{white-space:normal}.thinking-bar-md-preview[data-v-de0d91bb]{--md-theme-bg-color: transparent;--md-color: var(--tb-text-secondary);--md-bk-color: transparent;--md-border-color: var(--tb-border);--md-code-bg-color: rgba(241, 245, 249, .98);--md-code-color: #0f766e;--md-table-even-color: rgba(248, 250, 252, .98);--md-table-odd-color: rgba(255, 255, 255, .98);--md-table-header-bg-color: rgba(241, 245, 249, .98)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview-wrapper{padding:0}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview li,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview li{color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h3,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h3{margin:8px 0 4px;color:var(--tb-text);font-size:14px;font-weight:600}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview strong{color:var(--tb-text)}.thinking-bar-tool-step-flow[data-v-de0d91bb]{--thinking-detail-gap: 10px;display:flex;flex-direction:column;gap:var(--thinking-detail-gap)}.thinking-bar-step-answer-section[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-step-section-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details[data-v-de0d91bb],.thinking-bar-tool-call[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-tool-call--nested[data-v-de0d91bb]{border-style:dashed;background:#ffffffb8}.thinking-bar-execution-details-summary[data-v-de0d91bb],.thinking-bar-tool-call-head[data-v-de0d91bb]{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none;background:var(--tb-surface-soft)}.thinking-bar-execution-details-summary[data-v-de0d91bb]::-webkit-details-marker,.thinking-bar-tool-call-head[data-v-de0d91bb]::-webkit-details-marker{display:none}.thinking-bar-tool-call-head-main[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.thinking-bar-tool-call-head-side[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;flex-shrink:0}.thinking-bar-execution-details-title[data-v-de0d91bb],.thinking-bar-tool-call-name[data-v-de0d91bb],.thinking-bar-workspace-title[data-v-de0d91bb],.thinking-bar-nested-tools-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details-meta[data-v-de0d91bb]{margin-left:auto;padding:2px 8px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{color:var(--tb-text-faint);font-size:12px;transition:transform .18s ease}.thinking-bar-execution-details[open] .thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call[open] .thinking-bar-tool-call-caret[data-v-de0d91bb]{transform:rotate(180deg)}.thinking-bar-execution-details-body[data-v-de0d91bb],.thinking-bar-tool-call-body[data-v-de0d91bb]{display:grid;gap:var(--thinking-detail-gap, 10px);padding:12px;border-top:1px solid var(--tb-border);max-height:min(40vh,380px);overflow-y:auto}.thinking-bar-execution-planning[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb]{margin:0;padding:10px 12px;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border);background:#fffffff5;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.thinking-bar-tool-call-block[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px;max-height:min(28vh,280px);overflow:auto}.thinking-bar-tool-call-block-title[data-v-de0d91bb]{margin:0;color:#0d9488;font-size:11px;font-weight:700;letter-spacing:.03em}.thinking-bar-tool-call-block--error[data-v-de0d91bb]{border-color:#ef444447}.thinking-bar-tool-call-block--error .thinking-bar-tool-call-block-title[data-v-de0d91bb]{color:#dc2626}.thinking-bar-tool-call-pre[data-v-de0d91bb],.thinking-bar-tool-trace-item[data-v-de0d91bb],.thinking-bar-tool-call-id[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.thinking-bar-tool-call-id[data-v-de0d91bb]{font-size:11px;color:var(--tb-text-faint)}.thinking-bar-tool-call-status[data-v-de0d91bb]{padding:3px 9px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-tool-call-status.is-running[data-v-de0d91bb]{background:#f59e0b1f;border-color:#f59e0b47;color:#b45309}.thinking-bar-tool-call-status.is-done[data-v-de0d91bb]{background:#10b9811f;border-color:#10b98147;color:#047857}.thinking-bar-tool-call-status.is-error[data-v-de0d91bb]{background:#ef44441a;border-color:#ef444447;color:#b91c1c}.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]{overflow:auto;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border)}.thinking-bar-tool-result-table[data-v-de0d91bb]{width:100%;border-collapse:collapse;font-size:12px}.thinking-bar-tool-result-table th[data-v-de0d91bb],.thinking-bar-tool-result-table td[data-v-de0d91bb]{padding:8px 10px;text-align:left;border-bottom:1px solid var(--tb-border);white-space:pre-wrap;word-break:break-word}.thinking-bar-tool-result-table th[data-v-de0d91bb]{background:#f1f5f9fa;color:var(--tb-text);font-weight:600}.thinking-bar-tool-result-table td[data-v-de0d91bb]{color:var(--tb-text-secondary);background:#fff}.thinking-bar-tool-result-image-shell[data-v-de0d91bb]{padding:8px;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachments[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment[data-v-de0d91bb]{padding:10px;border-radius:var(--tb-radius-md);border:1px solid rgba(14,165,233,.22);background:var(--tb-surface);text-decoration:none;color:inherit}.thinking-bar-attachment-name[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-attachment-type[data-v-de0d91bb]{color:#0284c7;font-size:12px}.thinking-bar-workspace-shell[data-v-de0d91bb]{display:grid;grid-template-columns:minmax(210px,240px) minmax(0,1fr);gap:10px}.thinking-bar-file-tree-pane[data-v-de0d91bb],.thinking-bar-file-preview[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-file-tree-head[data-v-de0d91bb],.thinking-bar-file-preview-head[data-v-de0d91bb]{padding:10px 12px;border-bottom:1px solid var(--tb-border);color:var(--tb-text-secondary);font-size:12px;font-weight:600}.thinking-bar-file-tree-body[data-v-de0d91bb]{max-height:min(200px,100%);overflow:auto;padding:6px 0}.thinking-bar-tree-row[data-v-de0d91bb]{width:100%;min-height:34px;display:flex;align-items:center;gap:6px;padding:0 10px;border:0;background:transparent;color:var(--tb-text-secondary);text-align:left;cursor:pointer}.thinking-bar-tree-row[data-v-de0d91bb]:hover{background:#f1f5f9f2}.thinking-bar-tree-row--file.active[data-v-de0d91bb]{background:#ccfbf1a6;color:#0f766e}.thinking-bar-file-preview-body[data-v-de0d91bb]{margin:0;padding:12px;color:var(--tb-text-secondary);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-preview-chip[data-v-de0d91bb]{padding:2px 8px;border-radius:999px;background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-empty-preview[data-v-de0d91bb]{padding:16px;color:var(--tb-text-muted);font-size:13px}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview table{display:block;overflow:auto;border-radius:var(--tb-radius-sm)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview thead th{position:static}.thinking-bar-step-answer[data-v-de0d91bb]{margin:0}.thinking-bar-chat-items[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-chat-item[data-v-de0d91bb]{min-width:0}.thinking-bar-tool-trace-list[data-v-de0d91bb]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.thinking-bar-tool-trace-item[data-v-de0d91bb]{color:var(--tb-text-secondary);line-height:1.5}.thinking-bar-tool-result-image[data-v-de0d91bb]{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-tool-result-html[data-v-de0d91bb]{width:100%;min-height:min(200px,22vh);border:none;border-radius:var(--tb-radius-sm);background:#fff}.thinking-bar-attachment[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment-image[data-v-de0d91bb]{width:100%;max-height:240px;object-fit:contain;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachment-meta[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.thinking-bar-workspace[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px;margin-top:4px}.thinking-bar-tree-node[data-v-de0d91bb]{display:block}.thinking-bar-tree-row--directory[data-v-de0d91bb]{color:var(--tb-text)}.thinking-bar-tree-caret[data-v-de0d91bb],.thinking-bar-tree-icon[data-v-de0d91bb]{flex-shrink:0}.thinking-bar-tree-label[data-v-de0d91bb]{min-width:0;font-size:12px;line-height:1.5;word-break:break-word}.thinking-bar-file-preview[data-v-de0d91bb]{min-width:0;display:flex;flex-direction:column;min-height:0}.thinking-bar-file-preview-title[data-v-de0d91bb]{min-width:0;display:flex;align-items:center;gap:8px}.thinking-bar-image-shell[data-v-de0d91bb]{flex:1;display:flex;align-items:center;justify-content:center;padding:12px;background:#f8fafcfa}.thinking-bar-image-preview[data-v-de0d91bb]{max-width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-html-preview[data-v-de0d91bb]{flex:1;min-height:min(200px,28vh);border:none;background:#fff}.thinking-bar--corner .thinking-bar-title[data-v-de0d91bb]{font-size:16px}.thinking-bar--corner .thinking-bar-step-label[data-v-de0d91bb]{font-size:14px}.thinking-bar--corner .thinking-bar-step-text[data-v-de0d91bb],.thinking-bar--corner .thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview{font-size:13px}.thinking-bar--corner .thinking-bar-tool-call-body[data-v-de0d91bb]{max-height:min(36vh,300px)}.thinking-bar--corner .thinking-bar-tool-call-block[data-v-de0d91bb]{max-height:min(24vh,200px)}.thinking-bar--corner .thinking-bar-header[data-v-de0d91bb]{padding:14px 16px 12px}.thinking-bar--corner .thinking-bar-steps[data-v-de0d91bb]{padding:12px 14px 14px}@media(max-width:768px){.thinking-bar--centered[data-v-de0d91bb]{width:calc(100vw - 24px);max-height:72vh}.thinking-bar--corner[data-v-de0d91bb]{right:12px;bottom:12px;width:min(360px,calc(100vw - 24px))}.thinking-bar-header[data-v-de0d91bb]{align-items:flex-start;flex-wrap:wrap}.thinking-bar-metrics[data-v-de0d91bb]{display:none}.thinking-bar-workspace-shell[data-v-de0d91bb]{grid-template-columns:1fr}.thinking-bar-memory-result[data-v-de0d91bb]{padding:14px}.thinking-bar-memory-result-footer[data-v-de0d91bb]{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.thinking-bar[data-v-de0d91bb],.thinking-bar-close[data-v-de0d91bb],.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{transition:none}}.live2d-panel-shell[data-v-c16f40d6]{position:fixed;right:220px;bottom:16px;z-index:5000;width:min(420px,42vw);height:min(560px,52vh);pointer-events:none}.live2d-panel[data-v-c16f40d6]{position:absolute;inset:0;pointer-events:auto;touch-action:none;background:transparent}.live2d-close[data-v-c16f40d6]{position:absolute;top:12px;right:12px;z-index:4;width:32px;height:32px;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:#ffffffdb;color:#64748b;font:22px/1 system-ui,sans-serif;cursor:pointer;pointer-events:auto;box-shadow:0 8px 22px #0f172a1a}.live2d-voice-controls[data-v-c16f40d6]{position:absolute;left:50%;bottom:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;transform:translate(-50%);pointer-events:auto;-webkit-user-select:none;user-select:none}.live2d-voice-button[data-v-c16f40d6]{position:relative;display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(13,148,136,.34);border-radius:999px;background:linear-gradient(145deg,#fff,#ecfeff);color:#0f766e;cursor:pointer;touch-action:none;box-shadow:0 12px 28px #0d948833,inset 0 1px #ffffffe6;transition:transform .16s ease,box-shadow .16s ease}.live2d-voice-button[data-v-c16f40d6]:not(:disabled):hover{transform:translateY(-2px)}.live2d-voice-button.is-recording[data-v-c16f40d6]{background:linear-gradient(145deg,#fff1f2,#ffe4e6);color:#e11d48;box-shadow:0 0 0 8px #f43f5e1f,0 14px 30px #e11d483d;animation:voice-pulse-c16f40d6 1.1s ease-in-out infinite}.live2d-voice-button.is-transcribing[data-v-c16f40d6]{cursor:wait;animation:voice-spin-c16f40d6 1.3s linear infinite}.live2d-voice-button[data-v-c16f40d6]:disabled{cursor:not-allowed;opacity:.56}.live2d-mic-icon[data-v-c16f40d6]{width:14px;height:22px;border:2px solid currentcolor;border-radius:8px}.live2d-mic-icon[data-v-c16f40d6]:before{content:"";position:absolute;left:50%;top:25px;width:22px;height:12px;border:2px solid currentcolor;border-top:0;border-radius:0 0 12px 12px;transform:translate(-50%)}.live2d-mic-icon[data-v-c16f40d6]:after{content:"";position:absolute;left:50%;top:37px;width:2px;height:7px;background:currentcolor;transform:translate(-50%)}.live2d-voice-label[data-v-c16f40d6]{padding:4px 9px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:#ffffffe6;color:#475569;font-size:12px;line-height:1.2;box-shadow:0 6px 16px #0f172a14}.live2d-voice-error[data-v-c16f40d6]{width:min(280px,64vw);padding:7px 10px;border:1px solid rgba(244,63,94,.32);border-radius:10px;background:#fff1f2f5;color:#be123c;font-size:12px;line-height:1.45;max-height:72px;overflow:auto;text-align:center;box-shadow:0 8px 18px #9f12391f}.live2d-speech-bubble[data-v-c16f40d6]{position:absolute;right:calc(100% - 36px);bottom:44%;width:min(360px,40vw);max-height:32vh;overflow:hidden auto;border-radius:20px;border:1px solid rgba(148,163,184,.35);background:linear-gradient(165deg,#fffffff5,#f0fdfaf0);box-shadow:0 18px 36px #0f172a1a,inset 0 1px #ffffffe6;color:#0f172a;padding:10px 12px;pointer-events:auto}.live2d-speech-bubble.is-speaking[data-v-c16f40d6]{border-color:#14b8a673;box-shadow:0 20px 40px #14b8a624,0 0 0 1px #0ea5e92e,inset 0 1px #ffffffe6}.live2d-speech-head[data-v-c16f40d6]{display:inline-flex;align-items:center;gap:8px;color:#0d9488;font-size:12px;line-height:1}.live2d-speech-dot[data-v-c16f40d6]{width:8px;height:8px;border-radius:999px;background:currentcolor;box-shadow:0 0 12px currentcolor}.live2d-speech-bubble.is-speaking .live2d-speech-dot[data-v-c16f40d6]{animation:speech-pulse-c16f40d6 1.1s ease-in-out infinite}.live2d-speech-text[data-v-c16f40d6]{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.55;color:#334155}.speech-bubble-enter-active[data-v-c16f40d6],.speech-bubble-leave-active[data-v-c16f40d6]{transition:all .28s ease}.speech-bubble-enter-from[data-v-c16f40d6],.speech-bubble-leave-to[data-v-c16f40d6]{opacity:0;transform:translate(10px) scale(.98)}@keyframes speech-pulse-c16f40d6{0%{opacity:.65;transform:scale(.95)}50%{opacity:1;transform:scale(1.12)}to{opacity:.65;transform:scale(.95)}}@keyframes voice-pulse-c16f40d6{50%{transform:scale(1.04)}}@keyframes voice-spin-c16f40d6{to{transform:rotate(360deg)}}@media(max-width:720px){.live2d-panel-shell[data-v-c16f40d6]{right:0;bottom:8px;width:min(360px,96vw);height:min(500px,62vh)}.live2d-speech-bubble[data-v-c16f40d6]{right:16px;bottom:70%;width:min(320px,88vw)}}
@@ -1,5 +1,7 @@
1
1
  import { type InjectionKey } from "vue";
2
2
  export type SpotlightAvatarConfig = {
3
+ /** Show the digital-human voice surface as soon as Spotlight mounts. */
4
+ initiallyVisible?: boolean;
3
5
  /** Base URL for Spine assets (defaults to `import.meta.env.BASE_URL`). */
4
6
  assetBaseUrl?: string;
5
7
  /** Skeleton JSON path relative to asset base (default: `little-drop/export/shuidi.json`). */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/avatar/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,KAAK,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IAClC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,qBAAqB,CACzC,CAAC;AAIpC,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAQ7E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAI/E;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/avatar/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,KAAK,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IAClC,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,qBAAqB,CACzC,CAAC;AAIpC,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAQ7E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAI/E;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"spotlightSpeech.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/spotlightSpeech.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAYF,wBAAgB,wBAAwB,IAAI,OAAO,CAKlD;AAsBD,8DAA8D;AAC9D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAA8B;IAEnD,OAAO,CAAC,WAAW,CAA4B;IAE/C,OAAO,CAAC,WAAW,CAAkB;IAErC,OAAO,CAAC,OAAO,CAAS;IAExB,IAAI,WAAW,IAAI,OAAO,CAGzB;IAEK,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAoB/B,iBAAiB,CACrB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,4BAA4B,CAAC;IAyDlC,UAAU,CACd,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAS9C,MAAM,IAAI,IAAI;IAYd,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,cAAc;CAMvB"}
1
+ {"version":3,"file":"spotlightSpeech.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/spotlightSpeech.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAYF,wBAAgB,wBAAwB,IAAI,OAAO,CAKlD;AA2BD,8DAA8D;AAC9D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAA8B;IAEnD,OAAO,CAAC,WAAW,CAA4B;IAE/C,OAAO,CAAC,WAAW,CAAkB;IAErC,OAAO,CAAC,OAAO,CAAS;IAExB,IAAI,WAAW,IAAI,OAAO,CAGzB;IAEK,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAoB/B,iBAAiB,CACrB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,4BAA4B,CAAC;IAyDlC,UAAU,CACd,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAS9C,MAAM,IAAI,IAAI;IAYd,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,cAAc;CAMvB"}
@@ -1,9 +1,9 @@
1
1
  import { spotlightTranscribeAudio as n, extractTranscriptionText as d, spotlightSynthesizeSpeech as c } from "../../remote/audio.js";
2
- function m() {
2
+ function f() {
3
3
  return !1;
4
4
  }
5
- async function h(o) {
6
- const e = await o.arrayBuffer(), i = new Uint8Array(e);
5
+ async function h(a) {
6
+ const e = await a.arrayBuffer(), i = new Uint8Array(e);
7
7
  let t = "";
8
8
  const s = 32768;
9
9
  for (let r = 0; r < i.length; r += s)
@@ -11,12 +11,16 @@ async function h(o) {
11
11
  return btoa(t);
12
12
  }
13
13
  function u() {
14
+ if (typeof window < "u" && window.isSecureContext === !1)
15
+ throw new Error(
16
+ "语音输入需要 HTTPS 或 localhost 安全环境,当前页面无法访问麦克风。"
17
+ );
14
18
  if (!navigator.mediaDevices?.getUserMedia)
15
19
  throw new Error("当前浏览器不支持麦克风采集。");
16
20
  if (typeof MediaRecorder > "u")
17
21
  throw new Error("当前浏览器不支持 MediaRecorder。");
18
22
  }
19
- class f {
23
+ class m {
20
24
  mediaRecorder = null;
21
25
  mediaStream = null;
22
26
  audioChunks = [];
@@ -36,8 +40,8 @@ class f {
36
40
  throw new Error("语音录制尚未开始。");
37
41
  if (!this.mediaRecorder)
38
42
  throw new Error("语音录制尚未开始。");
39
- const i = this.mediaRecorder, t = await new Promise((r, a) => {
40
- i.onerror = () => a(new Error("语音录制失败,请重试。")), i.onstop = () => {
43
+ const i = this.mediaRecorder, t = await new Promise((r, o) => {
44
+ i.onerror = () => o(new Error("语音录制失败,请重试。")), i.onstop = () => {
41
45
  r(
42
46
  new Blob(this.audioChunks, {
43
47
  type: i.mimeType || "audio/webm"
@@ -56,12 +60,12 @@ class f {
56
60
  filename: s
57
61
  },
58
62
  e
59
- ), a = d(r);
60
- if (!a) throw new Error("STT 返回为空,请重试。");
61
- return { text: a, raw: r };
63
+ ), o = d(r);
64
+ if (!o) throw new Error("STT 返回为空,请重试。");
65
+ return { text: o, raw: r };
62
66
  } catch (r) {
63
- const a = r instanceof Error ? r.message : String(r);
64
- throw new Error(`Spotlight STT failed: ${a}`);
67
+ const o = r instanceof Error ? r.message : String(r);
68
+ throw new Error(`Spotlight STT failed: ${o}`);
65
69
  } finally {
66
70
  this.reset();
67
71
  }
@@ -88,6 +92,6 @@ class f {
88
92
  }
89
93
  }
90
94
  export {
91
- f as SpotlightSpeechService,
92
- m as hasSpotlightSpeechConfig
95
+ m as SpotlightSpeechService,
96
+ f as hasSpotlightSpeechConfig
93
97
  };
@@ -1,4 +1,19 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ voiceDisabled?: boolean;
3
+ voiceError?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ close: () => any;
7
+ voiceStart: () => any;
8
+ voiceStop: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: (() => any) | undefined;
11
+ onVoiceStart?: (() => any) | undefined;
12
+ onVoiceStop?: (() => any) | undefined;
13
+ }>, {
14
+ voiceDisabled: boolean;
15
+ voiceError: string;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
17
  declare const _default: typeof __VLS_export;
3
18
  export default _default;
4
19
  //# sourceMappingURL=Live2dPanel.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Live2dPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Live2dPanel.vue"],"names":[],"mappings":"AAoVA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"Live2dPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Live2dPanel.vue"],"names":[],"mappings":"AA6ZA,KAAK,WAAW,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAiPpE,QAAA,MAAM,YAAY;;;;;;;;;mBAjPmB,OAAO;gBAAe,MAAM;6EAqP/D,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Live2dPanel2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8602f159"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c16f40d6"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,60 +1,99 @@
1
- import { defineComponent as b, ref as _, computed as w, watch as T, onMounted as x, onUnmounted as C, openBlock as c, createElementBlock as m, createElementVNode as n, createVNode as S, Transition as k, withCtx as y, normalizeClass as L, unref as v, toDisplayString as f, createCommentVNode as A } from "vue";
2
- import { storeToRefs as V } from "pinia";
3
- import { startLive2dApp as I, stopLive2dApp as N } from "../avatar/spine/live2dApp.js";
4
- import { configureSpineAvatar as z } from "../avatar/spine/spineAvatar.js";
5
- import { useSpotlightAvatarConfig as B } from "../avatar/config.js";
6
- import { useLive2dSpeechStore as D } from "../store/live2dSpeechStore.js";
7
- const E = { class: "live2d-panel-shell" }, M = { class: "live2d-speech-head" }, P = { class: "live2d-speech-text" }, J = /* @__PURE__ */ b({
1
+ import { defineComponent as x, ref as V, computed as k, watch as E, onMounted as A, onUnmounted as B, openBlock as p, createElementBlock as m, createElementVNode as t, unref as l, normalizeClass as y, toDisplayString as c, createCommentVNode as L, createVNode as I, Transition as N, withCtx as z } from "vue";
2
+ import { storeToRefs as M } from "pinia";
3
+ import { startLive2dApp as P, stopLive2dApp as R } from "../avatar/spine/live2dApp.js";
4
+ import { configureSpineAvatar as U } from "../avatar/spine/spineAvatar.js";
5
+ import { useSpotlightAvatarConfig as $ } from "../avatar/config.js";
6
+ import { useLive2dSpeechStore as j } from "../store/live2dSpeechStore.js";
7
+ import { useLive2dVoiceChannelStore as q } from "../store/live2dVoiceChannelStore.js";
8
+ const F = { class: "live2d-panel-shell" }, G = { class: "live2d-voice-controls" }, H = ["disabled", "aria-label"], J = { class: "live2d-voice-label" }, K = {
9
+ key: 0,
10
+ class: "live2d-voice-error",
11
+ role: "alert"
12
+ }, O = { class: "live2d-speech-head" }, Q = { class: "live2d-speech-text" }, ne = /* @__PURE__ */ x({
8
13
  __name: "Live2dPanel",
9
- setup(R) {
10
- const o = D(), r = B(), { message: p, speaking: u, revealInstant: h } = V(o), t = _("");
11
- let l = null;
12
- const g = w(() => u.value || p.value.trim().length > 0);
13
- function a() {
14
- l != null && (window.clearInterval(l), l = null);
14
+ props: {
15
+ voiceDisabled: { type: Boolean, default: !1 },
16
+ voiceError: { default: "" }
17
+ },
18
+ emits: ["voiceStart", "voiceStop", "close"],
19
+ setup(r, { emit: w }) {
20
+ const b = r, d = w, f = j(), i = q(), g = $(), { message: h, speaking: C, revealInstant: D } = M(f), n = V("");
21
+ let s = null;
22
+ const T = k(() => C.value || h.value.trim().length > 0), S = k(() => i.recording ? "点击发送" : i.transcribing ? "正在识别…" : b.voiceDisabled ? "Spotlight 忙碌中" : "点击说话");
23
+ function _(a) {
24
+ b.voiceDisabled || i.transcribing || (a.preventDefault(), i.recording ? d("voiceStop") : d("voiceStart"));
15
25
  }
16
- return T(
17
- () => [p.value, h.value],
18
- ([d, e]) => {
19
- a();
20
- const i = d.trim();
21
- if (!i) {
22
- t.value = "";
26
+ function v() {
27
+ s != null && (window.clearInterval(s), s = null);
28
+ }
29
+ return E(
30
+ () => [h.value, D.value],
31
+ ([a, e]) => {
32
+ v();
33
+ const o = a.trim();
34
+ if (!o) {
35
+ n.value = "";
23
36
  return;
24
37
  }
25
38
  if (e) {
26
- t.value = i;
39
+ n.value = o;
27
40
  return;
28
41
  }
29
- t.value = "";
30
- let s = 0;
31
- l = window.setInterval(() => {
32
- s += 1, t.value = i.slice(0, s), s >= i.length && a();
42
+ n.value = "";
43
+ let u = 0;
44
+ s = window.setInterval(() => {
45
+ u += 1, n.value = o.slice(0, u), u >= o.length && v();
33
46
  }, 24);
34
47
  },
35
48
  { immediate: !0 }
36
- ), x(async () => {
37
- z(r), await I();
38
- }), C(() => {
39
- a(), o.reset(), N();
40
- }), (d, e) => (c(), m("div", E, [
41
- e[1] || (e[1] = n("div", {
49
+ ), A(async () => {
50
+ U(g), await P();
51
+ }), B(() => {
52
+ v(), f.reset(), R();
53
+ }), (a, e) => (p(), m("div", F, [
54
+ e[3] || (e[3] = t("div", {
42
55
  id: "live2d-container",
43
56
  class: "live2d-panel",
44
57
  "aria-label": "Live2D"
45
58
  }, null, -1)),
46
- S(k, { name: "speech-bubble" }, {
47
- default: y(() => [
48
- g.value ? (c(), m("div", {
59
+ t("button", {
60
+ type: "button",
61
+ class: "live2d-close",
62
+ "aria-label": "关闭数字人",
63
+ title: "关闭数字人(Ctrl/Command + L 可再次打开)",
64
+ onClick: e[0] || (e[0] = (o) => d("close"))
65
+ }, " × "),
66
+ t("div", G, [
67
+ t("button", {
68
+ type: "button",
69
+ class: y(["live2d-voice-button", {
70
+ "is-recording": l(i).recording,
71
+ "is-transcribing": l(i).transcribing
72
+ }]),
73
+ disabled: r.voiceDisabled || l(i).transcribing,
74
+ "aria-label": S.value,
75
+ onClick: _
76
+ }, [...e[1] || (e[1] = [
77
+ t("span", {
78
+ class: "live2d-mic-icon",
79
+ "aria-hidden": "true"
80
+ }, null, -1)
81
+ ])], 10, H),
82
+ t("span", J, c(S.value), 1),
83
+ r.voiceError ? (p(), m("span", K, c(r.voiceError), 1)) : L("", !0)
84
+ ]),
85
+ I(N, { name: "speech-bubble" }, {
86
+ default: z(() => [
87
+ T.value ? (p(), m("div", {
49
88
  key: 0,
50
- class: L(["live2d-speech-bubble", { "is-speaking": v(u) }])
89
+ class: y(["live2d-speech-bubble", { "is-speaking": l(C) }])
51
90
  }, [
52
- n("div", M, [
53
- e[0] || (e[0] = n("span", { class: "live2d-speech-dot" }, null, -1)),
54
- n("span", null, f(v(r).bubbleTitle ?? "数字人"), 1)
91
+ t("div", O, [
92
+ e[2] || (e[2] = t("span", { class: "live2d-speech-dot" }, null, -1)),
93
+ t("span", null, c(l(g).bubbleTitle ?? "数字人"), 1)
55
94
  ]),
56
- n("p", P, f(t.value), 1)
57
- ], 2)) : A("", !0)
95
+ t("p", Q, c(n.value), 1)
96
+ ], 2)) : L("", !0)
58
97
  ]),
59
98
  _: 1
60
99
  })
@@ -62,5 +101,5 @@ const E = { class: "live2d-panel-shell" }, M = { class: "live2d-speech-head" },
62
101
  }
63
102
  });
64
103
  export {
65
- J as default
104
+ ne as default
66
105
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SpotlightShell.vue.d.ts","sourceRoot":"","sources":["../../src/components/SpotlightShell.vue"],"names":[],"mappings":"AA+nBA,KAAK,WAAW,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAmoB/C,QAAA,MAAM,YAAY;mBAnoBmB,OAAO;6EAsoB1C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"SpotlightShell.vue.d.ts","sourceRoot":"","sources":["../../src/components/SpotlightShell.vue"],"names":[],"mappings":"AA6qBA,KAAK,WAAW,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAwsB/C,QAAA,MAAM,YAAY;mBAxsBmB,OAAO;6EA2sB1C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,87 +1,87 @@
1
- import { defineComponent as pe, computed as V, ref as f, watch as Q, nextTick as U, onUnmounted as de, openBlock as J, createElementBlock as he, Fragment as ge, createVNode as me, unref as be, createBlock as we, createCommentVNode as ye } from "vue";
2
- import { buildFastLive2dBriefing as Se, summarizeLive2dBriefing as ke } from "../avatar/speech/live2dBriefingSummarizer.js";
3
- import { isGenericHostExecutionReply as X } from "../avatar/speech/live2dAnswerSpeechPolicy.js";
4
- import { LIVE2D_ANSWER_STEP_ID as Le } from "../avatar/speech/live2dStreamSpeech.js";
5
- import { waitForAudioNaturalEnd as Te } from "../avatar/speech/live2dTtsPlayback.js";
6
- import { hasSpotlightSpeechConfig as Z, SpotlightSpeechService as Ee } from "../avatar/speech/spotlightSpeech.js";
7
- import { storeToRefs as Ae } from "pinia";
8
- import { useSpotlightStore as Ce } from "../store/spotlightStore.js";
9
- import { useSpotlightAvatarConfig as Pe } from "../avatar/config.js";
10
- import xe from "./SpotlightRoot.vue.js";
11
- import Be from "./Live2dPanel.vue.js";
12
- import { useLive2dOverlayStore as Ke } from "../store/live2dOverlayStore.js";
13
- import { useLive2dSpeechStore as Ve } from "../store/live2dSpeechStore.js";
14
- import { useLive2dVoiceChannelStore as _e } from "../store/live2dVoiceChannelStore.js";
15
- import { devWarn as He } from "../utils/devConsole.js";
16
- const ee = "Backquote", Fe = "`", Je = /* @__PURE__ */ pe({
1
+ import { defineComponent as me, computed as R, ref as c, watch as Z, nextTick as W, onMounted as be, onUnmounted as we, openBlock as ee, createElementBlock as ye, Fragment as Se, createVNode as Le, unref as U, createBlock as ke, createCommentVNode as Te } from "vue";
2
+ import { buildFastLive2dBriefing as Ee, summarizeLive2dBriefing as Ce } from "../avatar/speech/live2dBriefingSummarizer.js";
3
+ import { isGenericHostExecutionReply as te } from "../avatar/speech/live2dAnswerSpeechPolicy.js";
4
+ import { LIVE2D_ANSWER_STEP_ID as Ae } from "../avatar/speech/live2dStreamSpeech.js";
5
+ import { waitForAudioNaturalEnd as Pe } from "../avatar/speech/live2dTtsPlayback.js";
6
+ import { hasSpotlightSpeechConfig as ne, SpotlightSpeechService as Ve } from "../avatar/speech/spotlightSpeech.js";
7
+ import { storeToRefs as xe } from "pinia";
8
+ import { useSpotlightStore as Be } from "../store/spotlightStore.js";
9
+ import { useSpotlightAvatarConfig as Ke } from "../avatar/config.js";
10
+ import Re from "./SpotlightRoot.vue.js";
11
+ import _e from "./Live2dPanel.vue.js";
12
+ import { useLive2dOverlayStore as He } from "../store/live2dOverlayStore.js";
13
+ import { useLive2dSpeechStore as Fe } from "../store/live2dSpeechStore.js";
14
+ import { useLive2dVoiceChannelStore as Ie } from "../store/live2dVoiceChannelStore.js";
15
+ import { devWarn as Oe } from "../utils/devConsole.js";
16
+ const ie = "Backquote", Ue = "`", tt = /* @__PURE__ */ me({
17
17
  __name: "SpotlightShell",
18
18
  props: {
19
19
  avatarEnabled: { type: Boolean, default: !1 }
20
20
  },
21
- setup(D) {
22
- const C = D, R = Pe(), te = V(
23
- () => R.deckKicker?.trim() || "SPOTLIGHT"
24
- ), _ = V(
25
- () => R.greetingText?.trim() || "您好,我是 Spotlight 助手"
26
- ), n = Ce(), M = Ke(), { visible: p } = Ae(M), l = Ve(), g = _e(), S = new Ee(), k = f(null), d = f(!1), L = f(!1), P = f(null), x = f(null), H = f(null), T = f(null), E = f(0), N = f(0), o = f(!1), W = V(
21
+ setup(z) {
22
+ const T = z, _ = Ke(), re = R(
23
+ () => _.deckKicker?.trim() || "SPOTLIGHT"
24
+ ), H = R(
25
+ () => _.greetingText?.trim() || "您好,我是 Spotlight 助手"
26
+ ), n = Be(), F = He(), { visible: d } = xe(F), l = Fe(), p = Ie(), b = new Ve(), E = c(null), o = c(!1), y = c(!1), C = c(!1), V = c(null), x = c(null), I = c(null), A = c(null), P = c(0), G = c(0), s = c(!1), $ = R(
27
27
  () => Math.max(
28
28
  0,
29
- R.briefingKeepLastMs ?? 0
29
+ _.briefingKeepLastMs ?? 0
30
30
  )
31
31
  );
32
- let b = null;
33
- const A = f(!1), ne = V(() => n.showThinkingBar ? !C.avatarEnabled || !p.value || n.pipelinePhase === "running" || o.value ? !0 : n.pipelinePhase === "done" : !1), ie = V(() => {
32
+ let S = null;
33
+ const w = c(!1), ae = R(() => n.showThinkingBar ? !T.avatarEnabled || !d.value || n.pipelinePhase === "running" || s.value ? !0 : n.pipelinePhase === "done" : !1), le = R(() => {
34
34
  const e = n.agentSteps.length === 1 && n.agentSteps[0]?.label === "回答";
35
- return n.pipelinePhase === "running" || e || o.value;
35
+ return n.pipelinePhase === "running" || e || s.value;
36
36
  });
37
- function re() {
38
- o.value = !1, p.value && (n.showThinkingBar = !1);
37
+ function oe() {
38
+ s.value = !1, d.value && (n.showThinkingBar = !1);
39
39
  }
40
- function z() {
41
- k.value != null && (window.clearTimeout(k.value), k.value = null);
40
+ function j() {
41
+ E.value != null && (window.clearTimeout(E.value), E.value = null);
42
42
  }
43
- function I() {
44
- z(), P.value && (P.value.abort(), P.value = null), L.value = !1, d.value = !1, A.value = !1, g.reset(), S.cancel();
43
+ function M() {
44
+ j(), V.value && (V.value.abort(), V.value = null), y.value = !1, C.value = !1, o.value = !1, w.value = !1, p.reset(), b.cancel();
45
45
  }
46
- function m() {
47
- b && (b.abort(), b = null), T.value && (T.value.abort(), T.value = null), B(), l.reset(), import("../avatar/spine/live2dApp.js").then(
46
+ function g() {
47
+ S && (S.abort(), S = null), A.value && (A.value.abort(), A.value = null), B(), l.reset(), import("../avatar/spine/live2dApp.js").then(
48
48
  (e) => e.stopLive2dLipSync()
49
49
  );
50
50
  }
51
- function G(e, t) {
51
+ function q(e, t) {
52
52
  return e <= 0 ? Promise.resolve() : new Promise((i, r) => {
53
53
  const a = window.setTimeout(() => {
54
- t?.removeEventListener("abort", v), i();
55
- }, e), v = () => {
54
+ t?.removeEventListener("abort", h), i();
55
+ }, e), h = () => {
56
56
  window.clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
57
57
  };
58
58
  if (t?.aborted) {
59
- v();
59
+ h();
60
60
  return;
61
61
  }
62
- t?.addEventListener("abort", v, { once: !0 });
62
+ t?.addEventListener("abort", h, { once: !0 });
63
63
  });
64
64
  }
65
- async function ae() {
66
- if (!p.value || n.pipelinePhase === "running") return;
67
- m(), E.value += 1;
68
- const e = E.value, t = new AbortController();
69
- if (b = t, !Z()) {
70
- b = null, await U(), (await import("../avatar/spine/live2dApp.js")).playLive2dHello(), l.start(_.value, { instant: !0 }), l.reset();
65
+ async function se() {
66
+ if (!d.value || n.pipelinePhase === "running") return;
67
+ g(), P.value += 1;
68
+ const e = P.value, t = new AbortController();
69
+ if (S = t, !ne()) {
70
+ S = null, await W(), (await import("../avatar/spine/live2dApp.js")).playLive2dHello(), l.start(H.value, { instant: !0 }), l.reset();
71
71
  return;
72
72
  }
73
- const i = S.synthesize(
74
- _.value,
73
+ const i = b.synthesize(
74
+ H.value,
75
75
  t.signal
76
76
  );
77
- if (await U(), await new Promise((r) => {
77
+ if (await W(), await new Promise((r) => {
78
78
  requestAnimationFrame(() => r());
79
- }), !!u(t, e))
79
+ }), !!f(t, e))
80
80
  try {
81
81
  const { blob: r } = await i;
82
- if (!u(t, e)) return;
83
- await j(
84
- _.value,
82
+ if (!f(t, e)) return;
83
+ await Q(
84
+ H.value,
85
85
  r,
86
86
  t,
87
87
  e,
@@ -90,102 +90,102 @@ const ee = "Backquote", Fe = "`", Je = /* @__PURE__ */ pe({
90
90
  } catch (r) {
91
91
  if (t.signal.aborted) return;
92
92
  const a = r instanceof Error ? r.message : "数字人招呼语音失败,请稍后重试。";
93
- He("[live2d-greeting]", a), u(t, e) && ((await import("../avatar/spine/live2dApp.js")).playLive2dHello(), l.start(_.value, { instant: !0 }), l.reset());
93
+ Oe("[live2d-greeting]", a), f(t, e) && ((await import("../avatar/spine/live2dApp.js")).playLive2dHello(), l.start(H.value, { instant: !0 }), l.reset());
94
94
  } finally {
95
- b === t && (b = null);
95
+ S === t && (S = null);
96
96
  }
97
97
  }
98
98
  function B() {
99
- x.value && (x.value.pause(), x.value.src = "", x.value = null), H.value && (URL.revokeObjectURL(H.value), H.value = null);
99
+ x.value && (x.value.pause(), x.value.src = "", x.value = null), I.value && (URL.revokeObjectURL(I.value), I.value = null);
100
100
  }
101
- function $() {
102
- return (n.agentSteps.find((t) => t.id === Le) ?? n.agentSteps.find((t) => t.label === "回答") ?? n.agentSteps.find((t) => t.label === "执行工具与回答") ?? n.agentSteps.find((t) => t.label === "知识问答"))?.content ?? "";
101
+ function Y() {
102
+ return (n.agentSteps.find((t) => t.id === Ae) ?? n.agentSteps.find((t) => t.label === "回答") ?? n.agentSteps.find((t) => t.label === "执行工具与回答") ?? n.agentSteps.find((t) => t.label === "知识问答"))?.content ?? "";
103
103
  }
104
- async function le() {
105
- const e = $().trim();
106
- if (!e || !p.value || X(e)) {
107
- o.value = !1;
104
+ async function ue() {
105
+ const e = Y().trim();
106
+ if (!e || !d.value || te(e)) {
107
+ s.value = !1;
108
108
  return;
109
109
  }
110
- m();
111
- const t = E.value, i = new AbortController();
112
- T.value = i;
110
+ g();
111
+ const t = P.value, i = new AbortController();
112
+ A.value = i;
113
113
  try {
114
- let a = Se(e).sentences;
114
+ let a = Ee(e).sentences;
115
115
  if (!a.length) {
116
- o.value = !1;
116
+ s.value = !1;
117
117
  return;
118
118
  }
119
- let v = null, K = !1;
120
- const w = ke(e, i.signal).then((s) => {
121
- s.sentences.length > 0 && (v = s.sentences);
119
+ let h = null, K = !1;
120
+ const L = Ce(e, i.signal).then((u) => {
121
+ u.sentences.length > 0 && (h = u.sentences);
122
122
  }).catch(() => {
123
123
  });
124
- let h = -1, y = null;
125
- const F = (s) => {
126
- s < 0 || s >= a.length || h === s && y || (h = s, y = S.synthesize(a[s].text, i.signal).then((O) => O.blob));
124
+ let m = -1, k = null;
125
+ const O = (u) => {
126
+ u < 0 || u >= a.length || m === u && k || (m = u, k = b.synthesize(a[u].text, i.signal).then((N) => N.blob));
127
127
  };
128
- let c = 0;
129
- for (; c < a.length; ) {
130
- if (!u(i, t)) return;
131
- if (!K && v && (a = v, K = !0, h = -1, y = null, c >= a.length))
128
+ let v = 0;
129
+ for (; v < a.length; ) {
130
+ if (!f(i, t)) return;
131
+ if (!K && h && (a = h, K = !0, m = -1, k = null, v >= a.length))
132
132
  break;
133
- const s = a[c];
134
- F(c);
135
- const O = h === c && y ? await y : (await S.synthesize(s.text, i.signal)).blob;
136
- if (!u(i, t)) return;
137
- F(c + 1), c === 0 && re(), await j(s.text, O, i, t, {
133
+ const u = a[v];
134
+ O(v);
135
+ const N = m === v && k ? await k : (await b.synthesize(u.text, i.signal)).blob;
136
+ if (!f(i, t)) return;
137
+ O(v + 1), v === 0 && oe(), await Q(u.text, N, i, t, {
138
138
  instantText: !0,
139
- hasFollowingClip: c + 1 < a.length
139
+ hasFollowingClip: v + 1 < a.length
140
140
  });
141
- const Y = s.pauseMs ?? 0;
142
- if (Y > 0 && u(i, t))
141
+ const X = u.pauseMs ?? 0;
142
+ if (X > 0 && f(i, t))
143
143
  try {
144
- await G(Y, i.signal);
144
+ await q(X, i.signal);
145
145
  } catch {
146
146
  return;
147
147
  }
148
- c += 1;
148
+ v += 1;
149
149
  }
150
- await w;
150
+ await L;
151
151
  } catch (r) {
152
152
  if (i.signal.aborted) return;
153
- m();
153
+ g();
154
154
  const a = r instanceof Error ? r.message : "数字人语音播放失败,请稍后重试。";
155
155
  n.error = a;
156
156
  } finally {
157
- if (o.value = !1, B(), (await import("../avatar/spine/live2dApp.js")).stopLive2dLipSync(), u(i, t)) {
158
- if (W.value > 0)
157
+ if (s.value = !1, B(), (await import("../avatar/spine/live2dApp.js")).stopLive2dLipSync(), f(i, t)) {
158
+ if ($.value > 0)
159
159
  try {
160
- await G(W.value, i.signal);
160
+ await q($.value, i.signal);
161
161
  } catch {
162
162
  }
163
- u(i, t) && l.reset();
163
+ f(i, t) && l.reset();
164
164
  }
165
- T.value === i && (T.value = null);
165
+ A.value === i && (A.value = null);
166
166
  }
167
167
  }
168
- function u(e, t) {
169
- return !e.signal.aborted && E.value === t;
168
+ function f(e, t) {
169
+ return !e.signal.aborted && P.value === t;
170
170
  }
171
- async function j(e, t, i, r, a) {
172
- if (!u(i, r)) return;
173
- const v = a?.hasFollowingClip ?? !1;
171
+ async function Q(e, t, i, r, a) {
172
+ if (!f(i, r)) return;
173
+ const h = a?.hasFollowingClip ?? !1;
174
174
  B();
175
175
  const K = URL.createObjectURL(t);
176
- H.value = K;
177
- const w = new Audio(K);
178
- w.volume = 1, x.value = w;
179
- const h = await import("../avatar/spine/live2dApp.js"), { buildWavEnvelopeFromBlob: y } = await import("../avatar/spine/spineLipSync.js"), F = a?.lipSyncEnvelope ?? await y(t);
180
- if (u(i, r)) {
181
- a?.playHelloWithSpeech && h.playLive2dHello(), h.bindLive2dLipSyncToAudio(w, F), l.start(e, { instant: a?.instantText ?? !0 });
176
+ I.value = K;
177
+ const L = new Audio(K);
178
+ L.volume = 1, x.value = L;
179
+ const m = await import("../avatar/spine/live2dApp.js"), { buildWavEnvelopeFromBlob: k } = await import("../avatar/spine/spineLipSync.js"), O = a?.lipSyncEnvelope ?? await k(t);
180
+ if (f(i, r)) {
181
+ a?.playHelloWithSpeech && m.playLive2dHello(), m.bindLive2dLipSyncToAudio(L, O), l.start(e, { instant: a?.instantText ?? !0 });
182
182
  try {
183
- await w.play();
184
- } catch (c) {
185
- throw h.stopLive2dLipSync(), B(), c;
183
+ await L.play();
184
+ } catch (v) {
185
+ throw m.stopLive2dLipSync(), B(), v;
186
186
  }
187
- if (await Te(w, i.signal), h.stopLive2dLipSync(), B(), !!u(i, r)) {
188
- if (v) {
187
+ if (await Pe(L, i.signal), m.stopLive2dLipSync(), B(), !!f(i, r)) {
188
+ if (h) {
189
189
  l.finish();
190
190
  return;
191
191
  }
@@ -193,19 +193,19 @@ const ee = "Backquote", Fe = "`", Je = /* @__PURE__ */ pe({
193
193
  }
194
194
  }
195
195
  }
196
- function q() {
197
- return C.avatarEnabled ? p.value && !n.visible && !n.loading && !L.value : !1;
196
+ function D() {
197
+ return T.avatarEnabled ? d.value && !n.visible && !n.loading && !C.value && !y.value : !1;
198
198
  }
199
- async function oe() {
200
- if (L.value) return;
201
- const e = A.value;
202
- d.value = !1, e && g.setTranscribing(!0), L.value = !0;
199
+ async function J() {
200
+ if (y.value) return;
201
+ const e = w.value;
202
+ o.value = !1, e && p.setTranscribing(!0), y.value = !0;
203
203
  const t = new AbortController();
204
- P.value = t;
204
+ V.value = t;
205
205
  try {
206
- const { text: i } = await S.stopAndTranscribe(t.signal), r = i.trim();
206
+ const { text: i } = await b.stopAndTranscribe(t.signal), r = i.trim();
207
207
  if (e) {
208
- if (A.value = !1, !r) return;
208
+ if (w.value = !1, !r) return;
209
209
  n.prompt = r, await n.submit();
210
210
  return;
211
211
  }
@@ -216,96 +216,125 @@ const ee = "Backquote", Fe = "`", Je = /* @__PURE__ */ pe({
216
216
  const r = i instanceof Error ? i.message : "语音识别失败,请重试。";
217
217
  n.error = r;
218
218
  } finally {
219
- P.value = null, L.value = !1, d.value = !1, A.value = !1, g.reset();
219
+ V.value = null, y.value = !1, o.value = !1, w.value = !1, p.reset();
220
220
  }
221
221
  }
222
- function se(e) {
222
+ function ce(e) {
223
223
  if (e.repeat || e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
224
- const t = q();
225
- !n.visible && !t || n.visible && n.loading || (e.preventDefault(), !(k.value != null || d.value) && (k.value = window.setTimeout(async () => {
226
- k.value = null;
227
- const i = q();
224
+ const t = D();
225
+ !n.visible && !t || n.visible && n.loading || (e.preventDefault(), !(E.value != null || o.value) && (E.value = window.setTimeout(async () => {
226
+ E.value = null;
227
+ const i = D();
228
228
  if (!(!n.visible && !i) && !(n.visible && n.loading))
229
229
  try {
230
- await S.startRecording(), d.value = !0, A.value = i, i ? g.setRecording(!0) : g.reset(), n.error = "";
230
+ await b.startRecording(), o.value = !0, w.value = i, i ? p.setRecording(!0) : p.reset(), n.error = "";
231
231
  } catch (r) {
232
232
  const a = r instanceof Error ? r.message : "无法启动语音录制。";
233
- n.error = a, d.value = !1, A.value = !1, g.reset();
233
+ n.error = a, o.value = !1, w.value = !1, p.reset();
234
234
  }
235
235
  }, 450)));
236
236
  }
237
- function ue(e) {
238
- if (e.code !== ee || !n.visible && !d.value) return;
237
+ async function fe() {
238
+ if (!(!D() || C.value)) {
239
+ C.value = !0;
240
+ try {
241
+ if (g(), await b.startRecording(), !d.value) {
242
+ b.cancel();
243
+ return;
244
+ }
245
+ o.value = !0, w.value = !0, p.setRecording(!0), n.error = "";
246
+ } catch (e) {
247
+ const t = e instanceof Error ? e.message : "无法启动语音录制。";
248
+ n.error = t, o.value = !1, w.value = !1, p.reset();
249
+ } finally {
250
+ C.value = !1;
251
+ }
252
+ }
253
+ }
254
+ function ve() {
255
+ o.value && J();
256
+ }
257
+ function de(e) {
258
+ if (e.code !== ie || !n.visible && !o.value) return;
239
259
  e.preventDefault();
240
- const t = d.value;
241
- z(), t && oe();
260
+ const t = o.value;
261
+ j(), t && J();
242
262
  }
243
- function ce(e) {
244
- if (e.code === ee) {
245
- se(e);
263
+ function pe(e) {
264
+ if (e.code === ie) {
265
+ ce(e);
246
266
  return;
247
267
  }
248
268
  const t = e.key.toLowerCase(), i = e.metaKey || e.ctrlKey;
249
- C.avatarEnabled && i && t === "l" && (e.preventDefault(), M.toggle());
269
+ T.avatarEnabled && i && t === "l" && (e.preventDefault(), F.toggle());
250
270
  }
251
- function fe() {
252
- o.value = !1, E.value += 1, m(), l.reset(), n.showThinkingBar ? n.closeThinking() : n.visible && n.close();
271
+ function he() {
272
+ s.value = !1, P.value += 1, g(), l.reset(), n.showThinkingBar ? n.closeThinking() : n.visible && n.close();
253
273
  }
254
- function ve(e) {
274
+ function ge(e) {
255
275
  if (!e) {
256
- I(), p.value && n.prepareLive2dVoiceChannel();
276
+ M(), d.value && n.prepareLive2dVoiceChannel();
257
277
  return;
258
278
  }
259
279
  }
260
- return Q(p, (e) => {
261
- if (C.avatarEnabled) {
280
+ return Z(d, (e) => {
281
+ if (T.avatarEnabled) {
262
282
  if (!e) {
263
- o.value = !1, I(), m(), l.reset(), g.reset();
283
+ s.value = !1, M(), g(), l.reset(), p.reset();
264
284
  return;
265
285
  }
266
- n.visible || n.prepareLive2dVoiceChannel(), ae();
286
+ n.visible || n.prepareLive2dVoiceChannel(), se();
267
287
  }
268
- }), Q(
269
- () => [n.pipelinePhase, n.pipelineRunId, p.value],
288
+ }), Z(
289
+ () => [n.pipelinePhase, n.pipelineRunId, d.value],
270
290
  ([e, t, i]) => {
271
- if (C.avatarEnabled) {
291
+ if (T.avatarEnabled) {
272
292
  if (e === "running") {
273
- o.value = !1, m();
293
+ s.value = !1, g();
274
294
  return;
275
295
  }
276
296
  if (e !== "done") {
277
- (e === "error" || e === "cancelled") && (o.value = !1, m());
297
+ (e === "error" || e === "cancelled") && (s.value = !1, g());
278
298
  return;
279
299
  }
280
- i && (t <= N.value || (N.value = t, U(() => {
281
- const r = $().trim();
282
- if (!r || X(r) || !Z()) {
283
- o.value = !1;
300
+ i && (t <= G.value || (G.value = t, W(() => {
301
+ const r = Y().trim();
302
+ if (!r || te(r) || !ne()) {
303
+ s.value = !1;
284
304
  return;
285
305
  }
286
- o.value = !0, E.value += 1, le();
306
+ s.value = !0, P.value += 1, ue();
287
307
  })));
288
308
  }
289
309
  }
290
- ), de(() => {
291
- I(), m(), l.reset(), g.reset();
292
- }), (e, t) => (J(), he(ge, null, [
293
- me(xe, {
294
- "deck-kicker": te.value,
295
- "voice-hold-active": d.value,
296
- "speech-pending": L.value,
297
- "voice-key-label": Fe,
298
- "show-thinking": ne.value,
299
- "thinking-centered": ie.value,
300
- "on-escape": fe,
301
- "on-keydown": ce,
302
- "on-keyup": ue,
303
- onVisibleChange: ve
310
+ ), be(() => {
311
+ T.avatarEnabled && _.initiallyVisible && F.show();
312
+ }), we(() => {
313
+ M(), g(), l.reset(), p.reset();
314
+ }), (e, t) => (ee(), ye(Se, null, [
315
+ Le(Re, {
316
+ "deck-kicker": re.value,
317
+ "voice-hold-active": o.value,
318
+ "speech-pending": y.value,
319
+ "voice-key-label": Ue,
320
+ "show-thinking": ae.value,
321
+ "thinking-centered": le.value,
322
+ "on-escape": he,
323
+ "on-keydown": pe,
324
+ "on-keyup": de,
325
+ onVisibleChange: ge
304
326
  }, null, 8, ["deck-kicker", "voice-hold-active", "speech-pending", "show-thinking", "thinking-centered"]),
305
- D.avatarEnabled && be(p) ? (J(), we(Be, { key: 0 })) : ye("", !0)
327
+ z.avatarEnabled && U(d) ? (ee(), ke(_e, {
328
+ key: 0,
329
+ "voice-disabled": U(n).loading || y.value || C.value,
330
+ "voice-error": U(n).error,
331
+ onVoiceStart: fe,
332
+ onVoiceStop: ve,
333
+ onClose: U(F).hide
334
+ }, null, 8, ["voice-disabled", "voice-error", "onClose"])) : Te("", !0)
306
335
  ], 64));
307
336
  }
308
337
  });
309
338
  export {
310
- Je as default
339
+ tt as default
311
340
  };
package/dist/plugin.js CHANGED
@@ -58,7 +58,7 @@ const K = {
58
58
  clientInfo: {
59
59
  name: "spotlight-vue",
60
60
  title: "Spotlight Vue",
61
- version: "0.8.3"
61
+ version: "0.8.5"
62
62
  },
63
63
  toolManifest: () => m({
64
64
  projectId: t.projectId,
@@ -1 +1 @@
1
- {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/remote/audio.ts"],"names":[],"mappings":"AAUA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASxD;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAMjE;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,CAAC,CAWlB;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CA6B7C"}
1
+ {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/remote/audio.ts"],"names":[],"mappings":"AAUA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUxD;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAMjE;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,CAAC,CAWlB;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CA6B7C"}
@@ -2,8 +2,8 @@ import { withRequestTimeout as s } from "../utils/requestTimeout.js";
2
2
  import { getSpotlightServerBase as p, buildSpotlightJsonHeaders as u } from "./httpConfig.js";
3
3
  import { postSpotlightJson as T } from "./serverJson.js";
4
4
  const l = 3e4, f = 45e3;
5
- function S(t) {
6
- return t.replace(/```[\s\S]*?```/g, " ").replace(/`([^`]+)`/g, "$1").replace(/\[(.*?)\]\((.*?)\)/g, "$1").replace(/[#>*_-]+/g, " ").replace(/\s+/g, " ").trim().slice(0, 3e3);
5
+ function g(t) {
6
+ return t.replace(/```[\s\S]*?```/g, " ").replace(/`([^`]+)`/g, "$1").replace(/\[(.*?)\]\((.*?)\)/g, "$1").replace(/[#>*_-]+/g, " ").replace(/\s+/g, " ").replace(/\s+([,。!?、;:,.!?;:])/g, "$1").trim().slice(0, 3e3);
7
7
  }
8
8
  function w(t) {
9
9
  if (typeof t == "string") return t.trim();
@@ -24,7 +24,7 @@ async function b(t, e) {
24
24
  }
25
25
  }
26
26
  async function E(t, e) {
27
- const r = S(t);
27
+ const r = g(t);
28
28
  if (!r)
29
29
  throw new Error("TTS 输入为空。");
30
30
  const i = s(f, e);
@@ -49,7 +49,7 @@ async function E(t, e) {
49
49
  }
50
50
  export {
51
51
  w as extractTranscriptionText,
52
- S as normalizeSpeakText,
52
+ g as normalizeSpeakText,
53
53
  E as spotlightSynthesizeSpeech,
54
54
  b as spotlightTranscribeAudio
55
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inupedia/spotlight-vue",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Thin Vue runtime for Inupedia Spotlight Client Tools",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -91,8 +91,8 @@
91
91
  "dependencies": {
92
92
  "prettier": "^3.8.1",
93
93
  "yaml": "^2.8.4",
94
- "@inupedia/spotlight-protocol": "0.8.3",
95
- "@inupedia/spotlight-client": "0.8.3"
94
+ "@inupedia/spotlight-client": "0.8.5",
95
+ "@inupedia/spotlight-protocol": "0.8.5"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@inspira-ui/plugins": "^0.0.2",