@o-lang/olang 1.2.24 → 1.2.25
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/package.json +1 -1
- package/src/parser/index.js +15 -1
package/package.json
CHANGED
package/src/parser/index.js
CHANGED
|
@@ -388,9 +388,23 @@ function parseWorkflowLines(lines, filename) {
|
|
|
388
388
|
const askMatch = line.match(/^Ask\s+(.+)$/i);
|
|
389
389
|
if (askMatch) {
|
|
390
390
|
flushCurrentStep();
|
|
391
|
+
let actionContent = askMatch[1].trim();
|
|
392
|
+
|
|
393
|
+
// ✅ Multiline heredoc support: Ask llm-groq """
|
|
394
|
+
if (actionContent.endsWith('"""')) {
|
|
395
|
+
// Consume lines until closing """
|
|
396
|
+
let multiline = actionContent.slice(0, -3).trim() + ' ';
|
|
397
|
+
while (i < lines.length) {
|
|
398
|
+
const nextLine = lines[i++].trim();
|
|
399
|
+
if (nextLine === '"""') break;
|
|
400
|
+
multiline += nextLine + ' ';
|
|
401
|
+
}
|
|
402
|
+
actionContent = multiline.trim();
|
|
403
|
+
}
|
|
404
|
+
|
|
391
405
|
workflow.steps.push({
|
|
392
406
|
type: 'action',
|
|
393
|
-
actionRaw: `Action ${
|
|
407
|
+
actionRaw: `Action ${actionContent}`,
|
|
394
408
|
stepNumber: workflow.steps.length + 1,
|
|
395
409
|
saveAs: null,
|
|
396
410
|
constraints: {}
|