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 client;
12mod simple_models;
13
14pub use client::*;
15pub use simple_models::*;
16
17/// Initialize the module
18#[napi]
19pub fn init() -> Result<String> {
20    Ok("Briefcase AI Node.js bindings initialized".to_string())
21}
22
23/// Get module version
24#[napi]
25pub fn get_version() -> Result<String> {
26    Ok(env!("CARGO_PKG_VERSION").to_string())
27}
28
29/// Get module author
30#[napi]
31pub fn get_author() -> Result<String> {
32    Ok("Briefcase AI Team".to_string())
33}