@bondsmith/bondsmithd 0.1.9 → 0.1.11

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 +8 -1
  2. package/dist/index.js +949 -676
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -38,8 +38,14 @@ Environment variables (all optional):
38
38
  PORT=4577 # defaults to 4577
39
39
  ALLOWED_ORIGINS=https://app.bondsmith.dev
40
40
  BONDSMITH_RELAY_URL=ws://127.0.0.1:8787 # defaults to production; set this when developing bondsmithd against a local apps/relay
41
+ BONDSMITH_RELAY_AUDIENCE=relay.example.com # only if a non-loopback relay's RELAY_AUDIENCE differs from its hostname
41
42
  ```
42
43
 
44
+ `BONDSMITH_API_URL` must be `https://`, and `BONDSMITH_RELAY_URL` must be `wss://`; the plain `http://`
45
+ and `ws://` forms are accepted only for a loopback server (`127.0.0.1`, `localhost`, `[::1]`). The relay
46
+ URL is only checked while the relay is enabled. The daemon refuses to register with a relay whose audience is not
47
+ the relay URL's hostname (or `BONDSMITH_RELAY_AUDIENCE`); a loopback relay is not checked.
48
+
43
49
  `BONDSMITH_DEV_TUNNEL_TOKEN` also exists but only applies to the legacy direct-connection path
44
50
  (`BONDSMITH_RELAY_ENABLED=false`) — should not be set by hand for a normal install.
45
51
 
@@ -79,7 +85,8 @@ tmux set-option -t "$TMUX_PANE" -q @bondsmith-agent-state "waiting:$(date +%s)"
79
85
  The value is `<state>:<epoch seconds>`, where state is `working`, `waiting` (needs the user) or `done`.
80
86
  The daemon reads it on its 5-second tick and shows it on the session. Anything else is ignored, as is
81
87
  a report dated in the future. A `waiting` or `done` report is dropped once the pane writes output more
82
- than 2 seconds after it, since that means the agent moved on; a `working` report is not.
88
+ than 2 seconds after it, since that means the agent moved on. A `working` report is dropped once the
89
+ pane has been silent for 2 minutes, since an interrupted or crashed agent never reports again.
83
90
 
84
91
  An agent can also share the plan it is working against, which Bondsmith shows above the session's
85
92
  changes. Run this from inside the session's pane once the plan is agreed, and again whenever it changes: