@standardagents/builder 0.12.1 → 0.12.2

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
@@ -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},`);