browse-code 0.2.0__tar.gz → 0.2.2__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.0 → browse_code-0.2.2}/PKG-INFO +1 -1
- browse_code-0.2.2/browse_code/__init__.py +1 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/cli.py +23 -26
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/server.py +0 -1
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/PKG-INFO +1 -1
- {browse_code-0.2.0 → browse_code-0.2.2}/setup.py +1 -1
- browse_code-0.2.0/browse_code/__init__.py +0 -1
- {browse_code-0.2.0 → browse_code-0.2.2}/README.md +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/content.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/icon128.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/icon16.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/icon48.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/manifest.json +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/popup.html +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/popup.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code/extension/spoof.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/SOURCES.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/dependency_links.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/entry_points.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/requires.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/browse_code.egg-info/top_level.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/pyproject.toml +0 -0
- {browse_code-0.2.0 → browse_code-0.2.2}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.2"
|
|
@@ -19,6 +19,15 @@ console = Console()
|
|
|
19
19
|
PORT = 5505
|
|
20
20
|
HOST = "127.0.0.1"
|
|
21
21
|
|
|
22
|
+
ASCII_BANNER = r"""
|
|
23
|
+
██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗███████╗ ██████╗ ██████╗ ██████╗ ███████╗
|
|
24
|
+
██╔══██╗██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔════╝ ██╔════╝██╔═══██╗██╔══██╗██╔════╝
|
|
25
|
+
██████╔╝██████╔╝██║ ██║██║ █╗ ██║███████╗█████╗ ██║ ██║ ██║██║ ██║█████╗
|
|
26
|
+
██╔══██╗██╔══██╗██║ ██║██║███╗██║╚════██║██╔══╝ ██║ ██║ ██║██║ ██║██╔══╝
|
|
27
|
+
██████╔╝██║ ██║╚██████╔╝╚███╔███╔╝███████║███████╗██╗╚██████╗╚██████╔╝██████╔╝███████╗
|
|
28
|
+
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚══════╝╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
|
|
29
|
+
"""
|
|
30
|
+
|
|
22
31
|
|
|
23
32
|
def get_data_dir():
|
|
24
33
|
"""Return ~/.browse_code, creating it if needed."""
|
|
@@ -55,20 +64,7 @@ def copy_to_clipboard(text):
|
|
|
55
64
|
|
|
56
65
|
def print_banner():
|
|
57
66
|
"""Print the Browse Code ASCII art banner."""
|
|
58
|
-
|
|
59
|
-
banner_text.append(" { ", style="bold cyan")
|
|
60
|
-
banner_text.append("Browse Code", style="bold white")
|
|
61
|
-
banner_text.append(" }", style="bold cyan")
|
|
62
|
-
|
|
63
|
-
console.print()
|
|
64
|
-
console.print(
|
|
65
|
-
Panel(
|
|
66
|
-
banner_text,
|
|
67
|
-
box=box.DOUBLE,
|
|
68
|
-
border_style="cyan",
|
|
69
|
-
padding=(1, 4),
|
|
70
|
-
)
|
|
71
|
-
)
|
|
67
|
+
console.print(f"[bold green]{ASCII_BANNER}[/bold green]")
|
|
72
68
|
|
|
73
69
|
|
|
74
70
|
def setup_extension():
|
|
@@ -78,15 +74,15 @@ def setup_extension():
|
|
|
78
74
|
pkg_ext_dir = Path(__file__).parent / "extension"
|
|
79
75
|
|
|
80
76
|
print_banner()
|
|
81
|
-
console.print()
|
|
82
77
|
console.print(
|
|
83
78
|
Panel(
|
|
84
79
|
"[bold]First Time Setup[/bold]\n\n"
|
|
85
80
|
"Browse Code needs a Chrome extension to connect\n"
|
|
86
81
|
"your browser to the local server.",
|
|
87
|
-
border_style="
|
|
82
|
+
border_style="green",
|
|
88
83
|
box=box.ROUNDED,
|
|
89
84
|
padding=(1, 2),
|
|
85
|
+
expand=False,
|
|
90
86
|
)
|
|
91
87
|
)
|
|
92
88
|
|
|
@@ -96,7 +92,7 @@ def setup_extension():
|
|
|
96
92
|
|
|
97
93
|
# Extract extension files
|
|
98
94
|
console.print()
|
|
99
|
-
with console.status("[
|
|
95
|
+
with console.status("[green]Extracting extension files...[/green]", spinner="dots"):
|
|
100
96
|
if ext_dest.exists():
|
|
101
97
|
shutil.rmtree(ext_dest)
|
|
102
98
|
shutil.copytree(pkg_ext_dir, ext_dest)
|
|
@@ -109,7 +105,7 @@ def setup_extension():
|
|
|
109
105
|
copied = copy_to_clipboard(ext_path_str)
|
|
110
106
|
|
|
111
107
|
# Open chrome://extensions
|
|
112
|
-
console.print(" [
|
|
108
|
+
console.print(" [green]Opening Chrome extensions page...[/green]")
|
|
113
109
|
webbrowser.open("chrome://extensions/")
|
|
114
110
|
|
|
115
111
|
# Setup instructions
|
|
@@ -119,7 +115,7 @@ def setup_extension():
|
|
|
119
115
|
padding=(0, 2),
|
|
120
116
|
show_edge=False,
|
|
121
117
|
)
|
|
122
|
-
steps.add_column("step", style="bold
|
|
118
|
+
steps.add_column("step", style="bold green", width=4)
|
|
123
119
|
steps.add_column("instruction")
|
|
124
120
|
|
|
125
121
|
steps.add_row("1.", 'Enable [bold]"Developer mode"[/bold] toggle (top-right corner)')
|
|
@@ -133,11 +129,12 @@ def setup_extension():
|
|
|
133
129
|
console.print(
|
|
134
130
|
Panel(
|
|
135
131
|
steps,
|
|
136
|
-
title="[bold]Quick Setup[/bold]",
|
|
132
|
+
title="[bold green]Quick Setup[/bold green]",
|
|
137
133
|
title_align="left",
|
|
138
|
-
border_style="
|
|
134
|
+
border_style="green",
|
|
139
135
|
box=box.ROUNDED,
|
|
140
136
|
padding=(1, 1),
|
|
137
|
+
expand=False,
|
|
141
138
|
)
|
|
142
139
|
)
|
|
143
140
|
console.print()
|
|
@@ -160,18 +157,19 @@ def print_server_header():
|
|
|
160
157
|
|
|
161
158
|
info.add_row("Endpoint", f"[bold]http://{HOST}:{PORT}[/bold]")
|
|
162
159
|
info.add_row("Extension", "[yellow]Waiting for connection...[/yellow]")
|
|
163
|
-
info.add_row("Status", "[green]Running[/green]")
|
|
160
|
+
info.add_row("Status", "[bold green]Running[/bold green]")
|
|
164
161
|
|
|
165
162
|
console.print(
|
|
166
163
|
Panel(
|
|
167
164
|
info,
|
|
168
|
-
title="[bold
|
|
169
|
-
title_align="
|
|
165
|
+
title="[bold green]Agent Bridge Backend[/bold green]",
|
|
166
|
+
title_align="center",
|
|
170
167
|
subtitle="[dim]Press Ctrl+C to stop[/dim]",
|
|
171
168
|
subtitle_align="right",
|
|
172
|
-
border_style="
|
|
169
|
+
border_style="green",
|
|
173
170
|
box=box.ROUNDED,
|
|
174
171
|
padding=(1, 2),
|
|
172
|
+
expand=False,
|
|
175
173
|
)
|
|
176
174
|
)
|
|
177
175
|
console.print()
|
|
@@ -188,7 +186,6 @@ def main():
|
|
|
188
186
|
else:
|
|
189
187
|
print_banner()
|
|
190
188
|
|
|
191
|
-
console.print()
|
|
192
189
|
print_server_header()
|
|
193
190
|
|
|
194
191
|
try:
|
|
@@ -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.2",
|
|
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.0"
|
|
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
|