feat: consolidate local-first mnote web runtime
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::app::AppState;
|
||||
use crate::context::RequestContext;
|
||||
use crate::error::WebError;
|
||||
use crate::hermes_tools::ToolCallInput;
|
||||
use crate::routes::command_support::execute_runtime_command_via_convex_with_artifacts;
|
||||
use crate::routes::command_support::execute_runtime_command_via_legacy_cloud_with_artifacts;
|
||||
use crate::routes::web_shell::build_page_aggregate_snapshot;
|
||||
use bridge_runtime::{
|
||||
RuntimeActorWire, RuntimeCommandEnvelopeWire, RuntimeSourceWire, RuntimeTargetWire,
|
||||
@@ -211,6 +211,8 @@ async fn page_command(
|
||||
source_kind: core_protocol::WorkspaceSourceKind::LocalFolder,
|
||||
root_uri: root_uri.clone(),
|
||||
expected_file_version: input.arg_string("expectedFileVersion"),
|
||||
write_intent_id: Some("intent:ai:mnote.page.save".into()),
|
||||
save_operation_id: None,
|
||||
base_content_hash: input.arg_string("baseContentHash"),
|
||||
content_format: "editorBlocks".into(),
|
||||
content,
|
||||
@@ -304,7 +306,7 @@ async fn page_command(
|
||||
dry_run: false,
|
||||
validate_only: false,
|
||||
};
|
||||
let execution = execute_runtime_command_via_convex_with_artifacts(
|
||||
let execution = execute_runtime_command_via_legacy_cloud_with_artifacts(
|
||||
&state,
|
||||
context,
|
||||
workspace_id.as_deref(),
|
||||
|
||||
Reference in New Issue
Block a user