Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: catch panic

Nathan59139ff323d5
diff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lock
index 77b46fb6fb..39945922c1 100644
--- a/frontend/rust-lib/Cargo.lock
+++ b/frontend/rust-lib/Cargo.lock
@@ -198,7 +198,7 @@ dependencies = [
[[package]]
name = "appflowy-local-ai"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=db15d1f1bb387acbb012979951b38e243f35972b#db15d1f1bb387acbb012979951b38e243f35972b"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=eace64bb0e4d2b781c74bbfc77ed7f1de0559b35#eace64bb0e4d2b781c74bbfc77ed7f1de0559b35"
dependencies = [
"anyhow",
"appflowy-plugin",
@@ -218,7 +218,7 @@ dependencies = [
[[package]]
name = "appflowy-plugin"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=db15d1f1bb387acbb012979951b38e243f35972b#db15d1f1bb387acbb012979951b38e243f35972b"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-LocalAI?rev=eace64bb0e4d2b781c74bbfc77ed7f1de0559b35#eace64bb0e4d2b781c74bbfc77ed7f1de0559b35"
dependencies = [
"anyhow",
"cfg-if",
diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.toml
index 7ed22256f4..65cc255f75 100644
--- a/frontend/rust-lib/Cargo.toml
+++ b/frontend/rust-lib/Cargo.toml
@@ -152,5 +152,5 @@ collab-importer = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFl
# To update the commit ID, run:
# scripts/tool/update_local_ai_rev.sh new_rev_id
# ⚠️⚠️⚠️️
-appflowy-local-ai = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "db15d1f1bb387acbb012979951b38e243f35972b" }
-appflowy-plugin = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "db15d1f1bb387acbb012979951b38e243f35972b" }
+appflowy-local-ai = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "eace64bb0e4d2b781c74bbfc77ed7f1de0559b35" }
+appflowy-plugin = { version = "0.1", git = "https://github.com/AppFlowy-IO/AppFlowy-LocalAI", rev = "eace64bb0e4d2b781c74bbfc77ed7f1de0559b35" }
diff --git a/frontend/rust-lib/flowy-ai/src/entities.rs b/frontend/rust-lib/flowy-ai/src/entities.rs
index 06de096270..9ffa5f3256 100644
--- a/frontend/rust-lib/flowy-ai/src/entities.rs
+++ b/frontend/rust-lib/flowy-ai/src/entities.rs
@@ -483,7 +483,7 @@ pub struct LocalAIPB {
pub enabled: bool,
#[pb(index = 2)]
- pub is_executable_ready: bool,
+ pub is_plugin_executable_ready: bool,
#[pb(index = 3, one_of)]
pub lack_of_resource: Option<String>,
diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
index 7fe2c93dff..9c70451e27 100644
--- a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
+++ b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
@@ -103,7 +103,7 @@ impl LocalAIController {
)
.payload(LocalAIPB {
enabled,
- is_executable_ready: ready,
+ is_plugin_executable_ready: ready,
lack_of_resource,
state: new_state,
})
@@ -265,7 +265,7 @@ impl LocalAIController {
);
LocalAIPB {
enabled,
- is_executable_ready: is_app_downloaded,
+ is_plugin_executable_ready: is_app_downloaded,
state: RunningStatePB::from(state),
lack_of_resource,
}
@@ -439,7 +439,7 @@ impl LocalAIController {
)
.payload(LocalAIPB {
enabled,
- is_executable_ready: true,
+ is_plugin_executable_ready: true,
state: RunningStatePB::Stopped,
lack_of_resource: None,
})
@@ -467,7 +467,7 @@ async fn initialize_ai_plugin(
)
.payload(LocalAIPB {
enabled: true,
- is_executable_ready: true,
+ is_plugin_executable_ready: true,
state: RunningStatePB::ReadyToRun,
lack_of_resource: lack_of_resource.clone(),
})