relayrunner 0.1.1 → 0.2.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.
package/README.md CHANGED
@@ -1,48 +1,64 @@
1
- # RelayRunner
1
+ # RelayRunner CLI
2
2
 
3
- Run selected GitHub Actions jobs on your own machine during development, then
4
- switch future jobs back to GitHub-hosted runners.
3
+ Connects a machine to the RelayRunner gateway so it can run your workspace's
4
+ GitHub Actions jobs. See [#61](https://github.com/relayrunner/relayrunner/issues/61)
5
+ for the plan.
5
6
 
6
- ## Install
7
+ ## `relayrunner connect`
7
8
 
8
- ### Install with an agent
9
-
10
- Paste this into your agent from the checkout you want to set up:
11
-
12
- ```text
13
- Set up RelayRunner in this checkout using https://raw.githubusercontent.com/atticoos/RelayRunner/main/docs/agent-install.md
9
+ ```sh
10
+ npx relayrunner connect
14
11
  ```
15
12
 
16
- ### Install manually
13
+ The first run signs you in: it shows a code and opens the dashboard, where you
14
+ pick the workspace and name for this machine and approve. The machine token is
15
+ saved to `~/.relayrunner/machine.json` (mode 0600); later runs reuse it.
17
16
 
18
- ```sh
19
- npm install --global relayrunner
20
- relayrunner --help
21
- ```
17
+ While it runs, the machine is online: it keeps a WebSocket open to the gateway,
18
+ runs the jobs it's sent (one at a time) and prints what happens. It reconnects
19
+ on its own if the connection drops. Ctrl-C takes it offline; a job that's
20
+ running stops with it.
22
21
 
23
- RelayRunner requires Node.js 22+, Git, and an authenticated GitHub CLI. Runner
24
- setup supports macOS and Linux on x64 and ARM64.
22
+ - `--server <url>` or `RELAYRUNNER_URL` points it at another gateway. Changing it signs in again.
23
+ - `--name <name>` changes the suggested machine name (default: the hostname).
24
+ - If the machine is removed in the dashboard, `connect` deletes the saved token.
25
+ A running `connect` exits and asks you to run it again; a new one signs in
26
+ straight away.
25
27
 
26
- ## Set up a repository
28
+ Jobs run in `actions/runner`, which is downloaded into
29
+ `~/.relayrunner/runner/<version>` on first connect and checked against its
30
+ SHA-256. Set `RELAYRUNNER_HOME` to keep everything somewhere else.
27
31
 
28
- If RelayRunner is installed, paste this into your agent from the target checkout:
32
+ ## `relayrunner whoami`
29
33
 
30
- ```text
31
- Use the RelayRunner skill to set up this repository. Show me the eligible jobs, let me choose which ones to opt in, and show me the workflow patch for approval before applying it.
34
+ ```sh
35
+ npx relayrunner whoami
32
36
  ```
33
37
 
34
- From a private GitHub repository checkout, discover eligible jobs and preview
35
- the workflow change for the job you want to opt in:
38
+ Asks the gateway who the saved machine token belongs to and prints the machine,
39
+ its workspace, who enrolled it (name and email) and whether it's online now.
40
+
41
+ - Not signed in: says so and exits 1.
42
+ - Removed from the workspace (or the token is no longer valid): says so and
43
+ exits 1. The saved token is left alone; the next `connect` replaces it.
44
+ - Gateway unreachable: prints what's saved locally, marked unverified, and exits 0.
45
+ - `--json` prints the same as JSON (never the token). `--server <url>` or
46
+ `RELAYRUNNER_URL` only reports a sign-in for that gateway.
47
+
48
+ ## `relayrunner pause` and `relayrunner resume`
36
49
 
37
50
  ```sh
38
- relayrunner discover
39
- relayrunner preview --job .github/workflows/ci.yml:test
51
+ npx relayrunner pause
52
+ npx relayrunner resume
40
53
  ```
41
54
 
42
- Use the job ID from discovery. Review the patch before approving setup with
43
- the preview's fingerprint. Setup registers a runner that executes jobs under
44
- your local account.
55
+ Pausing stops new jobs routing to this machine while it stays connected and
56
+ enrolled. A job it's already running finishes. `resume` lets jobs route here
57
+ again. Anyone in the workspace can do the same from the machine's ⋯ menu on the
58
+ Runners page, and a running `relayrunner connect` prints when that happens.
59
+ Both exit 1 when not signed in or when the token is no longer valid.
60
+
61
+ ## Building
45
62
 
46
- The package includes the RelayRunner skill for Codex, Claude Code, and Cursor.
47
- See the [project README](https://github.com/atticoos/RelayRunner#readme) for
48
- skill installation, repository setup, and switching runners.
63
+ `pnpm --filter relayrunner build` bundles the CLI into `dist/cli.js` with
64
+ tsdown, including the workspace's `@relayrunner/machine-protocol` package.