feat: continue tree rust family cutover
- add rust renderer/state-family scaffolds and inline compat host thinning for page tree, file tree, and picker - route tree/filetree preflight, file projection, resource artifact, and stream delta contracts through rust plans - preserve canonical move-order validation, file-tree search projection, and related frontend/runtime regression coverage
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,8 @@
|
||||
use std::io::{self, Read};
|
||||
|
||||
use bridge_runtime::{
|
||||
build_failure_response, build_success_response, execute_runtime_input, execute_runtime_query,
|
||||
build_artifact_success_response, build_failure_response, build_success_response,
|
||||
execute_runtime_command_artifact, execute_runtime_input, execute_runtime_query,
|
||||
runtime_input_requests_result, RuntimeFailure, RuntimeInput,
|
||||
};
|
||||
use storage_convex_bridge::{BridgeError, BridgeErrorKind};
|
||||
@@ -26,7 +27,16 @@ fn main() {
|
||||
}
|
||||
};
|
||||
|
||||
if runtime_input_requests_result(&runtime_input) {
|
||||
if matches!(runtime_input, RuntimeInput::CommandArtifact { .. }) {
|
||||
match execute_runtime_command_artifact(runtime_input) {
|
||||
Ok(artifacts) => {
|
||||
let payload = serde_json::to_string(&build_artifact_success_response(artifacts))
|
||||
.expect("bridge runtime artifact 成功响应必须可序列化");
|
||||
println!("{payload}");
|
||||
}
|
||||
Err(error) => emit_failure(error),
|
||||
}
|
||||
} else if runtime_input_requests_result(&runtime_input) {
|
||||
match execute_runtime_query(runtime_input) {
|
||||
Ok(result) => {
|
||||
let payload = serde_json::to_string(&serde_json::json!({
|
||||
|
||||
Reference in New Issue
Block a user