@factiii/runner 0.0.1
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/Dockerfile.claude +11 -0
- package/README.md +37 -0
- package/dist/cli.js +13740 -0
- package/package.json +52 -0
- package/vendor/frpc-linux-amd64 +0 -0
- package/vendor/frpc-linux-arm64 +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
FROM node:20-alpine
|
|
2
|
+
RUN apk add --no-cache git bash sudo curl
|
|
3
|
+
RUN adduser -D claude && echo "claude ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
4
|
+
RUN npm install -g @anthropic-ai/claude-code@~2.1.0
|
|
5
|
+
RUN mkdir -p /cache && chown claude:claude /cache
|
|
6
|
+
|
|
7
|
+
# frpc is `docker cp`'d in at runtime by the runner (only when public previews
|
|
8
|
+
# are enabled). See shared/all/helpers/card-ai/frpc.ts.
|
|
9
|
+
|
|
10
|
+
USER claude
|
|
11
|
+
WORKDIR /home/claude
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @factiii/runner
|
|
2
|
+
|
|
3
|
+
A headless daemon that runs Factiii's Board AI agents (Claude-driven coding sessions) on a machine you control. Install it on a workstation, dev box, or VM that has Docker and a stable network connection. The mobile and web Factiii clients then connect to it over WebRTC and offload AI work.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node 20+
|
|
8
|
+
- Docker (running and reachable via `docker info`)
|
|
9
|
+
- A Factiii account
|
|
10
|
+
- Outbound network access to the Factiii API server
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g @factiii/runner
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Or run without installing:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx @factiii/runner setup
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
factiii-runner setup # verify docker, build the claude image, pair this runner
|
|
28
|
+
factiii-runner connect # re-pair with a different account
|
|
29
|
+
factiii-runner start # run the daemon (keep this process alive)
|
|
30
|
+
factiii-runner status # show current config
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`setup` is the one-shot command that gets you from zero to running. It checks Docker, builds the `factiii-claude` image, and walks you through the browser pairing flow. After it finishes, `factiii-runner start` runs the daemon.
|
|
34
|
+
|
|
35
|
+
## Security notes
|
|
36
|
+
|
|
37
|
+
Tokens (Claude OAuth, GitHub PAT) are stored **unencrypted** at `~/.factiii-runner/config.json`. Anyone with shell access to this machine as the same user can read them. Only run a runner on a machine you trust, and only pair with accounts you own.
|