peerband 0.1.1 → 0.1.3

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
@@ -7,7 +7,7 @@ MCP client --> PeerBand relay <== outbound WebSocket == peerband connector --> H
7
7
  (Claude, ...) (peerband.com) (on your machine) (your agents)
8
8
  ```
9
9
 
10
- Your MCP client can list agents, read their status and bounded recent output, and (only if you opt in) send them a message. This project is unofficial and is not affiliated with Herdr or Amazon.
10
+ Your MCP client can list agents, read their status and bounded recent output, and send them a message (sending needs your approval of the `agents:message` permission when you connect the client, and a machine can opt out; see [Security model](#security-model)). This project is unofficial and is not affiliated with Herdr or Amazon.
11
11
 
12
12
  ## Requirements
13
13
 
@@ -74,7 +74,7 @@ Opened your browser.
74
74
 
75
75
  ## The Relay tab
76
76
 
77
- The plugin adds a persistent tab titled `PeerBand Relay [On]` or `[Off]` that shows your account, connection state and a metadata-only activity log.
77
+ The plugin adds a persistent tab titled `PeerBand Relay [On]` or `[Off]` that shows your machine, account (when the server returned an email), whether messages are allowed, the connection state and a metadata-only activity log.
78
78
 
79
79
  - **Space** or **Enter** (or a click on the control box) toggles the connection.
80
80
  - **Q**, **Esc** or **Ctrl+C** asks to close the tab; press it again to confirm. Closing it disconnects the relay.
@@ -86,9 +86,10 @@ The plugin adds a persistent tab titled `PeerBand Relay [On]` or `[Off]` that sh
86
86
  | --- | --- |
87
87
  | `peerband login` | Sign in through your browser, then offer to add the Herdr plugin. Flags: `--no-browser`, `--name NAME`, `--server URL`, `--herdr-plugin ask\|install\|skip`; headless/CI: `--grant GRANT` |
88
88
  | `peerband logout` | Stop a running relay and delete the local credential. Does not revoke it on the server |
89
- | `peerband status` | Show login, relay and Herdr state. `--json` for machine-readable output |
90
- | `peerband connect` | Run the connector in the foreground. Flags: `--runtime herdr\|mock`, `--enable-writes`, `--config PATH`, `--server URL` |
91
- | `peerband relay` | Open or focus the Relay tab in Herdr |
89
+ | `peerband status` | Show login, relay, messaging and Herdr state, including whether the Herdr plugin is the right one. `--json` for machine-readable output |
90
+ | `peerband connect` | Run the connector in the foreground. Flags: `--runtime herdr\|mock`, `--read-only`, `--config PATH`, `--server URL` (`--enable-writes` is still accepted but redundant) |
91
+ | `peerband relay` | Open or focus the Relay tab in Herdr. If the plugin is missing the wrong version, a local checkout, or points at another config directory, it offers to repair it first |
92
+ | `peerband share` | Create a single-use invite link that shares this machine with another PeerBand user (read only; `--message` also allows messages; `--expires DAYS`, default 7). `share list` shows who has access and unused links; `share revoke ID` removes access or cancels a link |
92
93
  | `peerband herdr install` | Install (or update) the Herdr plugin |
93
94
  | `peerband herdr uninstall` | Stop the relay, remove the plugin and its `settings.json` |
94
95
  | `peerband --version`, `help [command]` | Version and help |
@@ -119,13 +120,23 @@ Optional `connector.json`:
119
120
  }
120
121
  ```
121
122
 
122
- All fields are optional. `allowedAgents` and `allowedWorkspaces` restrict what MCP clients can see; `stateDirectory` moves the receipt store (default `state/` in the config home). The `herdr` block is only needed when Herdr is not on `PATH` or you target a specific session.
123
+ All fields are optional. `enableWrites` defaults to `true`; set it to `false` to make this machine read-only (the same as `peerband connect --read-only`; it also applies to the Relay tab). `allowedAgents` and `allowedWorkspaces` restrict what MCP clients can see; `stateDirectory` moves the receipt store (default `state/` in the config home). The `herdr` block is only needed when Herdr is not on `PATH` or you target a specific session.
124
+
125
+ ## Agent skill
126
+
127
+ Give your coding agents (Claude Code, Codex, Cursor, ...) a skill that explains the PeerBand MCP tools and how to use them safely:
128
+
129
+ ```sh
130
+ npx skills add kshvidler/peerband-cli
131
+ ```
132
+
133
+ It installs `skills/peerband/SKILL.md` from this repository with the [`skills`](https://github.com/vercel-labs/skills) tool. `peerband login` and `peerband relay` print this command after a successful setup. The skill is not part of the npm package.
123
134
 
124
135
  ## Security model
125
136
 
126
137
  - **Outbound only.** The connector dials the relay over a WebSocket; it opens no listening port.
127
138
  - **Credential on disk** is stored in `credentials.json`, readable only by your user (mode 0600 inside a 0700 directory).
128
- - **Read-only by default.** Listing agents, status and bounded, sanitized output are available. Sending messages requires `--enable-writes` or `"enableWrites": true`, and each send needs an idempotency key.
139
+ - **Messaging is on by default, gated by consent.** An MCP client can call `send_agent_message` only if you approved the `agents:message` scope when you connected it (reading needs only the read scope). Each send needs an idempotency key. A machine can opt out entirely with `peerband connect --read-only` or `"enableWrites": false` in `connector.json`; `peerband status` and the Relay tab show which mode it is in.
129
140
  - **Metadata-only activity.** The Relay tab and receipts record what happened (tool, target, outcome), not prompts or output.
130
141
  - **Logout does not revoke.** `peerband logout` only deletes the local file. To revoke a machine, remove it in the PeerBand dashboard.
131
142
 
package/SECURITY.md CHANGED
@@ -12,7 +12,7 @@ This repository is the PeerBand client: the `peerband` CLI, the connector that d
12
12
 
13
13
  - credential storage and handling (`credentials.json`, enrollment grants)
14
14
  - the outbound relay connection and request handling
15
- - the opt-in write path (`send_agent_message`) and its authorization checks
15
+ - the write path (`send_agent_message`) and its authorization checks
16
16
  - the installers (`install/install.sh`, `install/install.ps1`)
17
17
  - the Herdr plugin launcher and process ownership
18
18
 
@@ -20,7 +20,8 @@ This repository is the PeerBand client: the `peerband` CLI, the connector that d
20
20
 
21
21
  - The connector only makes outbound connections. It never listens for inbound ones.
22
22
  - The credential file is created user-only (mode 0600 in a 0700 directory).
23
- - Writes are disabled unless you opt in with `--enable-writes` or `enableWrites` in `connector.json`.
23
+ - Sending messages to agents (`send_agent_message`) is allowed by default, but a request is only honoured if the MCP client holds the `agents:message` OAuth scope that the user approved at consent. Machines can opt out with `peerband connect --read-only` or `"enableWrites": false` in `connector.json`; the connector then rejects every send. `peerband status` and the Relay tab show which mode applies.
24
+ - `peerband relay` and `peerband status` check that the installed Herdr plugin is the release matching the CLI and uses the same config directory, and offer a repair when it does not.
24
25
  - The activity log is metadata only; prompts and agent output are not persisted.
25
26
  - `peerband logout` deletes the local credential but does not revoke it. Revoke machines from your PeerBand dashboard.
26
27