Initial Agentsd project commit

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 15:09:56 +08:00
commit 1bf1f08f9a
41 changed files with 8106 additions and 0 deletions

11
core/proto/Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "agentsd-proto"
version = "0.1.0"
edition = "2021"
[dependencies]
tonic = { workspace = true }
prost = { workspace = true }
[build-dependencies]
tonic-build = { workspace = true }

7
core/proto/build.rs Normal file
View File

@@ -0,0 +1,7 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.build_client(true)
.compile_protos(&["../../proto/agentsd.proto"], &["../../proto/"])?;
Ok(())
}

5
core/proto/src/lib.rs Normal file
View File

@@ -0,0 +1,5 @@
pub mod agentsd {
tonic::include_proto!("agentsd");
}
pub use agentsd::*;