@moss-tools/voice-server 1.0.0-beta.2 → 1.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to @moss-tools/voice-server will be documented in this file.
4
4
 
5
+ ## [1.0.0-beta.3] - 2026-02-21
6
+
7
+ ### Changed
8
+ - Only set room agent configuration when `agentName` is explicitly provided to `createParticipantToken()`
9
+ - Removed automatic fallback to `voice_agent_name` from credentials, allowing dispatch rules to handle agent joining
10
+
5
11
  ## [1.0.0-beta.2] - 2026-02-21
6
12
 
7
13
  ### Fixed
@@ -128,10 +128,11 @@ export class MossVoiceServer {
128
128
  canSubscribe: true,
129
129
  };
130
130
  at.addGrant(grant);
131
- const effectiveAgentName = agentName ?? voice_agent_name;
132
- if (effectiveAgentName) {
131
+ // Only add agent to room config if explicitly provided
132
+ // Don't use fallback to allow dispatch rules to handle agent joining
133
+ if (agentName) {
133
134
  at.roomConfig = new RoomConfiguration({
134
- agents: [{ agentName: effectiveAgentName }],
135
+ agents: [{ agentName }],
135
136
  });
136
137
  }
137
138
  return at.toJwt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moss-tools/voice-server",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Optimized server-side utilities for LiveKit-based Moss voice agents.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",