opencode-readseek 0.11.4 → 0.12.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 +22 -17
  2. package/dist/index.js +733 -360
  3. package/dist/v2.js +15 -15
  4. package/package.json +3 -3
package/dist/v2.js CHANGED
@@ -9,28 +9,28 @@ 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:
12
+ Commands use flat single-word verbs, with target and primary query arguments positional:
13
13
 
14
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
15
+ readseek show file.ts --at line:10 --limit 40 --kdl
16
+ readseek tree file.ts --depth 1 --kdl
17
+ readseek meta paper.pdf --kdl
18
+ readseek assets paper.pdf --at page:2 --kdl
19
+ readseek syntax file.ts --kdl
20
+ readseek check . @checks.kdl --kdl
21
+ readseek search 'console.log($$$ARGS)' src --kdl
22
+ readseek grep 'TODO' src --kdl
23
+ readseek def main src --kdl
24
+ readseek refs file.ts --at line:10:3 --kdl
25
+ readseek edit file.ts @edits.kdl --kdl
26
+ readseek rename file.ts --at line:10:3 nextName --kdl
27
27
  \`\`\`
28
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"\`.
29
+ Native \`grep\` uses UTF-8 RE2 regex by default; add \`--literal\` for exact text. Its positive \`--limit\` defaults to 100 matching lines, not occurrences. Reference selection requires either a symbol \`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
30
 
31
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
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.
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 \`caption\` (optionally \`--include text,objects\`), \`objects\`, or \`ocr\`, using \`--level low|medium|high\` and an installed model; models are never downloaded automatically.
34
34
 
35
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.`
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-readseek",
3
- "version": "0.11.4",
3
+ "version": "0.12.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.11.4",
37
- "@jarkkojs/readseek-api": "^0.11.4",
36
+ "@jarkkojs/readseek": "^0.12.1",
37
+ "@jarkkojs/readseek-api": "^0.12.1",
38
38
  "@opencode-ai/plugin": "^1.18.18"
39
39
  },
40
40
  "devDependencies": {