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.
- package/README.md +22 -17
- package/dist/index.js +733 -360
- package/dist/v2.js +15 -15
- 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
|
|
12
|
+
Commands use flat single-word verbs, with target and primary query arguments positional:
|
|
13
13
|
|
|
14
14
|
\`\`\`sh
|
|
15
|
-
readseek show
|
|
16
|
-
readseek
|
|
17
|
-
readseek
|
|
18
|
-
readseek
|
|
19
|
-
readseek
|
|
20
|
-
readseek check
|
|
21
|
-
readseek
|
|
22
|
-
readseek
|
|
23
|
-
readseek
|
|
24
|
-
readseek
|
|
25
|
-
readseek edit
|
|
26
|
-
readseek rename
|
|
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 \`
|
|
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 \`
|
|
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.
|
|
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.
|
|
37
|
-
"@jarkkojs/readseek-api": "^0.
|
|
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": {
|