v0.9.4 - language metadata header and stricter document contracts
OrgScript v0.9.4
OrgScript v0.9.4 adds a small but meaningful language-core v1 step: a document language metadata header.
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.
Highlights
- added an optional
orgscript 1document header - added allowlisted document metadata keys:
source-languagecomment-languageannotation-languagecontext-language
- kept
source-languagestrict in v1: onlyenis allowed - carried document metadata into the AST, canonical JSON model, and AI context export
- added conservative lint findings for obvious language mismatches in comments and annotations
Why this matters
The new header makes human-authored text safer and clearer in multilingual environments without weakening the OrgScript core.
That helps with:
- reviewability for teams working across multiple human languages
- safer exporter and AI context behavior
- clearer authorship expectations for comments and annotations
- preserving English-first syntax while still declaring document language intent
Example
orgscript 1
source-language "en"
comment-language "de"
annotation-language "de"
context-language "de"
This header is non-semantic. It does not change execution behavior, validation meaning, or the canonical interpretation of OrgScript logic.
Verification
Confirmed on the release preparation state:
npm testnpm run check:allnode ./bin/orgscript.js validate ./examples/lead-qualification.orgsnode ./bin/orgscript.js lint ./tests/lint/language-mismatch.orgs --jsonnode ./bin/orgscript.js export json ./examples/lead-qualification.orgsnode ./bin/orgscript.js export context ./examples/lead-qualification.orgsnode ./bin/orgscript.js analyze ./examples/lead-qualification.orgs --jsonnode ./bin/orgscript.js export markdown ./examples/lead-qualification.orgs --with-annotationsnode ./bin/orgscript.js export html ./examples/lead-qualification.orgs --with-annotations
Project status
OrgScript remains a human-readable, AI-friendly description language for business logic and operational systems.
v0.9.4 strengthens document contracts and exporter clarity without turning the core language into a multilingual keyword system.