Skip to content

About

Desktop window onto Assembly Line factory floors, on this machine and over SSH. The desktop companion to al-control.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Control Room

A desktop window onto Assembly Line factory floors, on this machine and on machines you reach over SSH. Browse lines, stations, bins and workpieces; see why workpieces failed, grouped by error; retry them; clear finished work; start and stop factory sessions; open a terminal in any factory or workpiece folder.

The desktop companion to the al-control CLI. Both read the same config and run the same probe, so they always agree on what is in a bin and what is safe to delete.

Beta. macOS (universal) and Windows builds; the macOS build isn't notarized yet (see Install). Docs · About · Changelog

What it shows

  • Rail: one host per window. Factories → lines → stations → bins → workpieces → files, with done, failed and output counts on every row, refreshed every 2 seconds.
  • Failures: every failed workpiece on the host, grouped by error (the same grouping as al-control workpieces errors), including failed folders with no pointer.json.
  • Housekeeping: clear done and finished workpieces by host, factory, line, bin or workpiece. Every clear is a dry run first, and it only ever deletes from done bins and a line's terminal output, never a bin the factory keeps or a bin a conveyor (lib-factory:move_files) drains.
  • Retry: drag a failed or done workpiece back to its station's input.
  • Factory sessions: pm2 start, stop and a live log tail.
  • Terminal: a shell in a factory or workpiece folder, local or over ssh.

How it works

             ~/.al/al-control/config.yml
             hosts → factories → paths   (shared with al-control)
                              │
                 Control Room (Tauri: Rust + Next.js)
                ┌─────────────┴──────────────┐
          host: local                  host: <ssh alias>
      node - (al-control's probe)   ssh → node - (the same probe on stdin)
      pm2 directly                  ssh → pm2
                                    host needs node + pm2, nothing else

The probe is al-control's src/probe.js, bundled byte for byte, and it runs the same way for every host, so Control Room and the CLI compute the same lines, terminals and counts. On this machine it uses the node your login shell finds (or the local host's node: in the config). Remote calls share al-control's SSH connection (~/.al/al-control/ssh-<hash>), so whichever signs in first, the other rides along.

Install

macOS:

curl -fsSL https://raw.githubusercontent.com/assemblyline-sh/control-room/main/install.sh | bash

It downloads the latest release into /Applications (or ~/Applications), and run again it updates. Read install.sh first if you like; it's short.

Windows: download the .exe or .msi from Releases.

macOS: "Control Room" Not Opened

Temporary, until the macOS build is signed and notarized with an Apple Developer ID. If you downloaded the .dmg in a browser, macOS quarantines the app and refuses to open it ("Apple could not verify 'Control Room' is free of malware"). Clear the flag once after installing:

xattr -dr com.apple.quarantine "/Applications/Control Room.app"

Or open System Settings → Privacy & Security and click Open Anyway. The install script above doesn't hit this: curl downloads aren't quarantined.

Windows: "Windows protected your PC"

The installer isn't signed yet, so SmartScreen stops it. Click More info, then Run anyway.

What works on Windows so far: lines, stations, bins, workpieces, failures, clear and retry, for factories on this computer and on Mac or Linux hosts over ssh, plus Open in Terminal. Not yet:

  • pm2 status, start, stop and logs for a factory on this computer, and finding its running factories when you add one. al-control's probe finds processes on macOS and Linux only.
  • A Windows computer as a remote host. The remote commands assume a Unix shell.
  • Shared ssh connections. Windows' OpenSSH can't share them, so every remote call signs in afresh.

First run

With no factories yet, the app asks where they run and takes you through it, one question at a time:

  • On this computer: running factories are listed and ticked, or you pick a folder.
  • On another computer: pick it from your SSH settings or type its name. The app finds node and pm2 there, then lists the running factories, or you enter a folder. ssh <name> has to work in a terminal without a password.
  • No factory yet: it points you to the quickstart.

The same screens open later from + (add a computer) and + Add factory in the sidebar. A computer you've already added is offered again, typed with or without user@, to add more of its factories or just open it. Right-click a factory to remove it from Control Room.

Config

~/.al/al-control/config.yml, the same file as al-control:

hosts:
  local:
    factories:
      factory-acme: ~/factories/factory-acme
  build-box:
    ssh: build-box            # alias from ~/.ssh/config
    node: /home/me/.nvm/versions/node/v22.21.0/bin/node   # if node/pm2 come from nvm
    factories:
      factory-globex:
        path: ~/factories/factory-globex
        keep: [VM5/done]      # bins a clear must never touch

You don't need to write this by hand. The app never writes current_host: the host is per window, so nothing in the app can retarget the CLI.

Develop

Node.js 20+, a Rust toolchain and the Tauri 2 prerequisites.

npm install
npm run tauri:dev     # Next.js dev server and the native window
npm run tauri:build   # installers in src-tauri/target/release/bundle/
npm run typecheck
npm run lint
npm run check:probe   # the bundled probe is al-control's, byte for byte
npm test              # JS unit tests
cd src-tauri && cargo test

See CLAUDE.md for the architecture and the rules every change follows.

Licence

Apache-2.0. Forked from fob-watch (FinOpsBricks); see NOTICE.

About

Desktop window onto Assembly Line factory floors, on this machine and over SSH. The desktop companion to al-control.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages