Repository navigation
External references, pinned config corpus and an example library - #228
Merged
Merged
Conversation
- docs/references.json + tools/fetch-refs.py: the official Loxone documents (Communicating with the Miniserver 17.0, Structure File 17.0, User Management, ...) and community sources as links with pinned sha256; downloaded into refs/ (gitignored), --check reports drift. The /datasheets/ aliases serve the older 16.0 editions. - tools/corpus-manifest.json: the public corpus pinned (GitHub at a commit, sha256, license); fetch-corpus.py reproduces it (149 files) or --discover rewrites it. Fixes a name collision that lost KNX/HB_SS23.Loxone; skips tool-rewritten files with XML comments. - examples/library/: Nibe gateway (MIT) and Smarteon Loxcall (BSD-3), redacted, with SOURCE.md, LICENSE, decompiled view and page drawings; tests/library.rs keeps the views current. - loxl scan: the document's Tel and Creator are personal data (42 and 67 corpus files carry them). - Corpus tests read lowercase .loxone too; docs name LOXL_CORPUS (three still named LXIR_/LXC_CORPUS, so the tests were skipped). - Weekly Corpus workflow: fetch, verify, corpus tests, reference drift. Claude-Session: https://claude.ai/code/session_01Ms544e9qZbdt68PptKTFo5
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #228 +/- ##
==========================================
+ Coverage 71.14% 71.53% +0.38%
==========================================
Files 120 120
Lines 40267 40268 +1
==========================================
+ Hits 28647 28804 +157
+ Misses 11620 11464 -156
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
External sources for development: the official Loxone documents as pinned links, the public config corpus as a reproducible manifest, and a browsable library of real configs we may redistribute.
References (
docs/references.json,tools/fetch-refs.py)tools/fetch-refs.pydownloads intorefs/(gitignored), and--checkreportsDRIFTwhen Loxone republishes a document./datasheets/URLs our docs linked serve the older 16.0 editions.Corpus (
crates/loxone-config/tools/corpus-manifest.json)fetch-corpus.pyreproduces the corpus exactly (verified from scratch);--discoverrewrites the manifest.KNX/HB_SS23.Loxone. Files with XML comments are skipped: Loxone Config never writes them, so a tool rewrote the file.Example library (
crates/loxone-config/examples/library/)loxl scan --redact, each withSOURCE.md(repository, commit, original sha256, every change), the upstreamLICENSE, the decompiledlogic/and an SVG per page.tests/library.rskeeps the views current.Fixes found on the way
loxl scanmissed the document's phone (Tel, 42 corpus files) and creator name (Creator, 67 files), so--redactcopies kept both.LXIR_CORPUS/LXC_CORPUS. They also ignored lowercase.loxonefiles.Corpus workflow (weekly, on demand, and on PRs that touch the manifests): fetch, verify, corpus tests, reference drift. Its corpus job will be red until #224 and #225 are fixed. Those failures predate this PR (#224) or were hidden by the collision (#225). The byte roundtrip passes on all 149 files.
Follow-ups: #224, #225, #226 (decompile prints a stale
Defand a wire on the same connector as a duplicate argument), #227 (our own scenario configs made under Wine).https://claude.ai/code/session_01Ms544e9qZbdt68PptKTFo5