@jarkkojs/readseek 0.4.33 → 0.5.0

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 (2) hide show
  1. package/README.md +29 -31
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -4,28 +4,28 @@
4
4
  It emits pretty-printed JSON with stable `LINE:HASH` anchors, structural symbol
5
5
  maps, parse diagnostics, AST search matches, references, and rename plans.
6
6
 
7
- Current documented CLI API: **0.4.x**.
8
-
9
7
  ## Install
10
8
 
9
+ Build the native binary from source:
10
+
11
11
  ```sh
12
- npm install -g @jarkkojs/readseek
12
+ cargo build --release
13
13
  ```
14
14
 
15
- Or build the native binary from source:
15
+ Or install the npm wrapper:
16
16
 
17
17
  ```sh
18
- cargo build --release
18
+ npm install -g @jarkkojs/readseek
19
19
  ```
20
20
 
21
21
  ## Common commands
22
22
 
23
23
  ```sh
24
24
  readseek detect src/main.rs
25
- readseek read src/main.rs --start 10 --end 20
25
+ readseek read src/main.rs:10 --end 20
26
26
  readseek map src/main.rs
27
27
  readseek check src/main.rs
28
- readseek symbol src/main.rs --name run
28
+ readseek symbol src/main.rs:run --name
29
29
  readseek identify src/main.rs:42 --column 8
30
30
  readseek def src run --language rust --format plain
31
31
  readseek refs src main --language rust --format plain
@@ -33,36 +33,40 @@ readseek search src 'fn $NAME() { $$$BODY }' --language rust
33
33
  readseek rename src/main.rs --line 42 --column 8 --to renamed
34
34
  ```
35
35
 
36
- Use `--stdin <path>` with `detect`, `read`, `map`, `check`, `symbol`, and
37
- `identify` to analyze unsaved editor buffers while still providing a path for
38
- language detection:
36
+ To write JSON output to a file instead of stdout, place the global option before
37
+ the command:
39
38
 
40
39
  ```sh
41
- printf '%s\n' 'fn main() {}' | readseek identify --stdin scratch.rs --line 1 --column 4
40
+ readseek --output result.json detect src/main.rs
42
41
  ```
43
42
 
44
- Use `def --from-identify` to pipe `identify` JSON into definition lookup:
43
+ Use a `stdin:` target prefix with `detect`, `read`, `map`, `check`, `symbol`,
44
+ and `identify` to analyze unsaved editor buffers while still providing a path
45
+ for language detection and a cursor address:
45
46
 
46
47
  ```sh
47
- readseek identify src/main.rs:42 --column 8 | readseek def --from-identify src --format plain
48
+ printf '%s\n' 'fn main() {}' | readseek identify stdin:scratch.rs:1 --column 4
48
49
  ```
49
50
 
50
51
  ## Images
51
52
 
52
- `detect` reports format, dimensions, and animation status for images. Add a vision
53
- flag to analyze image contents with the Qwen3-VL vision model:
53
+ `detect` reports format, dimensions, and animation status for images. `read`
54
+ runs vision analysis on images, defaulting to a caption; pass `--image` to choose
55
+ the task (BLIP, YOLOv8-nano, TrOCR):
54
56
 
55
57
  ```sh
56
- readseek detect screenshot.png --transcribe # text + per-region bounding quads
57
- readseek detect photo.jpg --caption # detailed natural-language caption
58
- readseek detect photo.jpg --objects # object labels + bounding boxes
58
+ readseek read photo.jpg # default: caption
59
+ readseek read photo.jpg --image caption # detailed natural-language caption
60
+ readseek read photo.jpg --image objects # object labels + bounding boxes
61
+ readseek read photo.jpg --image ocr # extracted text
59
62
  ```
60
63
 
61
- The flags can be combined; the model loads once per invocation. The model files
62
- (~1.1 GB GGUF + ~0.8 GB multimodal projection) are downloaded lazily into the
63
- user cache directory on first vision use and reused on subsequent runs; a
64
- progress bar is shown while downloading when stdout is an interactive TTY.
65
- Inference is CPU-only and takes a few to tens of seconds per image.
64
+ Each invocation selects one mode; the requested model loads once. The model files
65
+ (~258 MB BLIP GGUF + ~6 MB YOLOv8-nano + ~1.24 GB TrOCR) are downloaded lazily
66
+ into the user cache directory on first vision use and reused on subsequent runs;
67
+ a progress bar is shown while downloading when stdout is an interactive TTY.
68
+ Inference is CPU-only; object detection and OCR take seconds and captioning up to
69
+ a couple of minutes per image.
66
70
 
67
71
  ## Cache
68
72
 
@@ -83,11 +87,5 @@ Pass `--help` to any command for command-specific usage.
83
87
 
84
88
  ## Licensing
85
89
 
86
- The JavaScript npm wrapper is licensed under `Apache-2.0`. The Rust source and
87
- native binaries are licensed under `LGPL-2.1-or-later`. Corresponding source for
88
- each published native binary is available from the GitHub repository tag that
89
- matches the package version.
90
-
91
- readseek downloads the Qwen3-VL vision model (`Qwen/Qwen3-VL-2B-Instruct-GGUF`,
92
- quantized from `Qwen/Qwen3-VL-2B-Instruct`) into the user cache directory on
93
- first use. It is licensed under `Apache-2.0`.
90
+ `readseek` is licensed under `LGPL-2.1-or-later`. The JavaScript npm wrapper
91
+ is licensed under `Apache-2.0`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarkkojs/readseek",
3
- "version": "0.4.33",
3
+ "version": "0.5.0",
4
4
  "description": "A structural read command",
5
5
  "license": "Apache-2.0 AND LGPL-2.1-or-later",
6
6
  "homepage": "https://github.com/jarkkojs/readseek#readme",
@@ -21,9 +21,9 @@
21
21
  "LICENSE-LGPL-2.1"
22
22
  ],
23
23
  "optionalDependencies": {
24
- "@jarkkojs/readseek-darwin-arm64": "0.4.33",
25
- "@jarkkojs/readseek-linux-x64": "0.4.33",
26
- "@jarkkojs/readseek-win32-x64": "0.4.33"
24
+ "@jarkkojs/readseek-darwin-arm64": "0.5.0",
25
+ "@jarkkojs/readseek-linux-x64": "0.5.0",
26
+ "@jarkkojs/readseek-win32-x64": "0.5.0"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"