Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -4,7 +4,7 @@ use command::blocking::Command;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use warpui::{Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::{Entity, ModelContext, SingletonEntity};
|
||||
|
||||
use super::{PLUGIN_HOST_ADDRESS_ENV_VAR, PLUGIN_HOST_FLAG};
|
||||
use service_impl::{LogServiceImpl, PluginHostBootstrapServiceImpl};
|
||||
@@ -71,7 +71,7 @@ impl PluginHost {
|
||||
#[cfg(feature = "completions_v2")]
|
||||
let server_builder =
|
||||
server_builder.with_service(service_impl::RegisterCommandSignatureServiceImpl::new(
|
||||
warp_completer::signatures::CommandRegistry::global_instance(),
|
||||
galaxy_completer::signatures::CommandRegistry::global_instance(),
|
||||
));
|
||||
|
||||
let (server, plugin_host_process) =
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use warp_completer::signatures::CommandRegistry;
|
||||
use galaxy_completer::signatures::CommandRegistry;
|
||||
|
||||
use crate::plugin::service::{
|
||||
RegisterCommandSignatureRequest, RegisterCommandSignatureResponse,
|
||||
|
||||
@@ -5,8 +5,8 @@ use super::plugin::PluginHandle;
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "completions_v2")] {
|
||||
use rquickjs::{prelude::MutFn, Value};
|
||||
use warp_completer::signatures::CommandSignature;
|
||||
use warp_js::FromWarpJs;
|
||||
use galaxy_completer::signatures::CommandSignature;
|
||||
use galaxy_js::FromWarpJs;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ fn completions<'js>(plugin: PluginHandle, ctx: Ctx<'js>) -> rquickjs::Result<Obj
|
||||
MutFn::from(move |val: Value<'js>| {
|
||||
if val.is_array() {
|
||||
let mut plugin = plugin.get_mut();
|
||||
match Vec::<CommandSignature>::from_warp_js(
|
||||
match Vec::<CommandSignature>::from_galaxy_js(
|
||||
ctx,
|
||||
val,
|
||||
plugin.js_function_registry_mut(),
|
||||
@@ -71,7 +71,7 @@ fn completions<'js>(plugin: PluginHandle, ctx: Ctx<'js>) -> rquickjs::Result<Obj
|
||||
}
|
||||
} else if val.is_object() {
|
||||
let mut plugin = plugin.get_mut();
|
||||
match CommandSignature::from_warp_js(
|
||||
match CommandSignature::from_galaxy_js(
|
||||
ctx,
|
||||
val,
|
||||
plugin.js_function_registry_mut(),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use warpui::r#async::{block_on, executor::Background};
|
||||
use galaxyui::r#async::{block_on, executor::Background};
|
||||
|
||||
use crate::plugin::service::{LogService, LogServiceRequest};
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ use std::{
|
||||
};
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use warpui::r#async::executor::Background;
|
||||
use galaxyui::r#async::executor::Background;
|
||||
|
||||
use crate::plugin::host::runners::PluginRunners;
|
||||
|
||||
@@ -31,7 +31,7 @@ use super::{
|
||||
use logging::initialize_logging;
|
||||
|
||||
pub fn run() -> Result<()> {
|
||||
warpui::r#async::block_on(async move {
|
||||
galaxyui::r#async::block_on(async move {
|
||||
let executor = Arc::new(Background::default());
|
||||
|
||||
// Initialize a client connection to the warp app process.
|
||||
|
||||
@@ -6,11 +6,11 @@ use std::{
|
||||
|
||||
use anyhow::anyhow;
|
||||
use rquickjs::Context;
|
||||
use warp_js::{JsFunctionId, JsFunctionRegistry, SerializedJsValue};
|
||||
use galaxy_js::{JsFunctionId, JsFunctionRegistry, SerializedJsValue};
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "completions_v2")] {
|
||||
use warp_completer::signatures::CommandSignature;
|
||||
use galaxy_completer::signatures::CommandSignature;
|
||||
|
||||
use crate::plugin::service::{
|
||||
RegisterCommandSignatureRequest, RegisterCommandSignatureService,
|
||||
@@ -96,7 +96,7 @@ impl Plugin {
|
||||
/// Registers the given command signatures.
|
||||
#[cfg(feature = "completions_v2")]
|
||||
pub(super) fn register_command_signatures(&mut self, signatures: Vec<CommandSignature>) {
|
||||
if let Err(e) = warpui::r#async::block_on(
|
||||
if let Err(e) = galaxyui::r#async::block_on(
|
||||
self.app_services
|
||||
.register_command_signatures_caller
|
||||
.call(RegisterCommandSignatureRequest { signatures }),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use anyhow::{Context as AnyhowContext, Result};
|
||||
use async_channel::Receiver;
|
||||
use rquickjs::{Context, Function, Runtime};
|
||||
use warp_js::JsFunctionId;
|
||||
use galaxy_js::JsFunctionId;
|
||||
|
||||
use super::{
|
||||
js_api,
|
||||
|
||||
@@ -6,8 +6,8 @@ use std::{
|
||||
use async_channel::Receiver;
|
||||
use futures::channel::oneshot;
|
||||
use parking_lot::Mutex;
|
||||
use warp_js::JsFunctionId;
|
||||
use warpui::r#async::executor::Background;
|
||||
use galaxy_js::JsFunctionId;
|
||||
use galaxyui::r#async::executor::Background;
|
||||
|
||||
use super::{
|
||||
plugin::{AppServiceCallers, PluginRequest, PluginResponse},
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
//! To serialize input/deserialize output, callers are expected to use `bincode`.
|
||||
use async_trait::async_trait;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use warp_js::{JsFunctionId, SerializedJsValue};
|
||||
use galaxy_js::{JsFunctionId, SerializedJsValue};
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||
pub struct CallJsFunctionRequest {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! This IPC is hosted by the rust app process and called by the plugin process when plugins
|
||||
//! register command signatures.
|
||||
use serde::{Deserialize, Serialize};
|
||||
use warp_completer::signatures::CommandSignature;
|
||||
use galaxy_completer::signatures::CommandSignature;
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||
pub struct RegisterCommandSignatureRequest {
|
||||
|
||||
Reference in New Issue
Block a user