Skip to content

Self-improving AI Employees for everyone

Remove Go dependency, fix test-install with machinaos build

trohitg8b860fa47c57
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 8cff95d9..e34e74c2 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -5,10 +5,10 @@
# - uses: ./.github/actions/setup
# - uses: ./.github/actions/setup
# with:
-# install-go: 'true'
+# node-version: '22'
name: 'Setup MachinaOS Environment'
-description: 'Setup Node.js, Python, and uv. Optionally Go.'
+description: 'Setup Node.js, Python, and uv.'
inputs:
node-version:
@@ -17,12 +17,6 @@ inputs:
python-version:
description: 'Python version'
default: '3.12'
- go-version:
- description: 'Go version (only used if install-go is true)'
- default: '1.21'
- install-go:
- description: 'Whether to install Go'
- default: 'false'
runs:
using: composite
@@ -38,11 +32,5 @@ runs:
with:
python-version: ${{ inputs.python-version }}
- - name: Setup Go
- if: inputs.install-go == 'true'
- uses: actions/setup-go@v5
- with:
- go-version: ${{ inputs.go-version }}
-
- name: Install uv
uses: astral-sh/setup-uv@v4
diff --git a/.github/workflows/predeploy.yml b/.github/workflows/predeploy.yml
index 9360cbe6..ec37163c 100644
--- a/.github/workflows/predeploy.yml
+++ b/.github/workflows/predeploy.yml
@@ -110,7 +110,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- # Setup Python and uv (postinstall.js skips in CI, so these must be pre-installed)
+ # Python and uv needed because postinstall.js skips in CI
- name: Setup environment
uses: ./.github/actions/setup
with:
@@ -123,39 +123,22 @@ jobs:
shell: bash
run: |
npm install -g machinaos-*.tgz
-
- # Verify CLI is available
machinaos --help
- # Check installed files exist
- INSTALL_PATH=$(npm root -g)/machinaos
- echo "Installed to: $INSTALL_PATH"
- ls -la "$INSTALL_PATH"
-
- # Verify key files
- test -f "$INSTALL_PATH/.env" && echo ".env created"
- test -d "$INSTALL_PATH/client" && echo "client/ exists"
- test -d "$INSTALL_PATH/server" && echo "server/ exists"
-
- - name: Setup Python venv
+ - name: Build (install client deps, build client, setup Python venv)
shell: bash
- run: |
- INSTALL_PATH=$(npm root -g)/machinaos
- cd "$INSTALL_PATH/server"
- uv venv
- uv sync
+ timeout-minutes: 10
+ run: machinaos build
- - name: Verify client build
+ - name: Verify build artifacts
shell: bash
run: |
INSTALL_PATH=$(npm root -g)/machinaos
+ echo "Installed to: $INSTALL_PATH"
- if [ -d "$INSTALL_PATH/client/dist" ]; then
- echo "Client built successfully"
- ls -la "$INSTALL_PATH/client/dist"
- else
- echo "Warning: client/dist not found"
- fi
+ test -f "$INSTALL_PATH/.env" && echo ".env exists"
+ test -d "$INSTALL_PATH/client/dist" && echo "client/dist/ built"
+ test -d "$INSTALL_PATH/server/.venv" && echo "server/.venv/ created"
- name: Test machinaos start
shell: bash
diff --git a/bin/cli.js b/bin/cli.js
index 010b6212..e8ac9c57 100644
--- a/bin/cli.js
+++ b/bin/cli.js
@@ -64,7 +64,6 @@ function expandPath() {
function checkDeps() {
const errors = [];
- const warnings = [];
// Node.js version check
const nodeVersion = parseInt(process.version.slice(1));
@@ -91,15 +90,6 @@ function checkDeps() {
errors.push('uv (Python package manager) - https://docs.astral.sh/uv/');
}
- // Go check (warning only - needed for WhatsApp service)
- if (!getVersion('go version')) {
- warnings.push('Go 1.21+ (optional, for WhatsApp service) - https://go.dev/dl/');
- }
-
- if (warnings.length > 0) {
- console.warn('Warnings:\n' + warnings.map(w => ` - ${w}`).join('\n') + '\n');
- }
-
if (errors.length > 0) {
console.error('Missing required dependencies:\n' + errors.map(e => ` - ${e}`).join('\n'));
console.error('\nInstall the missing dependencies and try again.');