@flumecode/runner 0.23.1 → 0.25.0-preview.39

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
@@ -17,22 +17,34 @@ FlumeCode service never stores an API key or runs your code itself.
17
17
 
18
18
  ## Install & run
19
19
 
20
- The runner ships as a global CLI on npm. The Runners page in the web app shows
21
- these exact commands with your token pre-filled:
20
+ The runner ships as a global CLI on npm:
22
21
 
23
22
  ```bash
24
23
  npm install -g @flumecode/runner
25
24
 
26
- # Save the server URL + token (or run `flumecode login` for an interactive prompt)
27
- flumecode login --server https://<your-app> --token flrun_…
25
+ # Authorize this machine in the browser (GitHub sign-in). One approval provisions
26
+ # BOTH the runner token (for `start`) and the CLI token (for the `tui`).
27
+ flumecode login --server https://<your-app>
28
28
 
29
29
  # Start polling for jobs (keep it running)
30
30
  flumecode start
31
31
  ```
32
32
 
33
- Config is written to `~/.flume/config.json` (mode 0600). The token lives only
34
- there and is sent only as the `Authorization` header to your server. The default
35
- server for a bare interactive `flumecode login` can be set via `FLUME_SERVER`.
33
+ `flumecode login` opens `<server>/cli/authorize`, you sign in with GitHub and
34
+ approve, and the tokens are handed back to a one-shot `127.0.0.1` listener the CLI
35
+ runs (a loopback OAuth-style flow). Use `--cli-only` / `--runner-only` to provision
36
+ just one. The default server is `http://localhost:3000`, overridable with
37
+ `--server` or the `FLUME_SERVER` env var.
38
+
39
+ For CI or a headless box, skip the browser and paste tokens minted in the web app
40
+ (**Runners** page → runner token, **Settings → CLI tokens** → CLI token):
41
+
42
+ ```bash
43
+ flumecode login --server https://<your-app> --runner-token flrun_… --cli-token flcli_…
44
+ ```
45
+
46
+ Config is written to `~/.flume/config.json` (mode 0600). Tokens live only there and
47
+ are sent only as the `Authorization` header to your server.
36
48
 
37
49
  ## Developing on the runner
38
50