@coreviz/cli 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/bin/cli.js +2 -2
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -25,19 +25,19 @@ coreviz [command]
25
25
  Login to CoreViz using device authorization:
26
26
 
27
27
  ```bash
28
- coreviz login
28
+ npx @coreviz/cli login
29
29
  ```
30
30
 
31
31
  Logout:
32
32
 
33
33
  ```bash
34
- coreviz logout
34
+ npx @coreviz/cli logout
35
35
  ```
36
36
 
37
37
  Check login status:
38
38
 
39
39
  ```bash
40
- coreviz whoami
40
+ npx @coreviz/cli whoami
41
41
  ```
42
42
 
43
43
  ### AI Features
@@ -45,19 +45,19 @@ coreviz whoami
45
45
  Describe an image:
46
46
 
47
47
  ```bash
48
- coreviz describe path/to/image.jpg
48
+ npx @coreviz/cli describe path/to/image.jpg
49
49
  ```
50
50
 
51
51
  Edit an image with a text prompt:
52
52
 
53
53
  ```bash
54
- coreviz edit path/to/image.jpg --prompt "make it cyberpunk style"
54
+ npx @coreviz/cli edit path/to/image.jpg --prompt "make it cyberpunk style"
55
55
  ```
56
56
 
57
57
  Search local images using natural language:
58
58
 
59
59
  ```bash
60
- coreviz search "a document with a red header"
60
+ npx @coreviz/cli search "a person wearing a red t-shirt"
61
61
  ```
62
62
 
63
63
  This will index the images in your current directory (creating a `.index.db` file) and return the top matches for your query.
package/bin/cli.js CHANGED
@@ -14,7 +14,7 @@ import fs from 'fs';
14
14
  import path from 'path';
15
15
  import Database from 'better-sqlite3';
16
16
 
17
- dotenv.config();
17
+ dotenv.config({ quiet: true });
18
18
 
19
19
  const config = new Conf({ projectName: 'coreviz-cli' });
20
20
  const program = new Command();
@@ -361,7 +361,7 @@ program.command('search <query>')
361
361
 
362
362
  try {
363
363
  const base64Image = readImageAsBase64(filePath);
364
- const { embedding } = await coreviz.embed(base64Image, { type: 'image' });
364
+ const { embedding } = await coreviz.embed(base64Image, { type: 'image', mode: 'local' });
365
365
 
366
366
  upsertFile.run(file, mtime, JSON.stringify(embedding));
367
367
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreviz/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "CoreViz CLI tool",
6
6
  "main": "index.js",
@@ -27,7 +27,7 @@
27
27
  "homepage": "https://github.com/CoreViz/cli#readme",
28
28
  "dependencies": {
29
29
  "@clack/prompts": "^0.11.0",
30
- "@coreviz/sdk": "^1.0.3",
30
+ "@coreviz/sdk": "^1.0.4",
31
31
  "better-auth": "^1.4.2",
32
32
  "better-sqlite3": "^12.4.6",
33
33
  "chalk": "^5.6.2",
@@ -37,4 +37,4 @@
37
37
  "open": "^11.0.0",
38
38
  "yocto-spinner": "^1.0.0"
39
39
  }
40
- }
40
+ }