@onereach/step-voice 7.0.41-subagents.0 → 7.0.41-subagents.1

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.
@@ -152,7 +152,7 @@ class VoiceAgent extends voice_1.default {
152
152
  const name = lodash_1.default.trim(sa?.name || '');
153
153
  if (!name)
154
154
  continue;
155
- const exitId = sa.exitId || this.findExitByLabel(name);
155
+ const exitId = sa.exitId || this.findExitByLabel(`subagent_${name}`);
156
156
  if (!exitId) {
157
157
  this.log.warn('Voice Agent: no exit for subagent; handler thread not started', { name });
158
158
  continue;
@@ -210,7 +210,10 @@ class VoiceAgent extends voice_1.default {
210
210
  }
211
211
  isSubagentExitLabel(label) {
212
212
  const subagents = this.data.subagents || [];
213
- return subagents.some(sa => sa && lodash_1.default.trim(sa.name) === label);
213
+ return subagents.some(sa => {
214
+ const name = lodash_1.default.trim(sa?.name || '');
215
+ return !!name && label === `subagent_${name}`;
216
+ });
214
217
  }
215
218
  isSubagentTool(toolName) {
216
219
  const subagents = this.data.subagents || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.41-subagents.0",
3
+ "version": "7.0.41-subagents.1",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",