Commit graph

12 commits

Author SHA1 Message Date
18e844033a
fix(client): remove broken catch_unwind, tokio task isolation is sufficient 2026-03-03 14:43:55 +01:00
a43c5c3197
fix(client): per-process execution, UTF-8 lossy decode, panic isolation 2026-03-03 14:40:21 +01:00
f7d29a98d3
feat: commit hash in banner, version command, file upload/download 2026-03-03 14:29:22 +01:00
346386db99
fix(client): use contains() for sentinel detection to fix Windows timeout
On Windows, cmd.exe echoes the full prompt before the command output,
so the sentinel line looks like:

  C:\Users\Moritz\Desktop>__HELIOS_DONE__0\r\n

starts_with(SENTINEL) never matched. Switching to contains() + finding
the sentinel position fixes detection on both Windows and Unix.
2026-03-03 14:17:56 +01:00
9e6878a93f
fix: flush stdout prompts in first-run config wizard
The prompt_config() function used print!() without flushing stdout,
causing all prompts to be buffered and invisible to the user. The
program appeared to hang silently after 'No config found — first-time
setup'.

Changes:
- Add std::io::stdout().flush().unwrap() after each print!() prompt
- Style prompts with cyan '→' prefix to match CLI conventions
- Show default values in square brackets for relay URL and label
- Use hostname() as default label (was previously Optional/None)
- Add blank line after prompts before '✓ Config saved'
2026-03-03 14:11:58 +01:00
e32e09996b
feat(client): modern CLI output + Windows exe icon
- Replace timestamp-based log macros with colored CLI output system
  using the `colored` crate
- Banner on startup: ☀ HELIOS REMOTE + separator line
- Colored prefixes: cyan → (status), green ✓ (ok), red ✗ (error),
  yellow  (incoming commands)
- Session info on connect: ✓ Connected · <label> · Session <id>
- No timestamps, no [CMD]/[OK]/[ERR] prefixes
- Suppress tracing output by default (RUST_LOG=off unless set)
- Add build.rs to embed logo.ico as Windows resource via winres
- Add winres as build-dependency in client Cargo.toml
2026-03-03 14:02:17 +01:00
1d019fa2b4
client: verbose CLI output, TOML config in APPDATA, desktop install
- install.ps1: place exe on Desktop instead of TEMP, start with visible window
- main.rs: banner on startup, [CMD]/[OK]/[ERR] prefixed logs with HH:MM:SS timestamps
- Config: switch from JSON to TOML (config.toml in %APPDATA%\helios-remote\)
- First-run wizard prompts for Relay URL + API Key (relay_code -> api_key)
- Add chrono + toml deps to Cargo.toml
2026-03-03 13:55:22 +01:00
9f06d84f28
feat: add window management (list, minimize-all, focus, maximize) 2026-03-02 20:00:41 +01:00
c9643c8543
feat: WSS/HTTPS via Caddy TLS - client uses wss://remote.agent-helios.me 2026-03-02 18:45:44 +01:00
04527ae1bf
feat(client): implement Windows client (Phase 2)
- Persistent shell session (cmd.exe) preserving cd state between commands
- Screenshot capture via Windows GDI (BGRA→RGBA→PNG→Base64)
- Mouse click via SendInput with absolute screen coordinates
- Text input via SendInput with Unicode (UTF-16) key events
- Auto-reconnect with exponential backoff (max 30s)
- Config stored in %APPDATA%/helios-remote/config.json
- All Windows APIs under #[cfg(windows)] for cross-compile safety
- CI: add Windows cross-compile job (x86_64-pc-windows-gnu) with artifact upload
2026-03-02 18:32:55 +01:00
6fce2dcde8
Add logo assets and update README 2026-03-02 18:16:05 +01:00
7285a33cff
Initial implementation: relay server + common protocol + client stub 2026-03-02 18:03:46 +01:00