rlmgrep 0.1.9__tar.gz → 0.1.10__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Grep-shaped CLI search powered by DSPy RLM
5
5
  Author: rlmgrep
6
6
  License: MIT
@@ -23,7 +23,7 @@ uv tool install rlmgrep
23
23
 
24
24
  export OPENAI_API_KEY=... # or set keys in ~/.rlmgrep
25
25
  rlmgrep --answer "What does this repo do and where are the entry points?" .
26
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
26
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
27
27
  ```
28
28
 
29
29
  ## Requirements
@@ -97,7 +97,7 @@ Examples:
97
97
 
98
98
  ```sh
99
99
  # Natural-language query over a repo
100
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
100
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
101
101
 
102
102
  # Restrict to Python files
103
103
  rlmgrep "Where do we parse JWTs and enforce expiration?" --type py .
@@ -127,7 +127,7 @@ rg -l "token" . | rlmgrep --files-from-stdin --answer "What does this token cont
127
127
  - Output uses rg-style headings by default:
128
128
  - A file header line like `./path/to/file`
129
129
  - Then `line:\ttext` for matches, `line-\ttext` for context lines
130
- - Line numbers are 1-based.
130
+ - Line numbers are always included and are 1-based.
131
131
  - When context ranges are disjoint, a `--` line separates groups.
132
132
  - Exit codes:
133
133
  - `0` = at least one match
@@ -142,7 +142,7 @@ rlmgrep can interpret traditional regex-style patterns inside a natural-language
142
142
  Example (best-effort regex semantics + extra context):
143
143
 
144
144
  ```sh
145
- rlmgrep -n "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
145
+ rlmgrep "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
146
146
  ```
147
147
 
148
148
  If you need strict, deterministic regex behavior, use `rg`/`grep`.
@@ -11,7 +11,7 @@ uv tool install rlmgrep
11
11
 
12
12
  export OPENAI_API_KEY=... # or set keys in ~/.rlmgrep
13
13
  rlmgrep --answer "What does this repo do and where are the entry points?" .
14
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
14
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
15
15
  ```
16
16
 
17
17
  ## Requirements
@@ -85,7 +85,7 @@ Examples:
85
85
 
86
86
  ```sh
87
87
  # Natural-language query over a repo
88
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
88
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
89
89
 
90
90
  # Restrict to Python files
91
91
  rlmgrep "Where do we parse JWTs and enforce expiration?" --type py .
@@ -115,7 +115,7 @@ rg -l "token" . | rlmgrep --files-from-stdin --answer "What does this token cont
115
115
  - Output uses rg-style headings by default:
116
116
  - A file header line like `./path/to/file`
117
117
  - Then `line:\ttext` for matches, `line-\ttext` for context lines
118
- - Line numbers are 1-based.
118
+ - Line numbers are always included and are 1-based.
119
119
  - When context ranges are disjoint, a `--` line separates groups.
120
120
  - Exit codes:
121
121
  - `0` = at least one match
@@ -130,7 +130,7 @@ rlmgrep can interpret traditional regex-style patterns inside a natural-language
130
130
  Example (best-effort regex semantics + extra context):
131
131
 
132
132
  ```sh
133
- rlmgrep -n "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
133
+ rlmgrep "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
134
134
  ```
135
135
 
136
136
  If you need strict, deterministic regex behavior, use `rg`/`grep`.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rlmgrep"
3
- version = "0.1.9"
3
+ version = "0.1.10"
4
4
  description = "Grep-shaped CLI search powered by DSPy RLM"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.9"
2
+ __version__ = "0.1.10"
@@ -72,10 +72,9 @@ def _parse_args(argv: list[str]) -> argparse.Namespace:
72
72
  parser.add_argument("pattern", nargs="?", help="Query string (interpreted by RLM)")
73
73
  parser.add_argument("paths", nargs="*", help="Files or directories")
74
74
 
75
- parser.add_argument("-n", dest="line_numbers", action="store_true", help="Show line numbers (default)")
76
75
  parser.add_argument("-r", dest="recursive", action="store_true", help="Recursive (directories are searched recursively by default)")
77
76
  parser.add_argument("--no-recursive", dest="recursive", action="store_false", help="Do not recurse directories")
78
- parser.set_defaults(recursive=True, line_numbers=True)
77
+ parser.set_defaults(recursive=True)
79
78
 
80
79
  parser.add_argument("-C", dest="context", type=int, default=0, help="Context lines before/after")
81
80
  parser.add_argument("-A", dest="after", type=int, default=None, help="Context lines after")
@@ -565,7 +564,6 @@ def main(argv: list[str] | None = None) -> int:
565
564
  output_lines = render_matches(
566
565
  files=files,
567
566
  matches=verified,
568
- show_line_numbers=args.line_numbers,
569
567
  before=before,
570
568
  after=after,
571
569
  use_color=use_color,
@@ -23,13 +23,10 @@ def _format_line(
23
23
  line_no: int,
24
24
  text: str,
25
25
  is_match: bool,
26
- show_line_numbers: bool,
27
26
  use_color: bool,
28
27
  heading: bool,
29
28
  ) -> str:
30
29
  delim = ":" if is_match else "-"
31
- if not show_line_numbers:
32
- return text
33
30
  prefix = _colorize(str(line_no), COLOR_LINE_NO, use_color)
34
31
  sep = "\t" if heading else ""
35
32
  return f"{prefix}{delim}{sep}{text}"
@@ -52,7 +49,6 @@ def _merge_ranges(ranges: list[tuple[int, int]]) -> list[tuple[int, int]]:
52
49
  def render_matches(
53
50
  files: dict[str, FileRecord],
54
51
  matches: dict[str, list[int]],
55
- show_line_numbers: bool,
56
52
  before: int,
57
53
  after: int,
58
54
  use_color: bool = False,
@@ -86,7 +82,6 @@ def render_matches(
86
82
  line_no,
87
83
  text,
88
84
  True,
89
- show_line_numbers,
90
85
  use_color,
91
86
  heading,
92
87
  )
@@ -111,7 +106,6 @@ def render_matches(
111
106
  line_no,
112
107
  text,
113
108
  is_match,
114
- show_line_numbers,
115
109
  use_color,
116
110
  heading,
117
111
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Grep-shaped CLI search powered by DSPy RLM
5
5
  Author: rlmgrep
6
6
  License: MIT
@@ -23,7 +23,7 @@ uv tool install rlmgrep
23
23
 
24
24
  export OPENAI_API_KEY=... # or set keys in ~/.rlmgrep
25
25
  rlmgrep --answer "What does this repo do and where are the entry points?" .
26
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
26
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
27
27
  ```
28
28
 
29
29
  ## Requirements
@@ -97,7 +97,7 @@ Examples:
97
97
 
98
98
  ```sh
99
99
  # Natural-language query over a repo
100
- rlmgrep -n -C 2 "Where is retry/backoff configured and what are the defaults?" .
100
+ rlmgrep -C 2 "Where is retry/backoff configured and what are the defaults?" .
101
101
 
102
102
  # Restrict to Python files
103
103
  rlmgrep "Where do we parse JWTs and enforce expiration?" --type py .
@@ -127,7 +127,7 @@ rg -l "token" . | rlmgrep --files-from-stdin --answer "What does this token cont
127
127
  - Output uses rg-style headings by default:
128
128
  - A file header line like `./path/to/file`
129
129
  - Then `line:\ttext` for matches, `line-\ttext` for context lines
130
- - Line numbers are 1-based.
130
+ - Line numbers are always included and are 1-based.
131
131
  - When context ranges are disjoint, a `--` line separates groups.
132
132
  - Exit codes:
133
133
  - `0` = at least one match
@@ -142,7 +142,7 @@ rlmgrep can interpret traditional regex-style patterns inside a natural-language
142
142
  Example (best-effort regex semantics + extra context):
143
143
 
144
144
  ```sh
145
- rlmgrep -n "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
145
+ rlmgrep "Find Python functions that look like `def test_\\w+` and are marked as slow or flaky in nearby comments." .
146
146
  ```
147
147
 
148
148
  If you need strict, deterministic regex behavior, use `rg`/`grep`.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes