anveesa 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.lock CHANGED
@@ -60,7 +60,7 @@ dependencies = [
60
60
 
61
61
  [[package]]
62
62
  name = "anveesa"
63
- version = "0.3.7"
63
+ version = "0.3.9"
64
64
  dependencies = [
65
65
  "anyhow",
66
66
  "base64",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "anveesa"
3
- version = "0.3.7"
3
+ version = "0.3.9"
4
4
  edition = "2024"
5
5
  default-run = "anveesa"
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anveesa",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "A terminal CLI that wraps AI providers (OpenAI-compatible APIs and local CLIs) into a single unified command",
5
5
  "main": "bin/anveesa.js",
6
6
  "bin": {
package/src/lib.rs CHANGED
@@ -82,8 +82,7 @@ async fn run_interactive(options: AskOptions) -> Result<()> {
82
82
  .get(&provider_name)
83
83
  .with_context(|| format!("unknown provider '{provider_name}'"))?;
84
84
  let _tools_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
85
- let images_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
86
- let mut images_available = images_available;
85
+ let mut images_available = matches!(provider, ProviderConfig::OpenAiCompatible(_));
87
86
  let model = options
88
87
  .model
89
88
  .clone()
@@ -2030,7 +2029,7 @@ fn term_width() -> usize {
2030
2029
  }
2031
2030
 
2032
2031
  /// Cheap fingerprint for deduplication: length + first 64 base64 chars.
2033
- fn image_fingerprint(img: &ImageAttachment) -> String {
2032
+ pub fn image_fingerprint(img: &ImageAttachment) -> String {
2034
2033
  let prefix: String = img.data.chars().take(64).collect();
2035
2034
  format!("{}:{}", img.data.len(), prefix)
2036
2035
  }