Skip to content

v0.6.0

Choose a tag to compare

@scalecode-solutions scalecode-solutions released this 15 Feb 00:36
· 26 commits to main since this release

What's New

smc is now both a CLI tool and a Rust library. Use it programmatically in your own projects:

cargo add smc-cli-cc
use smc_cli_cc::{config::Config, search::{self, SearchOpts}};

let cfg = Config::new(None)?;
let files = cfg.discover_jsonl_files()?;

let opts = SearchOpts {
    queries: vec!["authentication".into()],
    project: Some("myapp".into()),
    ..SearchOpts::default()
};
search::search(&files, &opts)?;

Changes

  • Library crate — all modules publicly exported: config, models, search, session, display, analytics
  • analytics module — frequency analysis and stats available as library functions
  • SearchOpts::default() — ergonomic builder pattern for search options
  • docs.rs — auto-generated API documentation

Install / Update

cargo install smc-cli-cc