You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop reuse / dead-code (whole-app audit):
- driver.ts: use shared `sleep` (@sim/utils/helpers) and `getErrorMessage`
(@sim/utils/errors) instead of local reimplementations; drop 7 banner
separators.
- Remove dead code: LocalFilesystemService.clear(), launcher isVisible(),
the unused `url` arg on onDownloadBlocked, and decideStartRoute's always-
'unknown' sessionState param + its dead branch (no launch-time probe by
design — see README).
- Extract the duplicated launcher load-failure tail into failLaunchLoad().
- handoff.ts: promote a loose comment to TSDoc.
Shared loopback helpers (@sim/security/ssrf):
- Add isLoopbackIp (full 127/8 + ::1 range) and isLoopbackHostname /
LOOPBACK_HOSTNAMES (exact-set), consolidating three duplicated copies:
mcp/domain-check.ts (now uses isLoopbackIp + isIpLiteral + unwrapIpv6Brackets,
drops its ipaddr import), connectors/s3.ts, and desktop config.ts /
navigation.ts (drop the local LOCAL_HOSTNAMES set). urls.ts keeps its own
client-side set to avoid pulling ipaddr.js into client bundles.
api-validation:strict reconcile (pre-existing dev drift, not from these changes):
- Allowlist speech/tts (raw-read streaming route that validates inline) in
INDIRECT_ZOD_ROUTES; annotate the launcher's validated-envelope double-cast.
Bump the route-count baseline 964→966 for dev's two already-merged speech
routes. Non-Zod and double-cast ratchets stay at baseline.
0 commit comments