Wrapping up bedrock implementation
This commit is contained in:
@@ -15,9 +15,9 @@ use crate::{
|
||||
integration_testing::view_getters::terminal_view,
|
||||
BlocklistAIHistoryModel,
|
||||
};
|
||||
use warp_multi_agent_api as api;
|
||||
use galaxyui::{integration::AssertionCallback, integration_assert, EntityId};
|
||||
use galaxyui::{integration::AssertionOutcome, SingletonEntity};
|
||||
use warp_multi_agent_api as api;
|
||||
|
||||
type TextAssertion = Box<dyn Fn(&str) -> bool + 'static>;
|
||||
type ActionAssertion = Box<dyn Fn(&AIAgentActionType) -> bool + 'static>;
|
||||
|
||||
@@ -12,12 +12,12 @@ pub use crate::ai::blocklist::agent_view::AgentViewState;
|
||||
use crate::BlocklistAIHistoryModel;
|
||||
use crate::{ai::agent::AIAgentActionType, integration_testing::view_getters::terminal_view};
|
||||
pub use assertions::*;
|
||||
pub use step::*;
|
||||
pub use user_defaults::*;
|
||||
pub use util::*;
|
||||
use galaxyui::integration::PersistedDataMap;
|
||||
pub use galaxyui::integration::RUNTIME_TAG_FAILURE_REASON;
|
||||
use galaxyui::{App, SingletonEntity as _, WindowId};
|
||||
pub use step::*;
|
||||
pub use user_defaults::*;
|
||||
pub use util::*;
|
||||
|
||||
pub const TOTAL_REQUEST_COST_PREFIX: &str = "Total request cost: ";
|
||||
pub const TOTAL_EXCHANGES_PREFIX: &str = "Total number of exchanges: ";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::{fs::read, io::Cursor, path::Path, time::Duration};
|
||||
|
||||
use prost::Message;
|
||||
use galaxyui::{async_assert, integration::TestStep, SingletonEntity};
|
||||
use prost::Message;
|
||||
|
||||
use crate::ai::execution_profiles::profiles::AIExecutionProfilesModel;
|
||||
use crate::ai::execution_profiles::ActionPermission;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use settings::Setting as _;
|
||||
use galaxyui::{
|
||||
async_assert, async_assert_eq,
|
||||
integration::{AssertionCallback, AssertionOutcome},
|
||||
units::{IntoPixels, Lines},
|
||||
AppContext, SingletonEntity, WindowId,
|
||||
};
|
||||
use settings::Setting as _;
|
||||
|
||||
use crate::{
|
||||
integration_testing::view_getters::single_terminal_view,
|
||||
|
||||
@@ -5,10 +5,10 @@ use crate::integration_testing::terminal::execute_long_running_command;
|
||||
use crate::integration_testing::terminal::util::ExpectedExitStatus;
|
||||
use crate::integration_testing::view_getters::single_terminal_view_for_tab;
|
||||
use crate::terminal::model::terminal_model::BlockIndex;
|
||||
use std::time::Duration;
|
||||
use galaxyui::integration::AssertionCallback;
|
||||
use galaxyui::integration::TestStep;
|
||||
use galaxyui::{async_assert, async_assert_eq};
|
||||
use std::time::Duration;
|
||||
|
||||
/// This test case covers the creates the following output grid:
|
||||
/// -----------
|
||||
|
||||
@@ -2,10 +2,10 @@ mod assertion;
|
||||
|
||||
pub use assertion::*;
|
||||
use futures::{future::join_all, FutureExt};
|
||||
use galaxyui::{App, SingletonEntity};
|
||||
use itertools::Itertools;
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
use galaxyui::{App, SingletonEntity};
|
||||
|
||||
use crate::{
|
||||
cloud_object::{model::persistence::CloudModel, Space},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
use std::{path::PathBuf, time::Duration};
|
||||
|
||||
use ai::index::full_source_code_embedding::manager::CodebaseIndexManager;
|
||||
use settings::Setting;
|
||||
use galaxyui::{
|
||||
async_assert,
|
||||
integration::{AssertionOutcome, StepData, TestStep},
|
||||
App, ReadModel, SingletonEntity, UpdateModel, WindowId,
|
||||
};
|
||||
use settings::Setting;
|
||||
|
||||
use crate::{
|
||||
integration_testing::step::new_step_with_default_assertions, settings::CodeSettings,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use galaxyui::integration::TestStep;
|
||||
use galaxyui::{windowing::WindowManager, SingletonEntity};
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
|
||||
use crate::{
|
||||
integration_testing::{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use itertools::Itertools;
|
||||
use string_offset::CharOffset;
|
||||
use galaxy_editor::render::model::BlockItem;
|
||||
use galaxyui::{
|
||||
async_assert, async_assert_eq,
|
||||
integration::{AssertionCallback, AssertionOutcome, AssertionWithDataCallback},
|
||||
App, ViewHandle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use crate::{
|
||||
cloud_object::model::{generic_string_model::GenericStringObjectId, persistence::CloudModel},
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use string_offset::CharOffset;
|
||||
use galaxy_editor::model::CoreEditorModel;
|
||||
use galaxyui::{
|
||||
async_assert, integration::TestStep, windowing::WindowManager, App, SingletonEntity,
|
||||
ViewHandle, WindowId,
|
||||
};
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use crate::{
|
||||
cloud_object::{model::persistence::CloudModel, CloudObjectEventEntrypoint, Space},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use settings::Setting;
|
||||
use galaxyui::{async_assert, integration::TestStep, windowing::WindowManager, SingletonEntity};
|
||||
use settings::Setting;
|
||||
|
||||
use crate::{
|
||||
integration_testing::{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use regex::Regex;
|
||||
use std::time::Duration;
|
||||
use galaxyui::{
|
||||
async_assert, async_assert_eq,
|
||||
integration::{AssertionOutcome, TestStep},
|
||||
};
|
||||
use regex::Regex;
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::{
|
||||
integration_testing::{
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use regex::Regex;
|
||||
use settings::Setting as _;
|
||||
use galaxy_util::path::user_friendly_path;
|
||||
use galaxyui::{
|
||||
async_assert, async_assert_eq,
|
||||
@@ -9,6 +6,9 @@ use galaxyui::{
|
||||
windowing::WindowManager,
|
||||
App, SingletonEntity, ViewHandle, WindowId,
|
||||
};
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use regex::Regex;
|
||||
use settings::Setting as _;
|
||||
|
||||
use crate::{
|
||||
ai::blocklist::agent_view::AgentViewState,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use async_io::block_on;
|
||||
use command::blocking::Command;
|
||||
use std::borrow::Cow;
|
||||
use std::iter;
|
||||
use std::path::{Path, PathBuf};
|
||||
use galaxy_core::command::ExitCode;
|
||||
#[cfg(windows)]
|
||||
use galaxy_core::paths::base_config_dir;
|
||||
use std::borrow::Cow;
|
||||
use std::iter;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use rand::Rng;
|
||||
use rand::{distributions::Alphanumeric, thread_rng};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use galaxyui::{
|
||||
async_assert_eq, integration::TestStep, platform::TerminationMode, windowing::WindowManager,
|
||||
SingletonEntity,
|
||||
};
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
|
||||
use crate::integration_testing::step::new_step_with_default_assertions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user