Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
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.ymlindex 5983761b..bae2b27b 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -39,15 +39,13 @@ runs:- name: Install uvuses: 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 dependenciesshell: bashrun: 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.ymlindex 8eed612c..139b8095 100644--- a/.github/workflows/predeploy.yml+++ b/.github/workflows/predeploy.yml@@ -50,15 +50,15 @@ jobs:uv sync --extra devuv 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.ymlindex 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 contentsrun: 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 packagerun: |diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.ymlindex 5480ea13..5a3951f0 100644--- a/.github/workflows/test-install.yml+++ b/.github/workflows/test-install.yml@@ -37,9 +37,6 @@ jobs:- name: Install uvrun: pip install uv- - name: Install global CLI tools- run: npm install -g temporal-server-- name: Install machinaos from npmrun: npm install -g machinaosdiff --git a/cli/commands/build.py b/cli/commands/build.pyindex 5050eaa1..238a587e 100644--- a/cli/commands/build.py+++ b/cli/commands/build.py@@ -14,7 +14,6 @@ import osimport reimport shutilimport sys-from pathlib import Pathimport typerdiff --git a/cli/commands/daemon.py b/cli/commands/daemon.pyindex 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 signalimport subprocess-import sysfrom pathlib import Pathimport psutildiff --git a/cli/commands/start.py b/cli/commands/start.pyindex 1f84bd65..35109c6c 100644--- a/cli/commands/start.py+++ b/cli/commands/start.py@@ -15,7 +15,6 @@ import asyncioimport jsonimport osimport subprocess-import sysimport timefrom pathlib import Path@@ -27,7 +26,7 @@ from cli.platform_ import IS_WINDOWS, IS_WSL, platform_name, project_rootfrom cli.buildenv import validate_build, venv_pythonfrom cli.ports import kill_portfrom cli.run import which_argv-from cli.supervisor import Manager, RestartPolicy, ServiceSpec+from cli.supervisor import Manager, ServiceSpecfrom cli.commands._temporal_specs import temporal_specsdiff --git a/cli/commands/stop.py b/cli/commands/stop.pyindex 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 = Truediff --git a/cli/tests/test_build.py b/cli/tests/test_build.pyindex cb89cfb9..77fb9f10 100644--- a/cli/tests/test_build.py+++ b/cli/tests/test_build.py@@ -7,7 +7,7 @@ from unittest.mock import MagicMock, patchimport pytestimport typer-from machina import run as run_module+from cli import run as run_modulefrom cli.commands import builddiff --git a/cli/tests/test_ports.py b/cli/tests/test_ports.pyindex c6d7c7c3..93eedadb 100644--- a/cli/tests/test_ports.py+++ b/cli/tests/test_ports.py@@ -6,7 +6,7 @@ from unittest.mock import MagicMock, patchimport psutil-from machina import ports+from cli import portsdef test_kill_pid_no_such_process_returns_false():diff --git a/cli/tests/test_start.py b/cli/tests/test_start.pyindex b8e44584..c761442f 100644--- a/cli/tests/test_start.py+++ b/cli/tests/test_start.py@@ -5,7 +5,7 @@ from __future__ import annotationsfrom pathlib import Pathfrom unittest.mock import patch-from machina import buildenv+from cli import buildenvfrom cli.commands import startfrom cli.config import Configdiff --git a/cli/tests/test_version.py b/cli/tests/test_version.pyindex 6eea0453..d3e41c50 100644--- a/cli/tests/test_version.py+++ b/cli/tests/test_version.py@@ -6,8 +6,6 @@ import jsonfrom pathlib import Pathfrom unittest.mock import patch-import pytest-import typerfrom cli.commands import versiondiff --git a/server/services/temporal/worker.py b/server/services/temporal/worker.pyindex 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.pyindex 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@asynccontextmanagerasync def _async_cm():