holostaff-widget 3.0.11 → 3.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{CanvasRenderer-Bs-lFIBH.js → CanvasRenderer-C30ld-J9.js} +5 -5
  2. package/dist/{CanvasRenderer-Bs-lFIBH.js.map → CanvasRenderer-C30ld-J9.js.map} +1 -1
  3. package/dist/{Filter-u3cO1RLf.js → Filter-rHFmf-mF.js} +2 -2
  4. package/dist/{Filter-u3cO1RLf.js.map → Filter-rHFmf-mF.js.map} +1 -1
  5. package/dist/{GpuStencilModesToPixi-CvK8tsvK.js → GpuStencilModesToPixi-DkQwsHZu.js} +3 -3
  6. package/dist/{GpuStencilModesToPixi-CvK8tsvK.js.map → GpuStencilModesToPixi-DkQwsHZu.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-D0UXSH3i.js → RenderTargetSystem-C3h95MeA.js} +3 -3
  8. package/dist/{RenderTargetSystem-D0UXSH3i.js.map → RenderTargetSystem-C3h95MeA.js.map} +1 -1
  9. package/dist/{WebGLRenderer-C4i0snFE.js → WebGLRenderer-DGYwXxXn.js} +5 -5
  10. package/dist/{WebGLRenderer-C4i0snFE.js.map → WebGLRenderer-DGYwXxXn.js.map} +1 -1
  11. package/dist/{WebGPURenderer-5XhUvJYL.js → WebGPURenderer-GJ4lXiuS.js} +6 -6
  12. package/dist/{WebGPURenderer-5XhUvJYL.js.map → WebGPURenderer-GJ4lXiuS.js.map} +1 -1
  13. package/dist/{browserAll-C8-HGWQr.js → browserAll-CFx0IGil.js} +3 -3
  14. package/dist/{browserAll-C8-HGWQr.js.map → browserAll-CFx0IGil.js.map} +1 -1
  15. package/dist/{getTextureBatchBindGroup-Drt1kYWV.js → getTextureBatchBindGroup-CZE-jmnF.js} +3 -3
  16. package/dist/{getTextureBatchBindGroup-Drt1kYWV.js.map → getTextureBatchBindGroup-CZE-jmnF.js.map} +1 -1
  17. package/dist/hs-widget.es.js +1 -1
  18. package/dist/hs-widget.umd.js +2 -2
  19. package/dist/hs-widget.umd.js.map +1 -1
  20. package/dist/{index-Bh9xbhFo.js → index-DCygieG8.js} +23 -13
  21. package/dist/{index-Bh9xbhFo.js.map → index-DCygieG8.js.map} +1 -1
  22. package/dist/{webworkerAll-D2tTDfqq.js → webworkerAll-DeyQs7Px.js} +3 -3
  23. package/dist/{webworkerAll-D2tTDfqq.js.map → webworkerAll-DeyQs7Px.js.map} +1 -1
  24. package/package.json +1 -1
@@ -8151,7 +8151,7 @@ const pc = {
8151
8151
  },
8152
8152
  test: () => !0,
8153
8153
  load: async () => {
8154
- await import("./browserAll-C8-HGWQr.js");
8154
+ await import("./browserAll-CFx0IGil.js");
8155
8155
  }
8156
8156
  }, mc = {
8157
8157
  extension: {
@@ -8161,7 +8161,7 @@ const pc = {
8161
8161
  },
8162
8162
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
8163
8163
  load: async () => {
8164
- await import("./webworkerAll-D2tTDfqq.js");
8164
+ await import("./webworkerAll-DeyQs7Px.js");
8165
8165
  }
8166
8166
  };
8167
8167
  function gc(i, e, t) {
@@ -10602,17 +10602,17 @@ async function Dc(i) {
10602
10602
  for (let r = 0; r < e.length; r++) {
10603
10603
  const o = e[r];
10604
10604
  if (o === "webgpu" && await Nc()) {
10605
- const { WebGPURenderer: a } = await import("./WebGPURenderer-5XhUvJYL.js");
10605
+ const { WebGPURenderer: a } = await import("./WebGPURenderer-GJ4lXiuS.js");
10606
10606
  t = a, s = { ...i, ...i.webgpu };
10607
10607
  break;
10608
10608
  } else if (o === "webgl" && Mc(
10609
10609
  i.failIfMajorPerformanceCaveat ?? Ys.defaultOptions.failIfMajorPerformanceCaveat
10610
10610
  )) {
10611
- const { WebGLRenderer: a } = await import("./WebGLRenderer-C4i0snFE.js");
10611
+ const { WebGLRenderer: a } = await import("./WebGLRenderer-DGYwXxXn.js");
10612
10612
  t = a, s = { ...i, ...i.webgl };
10613
10613
  break;
10614
10614
  } else if (o === "canvas") {
10615
- const { CanvasRenderer: a } = await import("./CanvasRenderer-Bs-lFIBH.js");
10615
+ const { CanvasRenderer: a } = await import("./CanvasRenderer-C30ld-J9.js");
10616
10616
  t = a, s = { ...i, ...i.canvasOptions };
10617
10617
  break;
10618
10618
  }
@@ -19580,7 +19580,10 @@ class Rf {
19580
19580
  backendUrl: this.config.backendUrl
19581
19581
  }), await this.connectAnam(), await this.connectRealtimeApi(), this.state = "active", this.setAvatarState("listening"), this.sessionStartTime = Date.now(), (h = this.bubble) == null || h.hideStatic(), this.updateEvalState({ conversationStarted: !0 }), this.showControls(), this.startSessionTimers(), (f = this.visionWs) == null || f.sendConversationStarted(), (u = this.rrwebRecorder) == null || u.pause(), console.log("[HolostaffWidget] Conversation active");
19582
19582
  } catch (m) {
19583
- console.error("[HolostaffWidget] Failed to start conversation:", m), (g = this.bubble) == null || g.hideStatic(), this.endConversation();
19583
+ console.error("[HolostaffWidget] Failed to start conversation:", m), this.updateEvalState({
19584
+ conversationError: (m == null ? void 0 : m.message) ?? String(m),
19585
+ conversationErrorAt: (/* @__PURE__ */ new Date()).toISOString()
19586
+ }), (g = this.bubble) == null || g.hideStatic(), this.endConversation();
19584
19587
  }
19585
19588
  }
19586
19589
  }
@@ -19795,11 +19798,17 @@ All actions except form filling require the visitor to confirm before executing.
19795
19798
  }
19796
19799
  /** Extract AI-generated text from a response.done payload for logging. */
19797
19800
  extractAiTranscript(e) {
19798
- if (!(!(e != null && e.output) || !this.logger)) {
19799
- for (const t of e.output)
19800
- if (t.type === "message" && t.content)
19801
- for (const s of t.content)
19802
- s.transcript ? this.logger.addStaffMessage(s.transcript) : s.text && this.logger.addStaffMessage(s.text);
19801
+ var t;
19802
+ if (e != null && e.output) {
19803
+ for (const s of e.output)
19804
+ if (s.type === "message" && s.content)
19805
+ for (const n of s.content) {
19806
+ const r = n.transcript ?? n.text;
19807
+ if (r && ((t = this.logger) == null || t.addStaffMessage(r), this.evalMode)) {
19808
+ const o = window.__HS_EVAL_STATE__;
19809
+ o && (Array.isArray(o.avatarTranscripts) || (o.avatarTranscripts = []), o.avatarTranscripts.push(r));
19810
+ }
19811
+ }
19803
19812
  }
19804
19813
  }
19805
19814
  // -----------------------------------------------------------------------
@@ -20035,7 +20044,8 @@ function Df() {
20035
20044
  skillId: null,
20036
20045
  openingMessage: null,
20037
20046
  conversationStarted: !1,
20038
- conversationEnded: !1
20047
+ conversationEnded: !1,
20048
+ avatarTranscripts: []
20039
20049
  }, console.log("[HolostaffWidget] Eval mode active — __HS_EVAL_STATE__ initialized"));
20040
20050
  } catch (v) {
20041
20051
  if (v.name === "WidgetDisabledError") {
@@ -20148,4 +20158,4 @@ export {
20148
20158
  st as y,
20149
20159
  Gr as z
20150
20160
  };
20151
- //# sourceMappingURL=index-Bh9xbhFo.js.map
20161
+ //# sourceMappingURL=index-DCygieG8.js.map