browse-code 0.2.0__tar.gz → 0.2.1__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.1}/PKG-INFO +1 -1
- browse_code-0.2.1/browse_code/__init__.py +1 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/cli.py +19 -25
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/server.py +0 -1
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/PKG-INFO +1 -1
- {browse_code-0.2.0 → browse_code-0.2.1}/setup.py +1 -1
- browse_code-0.2.0/browse_code/__init__.py +0 -1
- {browse_code-0.2.0 → browse_code-0.2.1}/README.md +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/content.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/icon128.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/icon16.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/icon48.png +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/manifest.json +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/popup.html +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/popup.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code/extension/spoof.js +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/SOURCES.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/dependency_links.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/entry_points.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/requires.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/browse_code.egg-info/top_level.txt +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/pyproject.toml +0 -0
- {browse_code-0.2.0 → browse_code-0.2.1}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.1"
|
|
@@ -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,13 +74,12 @@ 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),
|
|
90
85
|
)
|
|
@@ -96,7 +91,7 @@ def setup_extension():
|
|
|
96
91
|
|
|
97
92
|
# Extract extension files
|
|
98
93
|
console.print()
|
|
99
|
-
with console.status("[
|
|
94
|
+
with console.status("[green]Extracting extension files...[/green]", spinner="dots"):
|
|
100
95
|
if ext_dest.exists():
|
|
101
96
|
shutil.rmtree(ext_dest)
|
|
102
97
|
shutil.copytree(pkg_ext_dir, ext_dest)
|
|
@@ -109,7 +104,7 @@ def setup_extension():
|
|
|
109
104
|
copied = copy_to_clipboard(ext_path_str)
|
|
110
105
|
|
|
111
106
|
# Open chrome://extensions
|
|
112
|
-
console.print(" [
|
|
107
|
+
console.print(" [green]Opening Chrome extensions page...[/green]")
|
|
113
108
|
webbrowser.open("chrome://extensions/")
|
|
114
109
|
|
|
115
110
|
# Setup instructions
|
|
@@ -119,7 +114,7 @@ def setup_extension():
|
|
|
119
114
|
padding=(0, 2),
|
|
120
115
|
show_edge=False,
|
|
121
116
|
)
|
|
122
|
-
steps.add_column("step", style="bold
|
|
117
|
+
steps.add_column("step", style="bold green", width=4)
|
|
123
118
|
steps.add_column("instruction")
|
|
124
119
|
|
|
125
120
|
steps.add_row("1.", 'Enable [bold]"Developer mode"[/bold] toggle (top-right corner)')
|
|
@@ -133,9 +128,9 @@ def setup_extension():
|
|
|
133
128
|
console.print(
|
|
134
129
|
Panel(
|
|
135
130
|
steps,
|
|
136
|
-
title="[bold]Quick Setup[/bold]",
|
|
131
|
+
title="[bold green]Quick Setup[/bold green]",
|
|
137
132
|
title_align="left",
|
|
138
|
-
border_style="
|
|
133
|
+
border_style="green",
|
|
139
134
|
box=box.ROUNDED,
|
|
140
135
|
padding=(1, 1),
|
|
141
136
|
)
|
|
@@ -160,16 +155,16 @@ def print_server_header():
|
|
|
160
155
|
|
|
161
156
|
info.add_row("Endpoint", f"[bold]http://{HOST}:{PORT}[/bold]")
|
|
162
157
|
info.add_row("Extension", "[yellow]Waiting for connection...[/yellow]")
|
|
163
|
-
info.add_row("Status", "[green]Running[/green]")
|
|
158
|
+
info.add_row("Status", "[bold green]Running[/bold green]")
|
|
164
159
|
|
|
165
160
|
console.print(
|
|
166
161
|
Panel(
|
|
167
162
|
info,
|
|
168
|
-
title="[bold
|
|
163
|
+
title="[bold green]Browse Code[/bold green]",
|
|
169
164
|
title_align="left",
|
|
170
165
|
subtitle="[dim]Press Ctrl+C to stop[/dim]",
|
|
171
166
|
subtitle_align="right",
|
|
172
|
-
border_style="
|
|
167
|
+
border_style="green",
|
|
173
168
|
box=box.ROUNDED,
|
|
174
169
|
padding=(1, 2),
|
|
175
170
|
)
|
|
@@ -188,7 +183,6 @@ def main():
|
|
|
188
183
|
else:
|
|
189
184
|
print_banner()
|
|
190
185
|
|
|
191
|
-
console.print()
|
|
192
186
|
print_server_header()
|
|
193
187
|
|
|
194
188
|
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.1",
|
|
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
|