From 66513519ab7ce2094cc5fbf92d0fe6769547b737 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Apr 2026 10:08:34 +0000 Subject: [PATCH] docs: fix credential return type, add missing test dir, update plan date - docs/API.md: load_credentials returns Zeroizing (not String) - docs/DEVELOPMENT.md: add src/test/ directory to project structure - PLAN.md: update Last Updated to 2026-04-23, bump version to 4.4 https://claude.ai/code/session_01By1aj94LMM7muDV7AT4egk --- PLAN.md | 4 ++-- docs/API.md | 6 ++++-- docs/DEVELOPMENT.md | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PLAN.md b/PLAN.md index 800f5cc..d80f0bb 100644 --- a/PLAN.md +++ b/PLAN.md @@ -1058,6 +1058,6 @@ This project is free and open-source software licensed under GPL v3. --- -**Last Updated**: 2026-04-17 -**Document Version**: 4.3 +**Last Updated**: 2026-04-23 +**Document Version**: 4.4 **Status**: Ready to Implement - Milestone-Driven Plan diff --git a/docs/API.md b/docs/API.md index f8b3c1d..8ab5285 100644 --- a/docs/API.md +++ b/docs/API.md @@ -353,12 +353,14 @@ Credentials are stored in the platform keychain (Windows Credential Manager, mac ```rust use onyx_core::webdav::{store_credentials, load_credentials, delete_credentials}; +use zeroize::Zeroizing; // Store credentials store_credentials("nextcloud.example.com", "username", "password")?; -// Load credentials (returns Zeroizing wrappers that wipe memory on drop) -let (username, password) = load_credentials("nextcloud.example.com")?; +// Load credentials — returns Zeroizing wrappers that wipe memory on drop +let (username, password): (Zeroizing, Zeroizing) = + load_credentials("nextcloud.example.com")?; // Delete credentials delete_credentials("nextcloud.example.com")?; diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 7185810..c06c650 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -72,6 +72,8 @@ onyx/ │ │ ├── main.ts │ │ ├── app.css # Tailwind CSS 4 + theme │ │ ├── App.svelte +│ │ ├── test/ +│ │ │ └── setup.ts │ │ └── lib/ │ │ ├── screens/ # Full-page views │ │ ├── components/ # Reusable UI components