Repository navigation
Device types: TypeScript type file tools, device type file workflow, and the Device Types app - #21
Merged
Merged
Conversation
…, catalogue and GitHub sources, device type file workflow TypeScript copies of RaftCore's Python device type tools, giving the same output (checked against RaftCore's shared vectors, copied into testdata/): - RaftDeviceTypeJson: JSON as Python reads and writes it (key order kept, numbers as Python's repr, ensure_ascii), so a type file built here is byte for byte the Python's and the device's CRC agrees - RaftDeviceTypeGrammar: the record command grammar (grammar_vectors.json) - RaftDeviceTypeFile: buildTypeFile (new / override / unchanged / policy, decoders, init code, _sources) - RaftDeviceTypeSources: DeviceTypeSources.json merge and selection rules, provenance (selection_vectors.json) - RaftDeviceTypeCatalogue: RaftCore's catalogue on GitHub Pages, git sources on GitHub, record files, the lock - RaftDeviceTypeFileManager: status, type table, device records, pull, and push (upload, check, confirm, apply, wait for the restart, verify) - DevManTypeFileStatus: raftCore, recordFormat, decode; DevManTypes: protected Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ment from raftjs and a web UI A web app for Raft device type records, published on RaftCore's GitHub Pages site (devtypes/app/): browse and search the catalogue; connect to a device by Bluetooth or USB serial (WiFi on http pages and localhost) to see its devices, unidentified addresses and device types; build a type file from RaftCore's records, GitHub sources and local files (or a project's imported DeviceTypeSources.json and lock); push it to the device and read it back; download the setup as a project (DeviceTypeSources.json, lock, records, devlib.json). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Device type management from raftjs and a web UI, as in
devdocs/device-type-management-web-plan.md(phases 2–6). Pairs with robdobsn/RaftCore#18: the firmware's new status fields,_sources, the shared test vectors, and the Pages workflow that publishes the catalogue and this app.Library (new modules, exported from
main.ts)TypeScript copies of RaftCore's Python device type tools. They give the same output and are checked against RaftCore's shared vectors (copied into
testdata/).RaftDeviceTypeJson: JSON as Python reads and writes it.JSON.parsewould reorder integer-like keys (LSM6DS3's rate map), and JavaScript writes floats differently from Python.RaftDeviceTypeGrammar: the command grammar.RaftDeviceTypeFile:buildTypeFileandtypeFileCrc.RaftDeviceTypeSources:DeviceTypeSources.jsonmerging, selection rules and provenance.RaftDeviceTypeCatalogue: readers for RaftCore's catalogue on GitHub Pages, git sources on GitHub (via its API at the resolved commit), and local record files; plus the lock file writer.RaftDeviceTypeFileManager: status, type table, device records, pull, and push (upload, check, confirm, apply, wait for the restart, verify).RaftDeviceManagertypes:raftCore,recordFormat,decodeandprotected, all optional.App (
apps/devtypes)React and Parcel. Tabs: Catalogue, Device, Sources, Type file, Export.
httppages andlocalhost, because anhttpspage can't openws://to a device.Testing
AssembleDeviceTypes.py --typefile;Not in this PR
TypeFilePanelstill has its own steps. Moving it ontoDeviceTypeFileManageris left for later.🤖 Generated with Claude Code