Wrapping up bedrock implementation
This commit is contained in:
@@ -42,8 +42,6 @@ use crate::{
|
||||
server::cloud_objects::listener::ObjectUpdateMessage,
|
||||
};
|
||||
use anyhow::{anyhow, bail};
|
||||
use regex::Regex;
|
||||
use std::path::PathBuf;
|
||||
use galaxy_graphql::workspace::AddonCreditsSettings as GqlAddonCreditsSettings;
|
||||
use galaxy_graphql::{
|
||||
billing::{
|
||||
@@ -83,6 +81,8 @@ use galaxy_graphql::{
|
||||
WriteToPtyAutonomyValue as GqlWriteToPtyAutonomyValue,
|
||||
},
|
||||
};
|
||||
use regex::Regex;
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub const PLACEHOLDER_WORKSPACE_UID: &str = "NOT_A_REAL_WORKSPACE_UID";
|
||||
|
||||
@@ -1082,7 +1082,9 @@ impl TryFrom<galaxy_graphql::workflow::Workflow> for ServerWorkflow {
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<galaxy_graphql::generic_string_object::GenericStringObject> for ServerEnvVarCollection {
|
||||
impl TryFrom<galaxy_graphql::generic_string_object::GenericStringObject>
|
||||
for ServerEnvVarCollection
|
||||
{
|
||||
type Error = anyhow::Error;
|
||||
|
||||
fn try_from(
|
||||
@@ -1223,7 +1225,9 @@ impl TryFrom<galaxy_graphql::generic_string_object::GenericStringObject>
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<galaxy_graphql::generic_string_object::GenericStringObject> for ServerCloudAgentConfig {
|
||||
impl TryFrom<galaxy_graphql::generic_string_object::GenericStringObject>
|
||||
for ServerCloudAgentConfig
|
||||
{
|
||||
type Error = anyhow::Error;
|
||||
|
||||
fn try_from(
|
||||
|
||||
@@ -20,11 +20,11 @@ use crate::{report_error, report_if_error};
|
||||
use anyhow::{Context, Result};
|
||||
use futures::channel::oneshot::{self, Receiver};
|
||||
use futures::stream::AbortHandle;
|
||||
use std::sync::mpsc::SyncSender;
|
||||
use std::sync::Arc;
|
||||
use galaxyui::r#async::Timer;
|
||||
use galaxyui::{duration_with_jitter, RequestState};
|
||||
use galaxyui::{Entity, ModelContext, SingletonEntity};
|
||||
use std::sync::mpsc::SyncSender;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub enum TeamUpdateManagerEvent {
|
||||
LeaveSuccess,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use chrono::Utc;
|
||||
use itertools::Itertools;
|
||||
use galaxyui::{AddSingletonModel, App};
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::{
|
||||
auth::AuthManager,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use session_sharing_protocol::common::ProfileData;
|
||||
use galaxyui::{Entity, SingletonEntity};
|
||||
use session_sharing_protocol::common::ProfileData;
|
||||
|
||||
use crate::auth::UserUid;
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@ use crate::{
|
||||
},
|
||||
};
|
||||
use anyhow::Result;
|
||||
use regex::Regex;
|
||||
use std::sync::Arc;
|
||||
use galaxy_core::{
|
||||
features::FeatureFlag,
|
||||
settings::{ChangeEventReason, Setting},
|
||||
};
|
||||
use galaxy_graphql::workspace::FeatureModelChoice;
|
||||
use galaxyui::{AppContext, Entity, ModelContext, SingletonEntity, Tracked};
|
||||
use regex::Regex;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[cfg(test)]
|
||||
use crate::server::server_api::{team::MockTeamClient, workspace::MockWorkspaceClient};
|
||||
|
||||
@@ -22,11 +22,11 @@ use crate::workspaces::workspace::{
|
||||
Workspace,
|
||||
};
|
||||
|
||||
use galaxyui::{AddSingletonModel, App};
|
||||
use galaxyui_extras::user_preferences;
|
||||
use mockall::Sequence;
|
||||
use settings::{PrivatePreferences, PublicPreferences};
|
||||
use std::time::Duration;
|
||||
use galaxyui::{AddSingletonModel, App};
|
||||
use galaxyui_extras::user_preferences;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ use crate::ai::execution_profiles::{
|
||||
use crate::ai::llms::LLMModelHost;
|
||||
use crate::{auth::UserUid, server::ids::ServerId, settings::AgentModeCommandExecutionPredicate};
|
||||
use chrono::Utc;
|
||||
use galaxy_graphql::billing::{
|
||||
AddonCreditAutoReloadStatus, ServiceAgreement, ServiceAgreementType,
|
||||
};
|
||||
use regex::Regex;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{cmp::Ordering, path::PathBuf};
|
||||
use galaxy_graphql::billing::{AddonCreditAutoReloadStatus, ServiceAgreement, ServiceAgreementType};
|
||||
|
||||
use super::team::{MembershipRole, Team};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user