chore: reserialize db on equal version, update bindings and docs

- Run de/ser roundtrip in pre_init even when db version matches, ensuring
  all #[serde(default)] fields are populated before any typed access
- Add patchdb.md documentation for TypedDbWatch patterns
- Update TS bindings for CheckPortParams, CheckPortRes, ifconfigUrl
- Update CLAUDE.md docs with patchdb and component-level references
This commit is contained in:
Aiden McClelland
2026-02-16 19:27:48 -07:00
parent cfbace1d91
commit 6a1b1627c5
10 changed files with 128 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { GatewayId } from './GatewayId'
export type CheckPortParams = { port: number; gateway: GatewayId }

View File

@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CheckPortRes = { ip: string; port: number; reachable: boolean }

View File

@@ -25,6 +25,7 @@ export type ServerInfo = {
zram: boolean
governor: Governor | null
smtp: SmtpValue | null
ifconfigUrl: string
ram: number
devices: Array<LshwDevice>
kiosk: boolean | null

View File

@@ -56,6 +56,8 @@ export { Category } from './Category'
export { Celsius } from './Celsius'
export { CheckDependenciesParam } from './CheckDependenciesParam'
export { CheckDependenciesResult } from './CheckDependenciesResult'
export { CheckPortParams } from './CheckPortParams'
export { CheckPortRes } from './CheckPortRes'
export { CifsAddParams } from './CifsAddParams'
export { CifsBackupTarget } from './CifsBackupTarget'
export { CifsRemoveParams } from './CifsRemoveParams'