@standardagents/builder 0.11.11 → 0.11.12

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/index.js CHANGED
@@ -2928,7 +2928,8 @@ ${errorLines.join("\n")}`);
2928
2928
  const toolConfig = parentToolConfigs.find(
2929
2929
  (t) => typeof t === "string" ? t === agentName : t.name === agentName
2930
2930
  );
2931
- state.pendingHandoff = {
2931
+ const targetState = state.rootState || state;
2932
+ targetState.pendingHandoff = {
2932
2933
  agentId: agentName,
2933
2934
  args: args2,
2934
2935
  toolConfig: typeof toolConfig === "object" ? {