Skip to content

Commit ffcd4e2

Browse files
committed
chore(release): prepare v0.9.4 metadata
1 parent 1a6a57b commit ffcd4e2

File tree

10 files changed

+77
-3
lines changed

10 files changed

+77
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on Keep a Changelog, and this project follows Semantic Versi
66

77
## [Unreleased]
88

9+
## [0.9.4] - 2026-03-31
10+
11+
- Added an optional document language metadata header with `orgscript 1` plus `source-language`, `comment-language`, `annotation-language`, and `context-language`.
12+
- Treated declared language metadata as a stricter document contract while keeping the OrgScript core syntax canonical in English.
13+
- Added canonical JSON and context-export support for document metadata.
14+
- Added conservative lint checks for obvious comment and annotation language mismatches.
15+
- Updated the formatter, VS Code grammar/snippets, specs, examples, manuals, and tests for the new header.
16+
917
## [0.9.3] - 2026-03-30
1018

1119
- Renamed the npm package to `@dkfuh/orgscript` after npm rejected the unscoped `orgscript` name as too similar to an existing package.

docs/releases/v0.9.4.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# OrgScript v0.9.4
2+
3+
OrgScript v0.9.4 adds a small but meaningful language-core v1 step: a document language metadata header.
4+
5+
This release does not introduce free-form multilingual syntax. The core language remains canonical in English. Instead, OrgScript documents can now declare the intended language of comments, annotations, and generated human-facing context in a strict, parseable way.
6+
7+
## Highlights
8+
9+
- added an optional `orgscript 1` document header
10+
- added allowlisted document metadata keys:
11+
- `source-language`
12+
- `comment-language`
13+
- `annotation-language`
14+
- `context-language`
15+
- kept `source-language` strict in v1: only `en` is allowed
16+
- carried document metadata into the AST, canonical JSON model, and AI context export
17+
- added conservative lint findings for obvious language mismatches in comments and annotations
18+
19+
## Why this matters
20+
21+
The new header makes human-authored text safer and clearer in multilingual environments without weakening the OrgScript core.
22+
23+
That helps with:
24+
25+
- reviewability for teams working across multiple human languages
26+
- safer exporter and AI context behavior
27+
- clearer authorship expectations for comments and annotations
28+
- preserving English-first syntax while still declaring document language intent
29+
30+
## Example
31+
32+
```orgscript
33+
orgscript 1
34+
35+
source-language "en"
36+
comment-language "de"
37+
annotation-language "de"
38+
context-language "de"
39+
```
40+
41+
This header is non-semantic. It does not change execution behavior, validation meaning, or the canonical interpretation of OrgScript logic.
42+
43+
## Verification
44+
45+
Confirmed on the release preparation state:
46+
47+
- `npm test`
48+
- `npm run check:all`
49+
- `node ./bin/orgscript.js validate ./examples/lead-qualification.orgs`
50+
- `node ./bin/orgscript.js lint ./tests/lint/language-mismatch.orgs --json`
51+
- `node ./bin/orgscript.js export json ./examples/lead-qualification.orgs`
52+
- `node ./bin/orgscript.js export context ./examples/lead-qualification.orgs`
53+
- `node ./bin/orgscript.js analyze ./examples/lead-qualification.orgs --json`
54+
- `node ./bin/orgscript.js export markdown ./examples/lead-qualification.orgs --with-annotations`
55+
- `node ./bin/orgscript.js export html ./examples/lead-qualification.orgs --with-annotations`
56+
57+
## Project status
58+
59+
OrgScript remains a human-readable, AI-friendly description language for business logic and operational systems.
60+
61+
v0.9.4 strengthens document contracts and exporter clarity without turning the core language into a multilingual keyword system.

docs/site/demos/craft-business-lead-to-order.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<header>
102102
<h1>OrgScript Demo: Craft Business: Lead to Order</h1>
103103
<p>Generated by OrgScript</p>
104+
104105
</header>
105106

106107
<nav>

docs/site/demos/hiring-process.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<header>
102102
<h1>OrgScript Demo: Hiring: Standard Candidate Process</h1>
103103
<p>Generated by OrgScript</p>
104+
104105
</header>
105106

106107
<nav>

docs/site/demos/incident-escalation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<header>
102102
<h1>OrgScript Demo: Incident Escalation SLA</h1>
103103
<p>Generated by OrgScript</p>
104+
104105
</header>
105106

106107
<nav>

docs/site/demos/lead-qualification.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<header>
102102
<h1>OrgScript Demo: Lead qualification process</h1>
103103
<p>Generated by OrgScript</p>
104+
104105
</header>
105106

106107
<nav>

docs/site/demos/order-approval.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
<header>
102102
<h1>OrgScript Demo: Order approval stateflow</h1>
103103
<p>Generated by OrgScript</p>
104+
104105
</header>
105106

106107
<nav>

docs/site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h3>Service Escalation</h3>
8787

8888
<footer>
8989
<hr>
90-
<p>Generated by OrgScript v0.9.3 &bull; <a href="https://github.com/DKFuH/OrgScript">GitHub</a></p>
90+
<p>Generated by OrgScript v0.9.4 &bull; <a href="https://github.com/DKFuH/OrgScript">GitHub</a></p>
9191
</footer>
9292
</body>
9393
</html>

editors/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "orgscript-vscode",
33
"displayName": "OrgScript",
44
"description": "Minimal VS Code language support for OrgScript (.orgs) files.",
5-
"version": "0.9.3",
5+
"version": "0.9.4",
66
"publisher": "dkfuh",
77
"icon": "icon.png",
88
"repository": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dkfuh/orgscript",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A human-readable, AI-friendly description language for business logic and operational systems.",
55
"license": "Apache-2.0",
66
"main": "./src/index.js",

0 commit comments

Comments
 (0)