@standardagents/builder 0.10.1-dev.b8746e9 → 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/built-in-routes.js +9 -51
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/index.js +11 -11
- package/dist/index.d.ts +0 -16
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
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) {
|
|
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
|
|
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
|
}
|