Files
komorebi/crates/komorebi-e2e-agent/Cargo.toml
T
LGUG2Z 71a9018e4b refactor(e2e-agent): split the protocol from the verbs of a platform
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.
2026-11-06 14:40:49 -08:00

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 }