diff --git a/README.md b/README.md index bc88fd3..96e7d89 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,9 @@ pip install open-terminal open-terminal run --host 0.0.0.0 --port 8000 ``` +The [Open Machine alias package](packages/open-machine) provides the same CLI as +`open-machine` and depends on `open-terminal`. + Linux defaults to a separate XFCE desktop. Select GNOME explicitly with `--desktop-environment gnome`. See [desktop setup](docs/configuration.md#desktop) for required packages. Keep your existing display manager if prompted during installation. Docker `latest` includes XFCE and its dependencies. Sharing your actual logged-in desktop requires `--desktop-mode host`. If no API key is configured, one is generated and printed at startup. For Docker, find it with `docker logs open-terminal`. diff --git a/packages/open-machine/README.md b/packages/open-machine/README.md new file mode 100644 index 0000000..d15ccba --- /dev/null +++ b/packages/open-machine/README.md @@ -0,0 +1,26 @@ +# Open Machine + +Alias package for [Open Terminal](https://github.com/open-webui/open-terminal). +Installing it installs `open-terminal`; the `open-machine` command forwards all +arguments to the same CLI, including its existing help and version output. + +```bash +uvx open-machine@latest run --host 127.0.0.1 --port 8000 + +# Or pip +pip install open-machine +open-machine run --host 127.0.0.1 --port 8000 +``` + +To install from this checkout, run from the repository root: + +```bash +pip install ./packages/open-machine +``` + +This package has its own version and is built and published separately from +`open-terminal`. To build it from the repository root: + +```bash +uv build packages/open-machine --out-dir packages/open-machine/dist +``` diff --git a/packages/open-machine/open_machine/__init__.py b/packages/open-machine/open_machine/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/packages/open-machine/open_machine/cli.py b/packages/open-machine/open_machine/cli.py new file mode 100644 index 0000000..215ac72 --- /dev/null +++ b/packages/open-machine/open_machine/cli.py @@ -0,0 +1,11 @@ +"""Thin wrapper that forwards everything to open-terminal's CLI.""" + +import sys + + +def main(): + """Entry point that delegates to open-terminal's CLI.""" + from open_terminal.cli import main as open_terminal_main + + sys.argv[0] = "open-terminal" + open_terminal_main() diff --git a/packages/open-machine/pyproject.toml b/packages/open-machine/pyproject.toml new file mode 100644 index 0000000..a3d4181 --- /dev/null +++ b/packages/open-machine/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "open-machine" +version = "0.1.0" +description = "Alias package for open-terminal" +readme = "README.md" +license = "MIT" +requires-python = ">=3.11" +dependencies = ["open-terminal"] + +[project.scripts] +open-machine = "open_machine.cli:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build"