@standardagents/builder 0.10.1-dev.616ec2e → 0.10.1-next.bbd142a

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/plugin.js CHANGED
@@ -987,7 +987,7 @@ function generateAgentFile(data) {
987
987
  if (data.type && data.type !== "ai_human") {
988
988
  lines.push(` type: '${data.type}',`);
989
989
  }
990
- if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
990
+ if (data.maxSessionTurns !== void 0) {
991
991
  lines.push(` maxSessionTurns: ${data.maxSessionTurns},`);
992
992
  }
993
993
  lines.push(` sideA: ${formatSideConfig(data.sideA)},`);
@@ -1630,7 +1630,7 @@ function validateAgentData(data) {
1630
1630
  if (data.exposeAsTool && !data.toolDescription) {
1631
1631
  return "toolDescription is required when exposeAsTool is true";
1632
1632
  }
1633
- if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
1633
+ if (data.maxSessionTurns !== void 0) {
1634
1634
  if (typeof data.maxSessionTurns !== "number" || data.maxSessionTurns <= 0) {
1635
1635
  return "maxSessionTurns must be a positive number";
1636
1636
  }