Skip to content

Commit

Permalink
GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Nov 7, 2024
1 parent a6edab6 commit b36f4e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions computer_use/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def parse_args():
parser.add_argument("--api-base", "-b", help="Specify the API base URL")
parser.add_argument("--api-key", "-k", help="Specify the API key")
parser.add_argument("--debug", "-d", action="store_true", help="Run in debug mode")
parser.add_argument("--gui", "-g", action="store_true", help="Enable GUI control")
parser.add_argument(
"--yes", "-y", action="store_true", help="Automatically approve tools"
)
Expand Down
7 changes: 6 additions & 1 deletion computer_use/misc/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def welcome_message(args):
else:
model = "` ✳ CLAUDE-3.5-SONNET `" # {"-" * (terminal_width - len(model))} # ⎇

if args["gui"]:
gui = "` ✳ GUI CONTROL `"
else:
gui = " " * len(" ✳ GUI CONTROL ")

second_column_from_left = 20

markdown_text = f"""●
Expand All @@ -42,7 +47,7 @@ def welcome_message(args):
**TOOLS**{" "*(second_column_from_left-len("TOOLS"))}**MODEL**
` ❯ INTERPRETER `{" "*(second_column_from_left-len(" ❯ INTERPRETER "))}{model}
` ❚ FILE EDITOR `{" "*(second_column_from_left-len(" ❚ FILE EDITOR "))}**MODE**
` ⎋ GUI CONTROL `{" "*(second_column_from_left-len(" ⎋ GUI CONTROL "))}` ? ASK CONFIRMATION `
{gui}{" "*(second_column_from_left-len(" ⎋ GUI CONTROL "))}` ? ASK CONFIRMATION `
{random_tip}
Expand Down

0 comments on commit b36f4e0

Please sign in to comment.