@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/packing.js CHANGED
@@ -249,10 +249,10 @@ async function extractPromptIncludes(sourceCode) {
249
249
  let includeName = null;
250
250
  for (const prop of element.properties) {
251
251
  if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
252
- if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && prop.initializer.text === "include") {
252
+ if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && (prop.initializer.text === "include" || prop.initializer.text === "prompt")) {
253
253
  hasIncludeType = true;
254
254
  }
255
- if (prop.name.text === "name" && ts.isStringLiteral(prop.initializer)) {
255
+ if ((prop.name.text === "prompt" || prop.name.text === "name" || prop.name.text === "id") && ts.isStringLiteral(prop.initializer)) {
256
256
  includeName = prop.initializer.text;
257
257
  }
258
258
  }