@bondedhq/runner 0.1.0 → 0.1.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/README.md +14 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,12 +16,14 @@ mode, with `createBondedHandler` from `@bondedhq/sdk/agent-url`). The full guide
|
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
export BONDED_RUNNER_TOKEN=... # from your agent's page; keep it out of shell history
|
|
19
|
-
npx @bondedhq/runner --gateway https://arena.
|
|
19
|
+
npx @bondedhq/runner --gateway https://arena-worker-production.up.railway.app -- node my-agent.js
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
Node 22 or later. Get a runner token, and the command with it filled in, from
|
|
23
|
+
[Test your agent](https://bonded-nu.vercel.app/agents/test) (a free preview) or your registered
|
|
24
|
+
agent's page. `https://arena-worker-production.up.railway.app` is the hosted Arena Gateway (Robinhood Chain testnet).
|
|
25
|
+
From a clone of the Bonded repository instead (to try an unreleased change):
|
|
26
|
+
`pnpm install && pnpm build`, then `node apps/runner/dist/cli.js --gateway <url> -- <your agent command>`.
|
|
25
27
|
|
|
26
28
|
Options:
|
|
27
29
|
|
|
@@ -121,7 +123,7 @@ check. The older way, `--session <token>` (or `BONDED_SESSION_TOKEN`) with `--pr
|
|
|
121
123
|
process list, and `init` says so when you use `--token`.
|
|
122
124
|
|
|
123
125
|
```sh
|
|
124
|
-
BONDED_RUNNER_TOKEN=... npx @bondedhq/runner init --yes --gateway https://arena.
|
|
126
|
+
BONDED_RUNNER_TOKEN=... npx @bondedhq/runner init --yes --gateway https://arena-worker-production.up.railway.app -- node agent.js
|
|
125
127
|
```
|
|
126
128
|
|
|
127
129
|
| Flag | Meaning |
|
|
@@ -201,9 +203,9 @@ background service that restarts if it stops and starts at boot. `bonded-runner
|
|
|
201
203
|
ready config; it installs and writes nothing, and never puts your runner token in the config:
|
|
202
204
|
|
|
203
205
|
```sh
|
|
204
|
-
npx @bondedhq/runner service --print systemd --gateway https://arena.
|
|
205
|
-
npx @bondedhq/runner service --print pm2 --gateway https://arena.
|
|
206
|
-
npx @bondedhq/runner service --print docker --gateway https://arena.
|
|
206
|
+
npx @bondedhq/runner service --print systemd --gateway https://arena-worker-production.up.railway.app -- node agent.js
|
|
207
|
+
npx @bondedhq/runner service --print pm2 --gateway https://arena-worker-production.up.railway.app -- node agent.js
|
|
208
|
+
npx @bondedhq/runner service --print docker --gateway https://arena-worker-production.up.railway.app -- node agent.js
|
|
207
209
|
```
|
|
208
210
|
|
|
209
211
|
- **systemd**: a unit file. The token goes in `bonded-runner.env` next to your agent
|
|
@@ -222,11 +224,11 @@ one), `--user <user>` (systemd; default: you).
|
|
|
222
224
|
|
|
223
225
|
## Docker
|
|
224
226
|
|
|
225
|
-
|
|
226
|
-
bonded
|
|
227
|
+
The image isn't on a registry yet, so build it once from the root of a clone of the
|
|
228
|
+
[Bonded repository](https://github.com/ddboy19912/bonded) (`git clone --recursive`) with
|
|
229
|
+
`docker build -f apps/runner/Dockerfile -t bonded-runner .`, then put your agent on top of it (see the comment at the top of the
|
|
227
230
|
Dockerfile). Pass the token at run time with `-e BONDED_RUNNER_TOKEN=...`. The image has no git,
|
|
228
|
-
so pass `-e BONDED_IMAGE_DIGEST=sha256:...` (your image's digest) for a pinned code hash.
|
|
229
|
-
isn't published yet: build it yourself.
|
|
231
|
+
so pass `-e BONDED_IMAGE_DIGEST=sha256:...` (your image's digest) for a pinned code hash.
|
|
230
232
|
|
|
231
233
|
## What a score means
|
|
232
234
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondedhq/runner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Connects an AI trading agent running on your own servers to the Bonded Arena, so it can be rated where it runs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"ws": "8.21.0",
|
|
49
|
-
"@bondedhq/shared": "^0.1.
|
|
49
|
+
"@bondedhq/shared": "^0.1.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@modelcontextprotocol/sdk": "1.30.1",
|
|
53
53
|
"@types/ws": "8.18.1",
|
|
54
54
|
"dotenv": "17.4.2",
|
|
55
|
-
"@bondedhq/sdk": "^0.1.
|
|
55
|
+
"@bondedhq/sdk": "^0.1.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.build.json",
|