Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.6 KB
Raw Blame
# Run the coding agent daemon - one command, the control panel.
#
#   just run
#   RUST_LOG=coding_agent_worker=trace just run   # tap the ACP wire (Logs tab)
#
# Reads macrod.toml from the repository root (not ~/.macrod/macrod.toml).

ROOT := justfile_directory() + "/../.."
SCRIPTS := ROOT + "/tooling/xtask/crates/xtask_workflows/src/workflows/scripts"

# Serve this harness's agent sessions inside the control panel: registration,
# bound agents, live sessions, config, pairing, and logs - one process.
run:
    cd {{ ROOT }} && SQLX_OFFLINE=true cargo run -p coding_agent_worker -- --config {{ ROOT }}/macrod.toml

# Build the release `macrod` the way the tag workflow does, and prove it is as
# self-contained as it claims. Runs the workflow's own scripts rather than a
# copy of them, so a green run here means the same steps are green in CI.
#
#   just build-static                                    # host architecture
#   TARGET=aarch64-unknown-linux-musl just build-static  # cross, no smoke run
#
# Needs the dev shell: cargo-zigbuild, zig, and cmake all come from it.
build-static TARGET=(arch() + "-unknown-linux-musl"):
    cd {{ ROOT }} && TARGET={{ TARGET }} bash {{ SCRIPTS }}/build_agent_daemon_linux.sh
    cd {{ ROOT }} && TARGET={{ TARGET }} SLUG=local SAFE_TAG=dev \
        SMOKE_RUN={{ if TARGET == arch() + "-unknown-linux-musl" { "1" } else { "0" } }} \
        bash {{ SCRIPTS }}/package_agent_daemon.sh
    @# Both land at the workspace root, which is not where you ran this from.
    @cd {{ ROOT }} && echo "" \
        && echo "binary:  $(pwd)/target/{{ TARGET }}/release/macrod" \
        && echo "tarball: $(pwd)/artifacts/macrod-dev-local.tar.gz"