Complete local-first Rig provider migration

This commit is contained in:
2026-08-06 11:37:28 -05:00
parent f850bae77c
commit 634ce7ba00
38 changed files with 3837 additions and 1616 deletions
@@ -22,3 +22,13 @@ fn only_oss_disables_warp_service_egress() {
assert!(Channel::Integration.allows_warp_service_egress());
assert!(!Channel::Oss.allows_warp_service_egress());
}
#[test]
fn only_oss_is_local_first() {
assert!(!Channel::Stable.is_local_first());
assert!(!Channel::Preview.is_local_first());
assert!(!Channel::Dev.is_local_first());
assert!(!Channel::Local.is_local_first());
assert!(!Channel::Integration.is_local_first());
assert!(Channel::Oss.is_local_first());
}
+6
View File
@@ -63,6 +63,12 @@ impl Channel {
}
}
/// Whether the channel is local-first and must not expose Warp-owned
/// identity, sharing, or workspace state to the product surface.
pub fn is_local_first(&self) -> bool {
!self.allows_warp_service_egress()
}
/// Returns the CLI command name corresponding to this channel.
pub fn cli_command_name(&self) -> &'static str {
match self {