errorlens 0.1.2__tar.gz → 0.1.3__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.

Potentially problematic release.


This version of errorlens might be problematic. Click here for more details.

Files changed (23) hide show
  1. {errorlens-0.1.2 → errorlens-0.1.3}/PKG-INFO +14 -4
  2. {errorlens-0.1.2 → errorlens-0.1.3}/README.md +13 -3
  3. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/tui.py +45 -1
  4. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/PKG-INFO +14 -4
  5. {errorlens-0.1.2 → errorlens-0.1.3}/pyproject.toml +1 -1
  6. {errorlens-0.1.2 → errorlens-0.1.3}/LICENSE +0 -0
  7. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/__init__.py +0 -0
  8. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/cli.py +0 -0
  9. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/core/__init__.py +0 -0
  10. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/core/analyzer.py +0 -0
  11. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/core/config.py +0 -0
  12. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/providers/__init__.py +0 -0
  13. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/providers/anthropic_provider.py +0 -0
  14. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/providers/groq_provider.py +0 -0
  15. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/providers/mistral_provider.py +0 -0
  16. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens/providers/mock_provider.py +0 -0
  17. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/SOURCES.txt +0 -0
  18. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/dependency_links.txt +0 -0
  19. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/entry_points.txt +0 -0
  20. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/requires.txt +0 -0
  21. {errorlens-0.1.2 → errorlens-0.1.3}/errorlens.egg-info/top_level.txt +0 -0
  22. {errorlens-0.1.2 → errorlens-0.1.3}/setup.cfg +0 -0
  23. {errorlens-0.1.2 → errorlens-0.1.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: errorlens
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: AI-powered CLI tool for finding bugs and security issues in codebases
5
5
  Author-email: Shashvath Puppala <shashvathpuppala.21cmis0265@meruinternationalschool.com>
6
6
  License: MIT
@@ -49,7 +49,7 @@ A CLI and TUI tool that analyzes codebases for bugs and security issues using mu
49
49
  ### From PyPI (recommended)
50
50
 
51
51
  ```bash
52
- pip install errorlens
52
+ pip3 install errorlens
53
53
  ```
54
54
 
55
55
  That's it. The `errorlens` command is now available globally.
@@ -59,7 +59,7 @@ That's it. The `errorlens` command is now available globally.
59
59
  ```bash
60
60
  git clone https://github.com/your-repo/errorlens.git
61
61
  cd errorlens
62
- pip install .
62
+ pip3 install .
63
63
  ```
64
64
 
65
65
  ### For development
@@ -69,7 +69,7 @@ git clone https://github.com/your-repo/errorlens.git
69
69
  cd errorlens
70
70
  python -m venv venv
71
71
  source venv/bin/activate # Windows: venv\Scripts\activate
72
- pip install -e .
72
+ pip3 install -e .
73
73
  ```
74
74
 
75
75
  ---
@@ -133,6 +133,8 @@ errorlens
133
133
  |-----|---------------|
134
134
  | `R` | Run analysis |
135
135
  | `C` | Clear results |
136
+ | `F` | File Picker |
137
+ | `M` | Toggle Chat |
136
138
  | `Q` | Quit |
137
139
 
138
140
  Results are color-coded:
@@ -141,6 +143,10 @@ Results are color-coded:
141
143
  - **Cyan** — Code quality issues
142
144
  - **Green** — Suggestions / no issues found
143
145
 
146
+ **These are few new features in v0.1.3:**
147
+ - **File Picker**: Press `F` to browse and select files interactively
148
+ - **Chat Interface**: Press `M` to toggle a chat bar for interactive communication
149
+
144
150
  ### CLI (non-interactive)
145
151
 
146
152
  ```bash
@@ -256,3 +262,7 @@ errorlens-cli example_test.py --provider groq
256
262
  ## License
257
263
 
258
264
  MIT License — see LICENSE for details.
265
+
266
+ ---
267
+
268
+ **Note:** In PyPI, the latest version will be 0.1.2. This is due to a mistake in naming versions.
@@ -19,7 +19,7 @@ A CLI and TUI tool that analyzes codebases for bugs and security issues using mu
19
19
  ### From PyPI (recommended)
20
20
 
21
21
  ```bash
22
- pip install errorlens
22
+ pip3 install errorlens
23
23
  ```
24
24
 
25
25
  That's it. The `errorlens` command is now available globally.
@@ -29,7 +29,7 @@ That's it. The `errorlens` command is now available globally.
29
29
  ```bash
30
30
  git clone https://github.com/your-repo/errorlens.git
31
31
  cd errorlens
32
- pip install .
32
+ pip3 install .
33
33
  ```
34
34
 
35
35
  ### For development
@@ -39,7 +39,7 @@ git clone https://github.com/your-repo/errorlens.git
39
39
  cd errorlens
40
40
  python -m venv venv
41
41
  source venv/bin/activate # Windows: venv\Scripts\activate
42
- pip install -e .
42
+ pip3 install -e .
43
43
  ```
44
44
 
45
45
  ---
@@ -103,6 +103,8 @@ errorlens
103
103
  |-----|---------------|
104
104
  | `R` | Run analysis |
105
105
  | `C` | Clear results |
106
+ | `F` | File Picker |
107
+ | `M` | Toggle Chat |
106
108
  | `Q` | Quit |
107
109
 
108
110
  Results are color-coded:
@@ -111,6 +113,10 @@ Results are color-coded:
111
113
  - **Cyan** — Code quality issues
112
114
  - **Green** — Suggestions / no issues found
113
115
 
116
+ **These are few new features in v0.1.3:**
117
+ - **File Picker**: Press `F` to browse and select files interactively
118
+ - **Chat Interface**: Press `M` to toggle a chat bar for interactive communication
119
+
114
120
  ### CLI (non-interactive)
115
121
 
116
122
  ```bash
@@ -226,3 +232,7 @@ errorlens-cli example_test.py --provider groq
226
232
  ## License
227
233
 
228
234
  MIT License — see LICENSE for details.
235
+
236
+ ---
237
+
238
+ **Note:** In PyPI, the latest version will be 0.1.2. This is due to a mistake in naming versions.
@@ -9,7 +9,7 @@ from textual.app import App, ComposeResult
9
9
  from textual.containers import Horizontal, Vertical
10
10
  from textual.widgets import (
11
11
  Header, Footer, Input, Button, Label, Select,
12
- Static, RadioSet, RadioButton, RichLog
12
+ Static, RadioSet, RadioButton, RichLog, DirectoryTree
13
13
  )
14
14
  from textual.reactive import reactive
15
15
  from textual import work
@@ -71,6 +71,21 @@ class ErrorLensApp(App):
71
71
  color: $text-muted;
72
72
  text-align: center;
73
73
  }
74
+
75
+ #chat-input {
76
+ margin-top: 1;
77
+ width: 100%;
78
+ }
79
+
80
+ #file-picker-container {
81
+ height: auto;
82
+ border: solid $primary;
83
+ padding: 1;
84
+ }
85
+
86
+ #file-picker {
87
+ height: 20;
88
+ }
74
89
 
75
90
  #right-panel {
76
91
  width: 1fr;
@@ -88,9 +103,11 @@ class ErrorLensApp(App):
88
103
  ("r", "run_analysis", "Run"),
89
104
  ("c", "clear_results", "Clear"),
90
105
  ("q", "quit", "Quit"),
106
+ ("f", "toggle_file_picker", "Toggle File Picker"),
91
107
  ]
92
108
 
93
109
  running = reactive(False)
110
+ show_file_picker = reactive(False)
94
111
 
95
112
  def compose(self) -> ComposeResult:
96
113
  yield Header(show_clock=True)
@@ -104,14 +121,21 @@ class ErrorLensApp(App):
104
121
  yield RadioButton(p, value=(p == "all"))
105
122
  yield Button("Run Analysis", id="run-btn", variant="primary")
106
123
  yield Static("", id="status")
124
+ yield Input(placeholder="Chat here...", id="chat-input")
107
125
  with Vertical(id="right-panel"):
108
126
  yield RichLog(highlight=True, markup=True, id="results-log")
127
+ with Horizontal(id="file-picker-container") if self.show_file_picker else Horizontal():
128
+ yield DirectoryTree(".", id="file-picker")
109
129
  yield Footer()
110
130
 
111
131
  def on_mount(self) -> None:
112
132
  self.query_one("#path-input", Input).focus()
113
133
  log = self.query_one(RichLog)
114
134
  log.write("[bold]ErrorLens[/bold] — ready. Enter a path and press [bold]R[/bold] or click Run.")
135
+
136
+ # Set up chat input handler
137
+ chat_input = self.query_one("#chat-input", Input)
138
+ chat_input.action_submit = self.action_send_chat_message
115
139
 
116
140
  def on_button_pressed(self, event: Button.Pressed) -> None:
117
141
  if event.button.id == "run-btn":
@@ -129,6 +153,26 @@ class ErrorLensApp(App):
129
153
 
130
154
  def action_clear_results(self) -> None:
131
155
  self.query_one(RichLog).clear()
156
+
157
+ def action_toggle_file_picker(self) -> None:
158
+ self.show_file_picker = not self.show_file_picker
159
+ if self.show_file_picker:
160
+ self.query_one("#file-picker-container", Horizontal).display = True
161
+ self.query_one("#file-picker", DirectoryTree).focus()
162
+ else:
163
+ self.query_one("#file-picker-container", Horizontal).display = False
164
+ self.query_one("#path-input", Input).focus()
165
+
166
+ def action_send_chat_message(self) -> None:
167
+ chat_input = self.query_one("#chat-input", Input)
168
+ message = chat_input.value.strip()
169
+ if message:
170
+ log = self.query_one(RichLog)
171
+ log.write(f"[bold cyan]You:[/bold cyan] {message}")
172
+ chat_input.value = ""
173
+ # Here you could add logic to process the chat message
174
+ # For now, just echo it back
175
+ log.write(f"[bold magenta]Bot:[/bold magenta] I received: {message}")
132
176
 
133
177
  def _selected_provider(self) -> str:
134
178
  radio_set = self.query_one("#provider-set", RadioSet)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: errorlens
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: AI-powered CLI tool for finding bugs and security issues in codebases
5
5
  Author-email: Shashvath Puppala <shashvathpuppala.21cmis0265@meruinternationalschool.com>
6
6
  License: MIT
@@ -49,7 +49,7 @@ A CLI and TUI tool that analyzes codebases for bugs and security issues using mu
49
49
  ### From PyPI (recommended)
50
50
 
51
51
  ```bash
52
- pip install errorlens
52
+ pip3 install errorlens
53
53
  ```
54
54
 
55
55
  That's it. The `errorlens` command is now available globally.
@@ -59,7 +59,7 @@ That's it. The `errorlens` command is now available globally.
59
59
  ```bash
60
60
  git clone https://github.com/your-repo/errorlens.git
61
61
  cd errorlens
62
- pip install .
62
+ pip3 install .
63
63
  ```
64
64
 
65
65
  ### For development
@@ -69,7 +69,7 @@ git clone https://github.com/your-repo/errorlens.git
69
69
  cd errorlens
70
70
  python -m venv venv
71
71
  source venv/bin/activate # Windows: venv\Scripts\activate
72
- pip install -e .
72
+ pip3 install -e .
73
73
  ```
74
74
 
75
75
  ---
@@ -133,6 +133,8 @@ errorlens
133
133
  |-----|---------------|
134
134
  | `R` | Run analysis |
135
135
  | `C` | Clear results |
136
+ | `F` | File Picker |
137
+ | `M` | Toggle Chat |
136
138
  | `Q` | Quit |
137
139
 
138
140
  Results are color-coded:
@@ -141,6 +143,10 @@ Results are color-coded:
141
143
  - **Cyan** — Code quality issues
142
144
  - **Green** — Suggestions / no issues found
143
145
 
146
+ **These are few new features in v0.1.3:**
147
+ - **File Picker**: Press `F` to browse and select files interactively
148
+ - **Chat Interface**: Press `M` to toggle a chat bar for interactive communication
149
+
144
150
  ### CLI (non-interactive)
145
151
 
146
152
  ```bash
@@ -256,3 +262,7 @@ errorlens-cli example_test.py --provider groq
256
262
  ## License
257
263
 
258
264
  MIT License — see LICENSE for details.
265
+
266
+ ---
267
+
268
+ **Note:** In PyPI, the latest version will be 0.1.2. This is due to a mistake in naming versions.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "errorlens"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "AI-powered CLI tool for finding bugs and security issues in codebases"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
File without changes
File without changes
File without changes
File without changes