Expand description
Core types and the base frame plugin for picoframe Tauri apps.
Every picoframe plugin command returns a CliResult — a small, uniform
envelope the frontend’s typed defineCommand bindings unwrap. This mirrors
the engineer-assist CliResult pattern but trimmed to the essentials.
Re-exports§
pub use sidecar::Sidecar;pub use sidecar::SidecarOptions;
Modules§
- sidecar
- Long-lived local server (“sidecar”) lifecycle for picoframe apps.
Structs§
- CliResult
- Uniform result envelope returned by picoframe plugin commands.
Constants§
- STORE_
PATH - The single disk store file picoframe apps share, in the app data dir. Both the JS
side (
@picoframe/store’screateTauriStore) and Rust plugins open this file, so no plugin needs to own “the” store. Namespace keys by convention, e.g."hello.draft".
Functions§
- init
- The base frame plugin. Registered first in every picoframe app’s builder.
- reveal_
main_ window - Reveal the app’s
mainwindow with a background colour matching the OS light/dark appearance, so no default-white webview frame flashes before the UI paints. The native window pane that appears first follows the OS theme, so matching the webview background to it keeps the two seamless. - store
- Handle to the shared picoframe store for the Rust side. Requires the app to register
tauri_plugin_store::Builder::default().build()(the CLI app template does this).