opencode-readseek 0.6.7 → 0.6.8
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 +1 -1
- package/index.ts +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ results that contain actual hashlines, and adds current anchors plus pending
|
|
|
34
34
|
dry-run rename plans to the OpenCode compaction context. Text reads return at
|
|
35
35
|
most 2000 lines by default.
|
|
36
36
|
|
|
37
|
-
`imageMode` defaults to `"auto"`: it exposes `none`, `ocr`, `caption`, and
|
|
37
|
+
`imageMode` defaults to `"auto"`: it exposes `none`, `all`, `ocr`, `caption`, and
|
|
38
38
|
`objects`. `"on"` omits `none`; `"off"` skips image/PDF files. Omitting
|
|
39
39
|
`image` also skips visual files.
|
|
40
40
|
|
package/index.ts
CHANGED
|
@@ -30,7 +30,7 @@ type Presentation = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
type ImagePolicy = "on" | "auto" | "off";
|
|
33
|
-
type ImageMode = "none" | "ocr" | "caption" | "objects";
|
|
33
|
+
type ImageMode = "none" | "all" | "ocr" | "caption" | "objects";
|
|
34
34
|
|
|
35
35
|
function resolveImagePolicy(options: PluginOptions | undefined): ImagePolicy {
|
|
36
36
|
const value = options?.imageMode;
|
|
@@ -506,8 +506,8 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
|
|
|
506
506
|
const anchors = new SessionAnchors();
|
|
507
507
|
const imagePolicy = resolveImagePolicy(options);
|
|
508
508
|
const imageModes: readonly ImageMode[] = imagePolicy === "auto"
|
|
509
|
-
? ["none", "ocr", "caption", "objects"]
|
|
510
|
-
: ["ocr", "caption", "objects"];
|
|
509
|
+
? ["none", "all", "ocr", "caption", "objects"]
|
|
510
|
+
: ["all", "ocr", "caption", "objects"];
|
|
511
511
|
const withSearchFlags = (args: string[], input: { cached?: boolean; others?: boolean; ignored?: boolean }) => {
|
|
512
512
|
if (input.ignored && !input.others) throw new Error("ignored requires others");
|
|
513
513
|
optionalFlag(args, input.cached, "--cached");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-readseek",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"description": "OpenCode plugin for readseek-backed structural code navigation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=20.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jarkkojs/readseek": "^0.6.
|
|
33
|
+
"@jarkkojs/readseek": "^0.6.8",
|
|
34
34
|
"@opencode-ai/plugin": "^1.17.20"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|