@inupedia/spotlight-vue 0.8.4 → 0.8.6

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,311 +1,317 @@
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";
1
+ import { defineComponent as me, computed as P, ref as u, watch as ge, onMounted as be, onUnmounted as we, openBlock as N, createElementBlock as G, Fragment as ye, createVNode as Se, unref as _, createBlock as Le, createElementVNode as $, createCommentVNode as ke, nextTick as j } from "vue";
5
2
  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";
3
+ import { SpotlightSpeechService as Ce, hasSpotlightSpeechConfig as Ee } from "../avatar/speech/spotlightSpeech.js";
4
+ import { storeToRefs as Ve } from "pinia";
5
+ import { useSpotlightStore as Ae } from "../store/spotlightStore.js";
9
6
  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({
7
+ import Ke from "./SpotlightRoot.vue.js";
8
+ import xe from "./Live2dPanel.vue.js";
9
+ import { useLive2dOverlayStore as Be } from "../store/live2dOverlayStore.js";
10
+ import { useLive2dSpeechStore as He } from "../store/live2dSpeechStore.js";
11
+ import { useLive2dVoiceChannelStore as Re } from "../store/live2dVoiceChannelStore.js";
12
+ import { devWarn as _e } from "../utils/devConsole.js";
13
+ const Y = "Backquote", Fe = "`", Ye = /* @__PURE__ */ me({
17
14
  __name: "SpotlightShell",
18
15
  props: {
19
16
  avatarEnabled: { type: Boolean, default: !1 }
20
17
  },
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(
18
+ setup(F) {
19
+ const k = F, K = Pe(), Q = P(
20
+ () => K.deckKicker?.trim() || "SPOTLIGHT"
21
+ ), x = P(
22
+ () => K.greetingText?.trim() || "您好,我是 Spotlight 助手"
23
+ ), n = Ae(), T = Be(), { visible: v } = Ve(T), o = He(), s = Re(), p = new Ce(), w = u(null), l = u(!1), h = u(!1), y = u(!1), C = u(null), E = u(null), B = u(null), f = u(null), m = u(0), g = u(!1), D = P(
27
24
  () => Math.max(
28
25
  0,
29
- R.briefingKeepLastMs ?? 0
26
+ K.briefingKeepLastMs ?? 0
30
27
  )
31
28
  );
32
29
  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(() => {
30
+ const d = u(!1);
31
+ let H = Promise.resolve(), O = 0;
32
+ const J = P(() => n.showThinkingBar ? !k.avatarEnabled || !v.value || n.pipelinePhase === "running" || g.value ? !0 : n.pipelinePhase === "done" : !1), X = P(() => {
34
33
  const e = n.agentSteps.length === 1 && n.agentSteps[0]?.label === "回答";
35
- return n.pipelinePhase === "running" || e || o.value;
34
+ return n.pipelinePhase === "running" || e || g.value;
36
35
  });
37
- function re() {
38
- o.value = !1, p.value && (n.showThinkingBar = !1);
39
- }
40
- function z() {
41
- k.value != null && (window.clearTimeout(k.value), k.value = null);
36
+ function Z() {
37
+ g.value = !1, v.value && (n.showThinkingBar = !1);
42
38
  }
43
39
  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();
40
+ w.value != null && (window.clearTimeout(w.value), w.value = null);
41
+ }
42
+ function U() {
43
+ I(), C.value && (C.value.abort(), C.value = null), h.value = !1, y.value = !1, l.value = !1, d.value = !1, s.reset(), p.cancel();
45
44
  }
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(
45
+ function S() {
46
+ b && (b.abort(), b = null), f.value && (f.value.abort(), f.value = null), V(), o.reset(), import("../avatar/spine/live2dApp.js").then(
48
47
  (e) => e.stopLive2dLipSync()
49
48
  );
50
49
  }
51
- function G(e, t) {
52
- return e <= 0 ? Promise.resolve() : new Promise((i, r) => {
53
- const a = window.setTimeout(() => {
54
- t?.removeEventListener("abort", v), i();
55
- }, e), v = () => {
56
- window.clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
50
+ function ee(e, t) {
51
+ return e <= 0 ? Promise.resolve() : new Promise((i, a) => {
52
+ const r = window.setTimeout(() => {
53
+ t?.removeEventListener("abort", L), i();
54
+ }, e), L = () => {
55
+ window.clearTimeout(r), a(new DOMException("Aborted", "AbortError"));
57
56
  };
58
57
  if (t?.aborted) {
59
- v();
58
+ L();
60
59
  return;
61
60
  }
62
- t?.addEventListener("abort", v, { once: !0 });
61
+ t?.addEventListener("abort", L, { once: !0 });
63
62
  });
64
63
  }
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();
64
+ async function te() {
65
+ if (!v.value || n.pipelinePhase === "running") return;
66
+ S(), m.value += 1;
67
+ const e = m.value, t = new AbortController();
68
+ if (b = t, !Ee()) {
69
+ b = null, await j(), (await import("../avatar/spine/live2dApp.js")).playLive2dHello(), o.start(x.value, { instant: !0 }), o.reset();
71
70
  return;
72
71
  }
73
- const i = S.synthesize(
74
- _.value,
72
+ const i = p.synthesize(
73
+ x.value,
75
74
  t.signal
76
75
  );
77
- if (await U(), await new Promise((r) => {
78
- requestAnimationFrame(() => r());
79
- }), !!u(t, e))
76
+ if (await j(), await new Promise((a) => {
77
+ requestAnimationFrame(() => a());
78
+ }), !!c(t, e))
80
79
  try {
81
- const { blob: r } = await i;
82
- if (!u(t, e)) return;
83
- await j(
84
- _.value,
85
- r,
80
+ const { blob: a } = await i;
81
+ if (!c(t, e)) return;
82
+ await W(
83
+ x.value,
84
+ a,
86
85
  t,
87
86
  e,
88
87
  { instantText: !0, playHelloWithSpeech: !0 }
89
88
  );
90
- } catch (r) {
89
+ } catch (a) {
91
90
  if (t.signal.aborted) return;
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());
91
+ const r = a instanceof Error ? a.message : "数字人招呼语音失败,请稍后重试。";
92
+ _e("[live2d-greeting]", r), c(t, e) && ((await import("../avatar/spine/live2dApp.js")).playLive2dHello(), o.start(x.value, { instant: !0 }), o.reset());
94
93
  } finally {
95
94
  b === t && (b = null);
96
95
  }
97
96
  }
98
- function B() {
99
- x.value && (x.value.pause(), x.value.src = "", x.value = null), H.value && (URL.revokeObjectURL(H.value), H.value = null);
97
+ function V() {
98
+ E.value && (E.value.pause(), E.value.src = "", E.value = null), B.value && (URL.revokeObjectURL(B.value), B.value = null);
100
99
  }
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 ?? "";
100
+ function ne() {
101
+ S(), m.value += 1;
102
+ const e = new AbortController();
103
+ f.value = e, H = Promise.resolve(), O = 0, g.value = !0;
103
104
  }
104
- async function le() {
105
- const e = $().trim();
106
- if (!e || !p.value || X(e)) {
107
- o.value = !1;
108
- return;
109
- }
110
- m();
111
- const t = E.value, i = new AbortController();
112
- T.value = i;
113
- try {
114
- let a = Se(e).sentences;
115
- if (!a.length) {
116
- o.value = !1;
117
- return;
118
- }
119
- let v = null, K = !1;
120
- const w = ke(e, i.signal).then((s) => {
121
- s.sentences.length > 0 && (v = s.sentences);
122
- }).catch(() => {
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));
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))
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, {
105
+ function ie(e) {
106
+ const t = f.value;
107
+ if (!t || t.signal.aborted || !e.text.trim()) return;
108
+ const i = m.value, a = p.synthesize(e.text, t.signal).then(
109
+ (r) => ({ blob: r.blob, error: null }),
110
+ (r) => ({ blob: null, error: r })
111
+ );
112
+ O += 1, H = H.then(async () => {
113
+ const r = await a;
114
+ if (r.error) throw r.error;
115
+ r.blob && c(t, i) && (e.index === 0 && Z(), await W(
116
+ e.text,
117
+ r.blob,
118
+ t,
119
+ i,
120
+ {
138
121
  instantText: !0,
139
- hasFollowingClip: c + 1 < a.length
140
- });
141
- const Y = s.pauseMs ?? 0;
142
- if (Y > 0 && u(i, t))
143
- try {
144
- await G(Y, i.signal);
145
- } catch {
146
- return;
147
- }
148
- c += 1;
149
- }
150
- await w;
151
- } catch (r) {
152
- if (i.signal.aborted) return;
153
- m();
154
- const a = r instanceof Error ? r.message : "数字人语音播放失败,请稍后重试。";
155
- n.error = a;
156
- } finally {
157
- if (o.value = !1, B(), (await import("../avatar/spine/live2dApp.js")).stopLive2dLipSync(), u(i, t)) {
158
- if (W.value > 0)
159
- try {
160
- await G(W.value, i.signal);
161
- } catch {
162
- }
163
- u(i, t) && l.reset();
164
- }
165
- T.value === i && (T.value = null);
122
+ hasFollowingClip: !0
123
+ }
124
+ ));
125
+ }).catch((r) => {
126
+ t.signal.aborted || (n.error = r instanceof Error ? r.message : "数字人语音播放失败,请稍后重试。");
127
+ });
128
+ }
129
+ async function re() {
130
+ const e = f.value;
131
+ if (!e) return;
132
+ const t = m.value;
133
+ if (await H, g.value = !1, V(), (await import("../avatar/spine/live2dApp.js")).stopLive2dLipSync(), c(e, t)) {
134
+ if (D.value > 0 && O > 0)
135
+ try {
136
+ await ee(D.value, e.signal);
137
+ } catch {
138
+ }
139
+ c(e, t) && o.reset();
166
140
  }
141
+ f.value === e && (f.value = null);
167
142
  }
168
- function u(e, t) {
169
- return !e.signal.aborted && E.value === t;
143
+ function c(e, t) {
144
+ return !e.signal.aborted && m.value === t;
170
145
  }
171
- async function j(e, t, i, r, a) {
172
- if (!u(i, r)) return;
173
- const v = a?.hasFollowingClip ?? !1;
174
- B();
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 });
146
+ async function W(e, t, i, a, r) {
147
+ if (!c(i, a)) return;
148
+ const L = r?.hasFollowingClip ?? !1;
149
+ V();
150
+ const z = URL.createObjectURL(t);
151
+ B.value = z;
152
+ const A = new Audio(z);
153
+ A.volume = 1, E.value = A;
154
+ const R = await import("../avatar/spine/live2dApp.js"), { buildWavEnvelopeFromBlob: de } = await import("../avatar/spine/spineLipSync.js"), pe = r?.lipSyncEnvelope ?? await de(t);
155
+ if (c(i, a)) {
156
+ r?.playHelloWithSpeech && R.playLive2dHello(), R.bindLive2dLipSyncToAudio(A, pe), o.start(e, { instant: r?.instantText ?? !0 });
182
157
  try {
183
- await w.play();
184
- } catch (c) {
185
- throw h.stopLive2dLipSync(), B(), c;
158
+ await A.play();
159
+ } catch (he) {
160
+ throw R.stopLive2dLipSync(), V(), he;
186
161
  }
187
- if (await Te(w, i.signal), h.stopLive2dLipSync(), B(), !!u(i, r)) {
188
- if (v) {
189
- l.finish();
162
+ if (await Te(A, i.signal), R.stopLive2dLipSync(), V(), !!c(i, a)) {
163
+ if (L) {
164
+ o.finish();
190
165
  return;
191
166
  }
192
- l.reset();
167
+ o.reset();
193
168
  }
194
169
  }
195
170
  }
196
- function q() {
197
- return C.avatarEnabled ? p.value && !n.visible && !n.loading && !L.value : !1;
171
+ function M() {
172
+ return k.avatarEnabled ? v.value && !n.visible && !n.loading && !y.value && !h.value : !1;
198
173
  }
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;
174
+ async function q() {
175
+ if (h.value) return;
176
+ const e = d.value;
177
+ l.value = !1, e && s.setTranscribing(!0), h.value = !0;
203
178
  const t = new AbortController();
204
- P.value = t;
179
+ C.value = t;
205
180
  try {
206
- const { text: i } = await S.stopAndTranscribe(t.signal), r = i.trim();
181
+ const { text: i } = await p.stopAndTranscribe(t.signal), a = i.trim();
207
182
  if (e) {
208
- if (A.value = !1, !r) return;
209
- n.prompt = r, await n.submit();
183
+ if (d.value = !1, s.setTranscribing(!1), !a) return;
184
+ n.prompt = a, ne();
185
+ try {
186
+ await n.submit({
187
+ interactionMode: "voice",
188
+ onVoiceSentence: ie
189
+ });
190
+ } finally {
191
+ await re();
192
+ }
210
193
  return;
211
194
  }
212
- const a = n.prompt.trim();
213
- n.prompt = a ? `${a} ${i}` : i;
195
+ const r = n.prompt.trim();
196
+ n.prompt = r ? `${r} ${i}` : i;
214
197
  } catch (i) {
215
198
  if (t.signal.aborted) return;
216
- const r = i instanceof Error ? i.message : "语音识别失败,请重试。";
217
- n.error = r;
199
+ const a = i instanceof Error ? i.message : "语音识别失败,请重试。";
200
+ n.error = a;
218
201
  } finally {
219
- P.value = null, L.value = !1, d.value = !1, A.value = !1, g.reset();
202
+ C.value = null, h.value = !1, l.value = !1, d.value = !1, s.reset();
220
203
  }
221
204
  }
222
- function se(e) {
205
+ function ae(e) {
223
206
  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();
207
+ const t = M();
208
+ !n.visible && !t || n.visible && n.loading || (e.preventDefault(), !(w.value != null || l.value) && (w.value = window.setTimeout(async () => {
209
+ w.value = null;
210
+ const i = M();
228
211
  if (!(!n.visible && !i) && !(n.visible && n.loading))
229
212
  try {
230
- await S.startRecording(), d.value = !0, A.value = i, i ? g.setRecording(!0) : g.reset(), n.error = "";
231
- } catch (r) {
232
- const a = r instanceof Error ? r.message : "无法启动语音录制。";
233
- n.error = a, d.value = !1, A.value = !1, g.reset();
213
+ await p.startRecording(), l.value = !0, d.value = i, i ? s.setRecording(!0) : s.reset(), n.error = "";
214
+ } catch (a) {
215
+ const r = a instanceof Error ? a.message : "无法启动语音录制。";
216
+ n.error = r, l.value = !1, d.value = !1, s.reset();
234
217
  }
235
218
  }, 450)));
236
219
  }
237
- function ue(e) {
238
- if (e.code !== ee || !n.visible && !d.value) return;
220
+ async function oe() {
221
+ if (!(!M() || y.value)) {
222
+ y.value = !0;
223
+ try {
224
+ if (S(), await p.startRecording(), !v.value) {
225
+ p.cancel();
226
+ return;
227
+ }
228
+ l.value = !0, d.value = !0, s.setRecording(!0), n.error = "";
229
+ } catch (e) {
230
+ const t = e instanceof Error ? e.message : "无法启动语音录制。";
231
+ n.error = t, l.value = !1, d.value = !1, s.reset();
232
+ } finally {
233
+ y.value = !1;
234
+ }
235
+ }
236
+ }
237
+ function le() {
238
+ l.value && q();
239
+ }
240
+ function se(e) {
241
+ if (e.code !== Y || !n.visible && !l.value) return;
239
242
  e.preventDefault();
240
- const t = d.value;
241
- z(), t && oe();
243
+ const t = l.value;
244
+ I(), t && q();
242
245
  }
243
- function ce(e) {
244
- if (e.code === ee) {
245
- se(e);
246
+ function ue(e) {
247
+ if (e.code === Y) {
248
+ ae(e);
246
249
  return;
247
250
  }
248
251
  const t = e.key.toLowerCase(), i = e.metaKey || e.ctrlKey;
249
- C.avatarEnabled && i && t === "l" && (e.preventDefault(), M.toggle());
252
+ k.avatarEnabled && i && t === "l" && (e.preventDefault(), T.toggle());
250
253
  }
251
- function fe() {
252
- o.value = !1, E.value += 1, m(), l.reset(), n.showThinkingBar ? n.closeThinking() : n.visible && n.close();
254
+ function ce() {
255
+ T.show();
253
256
  }
254
- function ve(e) {
257
+ function ve() {
258
+ g.value = !1, m.value += 1, S(), o.reset(), n.showThinkingBar ? n.closeThinking() : n.visible && n.close();
259
+ }
260
+ function fe(e) {
255
261
  if (!e) {
256
- I(), p.value && n.prepareLive2dVoiceChannel();
262
+ U(), v.value && n.prepareLive2dVoiceChannel();
257
263
  return;
258
264
  }
259
265
  }
260
- return Q(p, (e) => {
261
- if (C.avatarEnabled) {
266
+ return ge(v, (e) => {
267
+ if (k.avatarEnabled) {
262
268
  if (!e) {
263
- o.value = !1, I(), m(), l.reset(), g.reset();
269
+ g.value = !1, U(), S(), o.reset(), s.reset();
264
270
  return;
265
271
  }
266
- n.visible || n.prepareLive2dVoiceChannel(), ae();
267
- }
268
- }), Q(
269
- () => [n.pipelinePhase, n.pipelineRunId, p.value],
270
- ([e, t, i]) => {
271
- if (C.avatarEnabled) {
272
- if (e === "running") {
273
- o.value = !1, m();
274
- return;
275
- }
276
- if (e !== "done") {
277
- (e === "error" || e === "cancelled") && (o.value = !1, m());
278
- return;
279
- }
280
- i && (t <= N.value || (N.value = t, U(() => {
281
- const r = $().trim();
282
- if (!r || X(r) || !Z()) {
283
- o.value = !1;
284
- return;
285
- }
286
- o.value = !0, E.value += 1, le();
287
- })));
288
- }
272
+ n.visible || n.prepareLive2dVoiceChannel(), te();
289
273
  }
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,
274
+ }), be(() => {
275
+ k.avatarEnabled && K.initiallyVisible && T.show();
276
+ }), we(() => {
277
+ U(), S(), o.reset(), s.reset();
278
+ }), (e, t) => (N(), G(ye, null, [
279
+ Se(Ke, {
280
+ "deck-kicker": Q.value,
281
+ "voice-hold-active": l.value,
282
+ "speech-pending": h.value,
297
283
  "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
284
+ "show-thinking": J.value,
285
+ "thinking-centered": X.value,
286
+ "on-escape": ve,
287
+ "on-keydown": ue,
288
+ "on-keyup": se,
289
+ onVisibleChange: fe
304
290
  }, 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)
291
+ F.avatarEnabled && _(v) ? (N(), Le(xe, {
292
+ key: 0,
293
+ "voice-disabled": _(n).loading || h.value || y.value,
294
+ "voice-error": _(n).error,
295
+ onVoiceStart: oe,
296
+ onVoiceStop: le,
297
+ onClose: _(T).hide
298
+ }, null, 8, ["voice-disabled", "voice-error", "onClose"])) : F.avatarEnabled ? (N(), G("button", {
299
+ key: 1,
300
+ type: "button",
301
+ class: "spotlight-avatar-reopen",
302
+ "aria-label": "再次打开数字人小滴",
303
+ title: "再次打开小滴(Ctrl/Command + L)",
304
+ onClick: ce
305
+ }, [...t[0] || (t[0] = [
306
+ $("span", {
307
+ class: "spotlight-avatar-reopen__drop",
308
+ "aria-hidden": "true"
309
+ }, null, -1),
310
+ $("span", { class: "spotlight-avatar-reopen__label" }, "小滴", -1)
311
+ ])])) : ke("", !0)
306
312
  ], 64));
307
313
  }
308
314
  });
309
315
  export {
310
- Je as default
316
+ Ye as default
311
317
  };
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.4"
61
+ version: "0.8.6"
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
  };
@@ -3,6 +3,14 @@ import type { HandlerApi } from "../store/pipeline/types.js";
3
3
  import type { SpotlightExecutionEvent } from "../store/runtime/types.js";
4
4
  import { executeRemoteHostTool } from "./hostToolRunner.js";
5
5
  import type { SpotlightPipelineRunOutcome } from "./types.js";
6
+ export interface SpotlightPipelineRunOptions {
7
+ forceMemoryRefresh?: boolean;
8
+ interactionMode?: "text" | "voice";
9
+ onVoiceSentence?: (sentence: {
10
+ index: number;
11
+ text: string;
12
+ }) => void;
13
+ }
6
14
  type RemoteRunEvent = SpotlightExecutionEvent | {
7
15
  type: "host_action_request";
8
16
  at: number;
@@ -102,9 +110,7 @@ export declare function applyRemoteEvent(api: HandlerApi, event: RemoteRunEvent,
102
110
  /** Render only stable Thread / Turn / Item events; LangGraph phases stay server-side. */
103
111
  export declare function applyLifecycleEvent(api: HandlerApi, event: SpotlightTurnEvent, lookup?: ToolLaneLookup): Promise<void>;
104
112
  export declare function warmupSpotlightRemoteContext(signal?: AbortSignal): Promise<void>;
105
- export declare function runRemoteSpotlightPipeline(userQuestion: string, api: HandlerApi, options?: {
106
- forceMemoryRefresh?: boolean;
107
- }): Promise<SpotlightPipelineRunOutcome>;
113
+ export declare function runRemoteSpotlightPipeline(userQuestion: string, api: HandlerApi, options?: SpotlightPipelineRunOptions): Promise<SpotlightPipelineRunOutcome>;
108
114
  export declare function cancelRemoteSpotlightRun(runId: string): Promise<void>;
109
115
  export declare function cancelRemoteSpotlightRunForSignal(signal?: AbortSignal): void;
110
116
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAGlB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AActC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAEL,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAI9D,KAAK,cAAc,GACf,uBAAuB,GACvB;IACE,IAAI,EAAE,qBAAqB,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAC/B,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,UAAU,CAAC,EAAE,cAAc,CAAC;QAC5B,2EAA2E;QAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,M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