@standardagents/builder 0.10.1-next.bbd142a → 0.11.0-next.ab7e1ea

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) {
990
+ if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
991
991
  lines.push(` maxSessionTurns: ${data.maxSessionTurns},`);
992
992
  }
993
993
  lines.push(` sideA: ${formatSideConfig(data.sideA)},`);
@@ -1126,7 +1126,7 @@ function validateModelData(data) {
1126
1126
  if (!data.provider || typeof data.provider !== "string") {
1127
1127
  return "Model provider is required and must be a string";
1128
1128
  }
1129
- const validProviders = ["openai", "openrouter", "anthropic", "google"];
1129
+ const validProviders = ["openai", "openrouter", "anthropic", "google", "test"];
1130
1130
  if (!validProviders.includes(data.provider)) {
1131
1131
  return `Invalid provider '${data.provider}'. Must be one of: ${validProviders.join(", ")}`;
1132
1132
  }
@@ -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) {
1633
+ if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
1634
1634
  if (typeof data.maxSessionTurns !== "number" || data.maxSessionTurns <= 0) {
1635
1635
  return "maxSessionTurns must be a positive number";
1636
1636
  }
@@ -2063,11 +2063,10 @@ function agentbuilder(options = {}) {
2063
2063
  // WASM image processing deps - must be excluded to avoid pre-bundle cache issues
2064
2064
  "@cf-wasm/photon",
2065
2065
  "@cf-wasm/photon/workerd",
2066
+ "@standardagents/sip",
2067
+ // sip's jsquash dependencies (WASM-based decoders)
2066
2068
  "@jsquash/avif",
2067
- "@jsquash/jpeg",
2068
- "@jsquash/png",
2069
- "@jsquash/webp",
2070
- "@standardagents/sip"
2069
+ "@jsquash/webp"
2071
2070
  ];
2072
2071
  const depsToInclude = [
2073
2072
  "zod",
@@ -2102,11 +2101,10 @@ function agentbuilder(options = {}) {
2102
2101
  // WASM image processing deps
2103
2102
  "@cf-wasm/photon",
2104
2103
  "@cf-wasm/photon/workerd",
2104
+ "@standardagents/sip",
2105
+ // sip's jsquash dependencies (WASM-based decoders)
2105
2106
  "@jsquash/avif",
2106
- "@jsquash/jpeg",
2107
- "@jsquash/png",
2108
- "@jsquash/webp",
2109
- "@standardagents/sip"
2107
+ "@jsquash/webp"
2110
2108
  ];
2111
2109
  const depsToInclude = [
2112
2110
  "zod",