@standardagents/builder 0.12.1 → 0.12.3
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 +42 -49
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/assets/index.css +1 -1
- package/dist/client/index.js +27 -27
- package/dist/index.d.ts +17 -0
- package/dist/index.js +47 -54
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +4 -3
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/plugin.js
CHANGED
|
@@ -991,6 +991,10 @@ function generatePromptFile(data) {
|
|
|
991
991
|
const reasoningCode = formatReasoningConfig(data.reasoning);
|
|
992
992
|
lines.push(` reasoning: ${reasoningCode},`);
|
|
993
993
|
}
|
|
994
|
+
if (data.hooks && data.hooks.length > 0) {
|
|
995
|
+
const hooksCode = data.hooks.map((h) => `'${escapeString2(h)}'`).join(", ");
|
|
996
|
+
lines.push(` hooks: [${hooksCode}],`);
|
|
997
|
+
}
|
|
994
998
|
if (hasSchema) {
|
|
995
999
|
const zodCode = jsonSchemaToZod(data.requiredSchema, 1);
|
|
996
1000
|
lines.push(` requiredSchema: ${zodCode},`);
|
|
@@ -1322,9 +1326,6 @@ function validateModelData(data) {
|
|
|
1322
1326
|
if (!data.name || typeof data.name !== "string") {
|
|
1323
1327
|
return "Model name is required and must be a string";
|
|
1324
1328
|
}
|
|
1325
|
-
if (data.name.includes("/")) {
|
|
1326
|
-
return "Model name cannot contain '/'. Reserved for namespace qualification.";
|
|
1327
|
-
}
|
|
1328
1329
|
if (!data.provider || typeof data.provider !== "string") {
|
|
1329
1330
|
return "Model provider is required and must be a string";
|
|
1330
1331
|
}
|