@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o-lang/olang",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "author": "Olalekan Ogundipe <info@olang.cloud>",
5
5
  "description": "O-Lang: A governance language for user-directed, rule-enforced agent workflows",
6
6
  "main": "./src/runtime/index.js",
@@ -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 ${askMatch[1].trim()}`,
407
+ actionRaw: `Action ${actionContent}`,
394
408
  stepNumber: workflow.steps.length + 1,
395
409
  saveAs: null,
396
410
  constraints: {}