opencode-readseek 0.10.0 → 0.10.1

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/dist/index.js +15 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -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.1",
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,7 @@
32
32
  "node": ">=20.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "@jarkkojs/readseek-api": "^0.10.0",
35
+ "@jarkkojs/readseek-api": "^0.10.1",
36
36
  "@opencode-ai/plugin": "^1.18.18"
37
37
  },
38
38
  "devDependencies": {