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/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: `readseek_show_content`, `readseek_show_structure`,
46
- `readseek_show_metadata`, `readseek_show_assets`.
47
- - Check: `readseek_check_syntax`, `readseek_check_rules`.
48
- - Explicit inference: `readseek_generate_caption`, `readseek_detect_objects`,
49
- `readseek_recognize_text`.
50
- - Find: `readseek_find_text`, `readseek_find_nodes`, `readseek_find_definitions`,
51
- `readseek_find_references`.
52
- - Mutate: `readseek_edit_text`, `readseek_rename_symbol`, `readseek_write_file`.
53
-
54
- Tool names mirror native verb-object commands, such as `show content`,
55
- `find nodes`, and `edit text`. Paths resolve against the project directory.
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
- `readseek_find_nodes` accepts `pattern`, `context` with `selector`, or `rule`.
67
- `readseek_find_references` requires exactly one of `name` or `at`; binding
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
- `readseek_find_text` accepts exactly one of literal `text` or regex `pattern`.
72
- The adapter also supports `literal`, `ignoreCase`, `glob`, `context`, `limit`,
73
- and per-file `summary`. Native `find text --text` searches literally.
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. `write_file` replaces complete text files.
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.