@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokascript/framework",
3
- "version": "2.9.3",
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.9.3"
99
+ "@lokascript/intent": "^2.10.0"
100
100
  },
101
101
  "devDependencies": {
102
- "@types/node": "^20.0.0",
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
- | { modifierName: string; value?: number | string }
1564
- | undefined;
1563
+ { modifierName: string; value?: number | string } | undefined;
1565
1564
  if (!metadata) {
1566
1565
  break;
1567
1566
  }
@@ -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
- | 'missing_role'
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
- | ReadonlyArray<{ condition: INode; body: INode[] }>
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