1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # niwa-core
//!
//! Core library for NIWA Expertise Graph management.
//!
//! ## Features
//!
//! - SQLite-based Expertise storage with versioning
//! - Full-text search with FTS5
//! - Dependency graph (Relations)
//! - Type-safe operations with llm-toolkit Expertise types
//!
//! ## Example
//!
//! ```no_run
//! use niwa_core::{Database, Expertise, Scope, SearchOptions, StorageOperations};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! // Initialize database
//! let db = Database::open("~/.niwa/graph.db").await?;
//!
//! // Create expertise
//! let mut expertise = Expertise::new("rust-expert", "1.0.0");
//! expertise.metadata.scope = Scope::Personal;
//!
//! // Store
//! db.storage().create(expertise).await?;
//!
//! // Query
//! let results = db.query().search("rust error handling", SearchOptions::default()).await?;
//!
//! Ok(())
//! }
//! ```
// Re-exports for convenience
pub use Database;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
/// Library version
pub const VERSION: &str = env!;