@standardagents/builder 0.41.18 → 0.41.20

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/dist/runtime.js CHANGED
@@ -25693,7 +25693,10 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
25693
25693
  const visibleSideSubagents = sideSubagentDescriptors.filter(
25694
25694
  (entry) => !entry.hidden
25695
25695
  );
25696
- const childrenRegistry = await this.getSubagentRegistry(state);
25696
+ const childrenRegistry = _FlowEngine.filterModelVisibleSubagents(
25697
+ await this.getSubagentRegistry(state),
25698
+ state.agentConfig
25699
+ );
25697
25700
  if (toolNames.length > 0) {
25698
25701
  const providerToolNames = [];
25699
25702
  const regularToolNames = [];
@@ -25835,7 +25838,7 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
25835
25838
  if (visibleSideSubagents.length > 0 && !tools.some((tool) => tool.function.name === "subagent_create")) {
25836
25839
  tools.push(this.buildSubagentCreateTool(visibleSideSubagents));
25837
25840
  }
25838
- if ((sideSubagentDescriptors.length > 0 || childrenRegistry.length > 0) && !tools.some((tool) => tool.function.name === "subagents")) {
25841
+ if ((visibleSideSubagents.length > 0 || childrenRegistry.length > 0) && !tools.some((tool) => tool.function.name === "subagents")) {
25839
25842
  tools.push({
25840
25843
  type: "function",
25841
25844
  function: {