browse-code 0.2.16__tar.gz → 0.2.18__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.
Files changed (23) hide show
  1. {browse_code-0.2.16 → browse_code-0.2.18}/PKG-INFO +4 -29
  2. {browse_code-0.2.16 → browse_code-0.2.18}/README.md +3 -28
  3. browse_code-0.2.18/browse_code/__init__.py +1 -0
  4. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/cli.py +9 -0
  5. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/server.py +5 -1
  6. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/PKG-INFO +4 -29
  7. {browse_code-0.2.16 → browse_code-0.2.18}/setup.py +1 -1
  8. browse_code-0.2.16/browse_code/__init__.py +0 -1
  9. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/content.js +0 -0
  10. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/icon128.png +0 -0
  11. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/icon16.png +0 -0
  12. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/icon48.png +0 -0
  13. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/manifest.json +0 -0
  14. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/popup.html +0 -0
  15. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/popup.js +0 -0
  16. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code/extension/spoof.js +0 -0
  17. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/SOURCES.txt +0 -0
  18. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/dependency_links.txt +0 -0
  19. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/entry_points.txt +0 -0
  20. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/requires.txt +0 -0
  21. {browse_code-0.2.16 → browse_code-0.2.18}/browse_code.egg-info/top_level.txt +0 -0
  22. {browse_code-0.2.16 → browse_code-0.2.18}/pyproject.toml +0 -0
  23. {browse_code-0.2.16 → browse_code-0.2.18}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: browse_code
3
- Version: 0.2.16
3
+ Version: 0.2.18
4
4
  Summary: Turn any AI chatbot into an autonomous coding agent
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: fastapi
@@ -92,34 +92,9 @@ The server starts immediately. Open your AI chat tab and you're ready to go. The
92
92
 
93
93
  - **File Operations:** Read, write, and patch files with beautiful inline terminal diffs:
94
94
 
95
- <details>
96
- <summary>▶️ <code>npm install next react react-dom</code> — <strong>✓ done · 22ms</strong></summary>
97
-
98
- **STDOUT:**
99
-
100
- 📝 **Patch File** `portfolio-site/package.json`
101
-
102
- ```diff
103
- {
104
- "name": "portfolio-site",
105
- "main": "index.js",
106
- "scripts": {
107
- - "test": "echo \"Error: no test specified\" && exit 1",
108
- + "dev": "next dev",
109
- + "build": "next build",
110
- + "start": "next start",
111
- + "lint": "next lint"
112
- },
113
- "keywords": [],
114
- }
115
- ```
116
-
117
- ✅ **done · 2ms** — Patch applied successfully to `portfolio-site/package.json`.
118
-
119
- 📁 **View Directory** `portfolio-site`
120
- ✅ **done · 195ms** — `portfolio-site/package-lock.json`
121
-
122
- </details>
95
+ <p align="center">
96
+ <img src="example.svg" alt="Tool Formatting Example" width="800">
97
+ </p>
123
98
 
124
99
  - **Code Search:** Search across your entire codebase by keyword
125
100
  - **Terminal Commands:** Run shell commands with full stdout/stderr capture
@@ -78,34 +78,9 @@ The server starts immediately. Open your AI chat tab and you're ready to go. The
78
78
 
79
79
  - **File Operations:** Read, write, and patch files with beautiful inline terminal diffs:
80
80
 
81
- <details>
82
- <summary>▶️ <code>npm install next react react-dom</code> — <strong>✓ done · 22ms</strong></summary>
83
-
84
- **STDOUT:**
85
-
86
- 📝 **Patch File** `portfolio-site/package.json`
87
-
88
- ```diff
89
- {
90
- "name": "portfolio-site",
91
- "main": "index.js",
92
- "scripts": {
93
- - "test": "echo \"Error: no test specified\" && exit 1",
94
- + "dev": "next dev",
95
- + "build": "next build",
96
- + "start": "next start",
97
- + "lint": "next lint"
98
- },
99
- "keywords": [],
100
- }
101
- ```
102
-
103
- ✅ **done · 2ms** — Patch applied successfully to `portfolio-site/package.json`.
104
-
105
- 📁 **View Directory** `portfolio-site`
106
- ✅ **done · 195ms** — `portfolio-site/package-lock.json`
107
-
108
- </details>
81
+ <p align="center">
82
+ <img src="example.svg" alt="Tool Formatting Example" width="800">
83
+ </p>
109
84
 
110
85
  - **Code Search:** Search across your entire codebase by keyword
111
86
  - **Terminal Commands:** Run shell commands with full stdout/stderr capture
@@ -0,0 +1 @@
1
+ __version__ = "0.2.18"
@@ -206,6 +206,15 @@ def main():
206
206
  from server import app
207
207
 
208
208
  import uvicorn
209
+ import sys
210
+ import asyncio
211
+
212
+ if sys.platform == "win32":
213
+ try:
214
+ asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
215
+ except Exception:
216
+ pass
217
+
209
218
  uvicorn.run(app, host=HOST, port=PORT, access_log=False)
210
219
 
211
220
 
@@ -189,7 +189,11 @@ def cleanup_background_processes():
189
189
  for pid, data in BACKGROUND_PROCESSES.items():
190
190
  if data['status'] == 'running':
191
191
  try:
192
- data['process'].terminate()
192
+ proc = data['process']
193
+ if platform.system() == "Windows":
194
+ subprocess.run(f"taskkill /F /T /PID {proc.pid}", shell=True, capture_output=True)
195
+ else:
196
+ proc.terminate()
193
197
  except:
194
198
  pass
195
199
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: browse_code
3
- Version: 0.2.16
3
+ Version: 0.2.18
4
4
  Summary: Turn any AI chatbot into an autonomous coding agent
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: fastapi
@@ -92,34 +92,9 @@ The server starts immediately. Open your AI chat tab and you're ready to go. The
92
92
 
93
93
  - **File Operations:** Read, write, and patch files with beautiful inline terminal diffs:
94
94
 
95
- <details>
96
- <summary>▶️ <code>npm install next react react-dom</code> — <strong>✓ done · 22ms</strong></summary>
97
-
98
- **STDOUT:**
99
-
100
- 📝 **Patch File** `portfolio-site/package.json`
101
-
102
- ```diff
103
- {
104
- "name": "portfolio-site",
105
- "main": "index.js",
106
- "scripts": {
107
- - "test": "echo \"Error: no test specified\" && exit 1",
108
- + "dev": "next dev",
109
- + "build": "next build",
110
- + "start": "next start",
111
- + "lint": "next lint"
112
- },
113
- "keywords": [],
114
- }
115
- ```
116
-
117
- ✅ **done · 2ms** — Patch applied successfully to `portfolio-site/package.json`.
118
-
119
- 📁 **View Directory** `portfolio-site`
120
- ✅ **done · 195ms** — `portfolio-site/package-lock.json`
121
-
122
- </details>
95
+ <p align="center">
96
+ <img src="example.svg" alt="Tool Formatting Example" width="800">
97
+ </p>
123
98
 
124
99
  - **Code Search:** Search across your entire codebase by keyword
125
100
  - **Terminal Commands:** Run shell commands with full stdout/stderr capture
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="browse_code",
5
- version="0.2.16",
5
+ version="0.2.18",
6
6
  description="Turn any AI chatbot into an autonomous coding agent",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
@@ -1 +0,0 @@
1
- __version__ = "0.2.16"
File without changes