Commit Graph

4 Commits

Author SHA1 Message Date
kerms e0e95f80c0
feat(nvs): normalize result with dropped/clamped counts, blob compat check
normalizePartition now returns NormalizeResult { partition, dropped, clamped }
so callers can report exactly what happened during import. Clamp functions
report when values were modified. Add checkBlobCompatibility() for proactive
size warnings on version switch/merge. Also includes reconcileBlobTypes at
all import boundaries and BLOB_IDX whitelist enforcement.
2026-03-12 12:09:47 +01:00
kerms 4959ff74c1
refactor: translate error messages from Chinese to English
Standardize all user-facing error/validation messages across
partition-table, nvs, app-image, and ota-data parsers to English.
2026-02-28 11:50:00 +01:00
kerms d32674617d
feat: add OTA data parser and fix verbatimModuleSyntax compliance
- Add lib/ota-data/ module: parses esp_ota_select_entry_t structures,
  determines active OTA partition from sequence numbers and CRC validation
- Fix all lib files to use `import type` for type-only imports to comply
  with TypeScript verbatimModuleSyntax (partition-table, nvs, app-image)
- Export ota-data from lib/index.ts
2026-02-25 16:34:42 +01:00
kerms b23a7e5c8a feat(nvs): add NVS editor and binary/CSV toolkit 2026-02-22 13:17:49 +01:00