Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -16,10 +16,10 @@ use ai::skills::{
|
||||
get_provider_for_path, parse_bundled_skill, provider_rank, ParsedSkill, SkillProvider,
|
||||
SkillReference,
|
||||
};
|
||||
use warp_core::{
|
||||
use galaxy_core::{
|
||||
channel::ChannelState, features::FeatureFlag, report_error, safe_warn, ui::icons::Icon,
|
||||
};
|
||||
use warpui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
use galaxyui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
|
||||
/// Activation condition for a bundled skill.
|
||||
#[derive(Debug, Clone)]
|
||||
@@ -419,7 +419,7 @@ impl SkillManager {
|
||||
|
||||
/// Load skill definitions bundled with Warp.
|
||||
async fn load_bundled_skills() -> HashMap<String, BundledSkill> {
|
||||
let Some(resources_dir) = warp_core::paths::bundled_resources_dir() else {
|
||||
let Some(resources_dir) = galaxy_core::paths::bundled_resources_dir() else {
|
||||
return HashMap::new();
|
||||
};
|
||||
let skills_dir = resources_dir.join("bundled").join("skills");
|
||||
@@ -441,7 +441,7 @@ impl SkillManager {
|
||||
|
||||
/// Load Figma-specific bundled skills from the `figma/` subdirectory.
|
||||
async fn load_figma_skills() -> HashMap<String, BundledSkill> {
|
||||
let Some(resources_dir) = warp_core::paths::bundled_resources_dir() else {
|
||||
let Some(resources_dir) = galaxy_core::paths::bundled_resources_dir() else {
|
||||
return HashMap::new();
|
||||
};
|
||||
let figma_skills_dir = resources_dir
|
||||
@@ -524,7 +524,7 @@ async fn read_bundled_skills(skills_dir: &Path) -> HashMap<String, ParsedSkill>
|
||||
///
|
||||
/// Supported variables:
|
||||
/// - `{{warp_server_url}}` - The server root URL (e.g., `https://api.warp.dev`)
|
||||
/// - `{{warp_cli_binary_name}}` - The CLI binary name (e.g., `warp` or `warp-cli`)
|
||||
/// - `{{galaxy_cli_binary_name}}` - The CLI binary name (e.g., `warp` or `warp-cli`)
|
||||
/// - `{{warp_url_scheme}}` - The URL scheme (e.g., `warp`, `warpdev`, `warppreview`)
|
||||
/// - `{{settings_schema_path}}` - Path to the bundled JSON settings schema
|
||||
/// - `{{settings_file_path}}` - Path to the user's settings TOML file
|
||||
@@ -535,7 +535,7 @@ fn build_bundled_skill_context() -> HashMap<String, String> {
|
||||
ChannelState::server_root_url().into_owned(),
|
||||
),
|
||||
(
|
||||
"warp_cli_binary_name".to_owned(),
|
||||
"galaxy_cli_binary_name".to_owned(),
|
||||
ChannelState::channel().cli_command_name().to_owned(),
|
||||
),
|
||||
(
|
||||
@@ -551,7 +551,7 @@ fn build_bundled_skill_context() -> HashMap<String, String> {
|
||||
.collect();
|
||||
|
||||
if let Some(schema_path) =
|
||||
warp_core::paths::bundled_resources_dir().map(|dir| dir.join("settings_schema.json"))
|
||||
galaxy_core::paths::bundled_resources_dir().map(|dir| dir.join("settings_schema.json"))
|
||||
{
|
||||
context.insert(
|
||||
"settings_schema_path".to_owned(),
|
||||
|
||||
Reference in New Issue
Block a user