pi-readseek 0.9.9 → 0.9.11

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 +12 -8
  2. package/dist/index.ts +1456 -1231
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  `pi-readseek` adds ReadSeek's anchored file operations, structural search,
4
4
  symbol navigation, and document tools to Pi. Built-ins remain available unless
5
5
  `overrideTools` maps `read`, `edit`, `write`, or `grep` to a ReadSeek-backed
6
- implementation.
6
+ implementation. The `read` override runs ReadSeek's `digest` command; it does not
7
+ add a separate `readSeek_read` tool.
7
8
 
8
9
  ## Install
9
10
 
@@ -12,7 +13,9 @@ pi install npm:pi-readseek
12
13
  ```
13
14
 
14
15
  The package depends on `@jarkkojs/readseek`, which supplies the native binary on
15
- supported platforms.
16
+ supported platforms. The extension uses that packaged binary exclusively; an
17
+ unresolved binary indicates a broken installation rather than falling back to an
18
+ unrelated `readseek` executable on `PATH`.
16
19
 
17
20
  ## Tools
18
21
 
@@ -49,7 +52,6 @@ Defaults:
49
52
  "maxBytes": 51200
50
53
  },
51
54
  "display": {
52
- "read": "compact",
53
55
  "grep": "compact",
54
56
  "edit": "expanded",
55
57
  "write": "expanded"
@@ -59,10 +61,12 @@ Defaults:
59
61
  ```
60
62
 
61
63
  - `overrideTools`: any of `"read"`, `"edit"`, `"write"`, and `"grep"`.
62
- - `imageMode`: `"auto"` uses Pi's native image input when available, `"on"`
63
- always runs local analysis, and `"off"` skips standalone images. Image modes
64
- are `all`, `ocr`, `caption`, and `objects`; in `"auto"`, `none` returns a
65
- prepared image without local analysis. Documents use `readSeek_view` with
64
+ - `imageMode`: controls standalone images when `digest` overrides `read`.
65
+ `"auto"` passes the prepared image to image-capable Pi models and otherwise
66
+ runs local analysis, `"on"` always runs local analysis, and `"off"` skips the
67
+ image. Local analysis defaults to `all` and also supports `ocr`, `caption`, and
68
+ `objects` through `visionMode`. The namespaced `readSeek_digest` tool applies
69
+ `visionMode` directly, including `none`. Documents use `readSeek_view` with
66
70
  optional `visionMode` and `visionLevel`. Local analysis uses
67
71
  [Qwen3-VL-2B-Instruct](../../docs/models/qwen3-vl-2b-instruct.md).
68
72
  - `syntaxValidation`: `"warn"` (write and warn), `"block"` (abort), or `"off"`.
@@ -71,7 +75,7 @@ Defaults:
71
75
  - `timeoutMs`: native command timeout in milliseconds.
72
76
  - `grep.maxLines` and `grep.maxBytes`: output limits; larger values are clamped
73
77
  to the defaults.
74
- - `display`: initial `"compact"` or `"expanded"` state for `read`, `grep`,
78
+ - `display`: initial `"compact"` or `"expanded"` state for `grep`,
75
79
  `edit`, and `write` results.
76
80
 
77
81
  ## Development