From 1a6447936286a450f81289b8f0a4906a832795d3 Mon Sep 17 00:00:00 2001 From: Nico Arqueros Date: Fri, 10 Jan 2025 16:42:15 -0600 Subject: [PATCH 1/2] fix --- shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs b/shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs index bb9615647..b1a6d79e4 100644 --- a/shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs +++ b/shinkai-bin/shinkai-node/src/utils/qr_code_setup.rs @@ -108,9 +108,13 @@ pub fn save_qr_data_to_local_image(qr_data: QRSetupData, name: String) { } pub fn print_qr_data_to_console(qr_data: QRSetupData, node_profile: &str) { + let version = env!("CARGO_PKG_VERSION"); + let api_key = std::env::var("API_V2_KEY").unwrap_or_else(|_| "Not set".to_string()); // Print qr_data to console in a beautiful way println!("Please scan the QR code below with your phone to register this device:"); println!("---------------------------------------------------------------"); + println!("Node version: {}", version); + println!("API v2 key (Bearer): {}", api_key); println!("Node registration code: {}", qr_data.registration_code); println!("Node profile: {}", node_profile); println!("Node identity type: {}", qr_data.identity_type); From 87b5b390294dd8ad72aa073cbf4e79a5b65a7f01 Mon Sep 17 00:00:00 2001 From: Nico Arqueros Date: Fri, 10 Jan 2025 17:37:49 -0600 Subject: [PATCH 2/2] remove --- shinkai-libs/shinkai-sqlite/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shinkai-libs/shinkai-sqlite/src/lib.rs b/shinkai-libs/shinkai-sqlite/src/lib.rs index 6b4fa861b..f2247d65d 100644 --- a/shinkai-libs/shinkai-sqlite/src/lib.rs +++ b/shinkai-libs/shinkai-sqlite/src/lib.rs @@ -889,7 +889,7 @@ impl SqliteManager { // Method to set the version and determine if a global reset is needed pub fn set_version(&self, version: &str) -> Result<()> { // Note: add breaking versions here as needed - let breaking_versions = ["0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4"]; + let breaking_versions = ["0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5"]; let needs_global_reset = self.get_version().map_or(false, |(current_version, _)| { breaking_versions