@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/index.d.ts CHANGED
@@ -1186,8 +1186,6 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1186
1186
  id: any;
1187
1187
  title: any;
1188
1188
  type: any;
1189
- description: any;
1190
- icon: any;
1191
1189
  side_a_label: any;
1192
1190
  side_b_label: any;
1193
1191
  } | null;
@@ -2575,20 +2573,6 @@ interface AgentDefinition<N extends string = string> {
2575
2573
  * @example ['customer-service', 'tier-1', 'english']
2576
2574
  */
2577
2575
  tags?: string[];
2578
- /**
2579
- * Brief description of what this agent does.
2580
- * Useful for UIs and documentation.
2581
- *
2582
- * @example 'Handles customer support inquiries and resolves issues'
2583
- */
2584
- description?: string;
2585
- /**
2586
- * Icon URL or absolute path for the agent.
2587
- * Absolute paths (starting with `/`) are converted to full URLs in API responses.
2588
- *
2589
- * @example 'https://example.com/icon.svg' or '/icons/support.svg'
2590
- */
2591
- icon?: string;
2592
2576
  }
2593
2577
  /**
2594
2578
  * Defines an agent configuration.
package/dist/index.js CHANGED
@@ -6119,7 +6119,7 @@ function generateAgentFile(data) {
6119
6119
  if (data.type && data.type !== "ai_human") {
6120
6120
  lines.push(` type: '${data.type}',`);
6121
6121
  }
6122
- if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
6122
+ if (data.maxSessionTurns !== void 0) {
6123
6123
  lines.push(` maxSessionTurns: ${data.maxSessionTurns},`);
6124
6124
  }
6125
6125
  lines.push(` sideA: ${formatSideConfig(data.sideA)},`);
@@ -6762,7 +6762,7 @@ function validateAgentData(data) {
6762
6762
  if (data.exposeAsTool && !data.toolDescription) {
6763
6763
  return "toolDescription is required when exposeAsTool is true";
6764
6764
  }
6765
- if (data.maxSessionTurns !== void 0 && data.maxSessionTurns !== null) {
6765
+ if (data.maxSessionTurns !== void 0) {
6766
6766
  if (typeof data.maxSessionTurns !== "number" || data.maxSessionTurns <= 0) {
6767
6767
  return "maxSessionTurns must be a positive number";
6768
6768
  }
@@ -10219,8 +10219,6 @@ var DurableThread = class extends DurableObject {
10219
10219
  id: threadMetadata.agent_name,
10220
10220
  title: agentDef.title || threadMetadata.agent_name,
10221
10221
  type: agentDef.type,
10222
- description: agentDef.description,
10223
- icon: agentDef.icon,
10224
10222
  side_a_label: agentDef.sideA?.label,
10225
10223
  side_b_label: agentDef.sideB?.label
10226
10224
  };
@@ -12182,7 +12180,7 @@ function defineAgent(options) {
12182
12180
  if (options.sideB?.maxTurns !== void 0 && options.sideB.maxTurns <= 0) {
12183
12181
  throw new Error("sideB.maxTurns must be a positive number");
12184
12182
  }
12185
- if (options.maxSessionTurns !== void 0 && options.maxSessionTurns !== null && options.maxSessionTurns <= 0) {
12183
+ if (options.maxSessionTurns !== void 0 && options.maxSessionTurns <= 0) {
12186
12184
  throw new Error("maxSessionTurns must be a positive number");
12187
12185
  }
12188
12186
  if (!["ai_human", "dual_ai"].includes(type)) {