Wrapping up bedrock implementation
This commit is contained in:
@@ -5,8 +5,8 @@ use std::{
|
||||
};
|
||||
|
||||
use anyhow::anyhow;
|
||||
use rquickjs::Context;
|
||||
use galaxy_js::{JsFunctionId, JsFunctionRegistry, SerializedJsValue};
|
||||
use rquickjs::Context;
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "completions_v2")] {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use anyhow::{Context as AnyhowContext, Result};
|
||||
use async_channel::Receiver;
|
||||
use rquickjs::{Context, Function, Runtime};
|
||||
use galaxy_js::JsFunctionId;
|
||||
use rquickjs::{Context, Function, Runtime};
|
||||
|
||||
use super::{
|
||||
js_api,
|
||||
|
||||
@@ -5,9 +5,9 @@ use std::{
|
||||
|
||||
use async_channel::Receiver;
|
||||
use futures::channel::oneshot;
|
||||
use parking_lot::Mutex;
|
||||
use galaxy_js::JsFunctionId;
|
||||
use galaxyui::r#async::executor::Background;
|
||||
use parking_lot::Mutex;
|
||||
|
||||
use super::{
|
||||
plugin::{AppServiceCallers, PluginRequest, PluginResponse},
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
//!
|
||||
//! To serialize input/deserialize output, callers are expected to use `bincode`.
|
||||
use async_trait::async_trait;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use galaxy_js::{JsFunctionId, SerializedJsValue};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||
pub struct CallJsFunctionRequest {
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
//!
|
||||
//! 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 galaxy_completer::signatures::CommandSignature;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||
pub struct RegisterCommandSignatureRequest {
|
||||
|
||||
Reference in New Issue
Block a user