opencode-readseek 0.8.16 → 0.8.18

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/index.ts +6 -3
  2. package/package.json +2 -2
package/index.ts CHANGED
@@ -1005,9 +1005,12 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
1005
1005
  : ["all", "ocr", "caption", "objects"];
1006
1006
  const withSearchFlags = (args: string[], input: { cached?: boolean; others?: boolean; ignored?: boolean }) => {
1007
1007
  if (input.ignored && !input.others) throw new Error("ignored requires others");
1008
- optionalFlag(args, input.cached, "--cached");
1009
- optionalFlag(args, input.others, "--others");
1010
- optionalFlag(args, input.ignored, "--ignored");
1008
+ const selection = [
1009
+ input.cached && "cached",
1010
+ input.others && "others",
1011
+ input.ignored && "ignored",
1012
+ ].filter((value): value is string => Boolean(value));
1013
+ if (selection.length > 0) args.push("--git", selection.join(","));
1011
1014
  };
1012
1015
 
1013
1016
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-readseek",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "description": "OpenCode plugin for readseek-backed structural code navigation",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -31,7 +31,7 @@
31
31
  "node": ">=20.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@jarkkojs/readseek": "^0.8.16",
34
+ "@jarkkojs/readseek": "^0.8.18",
35
35
  "@opencode-ai/plugin": "^1.17.20"
36
36
  },
37
37
  "devDependencies": {