Repository navigation
Decode code check in TypeScript, dashboard type file panel on DeviceTypeFileManager, Raft Flasher app - #22
Merged
Merged
Conversation
…rces refuse code outside the decode language, PSRAM file size default - checkDeviceTypeCode / checkDeviceTypeRecordCode: a TypeScript copy of PseudocodeHandler.check_code and check_decode_code, giving the same problems word for word (RaftCore's codecheck_vectors.json, in testdata/) - readGitHubSource refuses a record whose decode or init code is outside the decode language, as a build refuses one from a git source - TYPE_FILE_MAX_BYTES_DEFAULT_PSRAM (262144): the device's default type file limit with PSRAM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check only, or upload and check, then Apply or Cancel; after applying it waits for the restart and checks the device loaded the file. It can also download the device's file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…AM size limit, link to the flasher - Raft Flasher: flash a Raft build to an ESP32 over USB from the browser (esptool-js 0.7.0, Web Serial). Reads a build folder through flasher_args.json as raft flash does, or an ESP Web Tools manifest; shows the partition table and the app's description; checks image sizes against partitions and the chip; writes everything, the firmware only (keeping the file system) or the file system only, optionally erasing first, with MD5 verification. Published on RaftCore's Pages site at flash/ - Device Types app: shows local records' code problems; with no device, allows the PSRAM limit and warns above 64 KB; .btn styles for labels (the file pickers); a link to the flasher - Plan: progress for 2026-10-25 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.
Follow-up to #21, and pairs with robdobsn/RaftCore#24, which has the shared
codecheck_vectors.json, the PSRAM file size default, and the Pages workflow that publishes the flasher. Plan and progress:devdocs/device-type-management-web-plan.md§11 (2026-10-25).Library
RaftDeviceTypeCodeCheck:checkDeviceTypeCodeandcheckDeviceTypeRecordCode, a TypeScript copy of RaftCore's decode code check (PseudocodeHandler.check_code). It gives the same problems word for word, tested on RaftCore's vectors, including every RaftCore record's code.readGitHubSourcerefuses a record whose decode or init code is outside the decode language, as a build refuses one from a git source.TYPE_FILE_MAX_BYTES_DEFAULT_PSRAM(262144): the device's new default type file limit on boards with PSRAM.Dashboard
TypeFilePanelusesDeviceTypeFileManager. You can check only, or upload and check, then Apply or Cancel. After applying it waits for the restart and verifies the device loaded the file. It can also download the device's file.Raft Flasher (
apps/flasher, published at/RaftCore/flash/by RaftCore#24)Flashes a Raft build to an ESP32 over USB from Chrome or Edge, using esptool-js 0.7.0 over Web Serial.
flasher_args.jsonasraft flashdoes; or an ESP Web Tools manifest URL.--no-fs), or file system only, with optional erase. It warns that writing the file system replaces the device type file and saved settings.Device Types app
Testing
main; it passed against that branch. tsc (web, React Native, both apps, the dashboard) and eslint are clean.flashImage.test.tscovers the partition table, app description, image roles, the modes, size and missing-file problems, chip names, and MD5 against Node's. Axiom018's real build was read correctly, and the page ran in headless Chrome with those files.🤖 Generated with Claude Code