Skip to main content

briefcase_node/
lib.rs

1//! Node.js bindings for Briefcase AI - AI observability and replay SDK
2
3#[macro_use]
4extern crate napi_derive;
5
6#[allow(unused_imports)]
7use briefcase_core::*;
8use napi::Result;
9
10// Simplified module that avoids NAPI-RS generic constraints
11mod simple_models;
12
13pub use simple_models::*;
14
15/// Initialize the module
16#[napi]
17pub fn init() -> Result<String> {
18    Ok("Briefcase AI Node.js bindings initialized".to_string())
19}
20
21/// Get module version
22#[napi]
23pub fn get_version() -> Result<String> {
24    Ok("0.1.0".to_string())
25}
26
27/// Get module author
28#[napi]
29pub fn get_author() -> Result<String> {
30    Ok("Briefcase AI Team".to_string())
31}