opencode-readseek 0.10.7 → 0.11.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 (4) hide show
  1. package/README.md +50 -5
  2. package/dist/index.js +1623 -1437
  3. package/dist/v2.js +23 -0
  4. package/package.json +3 -3
package/dist/v2.js CHANGED
@@ -9,6 +9,29 @@ var SKILL = {
9
9
 
10
10
  When ReadSeek tools are unavailable, use the readseek CLI for structural navigation and anchored edits if it is installed and available on PATH. Run \`readseek --help\` to inspect supported commands before invoking them. Get fresh anchors before editing; re-read after external file changes.
11
11
 
12
+ Commands use verb-object pairs, with the target path positional:
13
+
14
+ \`\`\`sh
15
+ readseek show content file.ts --at line:10 --limit 40 --kdl
16
+ readseek show structure file.ts --depth 1 --kdl
17
+ readseek show metadata paper.pdf --kdl
18
+ readseek show assets paper.pdf --at page:2 --kdl
19
+ readseek check syntax file.ts --kdl
20
+ readseek check rules . --rules @checks.kdl --kdl
21
+ readseek find nodes src --pattern 'console.log($$$ARGS)' --kdl
22
+ readseek find text src --text 'TODO' --kdl
23
+ readseek find definitions src --name main --kdl
24
+ readseek find references file.ts --at line:10:3 --kdl
25
+ readseek edit text file.ts --edits @edits.kdl --kdl
26
+ readseek rename symbol file.ts --at line:10:3 --to nextName --kdl
27
+ \`\`\`
28
+
29
+ Native \`find text\` is literal, not regex. Reference selection requires exactly one of \`--name\` or \`--at\`; rename requires a line or hash cursor. Preview mutations first, then use \`--apply --plan-hash HASH\` with the returned plan hash. Edit requests are KDL: for example, \`set_line anchor="10:HASH" new_text="replacement"\`.
30
+
31
+ Syntax and rule checks return exit 0 when clean, 1 for findings, and 2 on failure. Exit 1 is not a transport failure. Syntax checks are parser checks, not type checking.
32
+
33
+ Content and assets return cached paths; assets auto-materialize. Read those paths directly. There is no extract command or asset destination option. Reading does not invoke inference. Request inference explicitly with \`generate caption\` (optionally \`--include text,objects\`), \`detect objects\`, or \`recognize text\`, using \`--level low|medium|high\` and an installed model; models are never downloaded automatically.
34
+
12
35
  This V2 plugin supplies guidance only; it does not register readseek_* tools. If the CLI is unavailable, use OpenCode's built-in tools instead.`
13
36
  };
14
37
  var ReadSeekV2Plugin = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-readseek",
3
- "version": "0.10.7",
3
+ "version": "0.11.1",
4
4
  "description": "OpenCode plugin for anchored file operations and structural code navigation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "node": ">=20.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@jarkkojs/readseek": "^0.10.7",
37
- "@jarkkojs/readseek-api": "^0.10.7",
36
+ "@jarkkojs/readseek": "^0.11.1",
37
+ "@jarkkojs/readseek-api": "^0.11.1",
38
38
  "@opencode-ai/plugin": "^1.18.18"
39
39
  },
40
40
  "devDependencies": {