feat: add agent publishing foundation
This commit is contained in:
@@ -12,6 +12,8 @@ pub struct SessionStore {
|
||||
pub struct SessionState {
|
||||
pub protocol_version: String,
|
||||
pub initialized: bool,
|
||||
pub workspace_slug: String,
|
||||
pub agent_slug: String,
|
||||
}
|
||||
|
||||
impl SessionStore {
|
||||
@@ -21,7 +23,12 @@ impl SessionStore {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn create(&self, protocol_version: &str) -> String {
|
||||
pub async fn create(
|
||||
&self,
|
||||
protocol_version: &str,
|
||||
workspace_slug: &str,
|
||||
agent_slug: &str,
|
||||
) -> String {
|
||||
let session_id = Uuid::now_v7().to_string();
|
||||
let mut guard = self.inner.write().await;
|
||||
|
||||
@@ -30,6 +37,8 @@ impl SessionStore {
|
||||
SessionState {
|
||||
protocol_version: protocol_version.to_owned(),
|
||||
initialized: false,
|
||||
workspace_slug: workspace_slug.to_owned(),
|
||||
agent_slug: agent_slug.to_owned(),
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user