From 2b2ca8a59e4e3badd65b8b43042c873abef930c6 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Wed, 29 Apr 2026 08:50:26 -0500 Subject: [PATCH] Update framework spec; add counter and todo examples --- examples/counter/el-ui.js | 1 + examples/todo/el-ui.js | 1 + spec/framework.md | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 120000 examples/counter/el-ui.js create mode 120000 examples/todo/el-ui.js diff --git a/examples/counter/el-ui.js b/examples/counter/el-ui.js new file mode 120000 index 0000000..a502a84 --- /dev/null +++ b/examples/counter/el-ui.js @@ -0,0 +1 @@ +../../dist/el-ui.js \ No newline at end of file diff --git a/examples/todo/el-ui.js b/examples/todo/el-ui.js new file mode 120000 index 0000000..a502a84 --- /dev/null +++ b/examples/todo/el-ui.js @@ -0,0 +1 @@ +../../dist/el-ui.js \ No newline at end of file diff --git a/spec/framework.md b/spec/framework.md index 19a8eaf..bb8f771 100644 --- a/spec/framework.md +++ b/spec/framework.md @@ -59,7 +59,7 @@ When a node is updated, its importance increases by 0.1 (capped at 1.0). Recentl ## 2. Component Definition Syntax -Components are defined in `.el` files (the same extension as engram-lang source). A component is a specialized engram-lang module. +Components are defined in `.el` files (the same extension as el source). A component is a specialized el module. ### 2.1 Structure @@ -508,7 +508,7 @@ el-ui-compiler App.el # produces App.js ## 9. Production Build — Quantum-Sealed via engram-crypto -The production build pipeline follows the engram-lang sealed artifact format: +The production build pipeline follows the el sealed artifact format: ```bash # 1. Compile .el to .js @@ -518,7 +518,7 @@ el-ui-compiler App.el -o app.js --target prod ENGRAM_SEAL_KEY=my-deploy-key el seal app.js -o app.sealed ``` -The sealed artifact is an `ENGRAM01` sealed bundle (same format as the engram-lang production target): +The sealed artifact is an `ENGRAM01` sealed bundle (same format as the el production target): ``` Offset Size Field @@ -565,9 +565,9 @@ el-ui follows semantic versioning. --- -## 12. Relationship to engram-lang +## 12. Relationship to el -el-ui `.el` files share the `.el` extension with engram-lang source files. Components are specialized engram-lang modules — in a future version, an `.el` file can mix component definitions with engram-lang type definitions, constants, and utility functions in a single compilation unit. +el-ui `.el` files share the `.el` extension with el source files. Components are specialized el modules — in a future version, an `.el` file can mix component definitions with el type definitions, constants, and utility functions in a single compilation unit. The spreading activation algorithm in `graph.js` and `activation.js` faithfully mirrors `engram-core/src/activation.rs`: - Same BFS-based traversal