v0.2.6-pre.005-fix.001

This commit is contained in:
2026-08-21 09:43:48 +02:00
parent 7aa38b0daf
commit 63e711629f
10 changed files with 157 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "ksp-app-wallet-desk",
"private": true,
"version": "0.2.6-pre.5",
"version": "0.2.6-pre.5.fix.1",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/app_state.rs
// version: 5
// version: 6
//! Shared backend state owned by the Wallet Desk Tauri application.
@@ -186,7 +186,7 @@ impl AppState {
std::result::Result::Ok(value) => value,
std::result::Result::Err(_) => return std::result::Result::Err(session_lock_error()),
};
*session = crate::WalletSession::Owner { wallet_id: filename.clone(), path: destination, wallet: owner };
*session = crate::WalletSession::Owner { wallet_id: filename.clone(), path: destination, wallet: std::boxed::Box::new(owner) };
ksp_logging_lib::info!(target: crate::TRACING_TARGET, domain = crate::TRACING_DOMAIN_WALLET_SESSION, wallet_id = filename.as_str(), view_enabled, "Wallet created and OWNER session opened");
return std::result::Result::Ok(dto);
}

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/wallet_session.rs
// version: 1
// version: 2
//! Durable root-scoped Wallet session lifecycle for Wallet Desk.
@@ -102,7 +102,7 @@ pub(crate) enum WalletSession {
/// Full root-scoped filesystem path retained only in Rust.
path: std::path::PathBuf,
/// Authorized OWNER handle retaining secret material only in Rust.
wallet: ksp_wallet_lib::WalletOwner,
wallet: std::boxed::Box<ksp_wallet_lib::WalletOwner>,
},
}

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "KSP Wallet Desk",
"version": "0.2.6-pre.5",
"version": "0.2.6-pre.5.fix.1",
"identifier": "com.sasedev.ksp-app-wallet-desk",
"build": {
"beforeDevCommand": "npm run dev",

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/tests/desktop_security.rs
// version: 3
// version: 4
//! Static desktop security contracts for the Wallet Desk pre.002 shell.
@@ -56,6 +56,9 @@ fn create_passwords_are_request_only_and_protected_projection_is_purged() {
assert!(authorized.is_some());
let authorized = authorized.unwrap_or_default().split("}\n\n/// Create request").next().unwrap_or_default();
assert!(!authorized.contains("password"));
let request_start = session.find("pub(crate) struct WalletCreateRequestDto");
assert!(request_start.is_some());
let request_start = request_start.unwrap_or_default();
assert!(session[request_start..].contains("owner_password"));
assert!(session[request_start..].contains("view_password"));
assert!(main.contains("clearAuthorizedProjection"));