@lokascript/framework 2.9.3 → 2.10.0
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/CHANGELOG.md +21 -1
- package/dist/api/index.js.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/pattern-matching/index.js.map +1 -1
- package/dist/core/pattern-matching/pattern-matcher.d.ts.map +1 -1
- package/dist/feedback/types.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ir/from-interchange.d.ts.map +1 -1
- package/dist/ir/index.js.map +1 -1
- package/dist/parsing/index.js.map +1 -1
- package/package.json +3 -3
- package/src/core/pattern-matching/pattern-matcher.ts +1 -2
- package/src/feedback/types.ts +1 -5
- package/src/ir/from-interchange.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokascript/framework",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Generic framework for building multilingual DSLs with semantic parsing and grammar transformation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"author": "LokaScript Contributors",
|
|
97
97
|
"license": "MIT",
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@lokascript/intent": "^2.
|
|
99
|
+
"@lokascript/intent": "^2.10.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@types/node": "^
|
|
102
|
+
"@types/node": "^26.1.2",
|
|
103
103
|
"@vitest/coverage-v8": "^4.0.17",
|
|
104
104
|
"tsup": "^8.0.0",
|
|
105
105
|
"typescript": "^5.0.0",
|
|
@@ -1560,8 +1560,7 @@ export class PatternMatcher {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
1562
|
const metadata = token.metadata as
|
|
1563
|
-
|
|
1564
|
-
| undefined;
|
|
1563
|
+
{ modifierName: string; value?: number | string } | undefined;
|
|
1565
1564
|
if (!metadata) {
|
|
1566
1565
|
break;
|
|
1567
1566
|
}
|
package/src/feedback/types.ts
CHANGED
|
@@ -60,11 +60,7 @@ export interface FeedbackDiagnostic {
|
|
|
60
60
|
* Machine-actionable fix type for LLM retry logic.
|
|
61
61
|
*/
|
|
62
62
|
export type FixType =
|
|
63
|
-
| '
|
|
64
|
-
| 'invalid_type'
|
|
65
|
-
| 'unknown_command'
|
|
66
|
-
| 'unknown_role'
|
|
67
|
-
| 'syntax_error';
|
|
63
|
+
'missing_role' | 'invalid_type' | 'unknown_command' | 'unknown_role' | 'syntax_error';
|
|
68
64
|
|
|
69
65
|
// =============================================================================
|
|
70
66
|
// Confidence-Aware Disambiguation (Level 2)
|
|
@@ -167,8 +167,7 @@ function convertIf(node: INode): SemanticNode {
|
|
|
167
167
|
let elseBranch: SemanticNode[] | undefined;
|
|
168
168
|
|
|
169
169
|
const elseIfBranches = node.elseIfBranches as
|
|
170
|
-
|
|
171
|
-
| undefined;
|
|
170
|
+
ReadonlyArray<{ condition: INode; body: INode[] }> | undefined;
|
|
172
171
|
|
|
173
172
|
if (elseIfBranches && elseIfBranches.length > 0) {
|
|
174
173
|
// Chain else-if branches as nested conditionals
|