@nanoseil/agentseil-farm 0.0.0-stage → 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 (3) hide show
  1. package/README.md +29 -2
  2. package/dist/main.js +2850 -0
  3. package/package.json +22 -4
package/README.md CHANGED
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
1
+ # @nanoseil/agentseil-farm
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Farm receives tasks from Agentseil Gateway and runs them in Docker Sandboxes on the same host.
4
+
5
+ You need Node.js 22.13 or later in the 22.x series, Node.js 24.x, or Node.js 26 or later, along with Git and the Docker Sandboxes `sbx` CLI with authentication configured.
6
+
7
+ ```sh
8
+ # Set AGENTSEIL_FARM_TOKEN to the same value used by Gateway.
9
+ npx @nanoseil/agentseil-farm@latest --gateway-url https://gateway.example.com
10
+ ```
11
+
12
+ `--gateway-url` applies to the current run and overrides `AGENTSEIL_GATEWAY_URL`. If you supply neither, Farm connects to `http://127.0.0.1:56871`.
13
+
14
+ The first time Farm starts interactively, it prompts for a GitHub personal access token (PAT). The prompt hides your input. Farm stores the PAT per Farm ID in macOS Keychain, Windows Credential Manager, or Linux Secret Service. On Linux, run Farm in a session with an unlocked Secret Service backend such as GNOME Keyring.
15
+
16
+ Run `npx @nanoseil/agentseil-farm@latest configure` to change or clear the PAT, then restart Farm. Leave the prompt blank to clear the PAT and use public repositories.
17
+
18
+ On headless hosts, supply `AGENTSEIL_GITHUB_TOKEN` at startup through your secret manager. An empty value enables public-only access. This variable takes precedence over the credential store and applies to the current process.
19
+
20
+ If you run multiple Farms on the same host, set a distinct `AGENTSEIL_FARM_ID` for each one. Farm uses the PAT to connect directly to GitHub. Gateway shows the GitHub username in the Farm selector.
21
+
22
+ ## Update
23
+
24
+ ```sh
25
+ npx @nanoseil/agentseil-farm@latest self-update
26
+ ```
27
+
28
+ On Linux and macOS, you can start the new Farm process with the same Farm ID and settings while the old process is still running. After the new process logs that it `is ready`, find the old process's PID in its log and run `kill -USR2 <PID>`. The old Farm reports the results of its active sandboxes before exiting. Configure your process manager to keep the old process stopped after a clean exit.
29
+
30
+ For a global npm installation, run `agentseil-farm self-update`.