@skillstech/thunderlang 1.1.0 → 1.3.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +212 -0
  2. package/README.md +4 -1
  3. package/dist/core.cjs +2080 -278
  4. package/dist/index.cjs +12742 -10943
  5. package/dist/learn.cjs +12976 -3598
  6. package/package.json +2 -2
  7. package/src/cli-home.mjs +242 -0
  8. package/src/cli.mjs +135 -41
  9. package/src/core/ThunderRuntime.cs +1367 -0
  10. package/src/core/check.mjs +158 -2
  11. package/src/core/cli.mjs +208 -17
  12. package/src/core/csharp-run.mjs +184 -0
  13. package/src/core/diagnostics.mjs +13 -0
  14. package/src/core/engine-core.mjs +855 -0
  15. package/src/core/engine-values.mjs +1054 -0
  16. package/src/core/engine-worker.mjs +15 -0
  17. package/src/core/engine.mjs +63 -0
  18. package/src/core/format.mjs +191 -3
  19. package/src/core/go-run.mjs +106 -0
  20. package/src/core/index.mjs +3 -1
  21. package/src/core/java/thunder/T.java +6 -0
  22. package/src/core/java/thunder/ThunderRuntime.java +1374 -0
  23. package/src/core/java-run.mjs +89 -0
  24. package/src/core/parser.mjs +331 -5
  25. package/src/core/project.mjs +43 -8
  26. package/src/core/react-run.mjs +96 -0
  27. package/src/core/runtime-go/thunder_runtime.go +3038 -0
  28. package/src/core/runtime-react.mjs +133 -0
  29. package/src/core/runtime-typescript.mjs +119 -0
  30. package/src/core/rust/thunder_runtime.rs +1645 -0
  31. package/src/core/rust-run.mjs +192 -0
  32. package/src/core/screen-values.mjs +30 -0
  33. package/src/core/target-csharp.mjs +484 -0
  34. package/src/core/target-go.mjs +555 -0
  35. package/src/core/target-java.mjs +587 -0
  36. package/src/core/target-python.mjs +2 -1
  37. package/src/core/target-react.mjs +270 -0
  38. package/src/core/target-rust.mjs +534 -0
  39. package/src/core/target-typescript.mjs +466 -0
  40. package/src/core/typescript-run.mjs +114 -0
  41. package/src/core.d.ts +18 -0
  42. package/src/core.mjs +1 -0
  43. package/src/emit.mjs +1 -1
  44. package/src/faithful.mjs +30 -0
  45. package/src/learn-lessons.mjs +245 -1
  46. package/src/learn.d.mts +8 -0
  47. package/src/learn.mjs +40 -4
  48. package/src/libraries.mjs +10 -3
  49. package/src/model.mjs +50 -8
  50. package/src/read-level.mjs +192 -0
  51. package/src/read-repo-fs.mjs +3 -1
  52. package/src/read.mjs +28 -5
  53. package/src/replay-cli.mjs +123 -0
  54. package/src/say-less.mjs +152 -11
  55. package/src/screens.mjs +833 -0
  56. package/src/steps.mjs +430 -19
  57. package/src/term.mjs +132 -0
  58. package/src/try-cli.mjs +225 -0
  59. package/src/why-cli.mjs +17 -7
  60. package/src/why.d.mts +17 -7
  61. package/src/why.mjs +114 -33
package/CHANGELOG.md CHANGED
@@ -1,3 +1,215 @@
1
+ # 1.3.0
2
+
3
+ **Upgrade note.** Every existing command, flag, exit code, and JSON output is unchanged. New: Thunder Core compiles to
4
+ C#, Java, Go, and Rust (with Python and TypeScript, six targets, each giving the same output on every Core test
5
+ program); the Time Machine (`thunder run --record`, `thunder replay`); block records and named inputs with a semantic
6
+ formatter (`thunder format` may now rewrite long one-line records as blocks: run `thunder format --write` to adopt it);
7
+ screens: write a `Screen` in Thunder Core and build it as a React app (`thunder build --target react`), and read React
8
+ and Angular components as screens (`model.screens`, with pages marked); the live translator at thunderlang.dev/live;
9
+ and clearer readings of real code, with fewer steps left as code. TC405's wording is now target-neutral.
10
+
11
+ - **Thunder screens, built as React apps.** A `Screen` says what a person sees: `Receive` its inputs, `Remember` the
12
+ values it keeps (`Remember coupon as text, starting at ""`), then `Show` a heading, text, a list (`Show a list with
13
+ each item in items:`), a row, a text box or number box bound to a remembered value, a button (`(off when …)`,
14
+ `that opens Home`, or `When pressed:` with ordinary Thunder steps and `Open Home`), another screen with named inputs,
15
+ and `When` / `Otherwise` choices. A press runs on copies and changes everything or nothing; a failure (or `Stop with
16
+ "…"`) keeps nothing and the screen says why. `thunder run` prints the first screen as an outline;
17
+ `thunder build --target react` writes a Vite app (`<program>.tsx` with one component per screen, `useState` for each
18
+ Remember, `// thunder:N` marks, and a runtime that is the Thunder engine's own value and screen code). The engine and
19
+ React are checked against each other: react-dom/server HTML must equal the engine's screen for every screen program
20
+ in the tests, and 46 scripted presses and typings must give the same screen after each one; the TSX passes
21
+ `tsc --strict` and builds with Vite. New codes: TC118, TC119, TC212–TC214, TC406, TC407. Screens build only for React
22
+ (other targets refuse them with TC406). Design note: docs/screens.md.
23
+
24
+ - **The live translator (thunderlang.dev/live).** Type code in Python, TypeScript, JavaScript, Java, C#, Go, or Rust
25
+ and see Thunder's reading update as you type (for Python, also the Thunder Core you can edit and run). Or write
26
+ Thunder and see it as Python, TypeScript, C#, Java, Go, and Rust, with what it prints, run by the Thunder engine in a
27
+ worker (a program that never ends is stopped and said so). Everything runs in the browser. The Go target's name table
28
+ (`goNamespaces`) moves into target-go.mjs so it can run there.
29
+ - **Fewer steps shown as code when Thunder reads real code.** Text with values reads as its exact text with
30
+ «placeholders» (JavaScript templates and Python f-strings; a worked-out value is «…»). Python counting loops say
31
+ where they start and stop (`range(n)`, `range(a, n + 1)`, `range(len(xs))`, `enumerate(xs)`), imports inside a
32
+ function say what they load, and everyday values are said (`a - b`, `set()`, `[a, b]`, slices such as "the first 3
33
+ of xs", `d.get("k", fallback)` with the fallback). Rust reads `loop`, loops over `.iter()`, `.chars()` and ranges,
34
+ a last `Ok(…)`, and `let y = f(x)?` ("…, and stops here if that fails"); Rust's `Ok(x)` is no longer read as a web
35
+ answer. A TypeScript function whose return type is an object type is read from its body. Every new sentence is
36
+ checked against its code, with tests that a wrong sentence is still shown as code. Also fixed: a `%` followed by a
37
+ letter inside a text could stop a whole Python file from being read. `reading-quality.mjs --shapes N` ranks what is
38
+ still shown as code by its shape (names as x), never printing the code.
39
+ - **React and Angular screens are read as what a person sees and does.** A React component (function or arrow
40
+ returning JSX, `memo`/`forwardRef` too) and an Angular `@Component` are now **screens** in the model
41
+ (`model.screens`; the function or class behind each points to it). A screen says what it receives (props with
42
+ their types; `@Input`/`input()`), what it remembers (`useState`/`useReducer`/hooks; fields, `signal`, `computed`),
43
+ what it shows (JSX or the template, inline or `templateUrl`, in words: headings, lists "one of these per item in
44
+ items", choices "when … / otherwise", text boxes, buttons, links), what happens when someone acts (`onClick`,
45
+ `(click)`, … : sets coupon, runs checkout, sends the checkout event, tells the parent), what runs by itself
46
+ (`useEffect` with its dependencies, `ngOnInit` and the other hooks), what it sends (`@Output`/`output()`), and the
47
+ screens it shows (linked by name or selector). Anything not understood (spread props, other expressions, unknown
48
+ directives) is listed as not read. `thunder read --level` shows screens at every level; the big picture lists the
49
+ app's screens once. `collectReadableFiles` takes `templates: true` to bring `*.component.html` files.
50
+ - **Docs pages look like a polished reference.** Every code block is a small editor window with a title bar
51
+ (Thunder, Terminal, Output, Diagram, Python, thunder.toml…) and a Copy button; Python, TypeScript, JSON, YAML, and
52
+ TOML are colored too. Headings can be linked to, long docs get an "On this page" list that follows your reading,
53
+ and tables, notes, and inline code are calmer.
54
+ - **Thunder Core in color, everywhere it is written.** The site's highlighter (docs, code cards, the editor, the
55
+ tutorial) knows Thunder Core: statement words (Set, When, Give, For each, Test…) bold, joining words softer, function
56
+ names after "To", record names after "A … has:", record kinds, money, percents and yes/no as values, text in green
57
+ with its {holes} marked, and comments after the code dimmed. The VS Code grammar gains the same roles. In the
58
+ terminal, `thunder read --as-core`, `thunder format`, and `thunder replay` print Thunder Core in the same colors (off
59
+ for files, pipes, `NO_COLOR`, and JSON).
60
+ - **Fix: `thunder run hello` inside the hello project crashed** with a raw Node error (it looked for a file named
61
+ hello). Inside a project, its own name now means the project, from any folder in it. A file that is not there is
62
+ said in words everywhere ("there is no file or folder called … here", where you are, and what to type), never a
63
+ stack trace.
64
+ - **Thunder Beautiful Code: records and calls as blocks, and a formatter that knows the program.** A record can be
65
+ written as a block (`Set first trade to a Trade:` then one `field: value` per line), for Set, Give, Add … to,
66
+ Expect … to, and as a call's last value; a function can be called with its inputs by name, in any order, leaving out
67
+ inputs that have defaults (`Set total to taxed price:` / `price: $100`). Both are exactly the same program as the
68
+ one-line forms. Mistakes are reported with the line and a suggestion (new codes TC113–TC117; unknown fields use
69
+ TC206). `thunder format` now writes the Thunder style: short stays short, records with 4+ fields or lines past 100
70
+ columns become blocks, long conditions wrap before `and`/`or`, and one blank line goes around every function,
71
+ record, and test. It never changes meaning: 66 Core programs from the examples, docs, and Core tests are formatted
72
+ in the tests and give the same program, output, and test results. The trading-journal example is in the new style.
73
+ - **The Thunder Time Machine: step through a run.** `thunder run <program> --record run.json` runs it on the Thunder
74
+ engine and saves every step; `thunder replay run.json` steps forward and back (Enter or n, b, j 7, q). Each step shows
75
+ the Thunder line, the values it changed (before → after), what it printed, what a function gave back, which steps a
76
+ call covered, and for a choice whether it went "yes" or "no, so the Otherwise steps". `--step n` and `--json` give one
77
+ step or the whole recording as data (`thunder-time-machine-v1`). It replays a recording: going back never undoes
78
+ anything. Programs that `Use` a Python module cannot be recorded (the Thunder engine does not run them).
79
+ - **Thunder Core compiles to C#.** `thunder build|run|test --target csharp` (or `target = "csharp"` in `thunder.toml`)
80
+ writes an ordinary .NET console project: one static class per Thunder file, `ThunderRuntime.cs` (base class library
81
+ only; a line-by-line port of the engine's value code, with exact decimals on `BigInteger`), `Program.cs`, and
82
+ `ThunderProgram.csproj`, and builds and runs it with the .NET SDK (8 or newer). Every Core test program (136) gives
83
+ the same output, errors, and exit status on Python, the Thunder engine, TypeScript, and C#; the conformance tests
84
+ build them all in one project per test file. `Use` is refused for C# (TC405). Without the SDK, Thunder says what to
85
+ install (exit 2). The site lists C# as Available; Java, Go, and Rust stay Planned.
86
+ - **Thunder Core compiles to Rust.** `thunder build|run|test --target rust` (or `target = "rust"` in `thunder.toml`)
87
+ writes a small Cargo project: one `.rs` per Thunder file, `main.rs`, and `thunder_runtime.rs`, a line-by-line port
88
+ of the Thunder engine's value code that uses only the standard library (exact decimals of any size, money rounded
89
+ half up, positions from 1, the same words for every value and error), so it builds offline. 136 Core test programs
90
+ give the same output, errors, and exit status on Python, the Thunder engine, TypeScript, and Rust; programs that use
91
+ a Python module are refused (TC405). Running needs `rustc` and `cargo`; without them Thunder says what to install.
92
+ - **Fix: JSON `false`.** "the JSON data in" read `false` one character short, so `{"a": false}` failed with
93
+ "Expecting ',' delimiter". It now reads it as Python does (the Thunder engine and every compiled target).
94
+ - **Thunder Core compiles to Go.** `thunder build|run|test --target go` (or `target = "go"` in `thunder.toml`) compiles
95
+ a program to readable Go: one standard-library-only module (`go.mod`, one `.go` per Thunder file, and the runtime in
96
+ `thunder/thunder_runtime.go`, a port of the Thunder engine's value code: exact decimals with `math/big`, money rounded
97
+ half up, positions from 1). `go run .` runs it without Thunder. Every Core test program (136) gives the same output,
98
+ errors included, on Python, the Thunder engine, TypeScript, and Go; the conformance tests now run all four. `Use` (a
99
+ Python module) is refused for Go (TC405). Running needs Go 1.21+; without it, Thunder says so and `build` still works.
100
+ - **Thunder Core compiles to Java.** `thunder build|run|test --target java` (or `target = "java"` in thunder.toml)
101
+ compiles a program to readable Java 17+ (one class per Thunder file, a static method per function, every line marked
102
+ `// thunder:N`) with a JDK-only runtime that follows the Thunder engine's values line for line. Every Core test
103
+ program (136) gives the same output, errors, and exit status on Python, the Thunder engine, TypeScript, and Java.
104
+ Thunder finds the JDK through THUNDER_JAVA_HOME, JAVA_HOME, or the PATH, and says what to install when there is
105
+ none; building needs no JDK. A program that uses a Python module is refused for Java (TC405).
106
+ - **Readings say more, more precisely (a reading-quality sweep on real code).** A message says what it writes
107
+ (`Writes a log or message: "Wrote «opts.out»."`, values in text as «placeholders»); an add says what it adds ("Adds an
108
+ entry (title, rows, source) to out", "Adds the c's id to items"); a call's single argument is named ("Calls add
109
+ command (with the result of rules command)"); everyday calls are said by what they give back (`Object.keys(x)` "the
110
+ keys of x", `Date.parse(t)`, `Buffer.from(b)`, `re.exec(s)` "the first match of re in s", `Schema.parse(body)`,
111
+ `Math.max(a, b)` "the largest of a and b", Python `Settings()` "a new Settings", `list(x)`, `sorted(x)`,
112
+ `xs.index(v)` "the position of v in xs"); callbacks are said by purpose (`program.command('check')` "Defines the
113
+ command "check"", a database transaction, progress shown); a one-expression event handler says when it runs; type
114
+ checks take "a" or "an" by sound ("an Error"); a map key keeps its owner ("the entry for the row's id in seen"); a
115
+ file path reads "at <name>". Fix: a Python variable named `match` was read as a `match` statement. The faithfulness
116
+ checks were taught each new form, so a sentence they cannot verify still falls back to code.
117
+ `compiler/scripts/reading-quality.mjs` measures these patterns on any folders.
118
+ - **TypeScript web routes read as actions, even when the handler is wrapped.** `fastify.post('/x', handle(async
119
+ (request) => { … }))` and one-expression handlers (`fastify.get('/x', handle(async (request) => view(…)))`) are now
120
+ actions ("When someone calls POST /x"), like unwrapped ones. The function that registers them lists each once
121
+ ("Handles POST /x (its steps are in that action)") instead of repeating its steps as "Calls post with these steps".
122
+ TypeScript types are set aside when a statement is read: `(request.body ?? {}) as { … }` reads "Sets b to the
123
+ request's body, or an empty lookup table when that has no value", `ctx.repo!` reads "Sets repo to the ctx's repo",
124
+ and `const reviews: Record<…> = {}` reads "Sets reviews to an empty lookup table". Two loops on one line are no
125
+ longer read as one loop mixing their names.
126
+ - **Reading fixes (reported from OpenThunder).** (1) A helper assigned below a typed variable (`let a: { … } | undefined;`
127
+ then `const approve = (x) => {`) was named after the variable; the type annotation now stops at its statement's end.
128
+ (2) A call named after a preposition no longer leaves a sentence hanging: `changeApprovalFor(x, …)` reads "change
129
+ approval for x" (its first argument, when that is a plain name), or "change approval" otherwise, never "change
130
+ approval for ". (3) "an AgentCheckResult", "an Order", "a User", "a URL": the article follows the sound.
131
+
132
+ # 1.2.0
133
+
134
+ **Upgrade note.** Every existing command, flag, and exit code is unchanged, with one JSON change: in `thunder why
135
+ --json`, a step's `effect` is now one of six kinds (`money`, `delete`, `send`, `create`, `change`, `read`; or
136
+ `unknown` / `none`) instead of `change`, and `changes[]` items gain `kind`. `thunder` with no command now prints a
137
+ short home screen; the full list is `thunder help --all`. Color is used only when the output is a terminal.
138
+
139
+ - **`thunder init` is friendlier, and mission rules can be tried without JSON.** `thunder init` now says what it made
140
+ (a starter mission: a product's rules and the examples that prove them), lists what to try next, and points
141
+ beginners to `thunder new hello`. Its template's comments name the right file (they said `Mission.intent`) and
142
+ suggest `thunder try`. `thunder try Mission.thunder` works on mission decisions: it asks for each value (or takes
143
+ `--with "age=20"`), says the kind each value should be (worked out from the rules), and explains the answer in words
144
+ ("age is at least 18 (age is 20)").
145
+ - **Trademark marks.** Thunder™ and ThunderLang™ now carry ™ where the brand is shown prominently: the CLI's home
146
+ screen, `thunder --version`, `thunder help --all`, `thunder doctor`, the npm and VS Code descriptions (and the
147
+ extension's display name), the compiler README, and the site's logo and footer.
148
+ - **Color in the terminal, and an easier full command list.** Screens people read (the home screen, `help`,
149
+ `doctor`, `new`, `why`, `try`, `read --level`, and the "did you mean" and "no project here" messages) use calm color:
150
+ green ✓, red ✗ only for real problems, yellow ! for warnings, commands to type in cyan, bold labels and headings.
151
+ Color is off for files, pipes, scripts, editors reading the output, `NO_COLOR`, and all JSON; `FORCE_COLOR=1` keeps
152
+ it. The words are identical with or without color (a test checks it). `thunder help --all` now starts with what most
153
+ people need (Start, Write and run programs, Read and understand code, Change code) and puts missions, proofs, and
154
+ editor tools under "Advanced"; every command is still listed. The home screen adds `thunder try`.
155
+ - **Thunder Core compiles to TypeScript.** `thunder build --target typescript` (or `target = "typescript"` in
156
+ thunder.toml) writes one readable `.ts` file per Thunder file into `generated/typescript/`, with `// thunder:N` line
157
+ marks, the runtime, its types, and a `tsconfig.json`; `thunder run --target typescript` and `thunder test --target
158
+ typescript` run it on Node (Node 22.6+ strips the types itself; on an older Node, Thunder uses the `typescript`
159
+ package when it can find it, and otherwise says what is needed). One meaning: the runtime is the Thunder engine's own
160
+ value code (engine-values.mjs, byte for byte), and every Core test program now runs three ways (Python, the Thunder
161
+ engine, and compiled TypeScript), with the same output, errors, and exit status required: 136 programs on Node 18,
162
+ 22, and 24. `tsc --strict` accepts the code generated for all of them. A program that uses a Python module (`Use`) is
163
+ refused for TypeScript before anything is written (new code TC405). The site lists Core → TypeScript as Available;
164
+ Java, C#, Go, and Rust stay Planned. CI now runs the compiler tests on Node 22, and the site job checks every
165
+ generated file with tsc.
166
+ - **The tutorial teaches writing and running Thunder.** `@skillstech/thunderlang/learn` gains part 2, "write and run":
167
+ seven lessons (`part: 'write'`), each naming the concept it teaches: your first program in two commands
168
+ (`thunder new hello`, `thunder run hello`, and why a bare `thunder run` right after fails), conditions, loops and
169
+ lists (positions from 1), records with a Never rule, reading Python as Thunder (and what is marked not translated),
170
+ check vs test vs verify, and `thunder why` with its limits. Every answer is worked out by running the lesson's
171
+ program on the Thunder engine. New optional lesson fields: `concept`, `commands` (what to type), and `output` (what
172
+ the program prints). Same schema (`thunder-learn-v1`); the 12 reading lessons are unchanged. The engine's language
173
+ core is now `engine-core.mjs` with no Node APIs, so the tutorial still runs in a browser.
174
+ - **Fix (Core → Python): a whole number written with leading zeros (`007`) compiled to Python that would not run**
175
+ (Python refuses `007`). It now compiles to `7`, as Thunder means it.
176
+ - When Python is missing, `thunder run` and `thunder test` now also say how to run without it: `--engine thunder`.
177
+ - **The Thunder engine: run Thunder Core without Python.** `thunder run --engine thunder` and
178
+ `thunder test --engine thunder` run a program on the Thunder engine, a second engine that runs the same checked
179
+ program the Python compiler uses. Python is not needed, and is still the default. Both engines must agree: every
180
+ Core test program now runs on both (output, errors with code, words, line and "reached from", and exit status),
181
+ and any difference fails the tests. A program that uses a Python module (`Use csv as csv`) is refused on the
182
+ Thunder engine before it runs; Thunder never imitates a library. Also available as `runWithEngine` /
183
+ `testWithEngine` in `src/core/engine.mjs`.
184
+ - **`thunder try`: what if?** Try a rule from your code with your own values: `thunder try register.ts --with
185
+ "age=15, parent approved=no"` prints the answer and why, check by check (✓/✗ with the value it saw). Without
186
+ `--with`, it asks for each value, explains a mistyped one, and offers another case. Only rules can be tried (they
187
+ change nothing); an action is refused with the command to read it, and a rule too complex for the engine is refused
188
+ with the reason. `--focus` picks a rule; `--json` gives data. Same engine as the web rule editor.
189
+ - **`thunder read --level`: read at one depth, in the terminal.** The five levels OpenThunder shows: `big-picture`
190
+ (the Things, what they know and can do), `flow` (one action or rule as a tree of questions, branches, error
191
+ handlers, and "always"), `details` (every way it ends, what it changes and when, and what the code cannot tell),
192
+ `text` (Thunder Text), and `original` (the exact lines, numbered). `--focus "<name>"` picks an action, rule, or
193
+ Thing; without it, `flow` and `details` list the choices as commands. Each level suggests the next. Steps Thunder
194
+ could not explain stay marked. `--json` prints the model level itself, the same data OpenThunder reads. Works on a
195
+ file or a folder. `thunder read` without `--level` is unchanged.
196
+ - **`thunder why` is short now, and says what the agent did to the world.** The first screen is a few lines: what
197
+ happened, why it stopped, what it did, and what to do next; `--steps` gives every step. Each step that does something
198
+ gets one kind, most serious first: moves money, deletes, sends, creates, changes, reads. The kind comes from the
199
+ strongest evidence: what the tool declares (its MCP annotations with `--tools tools.json`, or `thunder.effect` on the
200
+ span), then the request method or database operation, and only then the tool's name, where every word counts and the
201
+ most serious wins (`get_and_delete` now deletes; it was read as `get`). Guesses are labeled. `--allow read,send`
202
+ names anything beyond those kinds and exits 1. JSON: new `effects` (and `allowed`/`notAllowed`); `changes` items now
203
+ carry `kind`, and a step's `effect` is one of the six kinds (it was `change`).
204
+ - **A friendlier first minute in the terminal.** `thunder` on its own now shows a short home screen (five things
205
+ to do, with examples) instead of 120 lines; `thunder help --all` is the full list, and `thunder help <command>`
206
+ shows one command. A mistyped command says "Did you mean thunder read?" instead of failing later (it used to crash
207
+ reading a file). `thunder new hello` says exactly how to run it (`thunder run hello`), and `--run` runs it too.
208
+ `thunder run` (or test, build, check) outside a project says where the nearby projects are and the exact command.
209
+ New: `thunder doctor` checks Thunder, Node.js, Python 3.10+, PATH, Node versions (nvm) missing Thunder, and
210
+ optional toolchains, offline, with the fix for each problem; `thunder completion zsh|bash|fish` completes commands
211
+ on Tab. Every existing command, flag, exit code, and JSON output is unchanged.
212
+
1
213
  # 1.1.0
2
214
 
3
215
  - **Thunder Why: what an AI agent did, in plain words.** `thunder why run.json` reads an agent run's OpenTelemetry
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @skillstech/thunderlang
2
2
 
3
- Deterministic ThunderLang compiler and CLI. **No AI required.** Turns a `.intent` file into
3
+ Deterministic ThunderLang™ compiler and CLI for Thunder™, the human programming language. **No AI required.** Turns a `.intent` file into
4
4
  the canonical **Intent Graph** plus diagnostics, docs, a test plan, and a proof artifact,
5
5
  and, for decisions, lifecycles, and outcomes, **executes the intent directly** (no code
6
6
  generated). Every output is pure and deterministic: the same source always yields the same
@@ -10,6 +10,9 @@ Part of [ThunderLang](https://thunderlang.dev), the intent language for AI-era s
10
10
 
11
11
  **Learn ThunderLang:** the [10-minute tutorial](https://thunderlang.dev/learn), then the
12
12
  [full course on Skills Tech Talk](https://app.skillstechtalk.com/learn/technology/t/thunderlang).
13
+ The tutorial also ships in this package as data (`@skillstech/thunderlang/learn`): 12 lessons on reading code, and
14
+ 7 on writing and running Thunder programs, each naming the programming concept it teaches. Every quiz answer is
15
+ worked out by the compiler, and for the writing lessons by running the program.
13
16
 
14
17
  ## Install
15
18