Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though

This commit is contained in:
Ryan Ward
2026-05-07 11:29:34 -05:00
parent f4e2475c60
commit a41cbd8cc7
2433 changed files with 14208 additions and 9409 deletions
+27
View File
@@ -0,0 +1,27 @@
use serde::{Deserialize, Serialize};
/// Unique identifier for a terminal session.
///
/// Each bootstrapped subshell (including SSH sessions) gets its own `SessionId`.
/// This type is defined in `galaxy_core` so that lower-level crates (e.g. `repo_metadata`)
/// can reference it without depending on the `app` crate.
#[derive(Copy, Clone, Debug, Default, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct SessionId(u64);
impl SessionId {
pub fn as_u64(&self) -> u64 {
self.0
}
}
impl From<u64> for SessionId {
fn from(id: u64) -> Self {
Self(id)
}
}
impl From<SessionId> for u64 {
fn from(session_id: SessionId) -> Self {
session_id.as_u64()
}
}