agent-hub-sandbox CLI
agent-hub-sandbox is a minimal Node.js CLI used to exercise the agent-hub
autonomous workflow end-to-end (intake → slice → docs) on a small,
unambiguous feature. It has no real end users — treat it as a test fixture,
not a product.
Architecture
Section titled “Architecture”src/cli.jsexportsrun(argv, stdout), a pure function that parses args and writes to the given stdout stream. Kept separate frombin/so it’s testable without spawning a subprocess.bin/cli.jsis the executable entry point: wiresprocess.argv.slice(2),process.stdout, andprocess.exittorun().
Current behavior
Section titled “Current behavior”--versionwrites1.0.0\nand exits 0. The version string is a literal constant insrc/cli.js, not read frompackage.json.- Any other invocation (no args, unknown flags) prints nothing and exits 0.
Testing
Section titled “Testing”src/cli.test.js— unit tests callingrun()directly.src/cli.integration.test.js— spawnsbin/cli.jsas a subprocess to verify the real entry point.- Run both with
node --testfrom the repo root.