agent-board-runner 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +60 -0
  2. package/dist/cli.js +2270 -0
  3. package/dist/index.js +2133 -0
  4. package/package.json +40 -0
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # agent-board-runner
2
+
3
+ Local runner for [Agent Board](https://github.com/paulaolileal/agent-board): watches your
4
+ projects' board for cards, runs Claude Code against your own repos on your own machine, and
5
+ exposes a terminal/preview back to the web app over a Cloudflare Quick Tunnel — no Cloudflare
6
+ account, login or setup required; `start` opens it for you and it just works.
7
+
8
+ Signs in with your own Google account (Supabase Auth) — there's no shared secret to be
9
+ handed out. Every read/write it makes is scoped to your account by the database's row-level
10
+ security, same as the web app.
11
+
12
+ ## Install and run
13
+
14
+ No `.env` file needed for the default setup.
15
+
16
+ ```sh
17
+ npx agent-board-runner login
18
+ npx agent-board-runner start --path /path/to/your/repos
19
+ ```
20
+
21
+ - `login` opens your browser to sign in with Google. The session is saved locally
22
+ (`~/.agent-board/session.json`) and refreshes itself automatically — you only need to do
23
+ this again after an explicit `logout`, even across restarts.
24
+ - `start --path <folder>` runs the runner, pointed at the local folder that holds your repos
25
+ (every project's repo lives somewhere under it). `--path` can be skipped once
26
+ `AGENT_BOARD_ALLOWED_ROOT` is set instead (see below) — either way it only needs setting
27
+ once; the runner remembers it across restarts. Keep `start` running while you work — it's
28
+ what actually picks up card moves and drives Claude Code. For something that survives
29
+ closing the terminal, run it under [pm2](https://pm2.keymetrics.io/) or your OS's service
30
+ manager instead of a plain foreground process.
31
+ - Projects themselves are never registered from the CLI — add, edit and remove them from the
32
+ web app's "Adicionar projeto", picking a subfolder under the repos root above. Any project
33
+ pointing at this runner's id is picked up automatically on the next tick.
34
+
35
+ Other commands: `whoami` (show the signed-in account), `logout` (clear the local session).
36
+
37
+ ## Optional environment variables
38
+
39
+ Only needed to override the defaults — see `.env.example`.
40
+
41
+ - `AGENT_BOARD_SUPABASE_URL` / `AGENT_BOARD_SUPABASE_ANON_KEY` — point the runner at your own
42
+ Supabase project instead of the shared default.
43
+ - `AGENT_BOARD_RUNNER_NAME` — defaults to your machine's hostname.
44
+ - `AGENT_BOARD_ALLOWED_ROOT` — the local folder that holds your repos; alternative to
45
+ `start --path` (which takes priority if both are set). Required one way or the other —
46
+ every project's repo path is resolved relative to it, and it's also what the web app's "add
47
+ project" folder browser lists.
48
+ - `AGENT_BOARD_TERMINAL_PORT` — local port for the terminal/files HTTP server (default 8787).
49
+
50
+ ## Requirements
51
+
52
+ - Node.js 18+.
53
+ - [`cloudflared`](https://github.com/cloudflare/cloudflared) is downloaded automatically on
54
+ first use if it isn't already on your PATH. No Cloudflare account is needed: the runner
55
+ always opens an anonymous Quick Tunnel (`*.trycloudflare.com`), never a named/authenticated
56
+ one. Its hostname changes every restart — the web app always reads the current one from
57
+ `runners.tunnel_hostname`, so this needs no attention from you.
58
+ - `node-pty` is a native module — if `npm install` fails building it, install your platform's
59
+ usual native build toolchain (e.g. `build-essential`/Xcode Command Line Tools/Visual Studio
60
+ Build Tools) and retry.