opencode-readseek 0.7.9 → 0.8.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.
- package/index.ts +6 -6
- package/package.json +2 -2
package/index.ts
CHANGED
|
@@ -1037,7 +1037,7 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
|
|
|
1037
1037
|
args.push("--end", String((input.offset ?? 1) + ((input.limit as number | undefined) ?? DEFAULT_READ_LIMIT) - 1));
|
|
1038
1038
|
}
|
|
1039
1039
|
if (input.language) args.push("--language", input.language as string);
|
|
1040
|
-
if (image !== undefined) args.push("--
|
|
1040
|
+
if (image !== undefined) args.push("--vision-mode", image);
|
|
1041
1041
|
if (pdf) args.push("--page", String(input.page ?? 1));
|
|
1042
1042
|
return runReadSeek(context, args);
|
|
1043
1043
|
},
|
|
@@ -1208,8 +1208,8 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
|
|
|
1208
1208
|
const target = resolvePath(context.directory, (input.path as string | undefined) ?? ".");
|
|
1209
1209
|
const args = ["refs", target, input.name as string];
|
|
1210
1210
|
optionalFlag(args, input.scope as boolean | undefined, "--scope");
|
|
1211
|
-
if (input.line) args.push("--line", String(input.line));
|
|
1212
|
-
if (input.column) args.push("--column", String(input.column));
|
|
1211
|
+
if (input.line !== undefined) args.push("--line", String(input.line));
|
|
1212
|
+
if (input.column !== undefined) args.push("--column", String(input.column));
|
|
1213
1213
|
if (input.language) args.push("--language", input.language as string);
|
|
1214
1214
|
withSearchFlags(args, input);
|
|
1215
1215
|
await authorizeSearch(context, target, input.name as string);
|
|
@@ -1229,7 +1229,7 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
|
|
|
1229
1229
|
const filePath = resolvePath(context.directory, input.path as string);
|
|
1230
1230
|
await authorizeRead(context, filePath);
|
|
1231
1231
|
const args = ["identify", `${filePath}:${input.line}`];
|
|
1232
|
-
if (input.column) args.push("--column", String(input.column));
|
|
1232
|
+
if (input.column !== undefined) args.push("--column", String(input.column));
|
|
1233
1233
|
if (input.language) args.push("--language", input.language as string);
|
|
1234
1234
|
return runReadSeek(context, args);
|
|
1235
1235
|
},
|
|
@@ -1250,13 +1250,13 @@ export const ReadSeekPlugin: Plugin = async (_input, options) => {
|
|
|
1250
1250
|
await authorizeRead(context, filePath);
|
|
1251
1251
|
if (input.workspace) {
|
|
1252
1252
|
const identifyArgs = ["identify", `${filePath}:${input.line}`];
|
|
1253
|
-
if (input.column) identifyArgs.push("--column", String(input.column));
|
|
1253
|
+
if (input.column !== undefined) identifyArgs.push("--column", String(input.column));
|
|
1254
1254
|
const name = identifiedName(await runReadSeek(context, identifyArgs));
|
|
1255
1255
|
if (!name) throw new Error("readseek could not identify a binding at the rename cursor");
|
|
1256
1256
|
await authorizeSearch(context, context.directory, name);
|
|
1257
1257
|
}
|
|
1258
1258
|
const args = ["rename", filePath, "--line", String(input.line), "--to", input.to as string];
|
|
1259
|
-
if (input.column) args.push("--column", String(input.column));
|
|
1259
|
+
if (input.column !== undefined) args.push("--column", String(input.column));
|
|
1260
1260
|
if (input.workspace) args.push("--workspace", context.directory);
|
|
1261
1261
|
const plan = await runReadSeek(context, args);
|
|
1262
1262
|
if (input.apply === false) return plan;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-readseek",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
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.
|
|
33
|
+
"@jarkkojs/readseek": "^0.8.0",
|
|
34
34
|
"@opencode-ai/plugin": "^1.17.20"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|