opencode-readseek 0.10.0 → 0.10.2

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 +2 -2
  2. package/dist/index.js +21 -15
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -17,11 +17,11 @@ OpenCode V2 can load the same package using `"plugins": ["opencode-readseek"]`.
17
17
  The V2 entrypoint supplies a ReadSeek skill and agent guidance, but OpenCode V2
18
18
  currently has no plugin API for registering custom tools. The `readseek_*` tools
19
19
  listed below require the legacy server plugin API. To use the V2 skill without
20
- those tools, install `@jarkkojs/readseek-api` globally so `readseek` is on PATH;
20
+ those tools, install `@jarkkojs/readseek` globally so `readseek` is on PATH;
21
21
  otherwise use OpenCode's built-in tools.
22
22
 
23
23
  The plugin uses the AppImage on Linux (without FUSE) and native executables on
24
- macOS/Windows supplied by `@jarkkojs/readseek-api`. Set
24
+ macOS/Windows supplied by `@jarkkojs/readseek`. Set
25
25
  `READSEEK_BINARY` to an absolute executable path to override it.
26
26
 
27
27
  ## Tools
package/dist/index.js CHANGED
@@ -918,18 +918,18 @@ function resolveReadSeekBinaryFromPackages(resolver = resolveFromPackage, option
918
918
  const platformPackage = READSEEK_PLATFORM_PACKAGES[key];
919
919
  if (!platformPackage) {
920
920
  const supported = Object.keys(READSEEK_PLATFORM_PACKAGES).join(", ");
921
- throw new Error(`@jarkkojs/readseek-api ships no binary for ${key}; it supports ${supported}`);
921
+ throw new Error(`@jarkkojs/readseek ships no binary for ${key}; it supports ${supported}`);
922
922
  }
923
- const metaPackage = options.metaPackage ?? "@jarkkojs/readseek-api";
924
- const metaPackageJson = resolve(`${metaPackage}/package.json`);
925
- const metaPackageDir = path.dirname(metaPackageJson);
923
+ const metaPackage = options.metaPackage ?? "@jarkkojs/readseek";
926
924
  let packageJsonPath;
927
925
  try {
928
- packageJsonPath = resolve(`${platformPackage}/package.json`);
929
- } catch {
926
+ const metaPackageJson = resolve(`${metaPackage}/package.json`);
927
+ const metaPackageDir = path.dirname(metaPackageJson);
930
928
  packageJsonPath = resolve(`${platformPackage}/package.json`, {
931
929
  paths: [metaPackageDir]
932
930
  });
931
+ } catch {
932
+ packageJsonPath = resolve(`${platformPackage}/package.json`);
933
933
  }
934
934
  const binaryPath = path.join(path.dirname(packageJsonPath), "bin", readSeekBinaryName(platform));
935
935
  accessSync(binaryPath, fsConstants.X_OK);
@@ -1420,15 +1420,21 @@ var SymbolOutput = Type.Object({
1420
1420
  start_anchor: OptStr,
1421
1421
  end_anchor: OptStr
1422
1422
  });
1423
- var MapNode = Type.Recursive((Self) => Type.Object({
1424
- kind: Str,
1425
- name: Str,
1426
- start_line: Int,
1427
- end_line: Int,
1428
- start_anchor: Str,
1429
- end_anchor: Str,
1430
- children: Type.Array(Self)
1431
- }));
1423
+ function mapNodeShape(child) {
1424
+ return Type.Object({
1425
+ kind: Str,
1426
+ name: Str,
1427
+ start_line: Int,
1428
+ end_line: Int,
1429
+ start_anchor: Str,
1430
+ end_anchor: Str,
1431
+ children: Type.Array(child)
1432
+ });
1433
+ }
1434
+ function recursiveMapNode() {
1435
+ return Type.Recursive((self) => mapNodeShape(self));
1436
+ }
1437
+ var MapNode = typeof Type.Recursive === "function" ? recursiveMapNode() : Type.Cyclic({ MapNode: mapNodeShape(Type.Ref("MapNode")) }, "MapNode");
1432
1438
  var MapOutput = Type.Object({
1433
1439
  file: Str,
1434
1440
  language: Str,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-readseek",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "OpenCode plugin for anchored file operations and structural code navigation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,7 +32,8 @@
32
32
  "node": ">=20.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "@jarkkojs/readseek-api": "^0.10.0",
35
+ "@jarkkojs/readseek": "^0.10.2",
36
+ "@jarkkojs/readseek-api": "^0.10.2",
36
37
  "@opencode-ai/plugin": "^1.18.18"
37
38
  },
38
39
  "devDependencies": {