@voicethere/agent 0.8.2 → 0.8.3

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.
@@ -1148,6 +1148,8 @@ var SHOWCASE_SOUND_FILES = {
1148
1148
  var SHOWCASE_ASSET_ORIGINS = [
1149
1149
  "https://app.voicethere.io",
1150
1150
  "https://app.voicethere.dev",
1151
+ "https://www.voicethere.io",
1152
+ "https://voicethere.io",
1151
1153
  "http://localhost:3000"
1152
1154
  ];
1153
1155
  var CLIP_IDS = new Set(Object.keys(SHOWCASE_SOUND_FILES));
@@ -1489,8 +1491,9 @@ function buildOrbitSineInlineClipBase64(durationMs = ORBIT_SINE_DURATION_MS, fre
1489
1491
  }
1490
1492
 
1491
1493
  // templates/spatial-showcase/agent.ts
1492
- var ORBIT_TICK_MS = 50;
1493
- var ORBIT_POSE_EMIT_MS = 100;
1494
+ var ORBIT_POSE_HZ = 60;
1495
+ var ORBIT_TICK_MS = 1e3 / ORBIT_POSE_HZ;
1496
+ var ORBIT_POSE_EMIT_MS = ORBIT_TICK_MS;
1494
1497
  var ROOM_STATE_TICK_MS = 100;
1495
1498
  var LOOP_PAD_POLL_MS = 250;
1496
1499
  var ORBIT_SINE_POLL_MS = 250;
@@ -1759,7 +1762,7 @@ function emitOrbitPose(sessionId, state) {
1759
1762
  return;
1760
1763
  }
1761
1764
  const now = Date.now();
1762
- if (state.lastOrbitPoseEmitMs !== void 0 && now - state.lastOrbitPoseEmitMs < ORBIT_POSE_EMIT_MS) {
1765
+ if (state.lastOrbitPoseEmitMs !== void 0 && now - state.lastOrbitPoseEmitMs < ORBIT_POSE_EMIT_MS - 2) {
1763
1766
  return;
1764
1767
  }
1765
1768
  state.lastOrbitPoseEmitMs = now;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicethere/agent",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "VoiceThere customer agent SDK — IPC types and runtime helpers for sandboxed child bundles",
5
5
  "type": "module",
6
6
  "exports": {
@@ -56,8 +56,9 @@ import {
56
56
  orbitSineClipDurationMs,
57
57
  } from "./sine.js";
58
58
 
59
- const ORBIT_TICK_MS = 50;
60
- const ORBIT_POSE_EMIT_MS = 100;
59
+ const ORBIT_POSE_HZ = 60;
60
+ const ORBIT_TICK_MS = 1000 / ORBIT_POSE_HZ;
61
+ const ORBIT_POSE_EMIT_MS = ORBIT_TICK_MS;
61
62
  const ROOM_STATE_TICK_MS = 100;
62
63
  const LOOP_PAD_POLL_MS = 250;
63
64
  const ORBIT_SINE_POLL_MS = 250;
@@ -426,7 +427,7 @@ function emitOrbitPose(sessionId: string, state: SessionState): void {
426
427
  const now = Date.now();
427
428
  if (
428
429
  state.lastOrbitPoseEmitMs !== undefined &&
429
- now - state.lastOrbitPoseEmitMs < ORBIT_POSE_EMIT_MS
430
+ now - state.lastOrbitPoseEmitMs < ORBIT_POSE_EMIT_MS - 2
430
431
  ) {
431
432
  return;
432
433
  }
@@ -35,6 +35,8 @@ export const SHOWCASE_SOUND_FILES: Record<ShowcaseClipId, ShowcaseSoundFile> = {
35
35
  export const SHOWCASE_ASSET_ORIGINS = [
36
36
  "https://app.voicethere.io",
37
37
  "https://app.voicethere.dev",
38
+ "https://www.voicethere.io",
39
+ "https://voicethere.io",
38
40
  "http://localhost:3000",
39
41
  ] as const;
40
42