fix(types): tor-running is optional — older daemons don't send it
Demo images / Build & push demo images (push) Successful in 3m41s

The full project build (vue-tsc -b, which also checks test files) caught
two default-ServerInfo constructors the scoped typecheck missed. Rather
than adding the field to both, the type now tells the truth for a
mixed-version fleet: daemons older than 2026-08-09 omit the field, so
consumers must treat absent as "unknown" and only === true as connected —
which is exactly how Home.vue already reads it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-08-09 07:59:33 -04:00
co-authored by Claude Fable 5
parent e34937f497
commit 4c430fddff
+4 -2
View File
@@ -26,8 +26,10 @@ export interface ServerInfo {
'lan-address': string | null
'tor-address': string | null
/** Live probe of the Tor daemon. NOT the same as `tor-address`, which is read
* from the hidden-service hostname file and outlives a dead daemon. */
'tor-running': boolean
* from the hidden-service hostname file and outlives a dead daemon.
* Optional because daemons older than 2026-08-09 do not send it — consumers
* must treat absent as "unknown", and only `=== true` as connected. */
'tor-running'?: boolean
'node-address'?: string
unread: number
'wifi-ssids': string[]