agency-lang 0.0.31 → 0.0.32
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.
|
@@ -286,7 +286,7 @@ export class AgencyGenerator extends BaseGenerator {
|
|
|
286
286
|
this.decreaseIndent();
|
|
287
287
|
lines.push(elseBodyLines.join("").trimEnd() + "\n");
|
|
288
288
|
}
|
|
289
|
-
lines.push(this.indentStr(`}`));
|
|
289
|
+
lines.push(this.indentStr(`}\n\n`));
|
|
290
290
|
return lines.join("");
|
|
291
291
|
}
|
|
292
292
|
processReturnStatement(node) {
|
|
@@ -160,10 +160,10 @@ export class TypeScriptGenerator extends BaseGenerator {
|
|
|
160
160
|
functionArgs: interpolatedVars,
|
|
161
161
|
prompt: node,
|
|
162
162
|
});
|
|
163
|
-
this.generatedStatements.push(functionCode);
|
|
163
|
+
//this.generatedStatements.push(functionCode);
|
|
164
164
|
const argsStr = [...interpolatedVars, "__messages"].join(", ");
|
|
165
165
|
// Generate the function call
|
|
166
|
-
return
|
|
166
|
+
return `${functionCode}\nconst ${variableName} = await _${variableName}(${argsStr});` + "\n";
|
|
167
167
|
}
|
|
168
168
|
processTool(node) {
|
|
169
169
|
const { functionName, body, parameters } = node;
|
package/package.json
CHANGED