@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.
- package/dst/Voice Agent.js +5 -2
- package/package.json +1 -1
package/dst/Voice Agent.js
CHANGED
|
@@ -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 =>
|
|
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 || [];
|