huskies: merge 858

This commit is contained in:
dave
2026-04-29 10:41:32 +00:00
parent be5db846cc
commit 11d111360d
79 changed files with 265 additions and 0 deletions
+1
View File
@@ -62,6 +62,7 @@ pub(crate) use state::{ALL_OPS, VECTOR_CLOCK};
/// Hex-encode a byte slice (no external dep needed).
pub(crate) mod hex {
/// Encode `bytes` as a lowercase hexadecimal string.
pub fn encode(bytes: &[u8]) -> String {
bytes.iter().map(|b| format!("{b:02x}")).collect()
}
+2
View File
@@ -43,6 +43,7 @@ pub struct GatewayConfigCrdt {
pub active_project: LwwRegisterCrdt<String>,
}
/// Top-level CRDT document holding all replicated pipeline state (items, nodes, jobs, etc.).
#[add_crdt_fields]
#[derive(Clone, CrdtNode, Debug)]
pub struct PipelineDoc {
@@ -57,6 +58,7 @@ pub struct PipelineDoc {
pub gateway_config: GatewayConfigCrdt,
}
/// CRDT sub-document representing a single pipeline work item with LWW fields for stage, agent, etc.
#[add_crdt_fields]
#[derive(Clone, CrdtNode, Debug)]
pub struct PipelineItemCrdt {