@skillstech/thunderlang 0.4.1 → 0.5.2

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 CHANGED
@@ -1,8 +1,51 @@
1
+ # 0.5.2
2
+
3
+ - Add named example inputs with one `->` arrow, optional primitive input annotations, and multiline cases in human-v1. Existing tables and canonical source remain supported.
4
+ - Generate example tables from the canonical parsed cases; preserve separate contract and application evidence.
5
+
6
+ # 0.5.1
7
+
8
+ - Add experimental `thunder human` shorthand, readable decision preview, example tables, and canonical source output.
9
+ - Expose the browser-safe human contract helpers through `/core`. Existing grammar and commands are unchanged.
10
+ - Preview reports contract examples separately from application evidence.
11
+
1
12
  # Changelog
2
13
 
3
14
  All notable changes to `@skillstech/thunderlang`. Pre-1.0: the language and the
4
15
  `intent-graph-v1` schema version independently and may still change.
5
16
 
17
+ ## 0.5.0
18
+
19
+ The executable-targets release. Additive; no breaking changes. Minor bump to keep the 0.x lockstep
20
+ with OpenThunder.
21
+
22
+ - **Five more live execution targets.** `thunder test <file> --target <lang>`,
23
+ `thunder conform <file> --run <lang>`, and `--all-targets` now compile and run the
24
+ generated decision in Go, Rust, Kotlin, Scala, and Elixir, grading real executed
25
+ outputs. Live execution now spans nine languages (TypeScript, Python, C#, Java, Go,
26
+ Rust, Kotlin, Scala, Elixir); each target is probed with a real compile+run smoke and
27
+ skips cleanly (never fails) when its toolchain is absent. New aliases: `golang`, `rs`,
28
+ `kt`, `sc`, `ex`. The expression translator gained matching dialects (`exprToGo`,
29
+ `exprToRust`, `exprToKotlin`, `exprToScala`, `exprToElixir`); existing JS/C#/Java/Python
30
+ output is unchanged.
31
+ - **Language support matrix.** `docs/language-support-matrix.md` updated: lift (14), gen
32
+ (4), live execution (9).
33
+
34
+ ## 0.4.2
35
+
36
+ The evidence-graph release. Additive; no breaking changes.
37
+
38
+ - **Evidence projections.** ThunderLang can now project its verification into `evidence-event-v1`
39
+ events (`evidenceType: tool_verified`) for the shared SkillsTech proof spine: `thunder evidence
40
+ <file>` emits `intent.proven`, and `--evidence` on `verify-diff` / `conform` / `drift` emits
41
+ `change.gated` / `conformance.verified` / `intent.drift`. The projections are pure, offline, and
42
+ safe-derived (ids, hashes, verdicts, diagnostic codes, and counts only , never source, secret
43
+ values, finding messages, or expected/actual values). The library exports `toEvidenceEvents`,
44
+ `verifyDiffToEvidence`, `conformToEvidence`, and `driftToEvidence`. The network push to the spine
45
+ is intentionally left to the org-layer/CI, so the compiler stays offline and deterministic.
46
+ - **Fix: `thunder lift` emits canonical `.thunder` drafts** instead of the legacy `.intent`
47
+ extension, on both single-file and repo lifts.
48
+
6
49
  ## 0.4.1
7
50
 
8
51
  The coherence release. Additive; no breaking changes. Version chosen to align with OpenThunder
package/README.md CHANGED
@@ -11,7 +11,7 @@ Part of [ThunderLang](https://thunderlang.dev), the intent language for AI-era s
11
11
  ## Install
12
12
 
13
13
  ```bash
14
- npm install -g @skillstech/thunderlang # then: intent check path/to/Mission.intent
14
+ npm install -g @skillstech/thunderlang # then: thunder check path/to/Mission.intent
15
15
  npx @skillstech/thunderlang help # or run without installing
16
16
  ```
17
17
 
@@ -19,36 +19,36 @@ npx @skillstech/thunderlang help # or run without installing
19
19
 
20
20
  ```bash
21
21
  # Author & check
22
- intent init [Name] # scaffold a runnable starter mission
23
- intent check <file|dir> # semantic diagnostics (exit 1 on error); a dir gates the repo
24
- intent fmt <file|dir> -w # canonical formatting (whitespace only; comments preserved)
25
- intent build <file> # docs, contract graph, test plan, .intent-proof.json
26
- intent graph <file> # the canonical Intent Graph (intent-graph-v1)
27
- intent check . --format sarif # SARIF 2.1.0 for GitHub/GitLab code scanning
28
- intent schema # emit the graph schema + diagnostic catalog
29
- intent rules · intent explain <CODE> # the full diagnostic catalog / one code
30
- intent proof --schema # the canonical proof envelope schema (intent-proof-v1)
22
+ thunder init [Name] # scaffold a runnable starter mission
23
+ thunder check <file|dir> # semantic diagnostics (exit 1 on error); a dir gates the repo
24
+ thunder fmt <file|dir> -w # canonical formatting (whitespace only; comments preserved)
25
+ thunder build <file> # docs, contract graph, test plan, .intent-proof.json
26
+ thunder graph <file> # the canonical Intent Graph (intent-graph-v1)
27
+ thunder check . --format sarif # SARIF 2.1.0 for GitHub/GitLab code scanning
28
+ thunder schema # emit the graph schema + diagnostic catalog
29
+ thunder rules · thunder explain <CODE> # the full diagnostic catalog / one code
30
+ thunder proof --schema # the canonical proof envelope schema (intent-proof-v1)
31
31
 
32
32
  # Execute (no AI, no generated code)
33
- intent run <file> --inputs '{"age":20}' # evaluate the decision(s) against inputs
34
- intent simulate <file> --events submit,approve # walk the lifecycle(s)
35
- intent test <file> # run in-file test blocks (case/scenario)
36
- intent outcomes <file> # evaluate outcome contracts vs results
37
- intent style <file> # resolve style intents vs the canonical token space
33
+ thunder run <file> --inputs '{"age":20}' # evaluate the decision(s) against inputs
34
+ thunder simulate <file> --events submit,approve # walk the lifecycle(s)
35
+ thunder test <file> # run in-file test blocks (case/scenario)
36
+ thunder outcomes <file> # evaluate outcome contracts vs results
37
+ thunder style <file> # resolve style intents vs the canonical token space
38
38
 
39
39
  # Interop (9 export formats)
40
- intent export <file> --format dmn|bpmn|smv|jsonschema|openapi|tokens|css|mermaid|playwright
41
- intent import <file> [--format dmn|bpmn] [--json] # lift DMN/BPMN into intent
42
- intent source <file|graph.json> # regenerate .intent from a graph
43
- intent migrate <graph.json> [--to <ver>] # upgrade a persisted graph
44
- intent verify <proof.json> [src] # confirm a proof matches its source
40
+ thunder export <file> --format dmn|bpmn|smv|jsonschema|openapi|tokens|css|mermaid|playwright
41
+ thunder import <file> [--format dmn|bpmn] [--json] # lift DMN/BPMN into intent
42
+ thunder source <file|graph.json> # regenerate .intent from a graph
43
+ thunder migrate <graph.json> [--to <ver>] # upgrade a persisted graph
44
+ thunder verify <proof.json> [src] # confirm a proof matches its source
45
45
 
46
46
  # Navigate & compare
47
- intent atlas <dir> [--search q] intent index <dir>
48
- intent diff <before> <after> intent merge <base> <ours> <theirs>
47
+ thunder atlas <dir> [--search q] thunder index <dir>
48
+ thunder diff <before> <after> thunder merge <base> <ours> <theirs>
49
49
 
50
50
  # Code <-> intent
51
- intent lift <file> intent approve <file> intent drift <file>
51
+ thunder lift <file> thunder approve <file> thunder drift <file>
52
52
  ```
53
53
 
54
54
  Run `thunder help` for the full reference.
@@ -75,8 +75,8 @@ test Eligibility
75
75
  ```
76
76
 
77
77
  ```bash
78
- intent run mission.intent --inputs '{"age":20,"score":90}' # -> Eligible, with a trace
79
- intent test mission.intent # -> 1/1 passed
78
+ thunder run mission.intent --inputs '{"age":20,"score":90}' # -> Eligible, with a trace
79
+ thunder test mission.intent # -> 1/1 passed
80
80
  ```
81
81
 
82
82
  No AI, no generated code. The intent itself decides.