//! Internal dispatch table for the numbered IPC root. //! //! This module is deliberately not a Tauri command surface. The webview can reach these //! handlers only after `numbered_ipc` validates the full numbered coordinate and a //! single-use, payload-bound grant. use serde::de::DeserializeOwned; use serde::Serialize; use serde_json::Value; use tauri::{AppHandle, Manager}; fn input(payload: &Value) -> Result { let value = payload .get("input") .cloned() .ok_or_else(|| "HOLOLAKE_NUMBERED_IPC_INPUT_REQUIRED".to_string())?; serde_json::from_value(value) .map_err(|error| format!("HOLOLAKE_NUMBERED_IPC_INPUT_INVALID: {error}")) } fn string_field(payload: &Value, field: &str) -> Result { payload .get(field) .and_then(Value::as_str) .map(str::to_owned) .ok_or_else(|| format!("HOLOLAKE_NUMBERED_IPC_FIELD_REQUIRED: {field}")) } fn json(value: T) -> Result { serde_json::to_value(value) .map_err(|error| format!("HOLOLAKE_NUMBERED_IPC_RESULT_INVALID: {error}")) } pub(crate) async fn dispatch( app: AppHandle, handler: &str, payload: Value, ) -> Result { match handler { "kb_agent::kb_agent_acceptance" => { json(crate::kb_agent::kb_agent_acceptance(app).await?) } "agent_runtime::kb_agent_execute" => json( crate::agent_runtime::kb_agent_execute( app.clone(), string_field(&payload, "command")?, ) .await?, ), "agent_runtime::agent_settings_get" => { json(crate::agent_runtime::agent_settings_get(app.clone())?) } "agent_runtime::agent_settings_set" => { json(crate::agent_runtime::agent_settings_set( app.clone(), serde_json::from_value(payload.get("settings").cloned().unwrap_or(Value::Null)) .map_err(|error| format!("HOLOLAKE_AGENT_SETTINGS_INVALID: {error}"))?, )?) } "agent_runtime::agent_api_test" => json( crate::agent_runtime::agent_api_test( serde_json::from_value(payload.get("settings").cloned().unwrap_or(Value::Null)) .map_err(|error| format!("HOLOLAKE_AGENT_SETTINGS_INVALID: {error}"))?, ) .await?, ), "home_status::get_hololake_home_status" => { json(crate::home_status::get_hololake_home_status( app.clone(), app.state::(), )?) } "human_authorization::get_authorization_center" => { json(crate::human_authorization::get_center(&app)?) } "human_authorization::decide_authorization_request" => { let state = app.state::(); let (human_number, _) = crate::zero_point::verified_user_route(&state)? .ok_or_else(|| "HOLOLAKE_AUTHORIZATION_VERIFIED_HUMAN_REQUIRED".to_string())?; json(crate::human_authorization::decide( &app, input(&payload)?, &human_number, )?) } "external_ai_gateway::get_gateway_status" => { let state = app.state::(); crate::zero_point::verified_user_route(&state)? .ok_or_else(|| "HOLOLAKE_GATEWAY_VERIFIED_HUMAN_REQUIRED".to_string())?; json(crate::external_ai_gateway::get_gateway_status(app).await?) } "external_ai_gateway::set_gateway_exposure" => { let state = app.state::(); let (human_number, _) = crate::zero_point::verified_user_route(&state)? .ok_or_else(|| "HOLOLAKE_GATEWAY_VERIFIED_HUMAN_REQUIRED".to_string())?; json( crate::external_ai_gateway::set_gateway_exposure( app, input(&payload)?, &human_number, ) .await?, ) } "release_update::check_hololake_update" => { json(crate::release_update::check_hololake_update(app).await?) } "release_update::confirm_hololake_update_install" => json( crate::release_update::confirm_hololake_update_install(app, input(&payload)?).await?, ), "release_update::get_hololake_release_recovery_status" => json( crate::release_update::get_hololake_release_recovery_status(app)?, ), "release_update::confirm_hololake_release_health" => { json(crate::release_update::confirm_hololake_release_health(app)?) } "release_update::rollback_hololake_update" => { json(crate::release_update::rollback_hololake_update(app)?) } "direct_local_session::issue_direct_local_discovery_ticket" => json( crate::direct_local_session::issue_direct_local_discovery_ticket(app, input(&payload)?) .await?, ), "direct_local_session::open_direct_local_session" => json( crate::direct_local_session::open_direct_local_session(app, input(&payload)?).await?, ), "direct_local_session::resume_direct_local_session" => json( crate::direct_local_session::resume_direct_local_session(app, input(&payload)?).await?, ), "direct_local_session::append_direct_local_session_event" => json( crate::direct_local_session::append_direct_local_session_event(app, input(&payload)?) .await?, ), "direct_local_session::heartbeat_direct_local_session" => json( crate::direct_local_session::heartbeat_direct_local_session(app, input(&payload)?) .await?, ), "direct_local_broker::get_nearby_ai_discovery" => { json(crate::direct_local_broker::get_nearby_ai_discovery()) } "gls_protocol_runtime::get_gls_protocol_runtime" => { json(crate::gls_protocol_runtime::get_gls_protocol_runtime().await?) } "gls_protocol_kernel::get_gls_protocol_kernel" => { json(crate::gls_protocol_kernel::get_gls_protocol_kernel(app).await?) } "gls_protocol_kernel::decide_gls_protocol" => json( crate::gls_protocol_kernel::decide_gls_protocol( app, payload.get("input").cloned().unwrap_or(Value::Null), ) .await?, ), "gls_protocol_kernel::compile_gls_hldp_program" => json( crate::gls_protocol_kernel::compile_gls_hldp_program( app, payload.get("input").cloned().unwrap_or(Value::Null), ) .await?, ), "module_package_runtime::get_module_runtime_snapshot" => { json(crate::module_package_runtime::get_module_runtime_snapshot(app).await?) } "module_package_runtime::verify_module_package" => { json(crate::module_package_runtime::verify_module_package(app, input(&payload)?).await?) } "module_package_runtime::install_module_package" => json( crate::module_package_runtime::install_module_package(app, input(&payload)?).await?, ), "module_package_runtime::mount_module" => { json(crate::module_package_runtime::mount_module(app, input(&payload)?).await?) } "module_package_runtime::self_test_module" => { json(crate::module_package_runtime::self_test_module(app, input(&payload)?).await?) } "module_package_runtime::unmount_module" => { json(crate::module_package_runtime::unmount_module(app, input(&payload)?).await?) } "module_package_runtime::rollback_module" => { json(crate::module_package_runtime::rollback_module(app, input(&payload)?).await?) } "module_package_runtime::get_bundled_module_catalog" => { json(crate::module_package_runtime::get_bundled_module_catalog(app).await?) } "module_package_runtime::activate_bundled_module" => json( crate::module_package_runtime::activate_bundled_module(app, input(&payload)?).await?, ), "online_marketplace::get_marketplace_snapshot" => { json(crate::online_marketplace::get_marketplace_snapshot(app).await?) } "online_marketplace::sync_marketplace_catalog" => { json(crate::online_marketplace::sync_marketplace_catalog(app).await?) } "online_marketplace::install_marketplace_item" => { json(crate::online_marketplace::install_marketplace_item(app, input(&payload)?).await?) } "online_marketplace::uninstall_marketplace_item" => json( crate::online_marketplace::uninstall_marketplace_item(app, input(&payload)?).await?, ), "online_marketplace::rollback_marketplace_item" => { json(crate::online_marketplace::rollback_marketplace_item(app, input(&payload)?).await?) } "online_marketplace::get_active_cognitive_skills" => { json(crate::online_marketplace::get_active_cognitive_skills(app).await?) } "mobile_sync::start_mobile_sync" => json(crate::mobile_sync::start_mobile_sync(app)?), "mobile_sync::get_mobile_sync_status" => { json(crate::mobile_sync::get_mobile_sync_status(app)?) } "mobile_sync::rotate_mobile_pairing" => { json(crate::mobile_sync::rotate_mobile_pairing(app)?) } "mobile_sync::stop_mobile_sync" => json(crate::mobile_sync::stop_mobile_sync(app)?), "mobile_sync::revoke_mobile_sync_device" => json( crate::mobile_sync::revoke_mobile_sync_device(app, input(&payload)?)?, ), "mobile_sync::get_mobile_sync_snapshot" => { json(crate::mobile_sync::get_mobile_sync_snapshot(app)?) } "world_climate::get_world_climate" => { json(crate::world_climate::get_world_climate(app).await?) } "native_composition::get_native_composition_module_registry" => { json(crate::native_composition::get_native_composition_module_registry()) } "native_composition::execute_knowledge_native_composition" => json( crate::native_composition::execute_knowledge_native_composition(app, input(&payload)?) .await?, ), "channel_workbench::get_channel_workbench_snapshot" => { json(crate::channel_workbench::get_channel_workbench_snapshot(app).await?) } "channel_workbench::save_channel_document" => { json(crate::channel_workbench::save_channel_document(app, input(&payload)?).await?) } "channel_workbench::save_channel_spreadsheet" => { json(crate::channel_workbench::save_channel_spreadsheet(app, input(&payload)?).await?) } "persona_channel_body::get_persona_channel_body" => { json(crate::persona_channel_body::get_persona_channel_body(app).await?) } "persona_channel_body::register_trial_persona" => { json(crate::persona_channel_body::register_trial_persona(app, input(&payload)?).await?) } "persona_channel_body::delete_trial_persona" => { json(crate::persona_channel_body::delete_trial_persona(app, input(&payload)?).await?) } "persona_channel_body::accept_persona_language_contract" => json( crate::persona_channel_body::accept_persona_language_contract(app, input(&payload)?) .await?, ), "persona_channel_body::append_persona_language" => { json(crate::persona_channel_body::append_persona_language(app, input(&payload)?).await?) } "channel_growth::get_channel_growth_snapshot" => { json(crate::channel_growth::get_channel_growth_snapshot(app).await?) } "channel_growth::record_channel_growth_event" => { json(crate::channel_growth::record_channel_growth_event(app, input(&payload)?).await?) } "channel_growth::update_channel_growth_sharing" => { json(crate::channel_growth::update_channel_growth_sharing(app, input(&payload)?).await?) } "education_workspace::get_education_workspace_snapshot" => { json(crate::education_workspace::get_education_workspace_snapshot(app).await?) } "education_workspace::create_education_document" => json( crate::education_workspace::create_education_document(app, input(&payload)?).await?, ), "education_workspace::read_education_document" => { json(crate::education_workspace::read_education_document(app, input(&payload)?).await?) } "education_workspace::save_education_document" => { json(crate::education_workspace::save_education_document(app, input(&payload)?).await?) } "education_workspace::archive_education_document" => json( crate::education_workspace::archive_education_document(app, input(&payload)?).await?, ), "education_workspace::create_education_table" => { json(crate::education_workspace::create_education_table(app, input(&payload)?).await?) } "education_workspace::read_education_table" => { json(crate::education_workspace::read_education_table(app, input(&payload)?).await?) } "education_workspace::save_education_table" => { json(crate::education_workspace::save_education_table(app, input(&payload)?).await?) } "education_workspace::archive_education_table" => { json(crate::education_workspace::archive_education_table(app, input(&payload)?).await?) } "education_workspace::assign_imported_table_to_education" => json( crate::education_workspace::assign_imported_table_to_education(app, input(&payload)?) .await?, ), "education_translation::import_education_tables_from_dialog" => { json(crate::education_translation::import_education_tables_from_dialog(app).await?) } "education_translation::export_education_table_to_dialog" => json( crate::education_translation::export_education_table_to_dialog(app, input(&payload)?) .await?, ), "education_translation::get_education_recognition_capability" => { json(crate::education_translation::get_education_recognition_capability(app)?) } "education_workspace::create_education_automation_rule" => json( crate::education_workspace::create_education_automation_rule(app, input(&payload)?) .await?, ), "education_workspace::save_education_automation_rule" => json( crate::education_workspace::save_education_automation_rule(app, input(&payload)?) .await?, ), "education_workspace::archive_education_automation_rule" => json( crate::education_workspace::archive_education_automation_rule(app, input(&payload)?) .await?, ), "education_workspace::preview_education_automation_rule" => json( crate::education_workspace::preview_education_automation_rule(app, input(&payload)?) .await?, ), "education_workspace::execute_education_automation_rule" => json( crate::education_workspace::execute_education_automation_rule(app, input(&payload)?) .await?, ), "web_novel_workspace::get_web_novel_workspace_snapshot" => { json(crate::web_novel_workspace::get_web_novel_workspace_snapshot(app).await?) } "web_novel_workspace::create_web_novel_work" => { json(crate::web_novel_workspace::create_web_novel_work(app, input(&payload)?).await?) } "web_novel_workspace::read_web_novel_work" => { json(crate::web_novel_workspace::read_web_novel_work(app, input(&payload)?).await?) } "web_novel_workspace::save_web_novel_work" => { json(crate::web_novel_workspace::save_web_novel_work(app, input(&payload)?).await?) } "web_novel_workspace::create_web_novel_volume" => { json(crate::web_novel_workspace::create_web_novel_volume(app, input(&payload)?).await?) } "web_novel_workspace::create_web_novel_chapter" => { json(crate::web_novel_workspace::create_web_novel_chapter(app, input(&payload)?).await?) } "web_novel_workspace::read_web_novel_chapter" => { json(crate::web_novel_workspace::read_web_novel_chapter(app, input(&payload)?).await?) } "web_novel_workspace::save_web_novel_chapter" => { json(crate::web_novel_workspace::save_web_novel_chapter(app, input(&payload)?).await?) } "web_novel_workspace::transition_web_novel_chapter" => json( crate::web_novel_workspace::transition_web_novel_chapter(app, input(&payload)?).await?, ), "web_novel_workspace::create_web_novel_checkpoint" => json( crate::web_novel_workspace::create_web_novel_checkpoint(app, input(&payload)?).await?, ), "web_novel_workspace::restore_web_novel_checkpoint" => json( crate::web_novel_workspace::restore_web_novel_checkpoint(app, input(&payload)?).await?, ), "web_novel_workspace::upsert_web_novel_story_entity" => json( crate::web_novel_workspace::upsert_web_novel_story_entity(app, input(&payload)?) .await?, ), "web_novel_workspace::create_web_novel_story_relation" => json( crate::web_novel_workspace::create_web_novel_story_relation(app, input(&payload)?) .await?, ), "web_novel_workspace::upsert_web_novel_foreshadow" => json( crate::web_novel_workspace::upsert_web_novel_foreshadow(app, input(&payload)?).await?, ), "web_novel_workspace::create_web_novel_review_note" => json( crate::web_novel_workspace::create_web_novel_review_note(app, input(&payload)?).await?, ), "web_novel_workspace::resolve_web_novel_review_note" => json( crate::web_novel_workspace::resolve_web_novel_review_note(app, input(&payload)?) .await?, ), "web_novel_workspace::save_web_novel_metric" => { json(crate::web_novel_workspace::save_web_novel_metric(app, input(&payload)?).await?) } "web_novel_workspace::run_web_novel_continuity_audit" => json( crate::web_novel_workspace::run_web_novel_continuity_audit(app, input(&payload)?) .await?, ), "web_novel_workspace::export_web_novel_markdown" => json( crate::web_novel_workspace::export_web_novel_markdown(app, input(&payload)?).await?, ), "web_novel_import::inspect_web_novel_document_from_dialog" => { json(crate::web_novel_import::inspect_web_novel_document_from_dialog(app).await?) } "web_novel_import::commit_web_novel_document_import" => json( crate::web_novel_import::commit_web_novel_document_import(app, input(&payload)?) .await?, ), "web_novel_author::get_web_novel_author_snapshot" => json( crate::web_novel_author::get_web_novel_author_snapshot(app, input(&payload)?).await?, ), "web_novel_author::record_web_novel_writing_activity" => json( crate::web_novel_author::record_web_novel_writing_activity(app, input(&payload)?) .await?, ), "web_novel_author::create_web_novel_inspiration" => json( crate::web_novel_author::create_web_novel_inspiration(app, input(&payload)?).await?, ), "web_novel_author::set_web_novel_inspiration_status" => json( crate::web_novel_author::set_web_novel_inspiration_status(app, input(&payload)?) .await?, ), "web_novel_author::search_web_novel_full_text" => { json(crate::web_novel_author::search_web_novel_full_text(app, input(&payload)?).await?) } "web_novel_author::format_web_novel_chapter" => { json(crate::web_novel_author::format_web_novel_chapter(app, input(&payload)?).await?) } "web_novel_author::format_web_novel_work" => { json(crate::web_novel_author::format_web_novel_work(app, input(&payload)?).await?) } "web_novel_author::upsert_web_novel_shot" => { json(crate::web_novel_author::upsert_web_novel_shot(app, input(&payload)?).await?) } "web_novel_modules::get_web_novel_author_module_data" => json( crate::web_novel_modules::get_web_novel_author_module_data(app, input(&payload)?) .await?, ), "web_novel_modules::upsert_web_novel_author_scene" => json( crate::web_novel_modules::upsert_web_novel_author_scene(app, input(&payload)?).await?, ), "web_novel_modules::upsert_web_novel_author_beat" => json( crate::web_novel_modules::upsert_web_novel_author_beat(app, input(&payload)?).await?, ), "web_novel_modules::upsert_web_novel_story_field_definition" => json( crate::web_novel_modules::upsert_web_novel_story_field_definition( app, input(&payload)?, ) .await?, ), "web_novel_modules::upsert_web_novel_story_field_value" => json( crate::web_novel_modules::upsert_web_novel_story_field_value(app, input(&payload)?) .await?, ), "web_novel_modules::upsert_web_novel_timeline_event" => json( crate::web_novel_modules::upsert_web_novel_timeline_event(app, input(&payload)?) .await?, ), "web_novel_modules::link_web_novel_scene_entity" => json( crate::web_novel_modules::link_web_novel_scene_entity(app, input(&payload)?).await?, ), "web_novel_modules::restore_web_novel_chapter_version" => json( crate::web_novel_modules::restore_web_novel_chapter_version(app, input(&payload)?) .await?, ), "web_novel_modules::export_web_novel_author_delivery" => json( crate::web_novel_modules::export_web_novel_author_delivery(app, input(&payload)?) .await?, ), "local_development_bridge::acquire_development_write_lane" => json( crate::local_development_bridge::acquire_development_write_lane(app, input(&payload)?) .await?, ), "local_development_bridge::inspect_development_write_lane" => json( crate::local_development_bridge::inspect_development_write_lane(app, input(&payload)?) .await?, ), "local_development_bridge::release_development_write_lane" => json( crate::local_development_bridge::release_development_write_lane(app, input(&payload)?) .await?, ), "personal_channel::get_personal_channel_snapshot" => { json(crate::personal_channel::get_personal_channel_snapshot(app).await?) } "personal_channel::initialize_personal_channel" => { json(crate::personal_channel::initialize_personal_channel(app, input(&payload)?).await?) } "personal_channel::create_personal_channel_task" => json( crate::personal_channel::create_personal_channel_task(app, input(&payload)?).await?, ), "personal_channel::transition_personal_channel_task" => json( crate::personal_channel::transition_personal_channel_task(app, input(&payload)?) .await?, ), "persona_time_authority::issue_persona_time_ticket" => json( crate::persona_time_authority::issue_persona_time_ticket(app, input(&payload)?).await?, ), "persona_time_authority::start_persona_time_authority" => { json(crate::persona_time_authority::start_persona_time_authority().await?) } "persona_time_authority::get_beijing_time_coordinate" => { json(crate::persona_time_authority::get_beijing_time_coordinate()?) } "persona_time_authority::get_guanghu_era_timeline" => { json(crate::persona_time_authority::get_guanghu_era_timeline()?) } "knowledge_base::get_knowledge_snapshot" => { json(crate::knowledge_base::get_knowledge_snapshot(app).await?) } "knowledge_base::read_knowledge_document" => { json(crate::knowledge_base::read_knowledge_document(app, input(&payload)?).await?) } "knowledge_base::search_knowledge" => { json(crate::knowledge_base::search_knowledge(app, input(&payload)?).await?) } "knowledge_base::save_knowledge_document" => { json(crate::knowledge_base::save_knowledge_document(app, input(&payload)?).await?) } "knowledge_base::select_and_import_knowledge_folder" => { json(crate::knowledge_base::select_and_import_knowledge_folder(app).await?) } "knowledge_base::export_knowledge_document" => { json(crate::knowledge_base::export_knowledge_document(app, input(&payload)?).await?) } "knowledge_base::create_knowledge_document" => { json(crate::knowledge_base::create_knowledge_document(app, input(&payload)?).await?) } "knowledge_base::delete_knowledge_document" => { json(crate::knowledge_base::delete_knowledge_document(app, input(&payload)?).await?) } "knowledge_base::delete_knowledge_folder" => { json(crate::knowledge_base::delete_knowledge_folder(app, input(&payload)?).await?) } "knowledge_base::print_knowledge_document" => { crate::knowledge_base::print_knowledge_document(app).await?; Ok(Value::Null) } "code_channel::get_code_channel_snapshot" => { json(crate::code_channel::get_code_channel_snapshot(app).await?) } "code_channel::clone_code_channel" => { json(crate::code_channel::clone_code_channel(app, input(&payload)?).await?) } "code_channel::select_local_code_channel" => { json(crate::code_channel::select_local_code_channel(app).await?) } "code_channel::browse_code_channel" => { json(crate::code_channel::browse_code_channel(app, input(&payload)?).await?) } "code_channel::read_code_channel_file" => { json(crate::code_channel::read_code_channel_file(app, input(&payload)?).await?) } "pncc_repository_binding::inspect_mounted_pncc_repository" => json( crate::pncc_repository_binding::inspect_mounted_pncc_repository(app, input(&payload)?) .await?, ), "pncc_repository_binding::select_pncc_repository_candidate" => { json(crate::pncc_repository_binding::select_pncc_repository_candidate(app).await?) } "pncc_repository_binding::confirm_pncc_repository_mount" => json( crate::pncc_repository_binding::confirm_pncc_repository_mount(app, input(&payload)?) .await?, ), "pncc_receipt_projection::query_pncc_receipt_projection" => json( crate::pncc_receipt_projection::query_pncc_receipt_projection(app, input(&payload)?) .await?, ), "pncc_server_projection::query_jd_pncc_server_projection" => { json(crate::pncc_server_projection::query_jd_pncc_server_projection().await?) } "code_repo_login::check_code_repo_login" => { json(crate::code_repo_login::check_code_repo_login( app.clone(), app.state::(), )?) } "code_repo_login::perform_code_repo_login" => json( crate::code_repo_login::perform_code_repo_login( app.clone(), app.state::(), string_field(&payload, "username")?, string_field(&payload, "password")?, ) .await?, ), "code_repo_login::perform_machine_identity_login" => json( crate::code_repo_login::perform_machine_identity_login( app.clone(), app.state::(), ) .await?, ), "code_repo_login::change_first_login_password" => json( crate::code_repo_login::change_first_login_password( app.state::(), string_field(&payload, "username")?, string_field(&payload, "currentPassword")?, string_field(&payload, "newPassword")?, ) .await?, ), "code_repo_login::get_enterprise_entry" => json( crate::code_repo_login::get_enterprise_entry( app.clone(), app.state::(), ) .await?, ), "code_repo_login::confirm_enterprise_persona_relationship" => json( crate::code_repo_login::confirm_enterprise_persona_relationship( app.clone(), app.state::(), string_field(&payload, "decision")?, string_field(&payload, "idempotencyKey")?, ) .await?, ), "code_repo_login::submit_enterprise_responsibility_receipt" => json( crate::code_repo_login::submit_enterprise_responsibility_receipt( app.clone(), app.state::(), string_field(&payload, "decision")?, string_field(&payload, "note")?, string_field(&payload, "responsibilityVersion")?, string_field(&payload, "idempotencyKey")?, ) .await?, ), "enterprise_work_channel::ensure_enterprise_work_channel" => json( crate::enterprise_work_channel::ensure_enterprise_work_channel( app.clone(), app.state::(), ) .await?, ), "code_repo_login::sign_out_code_repo_login" => { crate::code_repo_login::sign_out_code_repo_login(app)?; Ok(Value::Null) } "user_pncc_channel::get_user_pncc_channel" => json( crate::user_pncc_channel::get_user_pncc_channel( app.clone(), app.state::(), ) .await?, ), "user_pncc_channel::ensure_user_pncc_channel" => json( crate::user_pncc_channel::ensure_user_pncc_channel( app.clone(), app.state::(), ) .await?, ), "zero_core_numbering::get_zero_core_numbering_kernel" => { json(crate::zero_core_numbering::get_zero_core_numbering_kernel().await?) } "zero_core_numbering::validate_human_number_route" => json( crate::zero_core_numbering::validate_human_number_route(string_field( &payload, "number", )?) .await?, ), "mother_brain_container::get_status" => { json(crate::living_cognitive_substrate::ui_status().await?) } "persona_observability::record" => { json(crate::persona_observability::record(app, input(&payload)?).await?) } "zero_point::zero_point_bind" => json( crate::zero_point::zero_point_bind( app.state::(), payload.get("input").cloned().unwrap_or(Value::Null), ) .await?, ), "zero_point::zero_point_verify" => json( crate::zero_point::zero_point_verify(app.state::()) .await?, ), "zero_point::zero_point_sync" => json( crate::zero_point::zero_point_sync(app.state::()) .await?, ), "zero_point::zero_point_status" => json( crate::zero_point::zero_point_status(app.state::()) .await?, ), _ => Err("HOLOLAKE_NUMBERED_IPC_HANDLER_UNKNOWN".into()), } }