Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Works on the dependency-free core package, covering DSL types, validation, normalization to IR, and diff algorithm.
32% 95%+64 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 7 of 22 without it.
3 of 3 safety checks passed
Not used yet
The core package (packages/core/) is dependency-free and handles all DSL processing.
DSL (YAML input) → validate() → normalize() → IR → diff() → Patch
| File | Purpose | Exports |
|---|---|---|
types.ts | Type definitions | DSL*, IR*, Patch, WebSocket protocol |
validate.ts | YAML validation | validate(dsl): ValidationResult |
normalize.ts | DSL → IR conversion | normalize(dsl): IRDocument |
diff.ts | IR diff calculation | diff(prev, next): Patch |
DSL Types (user input) IR Types (normalized)
───────────────────── ────────────────────
DSLDocument IRDocument
├─ version: number ├─ version: number
├─ docId: string ├─ docId: string
├─ title?: string ├─ title: string
├─ nodes: DSLNode[] ├─ nodes: Record<string, IRNode>
└─ edges?: DSLEdge[] └─ edges: Record<string, IREdge>
DSLNode IRNode
├─ id: string ├─ id: string
├─ provider: string ├─ provider: string
├─ kind: string ├─ kind: string
├─ label?: string ├─ label: string (default: id)
├─ parent?: string ├─ parent: string | null
└─ layout: DSLLayout └─ layout: { x, y, w, h }
DSLEdge IREdge
Next to this one in the catalogue, plus more from the same author.