Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -52,7 +52,7 @@ use suggest_new_conversation::SuggestNewConversationExecutor;
|
||||
pub use suggest_prompt::PromptSuggestionExecutor;
|
||||
use upload_artifact::UploadArtifactExecutor;
|
||||
use use_computer::UseComputerExecutor;
|
||||
use warp_core::{execution_mode::AppExecutionMode, features::FeatureFlag};
|
||||
use galaxy_core::{execution_mode::AppExecutionMode, features::FeatureFlag};
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
use crate::util::openable_file_type::is_binary_file;
|
||||
@@ -60,12 +60,12 @@ use crate::util::openable_file_type::is_binary_file;
|
||||
use futures::AsyncReadExt;
|
||||
use std::{any::Any, path::PathBuf, pin::Pin, sync::Arc};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use warp_files::{FileModel, TextFileReadResult};
|
||||
use galaxy_files::{FileModel, TextFileReadResult};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use warp_util::file::FileLoadError;
|
||||
use galaxy_util::file::FileLoadError;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use warp_util::file_type::is_buffer_binary;
|
||||
use warpui::{
|
||||
use galaxy_util::file_type::is_buffer_binary;
|
||||
use galaxyui::{
|
||||
r#async::{Spawnable, SpawnableOutput},
|
||||
AppContext, Entity, EntityId, ModelContext, ModelHandle, SingletonEntity,
|
||||
};
|
||||
@@ -1101,11 +1101,11 @@ async fn should_read_as_binary(path: &std::path::Path) -> bool {
|
||||
is_file_content_binary_async(path).await
|
||||
}
|
||||
|
||||
/// Async sibling of [`warp_util::file_type::is_file_content_binary`]. Reads
|
||||
/// Async sibling of [`galaxy_util::file_type::is_file_content_binary`]. Reads
|
||||
/// the first 1 KiB of `path` asynchronously and returns `true` if the content
|
||||
/// looks binary according to [`is_buffer_binary`]. Returns `true` on any I/O
|
||||
/// error so callers default to the binary code path. Kept local to this
|
||||
/// module so `warp_util` doesn't need to grow an `async_fs` dependency.
|
||||
/// module so `galaxy_util` doesn't need to grow an `async_fs` dependency.
|
||||
#[cfg(feature = "local_fs")]
|
||||
async fn is_file_content_binary_async(path: &std::path::Path) -> bool {
|
||||
const CHUNK_SIZE: usize = 1024;
|
||||
|
||||
Reference in New Issue
Block a user