docs: fix credential return type, add missing test dir, update plan date

- docs/API.md: load_credentials returns Zeroizing<String> (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
This commit is contained in:
Claude 2026-04-23 10:08:34 +00:00
parent 890f0c2126
commit 66513519ab
No known key found for this signature in database
3 changed files with 8 additions and 4 deletions

View file

@ -1058,6 +1058,6 @@ This project is free and open-source software licensed under GPL v3.
--- ---
**Last Updated**: 2026-04-17 **Last Updated**: 2026-04-23
**Document Version**: 4.3 **Document Version**: 4.4
**Status**: Ready to Implement - Milestone-Driven Plan **Status**: Ready to Implement - Milestone-Driven Plan

View file

@ -353,12 +353,14 @@ Credentials are stored in the platform keychain (Windows Credential Manager, mac
```rust ```rust
use onyx_core::webdav::{store_credentials, load_credentials, delete_credentials}; use onyx_core::webdav::{store_credentials, load_credentials, delete_credentials};
use zeroize::Zeroizing;
// Store credentials // Store credentials
store_credentials("nextcloud.example.com", "username", "password")?; store_credentials("nextcloud.example.com", "username", "password")?;
// Load credentials (returns Zeroizing<String> wrappers that wipe memory on drop) // Load credentials — returns Zeroizing<String> wrappers that wipe memory on drop
let (username, password) = load_credentials("nextcloud.example.com")?; let (username, password): (Zeroizing<String>, Zeroizing<String>) =
load_credentials("nextcloud.example.com")?;
// Delete credentials // Delete credentials
delete_credentials("nextcloud.example.com")?; delete_credentials("nextcloud.example.com")?;

View file

@ -72,6 +72,8 @@ onyx/
│ │ ├── main.ts │ │ ├── main.ts
│ │ ├── app.css # Tailwind CSS 4 + theme │ │ ├── app.css # Tailwind CSS 4 + theme
│ │ ├── App.svelte │ │ ├── App.svelte
│ │ ├── test/
│ │ │ └── setup.ts
│ │ └── lib/ │ │ └── lib/
│ │ ├── screens/ # Full-page views │ │ ├── screens/ # Full-page views
│ │ ├── components/ # Reusable UI components │ │ ├── components/ # Reusable UI components