Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit c4133ea

Browse files
committed
chore: split system_info into files for multi-platform supports
1 parent afe6e16 commit c4133ea

7 files changed

Lines changed: 402 additions & 340 deletions

File tree

TODO.md

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
1-
## Todo: v2
2-
3-
- [ ] Support agent self-update when connecting to controller
4-
- [ ] Implement agent event protocol
5-
- [ ] Support event subscription for clients in controller api (SSE)
6-
- [ ] Implement reverse proxy in controller
7-
- [ ] Implement streaming protocol
8-
- [ ] Implementation for agent
9-
- [ ] Implementation for controller
10-
- [ ] Support stdio redirection
11-
- [ ] Support file redirection
12-
- [ ] Support tcp redirection
13-
- [ ] Support unix socks redirection
14-
- [ ] Collect more detailed system information
15-
- [ ] Network Interface Card
16-
- [ ] Link state
17-
- [ ] Link speed
18-
- [ ] Support realtime command output feedback
1+
# Development To-do List
2+
3+
## Milestone: v1
4+
5+
### Agent: Support Multiple Platforms
6+
7+
> Status: 🏗️ Working
8+
9+
Allow agent to work properly on multiple platforms
10+
11+
#### macOS supports
12+
13+
> Status: 🏗️ Working
14+
15+
1. [ ] implement `system_info::collect_info` for macOS
16+
17+
#### Windows supports
18+
19+
> Status: 🗓️ Plan
20+
21+
1. [ ] implement `system_info::collect_info` for Windows
22+
23+
### Controllplane: Lua Extensions
24+
25+
> Status: 🗒️ Draft
26+
27+
Allow controllplane to perform complex flow control, and reduce redundant usage of HTTP Api (ref: [EM-GeekLab/LLMOne](https://github.com/EM-GeekLab/LLMOne))
28+
29+
### Protocol: Binary Streaming
30+
31+
> Status: 🗒️ Draft
32+
33+
#### Port forwarding
34+
35+
> Status: 🗒️ Draft
36+
37+
#### File Upload / Download
38+
39+
> Status: 🗒️ Draft

src/system_info.rs

Lines changed: 0 additions & 322 deletions
This file was deleted.

src/system_info/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
mod types;
2+
mod unix;
3+
4+
pub use self::types::{BlkInfo, CpuInfo, IpInfo, MntInfo, NicInfo, SystemInfo, UtsInfo};
5+
6+
#[cfg(unix)]
7+
pub use self::unix::collect_info;
8+
9+
#[cfg(not(unix))]
10+
pub fn collect_info() -> SystemInfo { SystemInfo::default() }

0 commit comments

Comments
 (0)