-
Notifications
You must be signed in to change notification settings - Fork 393
feat: Enable LAN access for Web UI server #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
77cbd9a
feat: Enable LAN access for Web UI server
tazmon95 5179219
fix: Improve stability and add database repair tools
tazmon95 ef55311
feat: Stop agent when all features are complete
tazmon95 b444b82
Merge upstream/master: Pull latest updates
tazmon95 cfa5874
Merge master: incorporate upstream updates with lock + duplicate dete…
tazmon95 cb47623
fix: Register projects created via /create-spec and clear cache on sw…
tazmon95 4223fc0
feat: Improve headless server support and expand command allowlist
tazmon95 2b6a4aa
feat: Add dark mode and expand chat bash permission
tazmon95 ef2b583
Merge upstream/master: terminal tabs, GLM support, dev server management
tazmon95 5dbed5b
feat: Improve dark mode support and debug panel
tazmon95 3326ac9
fix: Prevent duplicate log lines in debug panel
tazmon95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| #!/usr/bin/env python3 | ||
| """ | ||
| Register Project Script | ||
| ======================== | ||
|
|
||
| Simple CLI script to register a project in the autocoder registry. | ||
| Called by the /create-spec command after generating spec files. | ||
|
|
||
| Usage: | ||
| python register_project.py <project_name> <project_path> | ||
|
|
||
| Example: | ||
| python register_project.py my-app ~/projects/my-app | ||
| """ | ||
|
|
||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| # Add parent directory to path so we can import registry | ||
| sys.path.insert(0, str(Path(__file__).parent)) | ||
|
|
||
| from registry import register_project, get_project_path, RegistryError | ||
|
|
||
|
|
||
| def main(): | ||
| if len(sys.argv) != 3: | ||
| print("Usage: python register_project.py <project_name> <project_path>", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
| name = sys.argv[1] | ||
| path = Path(sys.argv[2]).expanduser().resolve() | ||
|
|
||
| # Check if already registered | ||
| existing_path = get_project_path(name) | ||
| if existing_path: | ||
| if existing_path.resolve() == path: | ||
| print(f"Project '{name}' is already registered at {path}") | ||
| sys.exit(0) | ||
| else: | ||
| print(f"Project '{name}' is already registered at a different path: {existing_path}", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
| # Validate path exists | ||
| if not path.exists(): | ||
| print(f"Error: Path does not exist: {path}", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
| if not path.is_dir(): | ||
| print(f"Error: Path is not a directory: {path}", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
| # Register the project | ||
| try: | ||
| register_project(name, path) | ||
| print(f"Registered project '{name}' at {path}") | ||
| except RegistryError as e: | ||
| print(f"Error: {e}", file=sys.stderr) | ||
| sys.exit(1) | ||
| except ValueError as e: | ||
| print(f"Invalid project name: {e}", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded user path will break for other users.
The absolute path
/home/john/autocoder/register_project.pyis user-specific and will fail for anyone with a different username or installation directory. Use a relative path or derive the path dynamically.Suggested fix
Where
<project_name>is derived from the project path (the last directory component, e.g.,my-appfrom~/projects/my-app).Example:
In @.claude/commands/create-spec.md around lines 521 - 539, The hardcoded path
to register_project.py will break for other users; update the example/command to
derive the script location dynamically instead of using
/home/john/autocoder/register_project.py — e.g., locate the installed Autocoder
scripts via which start_ui.py and use its dirname to build the path to
register_project.py, or reference an environment variable like $AUTOCODER_HOME
or a relative path so the command works across installations.