@standardagents/builder 0.33.1 → 0.34.0

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
@@ -3948,10 +3948,10 @@ async function extractPromptIncludes(sourceCode) {
3948
3948
  let includeName = null;
3949
3949
  for (const prop of element.properties) {
3950
3950
  if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
3951
- if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && prop.initializer.text === "include") {
3951
+ if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && (prop.initializer.text === "include" || prop.initializer.text === "prompt")) {
3952
3952
  hasIncludeType = true;
3953
3953
  }
3954
- if (prop.name.text === "name" && ts.isStringLiteral(prop.initializer)) {
3954
+ if ((prop.name.text === "prompt" || prop.name.text === "name" || prop.name.text === "id") && ts.isStringLiteral(prop.initializer)) {
3955
3955
  includeName = prop.initializer.text;
3956
3956
  }
3957
3957
  }