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/README.md
CHANGED
|
@@ -42,17 +42,17 @@ macOS/Windows supplied by `@jarkkojs/readseek`. Set
|
|
|
42
42
|
|
|
43
43
|
## Tools
|
|
44
44
|
|
|
45
|
-
- Read without inference: `
|
|
46
|
-
`
|
|
47
|
-
- Check: `
|
|
48
|
-
- Explicit inference: `
|
|
49
|
-
`
|
|
50
|
-
- Find: `
|
|
51
|
-
`
|
|
52
|
-
- Mutate: `
|
|
53
|
-
|
|
54
|
-
Tool names mirror native
|
|
55
|
-
`
|
|
45
|
+
- Read without inference: `readseek_show`, `readseek_tree`,
|
|
46
|
+
`readseek_meta`, `readseek_assets`.
|
|
47
|
+
- Check: `readseek_syntax`, `readseek_check`.
|
|
48
|
+
- Explicit inference: `readseek_caption`, `readseek_objects`,
|
|
49
|
+
`readseek_ocr`.
|
|
50
|
+
- Find: `readseek_grep`, `readseek_search`, `readseek_def`,
|
|
51
|
+
`readseek_refs`.
|
|
52
|
+
- Mutate: `readseek_edit`, `readseek_rename`, `readseek_write`.
|
|
53
|
+
|
|
54
|
+
Tool names mirror native flat single-word commands, such as `show`,
|
|
55
|
+
`search`, and `edit`. Paths resolve against the project directory.
|
|
56
56
|
Use `at` selectors (`line:N[:COLUMN]`, `hash:H[:COLUMN]`, `symbol:NAME`,
|
|
57
57
|
`page:N`, `node:ID`, or `asset:ID`) where supported. Structure defaults to
|
|
58
58
|
`depth: 1`. Use separate structure, metadata, and syntax tools rather than
|
|
@@ -63,20 +63,25 @@ lines, document sections, structure trees, metadata fields, and asset paths.
|
|
|
63
63
|
Notices identify omitted ranges and how to continue. The unchanged native result
|
|
64
64
|
is retained separately in `metadata.readseek`; image attachments are unchanged.
|
|
65
65
|
|
|
66
|
-
`
|
|
67
|
-
`
|
|
66
|
+
`readseek_search` accepts `pattern`, `context` with `selector`, or `rule`.
|
|
67
|
+
`readseek_refs` requires exactly one of `name` or `at`; binding
|
|
68
68
|
references and renames use line or hash cursors. KDL selection/check rules
|
|
69
69
|
may be inline or `@path`; tool calls cannot supply standard input.
|
|
70
70
|
|
|
71
|
-
`
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
`readseek_grep` requires `pattern`: native UTF-8 RE2 regex by default, or exact
|
|
72
|
+
text with `literal: true`. Lookaround and backreferences are unsupported.
|
|
73
|
+
Native ReadSeek handles `ignoreCase`, `glob`, `context`, `summary`, and
|
|
74
|
+
`scope: "symbol"` grouping. `scopeContext` requires symbol scope. The positive
|
|
75
|
+
`limit` defaults to 100 matching lines, not occurrences. `gitScope` accepts
|
|
76
|
+
`tracked`, `untracked`, `ignored`, or `all` (default: tracked plus untracked).
|
|
77
|
+
Source hits carry editable `LINE:HASH` anchors; document hits carry node/page
|
|
78
|
+
selectors and do not mark files as editable.
|
|
74
79
|
|
|
75
80
|
Read fresh `LINE:HASH` anchors before editing. Each edit item contains exactly
|
|
76
81
|
one nested `set_line`, `replace_lines`, `insert_after`, `replace_symbol`, or
|
|
77
82
|
`replace` object. Edits and renames default to applying after a verified plan
|
|
78
83
|
and edit permission; use `apply: false` to preview and `planHash` to require
|
|
79
|
-
that plan when applying. `
|
|
84
|
+
that plan when applying. `write` replaces complete text files.
|
|
80
85
|
|
|
81
86
|
Syntax and rule checks treat exit 1 as findings, not transport failure;
|
|
82
87
|
exit 0 is clean and exit 2 is failure. Syntax checks do not typecheck.
|