mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-04 22:16:32 +01:00
The agent of the Windows guest speaks a line protocol (one JSON request, one JSON answer, raw bytes after the line for put_file and get_file) that has nothing to do with Windows. Move it into protocol.rs, with a trait for the verbs a platform adds, so that another platform answers the same protocol instead of copying it, and the host has one client. The Windows verbs (os_windows, displays, activate, minimize, close) and the code that reads them from the session are moved to windows.rs, not changed; the agent still serves each connection on a thread of its own. What the protocol gains for every platform: an environment and an output file for a spawned program, a `status` of one, and a `send` to its standard input, which the Windows agent does not use yet. The port is one for every platform, as the Windows one already was.
14 lines
329 B
TOML
14 lines
329 B
TOML
[package]
|
|
name = "komorebi-e2e-agent"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
description = "Runs in the interactive session of an e2e guest and answers the host"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { workspace = true }
|