#!/usr/bin/env node /** * hq-sync-runner — machine-targeted entrypoint for `@indigoai-us/hq-cloud` * (ADR-0001). * * The AppBar Sync menubar (Tauri + Rust) spawns this binary as a subprocess * and reads ndjson events from BOTH stdout and stderr (see "Channels" * below). The protocol is intentionally narrow and versioned-by-shape, not * by tooling — no chalk, no colors, no human prose. If you want to invoke * sync as a human, use `hq sync` in `@indigoai-us/hq-cli`. * * Flags: * --companies Fan out across every membership the caller has * --company Sync a single company (alternative to --companies) * --on-conflict abort | overwrite | keep | publish-local (default: abort) * --hq-root Local HQ directory (default: $HOME/hq) * --owner