Skip to content

Self-improving AI Employees for everyone

fix(lint+ci): drop stale ``machina`` package + ``temporal-server`` npm refs after cli/ rename

trohitga892c581fd42
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 5983761b..bae2b27b 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -39,15 +39,13 @@ runs:
- name: Install uv
uses: astral-sh/setup-uv@v4
- - name: Install global CLI tools
- shell: bash
- run: npm install -g temporal-server
-
- # machina (the project supervisor CLI at the repo root) is invoked by
- # pnpm scripts as `python -m machina ...` from the runner's system
- # Python. Install its runtime deps eagerly via the root pyproject.toml
- # so the first `pnpm run build` doesn't trip the self-bootstrap path.
- - name: Install machina CLI dependencies
+ # The supervisor CLI lives at <repo>/cli/ and is invoked by pnpm
+ # scripts as `python -m cli ...` from the runner's system Python.
+ # Install its runtime deps eagerly via the root pyproject.toml so
+ # the first `pnpm run build` doesn't trip the self-bootstrap path.
+ # User-facing entry-point is named `machina` (see [project.scripts]
+ # in pyproject.toml) — module name is `cli`.
+ - name: Install supervisor CLI dependencies
shell: bash
run: uv pip install --system -e .
@@ -59,5 +57,4 @@ runs:
echo "npm: $(npm --version)"
echo "Python: $(python --version)"
echo "uv: $(uv --version)"
- echo "temporal-server: $(temporal --version 2>/dev/null || echo 'installed')"
- echo "machina: $(python -c 'import machina; print(machina.__version__)' 2>/dev/null || echo 'failed to import')"
+ echo "cli: $(python -c 'import cli; print(cli.__version__)' 2>/dev/null || echo 'failed to import')"
diff --git a/.github/workflows/predeploy.yml b/.github/workflows/predeploy.yml
index 8eed612c..139b8095 100644
--- a/.github/workflows/predeploy.yml
+++ b/.github/workflows/predeploy.yml
@@ -50,15 +50,15 @@ jobs:
uv sync --extra dev
uv run pytest tests/ -v
- - name: Machina CLI tests (pytest)
- # 105 tests covering build/start/stop pipelines, daemon, ports, docs,
- # release config. Run from repo root — tests resolve workspace paths
- # via `pnpm list --json` (see machina/tests/conftest.py).
+ - name: Supervisor CLI tests (pytest)
+ # 106 tests covering build/start/stop pipelines, daemon, ports, docs,
+ # release config, clean. Run from repo root — tests resolve workspace
+ # paths via `pnpm list --json` (see cli/tests/conftest.py).
# `pyyaml` is needed by test_release_pipeline_config.py to parse the
- # workflow files; not a machina runtime dep, only a test-time one.
+ # workflow files; not a CLI runtime dep, only a test-time one.
run: |
uv pip install --system pytest pytest-asyncio pyyaml
- python -m pytest machina/tests/ -v
+ python -m pytest cli/tests/ -v
# Test build and start from source (cross-platform)
test-build-start:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a2c813f4..cfb08a61 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -88,7 +88,7 @@ jobs:
python-version: '3.12'
- name: Sync versions from git tag
- run: python -m machina version sync
+ run: python -m cli version sync
- name: Verify package contents
run: npm pack --dry-run
@@ -130,7 +130,7 @@ jobs:
python-version: '3.12'
- name: Sync versions from git tag
- run: python -m machina version sync
+ run: python -m cli version sync
- name: Configure scoped package
run: |
diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml
index 5480ea13..5a3951f0 100644
--- a/.github/workflows/test-install.yml
+++ b/.github/workflows/test-install.yml
@@ -37,9 +37,6 @@ jobs:
- name: Install uv
run: pip install uv
- - name: Install global CLI tools
- run: npm install -g temporal-server
-
- name: Install machinaos from npm
run: npm install -g machinaos
diff --git a/cli/commands/build.py b/cli/commands/build.py
index 5050eaa1..238a587e 100644
--- a/cli/commands/build.py
+++ b/cli/commands/build.py
@@ -14,7 +14,6 @@ import os
import re
import shutil
import sys
-from pathlib import Path
import typer
diff --git a/cli/commands/daemon.py b/cli/commands/daemon.py
index 281e7958..610d0017 100644
--- a/cli/commands/daemon.py
+++ b/cli/commands/daemon.py
@@ -12,10 +12,7 @@ not register itself with the system.
from __future__ import annotations
-import os
-import signal
import subprocess
-import sys
from pathlib import Path
import psutil
diff --git a/cli/commands/start.py b/cli/commands/start.py
index 1f84bd65..35109c6c 100644
--- a/cli/commands/start.py
+++ b/cli/commands/start.py
@@ -15,7 +15,6 @@ import asyncio
import json
import os
import subprocess
-import sys
import time
from pathlib import Path
@@ -27,7 +26,7 @@ from cli.platform_ import IS_WINDOWS, IS_WSL, platform_name, project_root
from cli.buildenv import validate_build, venv_python
from cli.ports import kill_port
from cli.run import which_argv
-from cli.supervisor import Manager, RestartPolicy, ServiceSpec
+from cli.supervisor import Manager, ServiceSpec
from cli.commands._temporal_specs import temporal_specs
diff --git a/cli/commands/stop.py b/cli/commands/stop.py
index 19f5ed25..8664b921 100644
--- a/cli/commands/stop.py
+++ b/cli/commands/stop.py
@@ -29,7 +29,7 @@ def stop_command() -> None:
console.print("[bold]Stopping MachinaOS services...[/]")
console.print(f"Platform: {platform_name()}")
console.print(f"Ports: {', '.join(str(p) for p in cfg.all_ports)}")
- console.print(f"Temporal: enabled" if cfg.temporal_enabled else "Temporal: disabled")
+ console.print("Temporal: enabled" if cfg.temporal_enabled else "Temporal: disabled")
console.print()
all_stopped = True
diff --git a/cli/tests/test_build.py b/cli/tests/test_build.py
index cb89cfb9..77fb9f10 100644
--- a/cli/tests/test_build.py
+++ b/cli/tests/test_build.py
@@ -7,7 +7,7 @@ from unittest.mock import MagicMock, patch
import pytest
import typer
-from machina import run as run_module
+from cli import run as run_module
from cli.commands import build
diff --git a/cli/tests/test_ports.py b/cli/tests/test_ports.py
index c6d7c7c3..93eedadb 100644
--- a/cli/tests/test_ports.py
+++ b/cli/tests/test_ports.py
@@ -6,7 +6,7 @@ from unittest.mock import MagicMock, patch
import psutil
-from machina import ports
+from cli import ports
def test_kill_pid_no_such_process_returns_false():
diff --git a/cli/tests/test_start.py b/cli/tests/test_start.py
index b8e44584..c761442f 100644
--- a/cli/tests/test_start.py
+++ b/cli/tests/test_start.py
@@ -5,7 +5,7 @@ from __future__ import annotations
from pathlib import Path
from unittest.mock import patch
-from machina import buildenv
+from cli import buildenv
from cli.commands import start
from cli.config import Config
diff --git a/cli/tests/test_version.py b/cli/tests/test_version.py
index 6eea0453..d3e41c50 100644
--- a/cli/tests/test_version.py
+++ b/cli/tests/test_version.py
@@ -6,8 +6,6 @@ import json
from pathlib import Path
from unittest.mock import patch
-import pytest
-import typer
from cli.commands import version
diff --git a/server/services/temporal/worker.py b/server/services/temporal/worker.py
index 77a41a10..e7ba6bdc 100644
--- a/server/services/temporal/worker.py
+++ b/server/services/temporal/worker.py
@@ -462,7 +462,7 @@ async def create_worker(
],
max_concurrent_activities=100,
max_concurrent_workflow_tasks=10,
- graceful_shutdown_timeout=_GRACEFUL_SHUTDOWN_TIMEOUT,
+ graceful_shutdown_timeout=_graceful_shutdown_timeout(),
)
diff --git a/server/tests/conftest.py b/server/tests/conftest.py
index 15c599bc..b9d72efd 100644
--- a/server/tests/conftest.py
+++ b/server/tests/conftest.py
@@ -59,7 +59,7 @@ _core_pkg = _make_package("core")
def _stub_log_context(**_fields):
"""Stub for ``core.logging.log_context`` (async ctx manager) and
``log_context_sync``. Both are no-ops under test."""
- from contextlib import asynccontextmanager, contextmanager
+ from contextlib import asynccontextmanager
@asynccontextmanager
async def _async_cm():