@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.
- package/dist/compiler/dt-compiler.d.ts +4 -0
- package/dist/compiler/dt-compiler.d.ts.map +1 -1
- package/dist/compiler/dt-compiler.js +354 -4
- package/dist/compiler/dt-compiler.js.map +1 -1
- package/dist/health-check.js +75 -0
- package/dist/health-check.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/parser/ast-to-markdown.d.ts.map +1 -1
- package/dist/parser/ast-to-markdown.js +3 -1
- package/dist/parser/ast-to-markdown.js.map +1 -1
- package/dist/parser/ast.d.ts +1 -0
- package/dist/parser/ast.d.ts.map +1 -1
- package/dist/parser/dt-ast.d.ts +11 -1
- package/dist/parser/dt-ast.d.ts.map +1 -1
- package/dist/parser/dt-parser.d.ts.map +1 -1
- package/dist/parser/dt-parser.js +40 -8
- package/dist/parser/dt-parser.js.map +1 -1
- package/dist/parser/markdown-parser.d.ts.map +1 -1
- package/dist/parser/markdown-parser.js +14 -4
- package/dist/parser/markdown-parser.js.map +1 -1
- package/dist/skills.d.ts +3 -2
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +486 -28
- package/dist/skills.js.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.js.map +1 -1
- package/dist/verifier/dt-verifier.d.ts +28 -1
- package/dist/verifier/dt-verifier.d.ts.map +1 -1
- package/dist/verifier/dt-verifier.js +591 -32
- package/dist/verifier/dt-verifier.js.map +1 -1
- package/dist/verifier/properties.d.ts +4 -0
- package/dist/verifier/properties.d.ts.map +1 -1
- package/dist/verifier/properties.js +56 -20
- package/dist/verifier/properties.js.map +1 -1
- package/dist/verifier/structural.d.ts.map +1 -1
- package/dist/verifier/structural.js +6 -1
- package/dist/verifier/structural.js.map +1 -1
- package/package.json +1 -1
- package/src/compiler/dt-compiler.ts +374 -4
- package/src/health-check.ts +79 -0
- package/src/index.ts +5 -1
- package/src/parser/ast-to-markdown.ts +2 -1
- package/src/parser/ast.ts +1 -0
- package/src/parser/dt-ast.ts +4 -2
- package/src/parser/dt-parser.ts +46 -8
- package/src/parser/markdown-parser.ts +11 -3
- package/src/skills.ts +520 -30
- package/src/tools.ts +4 -4
- package/src/verifier/dt-verifier.ts +639 -30
- package/src/verifier/properties.ts +78 -23
- 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
|
|
435
|
-
if (
|
|
436
|
-
|
|
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++;
|