@jarkkojs/readseek 0.4.34 → 0.5.1
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/README.md +24 -30
- 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
|
-
|
|
12
|
+
cargo build --release
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Or
|
|
15
|
+
Or install the npm wrapper:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
|
|
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
|
|
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
|
|
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,32 +33,35 @@ 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
|
-
|
|
37
|
-
|
|
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
|
-
|
|
40
|
+
readseek --output result.json detect src/main.rs
|
|
42
41
|
```
|
|
43
42
|
|
|
44
|
-
Use
|
|
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
|
-
|
|
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.
|
|
53
|
-
|
|
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
|
|
57
|
-
readseek
|
|
58
|
-
readseek
|
|
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
|
-
|
|
64
|
+
Each invocation selects one mode; the requested model loads once. The model files
|
|
62
65
|
(~258 MB BLIP GGUF + ~6 MB YOLOv8-nano + ~1.24 GB TrOCR) are downloaded lazily
|
|
63
66
|
into the user cache directory on first vision use and reused on subsequent runs;
|
|
64
67
|
a progress bar is shown while downloading when stdout is an interactive TTY.
|
|
@@ -84,14 +87,5 @@ Pass `--help` to any command for command-specific usage.
|
|
|
84
87
|
|
|
85
88
|
## Licensing
|
|
86
89
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
each published native binary is available from the GitHub repository tag that
|
|
90
|
-
matches the package version.
|
|
91
|
-
|
|
92
|
-
readseek downloads the BLIP caption model (a quantized GGUF from
|
|
93
|
-
`lmz/candle-blip`, with the tokenizer from `Salesforce/blip-image-captioning-large`),
|
|
94
|
-
the YOLOv8-nano object-detection model (`lmz/candle-yolo-v8`), and the TrOCR
|
|
95
|
-
printed-text model (`microsoft/trocr-base-printed`) into the `models/` subdirectory
|
|
96
|
-
of the user cache on first use. BLIP is licensed under `BSD-3-Clause`; YOLOv8-nano
|
|
97
|
-
is derived from Ultralytics YOLOv8 (`AGPL-3.0`); TrOCR is released by Microsoft.
|
|
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.
|
|
3
|
+
"version": "0.5.1",
|
|
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.
|
|
25
|
-
"@jarkkojs/readseek-linux-x64": "0.
|
|
26
|
-
"@jarkkojs/readseek-win32-x64": "0.
|
|
24
|
+
"@jarkkojs/readseek-darwin-arm64": "0.5.1",
|
|
25
|
+
"@jarkkojs/readseek-linux-x64": "0.5.1",
|
|
26
|
+
"@jarkkojs/readseek-win32-x64": "0.5.1"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|