@orcalang/orca-lang 0.1.19 → 0.1.24

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.
Files changed (53) hide show
  1. package/dist/compiler/dt-compiler.d.ts +4 -0
  2. package/dist/compiler/dt-compiler.d.ts.map +1 -1
  3. package/dist/compiler/dt-compiler.js +354 -4
  4. package/dist/compiler/dt-compiler.js.map +1 -1
  5. package/dist/health-check.js +75 -0
  6. package/dist/health-check.js.map +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +5 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/parser/ast-to-markdown.d.ts.map +1 -1
  11. package/dist/parser/ast-to-markdown.js +3 -1
  12. package/dist/parser/ast-to-markdown.js.map +1 -1
  13. package/dist/parser/ast.d.ts +1 -0
  14. package/dist/parser/ast.d.ts.map +1 -1
  15. package/dist/parser/dt-ast.d.ts +11 -1
  16. package/dist/parser/dt-ast.d.ts.map +1 -1
  17. package/dist/parser/dt-parser.d.ts.map +1 -1
  18. package/dist/parser/dt-parser.js +40 -8
  19. package/dist/parser/dt-parser.js.map +1 -1
  20. package/dist/parser/markdown-parser.d.ts.map +1 -1
  21. package/dist/parser/markdown-parser.js +14 -4
  22. package/dist/parser/markdown-parser.js.map +1 -1
  23. package/dist/skills.d.ts +3 -2
  24. package/dist/skills.d.ts.map +1 -1
  25. package/dist/skills.js +486 -28
  26. package/dist/skills.js.map +1 -1
  27. package/dist/tools.js +4 -4
  28. package/dist/tools.js.map +1 -1
  29. package/dist/verifier/dt-verifier.d.ts +28 -1
  30. package/dist/verifier/dt-verifier.d.ts.map +1 -1
  31. package/dist/verifier/dt-verifier.js +591 -32
  32. package/dist/verifier/dt-verifier.js.map +1 -1
  33. package/dist/verifier/properties.d.ts +4 -0
  34. package/dist/verifier/properties.d.ts.map +1 -1
  35. package/dist/verifier/properties.js +56 -20
  36. package/dist/verifier/properties.js.map +1 -1
  37. package/dist/verifier/structural.d.ts.map +1 -1
  38. package/dist/verifier/structural.js +6 -1
  39. package/dist/verifier/structural.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/compiler/dt-compiler.ts +374 -4
  42. package/src/health-check.ts +79 -0
  43. package/src/index.ts +5 -1
  44. package/src/parser/ast-to-markdown.ts +2 -1
  45. package/src/parser/ast.ts +1 -0
  46. package/src/parser/dt-ast.ts +4 -2
  47. package/src/parser/dt-parser.ts +46 -8
  48. package/src/parser/markdown-parser.ts +11 -3
  49. package/src/skills.ts +520 -30
  50. package/src/tools.ts +4 -4
  51. package/src/verifier/dt-verifier.ts +639 -30
  52. package/src/verifier/properties.ts +78 -23
  53. package/src/verifier/structural.ts +5 -1
@@ -391,6 +391,7 @@ interface StateEntry {
391
391
  invoke?: InvokeDef;
392
392
  _pendingOnError?: string; // temp: on_error parsed before invoke
393
393
  ignoredEvents?: string[];
394
+ ignoredAll?: boolean;
394
395
  line: number;
395
396
  }
396
397
 
@@ -431,9 +432,14 @@ function parseStateBullet(entry: StateEntry, text: string): void {
431
432
  entry.timeout = { duration: rest.slice(0, arrowIdx).trim(), target: rest.slice(arrowIdx + 2).trim() };
432
433
  }
433
434
  } else if (text.startsWith('ignore:')) {
434
- const names = text.slice(7).trim().split(',').map(e => e.trim()).filter(Boolean);
435
- if (!entry.ignoredEvents) entry.ignoredEvents = [];
436
- entry.ignoredEvents.push(...names);
435
+ const val = text.slice(7).trim();
436
+ if (val === '*') {
437
+ entry.ignoredAll = true;
438
+ } else {
439
+ const names = val.split(',').map(e => e.trim()).filter(Boolean);
440
+ if (!entry.ignoredEvents) entry.ignoredEvents = [];
441
+ entry.ignoredEvents.push(...names);
442
+ }
437
443
  } else if (text.startsWith('on_done:')) {
438
444
  let val = text.slice(8).trim();
439
445
  if (val.startsWith('->')) val = val.slice(2).trim();
@@ -630,6 +636,7 @@ function buildStatesAtLevel(
630
636
  if (entry.onDone) state.onDone = entry.onDone;
631
637
  if (entry.timeout) state.timeout = entry.timeout;
632
638
  if (entry.ignoredEvents?.length) state.ignoredEvents = entry.ignoredEvents;
639
+ if (entry.ignoredAll) state.ignoredAll = true;
633
640
  if (entry.invoke) state.invoke = entry.invoke;
634
641
 
635
642
  i++;
@@ -678,6 +685,7 @@ function buildParallelRegions(
678
685
  if (e.onDone) s.onDone = e.onDone;
679
686
  if (e.timeout) s.timeout = e.timeout;
680
687
  if (e.ignoredEvents?.length) s.ignoredEvents = e.ignoredEvents;
688
+ if (e.ignoredAll) s.ignoredAll = true;
681
689
  if (e.invoke) s.invoke = e.invoke;
682
690
  regionStates.push(s);
683
691
  i++;