browse-code 0.2.3__tar.gz → 0.2.5__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.
- {browse_code-0.2.3 → browse_code-0.2.5}/PKG-INFO +1 -1
- browse_code-0.2.5/browse_code/__init__.py +1 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/content.js +1 -1
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/server.py +6 -2
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/PKG-INFO +1 -1
- {browse_code-0.2.3 → browse_code-0.2.5}/setup.py +1 -1
- browse_code-0.2.3/browse_code/__init__.py +0 -1
- {browse_code-0.2.3 → browse_code-0.2.5}/README.md +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/cli.py +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/icon128.png +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/icon16.png +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/icon48.png +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/manifest.json +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/popup.html +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/popup.js +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code/extension/spoof.js +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/SOURCES.txt +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/dependency_links.txt +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/entry_points.txt +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/requires.txt +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/browse_code.egg-info/top_level.txt +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/pyproject.toml +0 -0
- {browse_code-0.2.3 → browse_code-0.2.5}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.5"
|
|
@@ -40,7 +40,7 @@ spoofScript.onload = function () { this.remove(); };
|
|
|
40
40
|
|
|
41
41
|
// Heartbeat: ping the server every 5 seconds so it knows the extension is connected
|
|
42
42
|
function pingServer() {
|
|
43
|
-
fetch(`${LOCAL_SERVER}/extension/ping`).catch(() => {});
|
|
43
|
+
fetch(`${LOCAL_SERVER}/extension/ping?v=0.2.4`).catch(() => {});
|
|
44
44
|
}
|
|
45
45
|
pingServer();
|
|
46
46
|
setInterval(pingServer, 5000);
|
|
@@ -23,8 +23,8 @@ async def check_extension_connection():
|
|
|
23
23
|
from rich import box
|
|
24
24
|
console = Console()
|
|
25
25
|
|
|
26
|
+
await asyncio.sleep(3)
|
|
26
27
|
while True:
|
|
27
|
-
await asyncio.sleep(30) # Check every 30 seconds
|
|
28
28
|
if not is_extension_connected():
|
|
29
29
|
ext_path = str(Path.home() / ".browse_code" / "extension")
|
|
30
30
|
console.print()
|
|
@@ -48,6 +48,7 @@ async def check_extension_connection():
|
|
|
48
48
|
expand=False
|
|
49
49
|
)
|
|
50
50
|
)
|
|
51
|
+
await asyncio.sleep(30)
|
|
51
52
|
except asyncio.CancelledError:
|
|
52
53
|
pass
|
|
53
54
|
|
|
@@ -173,8 +174,11 @@ def is_extension_connected():
|
|
|
173
174
|
return (time.time() - _last_extension_ping) < _HEARTBEAT_TIMEOUT
|
|
174
175
|
|
|
175
176
|
@app.get("/extension/ping")
|
|
176
|
-
async def extension_ping():
|
|
177
|
+
async def extension_ping(v: str = None):
|
|
177
178
|
global _last_extension_ping
|
|
179
|
+
if v != "0.2.4":
|
|
180
|
+
return {"status": "ignored"}
|
|
181
|
+
|
|
178
182
|
was_connected = is_extension_connected()
|
|
179
183
|
_last_extension_ping = time.time()
|
|
180
184
|
if not was_connected:
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="browse_code",
|
|
5
|
-
version="0.2.
|
|
5
|
+
version="0.2.5",
|
|
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.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|