-
-
Notifications
You must be signed in to change notification settings - Fork 9
feat: add real WebSocket and gRPC streaming transports #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1efe9e1
feat: add real WebSocket and gRPC streaming transports
d5ae042
.claude/settings.local.json appears to be a local, developer-specific…
e58eb45
ignore claude files
f3c1af6
fix reviewer comments
f23ae29
Merge branch 'master' into feature/streaming-pipes
vsilent 742cfca
protoc deps
b5bcdaf
Merge branch 'feature/streaming-pipes' of https://github.com/vsilent/…
b942b7d
clippy blockers fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,5 @@ __pycache__ | |
| .DS_Store | ||
| .ai | ||
| target | ||
| .env | ||
| .env | ||
| .claude | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| # Status Panel | ||
|
|
||
| On-server status panel agent. Runs on deployed servers to report health metrics, manage containers, handle self-updates, and provide a WebSocket interface for real-time monitoring. | ||
|
|
||
| ## Tech Stack | ||
| - **Language**: Rust (2021 edition) | ||
| - **Framework**: Axum 0.8 (with WebSocket support) | ||
| - **Async**: Tokio (full features) | ||
| - **Docker**: Bollard 0.19 (Docker API via Unix socket, optional) | ||
| - **HTTP Client**: reqwest 0.12 (rustls-tls) | ||
| - **System Metrics**: sysinfo 0.30 | ||
| - **Security**: HMAC-SHA256, ring 0.17 | ||
| - **Daemonization**: daemonize 0.5 | ||
| - **Testing**: assert_cmd, tokio-test, mockito, tower | ||
|
|
||
| ## Project Structure | ||
| ``` | ||
| src/ | ||
| main.rs # Binary entry point | ||
| lib.rs # Library root (core logic) | ||
| test_utils.rs # Shared test utilities | ||
| tests/ | ||
| http_routes.rs # HTTP route integration tests | ||
| security_integration.rs # Security/auth integration tests | ||
| self_update_integration.rs # Self-update mechanism tests | ||
| examples/ | ||
| command_execution.rs # Command execution example | ||
| ``` | ||
|
|
||
| ## Features | ||
| - `default = ["docker"]` — includes Docker management via Bollard | ||
| - `docker` — Docker container management (Unix socket) | ||
| - `minimal` — builds without Docker support | ||
|
|
||
| ## Commands | ||
| ```bash | ||
| # Build | ||
| cargo build | ||
|
|
||
| # Build minimal (without Docker) | ||
| cargo build --no-default-features --features minimal | ||
|
|
||
| # Run tests | ||
| cargo test | ||
|
|
||
| # Run tests without Docker feature | ||
| cargo test --no-default-features --features minimal | ||
|
|
||
| # Format & lint | ||
| cargo fmt | ||
| cargo clippy -- -D warnings | ||
|
|
||
| # Run | ||
| cargo run --bin status | ||
| ``` | ||
|
|
||
| ## Critical Rules | ||
| - NEVER expose system commands without HMAC authentication | ||
| - NEVER trust incoming WebSocket data without signature verification | ||
| - ALWAYS validate self-update binary integrity before replacing | ||
| - Docker socket access is privileged — validate all container operations | ||
| - System metrics collection must not block the async runtime | ||
| - Test both `docker` and `minimal` feature configurations | ||
| - Test with `cargo test` after every change | ||
| - DO NOT yet add to repo .claude CLAUDE.md .copilot directories and files | ||
|
|
||
| ## Agents | ||
| - Use `planner` before any feature work | ||
| - Use `tester` after every code change (must run cargo test) | ||
| - Use `code-reviewer` before commits — focus on security and system safety | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc states “DO NOT yet add to repo .claude CLAUDE.md ...”, but this PR adds both
CLAUDE.mdand the.claude/directory. Either remove these files from the PR, or update the rule so the repository guidance is internally consistent.