jmj 3889b6d910 feat(repair): add toggle for offscreen sandbox precheck
The offscreen WebView validation runs once per page and is the heaviest
part of the render pipeline on low-end TV boxes: it wakes an invisible
WebView, loads the sandbox page, injects the full DOM and waits ~550ms
before mounting the real page.

Add RepairAiConfig.precheckEnabled (default true) so it can be disabled:

- Android: skip validateInOffscreenSandbox and mount directly, reporting
  status "rendered_precheck_skipped" so the outcome stays distinguishable
  in render results. Exposed in the terminal settings dialog and accepted
  from hub config pushes.
- Hub: add precheck_enabled to RepairAIConfig, the admin form and the
  config payload so the switch can be toggled remotely.

Trade-off: with precheck off, malformed pages surface on screen instead
of being caught and repaired before mounting.
2026-11-30 11:06:17 +08:00

PulseWall

AI-driven Android 11 live information wall, real-time device status monitor, and bidirectional MCP interactive terminal.

Repository Layout

  • protocol/ — Canonical architecture, MCP schema, and WebSocket protocol specs:
    • protocol/architecture.md
    • protocol/mcp-schema.md
    • protocol/ws-protocol.md
  • hub/ — Python Central Bridge (FastAPI + official MCP Streamable HTTP + WebSocket device gateway + SQLite + Web Admin Panel + LAN-only ADB Debug controller)
  • android/ — Android 11 (minSdk = 30) native Kotlin client with layered basic/root telemetry, offline Vue 3 + PulseWall CSS framework, offscreen pre-render validation sandbox, runtime console watchdog, OpenAI-compatible on-device Repair Sentinel, and unbreakable native alert/alarm layer.

Quick Start

1. Start the Python Hub

cd /data/working/PulseWall/hub
./run_hub.sh
  • Web Admin Panel: http://<hub-ip>:8765/admin
  • Generic MCP Endpoint (Streamable HTTP): http://<hub-ip>:8765/mcp/
  • Upstream Plugin Event Stream (SSE): http://<hub-ip>:8765/api/events/stream
  • Android WebSocket Gateway: ws://<hub-ip>:8765/ws/device/{device_id}
  • LAN-Only Developer Debug / ADB API: POST http://<hub-ip>:8765/api/lan-debug/{device_id}/action

2. Build the Android 11 APK

/data/working/PulseWall/android/build_apk.sh

Output APK: android/app/build/outputs/apk/debug/app-debug.apk

3. First-Time Pairing

  1. Install app-debug.apk onto your Android 11 device.
  2. Tap the top-right floating status pill (⚙) to set your Hub WebSocket URL (ws://<hub-ip>:8765) and device name.
  3. Open http://<hub-ip>:8765/admin to verify live device telemetry & DisplayProfile, configure your OpenAI-compatible end-side Repair AI model (pushed live to the device), and test feed/alarm/dynamic canvas rendering.
S
Description
No description provided
Readme
1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 38.8%
Vue 19%
Kotlin 17.5%
HTML 16.6%
JavaScript 5.8%
Other 2.3%