peerband 0.2.4 → 0.2.6
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 +7 -5
- package/dist/peerband.mjs +250 -222
- package/herdr-plugin.toml +1 -1
- package/package.json +7 -33
- package/protocol/README.md +4 -1
- package/protocol/relay-messages.schema.json +5 -2
- package/skills/peerband/SKILL.md +7 -4
package/herdr-plugin.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,42 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peerband",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "PeerBand CLI and Herdr plugin: reach your local coding agents from any MCP client through your PeerBand account",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://peerband.com",
|
|
8
|
-
"repository": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"peerband",
|
|
17
|
-
"herdr",
|
|
18
|
-
"mcp",
|
|
19
|
-
"coding-agents",
|
|
20
|
-
"cli"
|
|
21
|
-
],
|
|
22
|
-
"bin": {
|
|
23
|
-
"peerband": "dist/peerband.mjs"
|
|
24
|
-
},
|
|
25
|
-
"engines": {
|
|
26
|
-
"node": ">=22.13.0"
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist/",
|
|
30
|
-
"herdr/",
|
|
31
|
-
"herdr-plugin.toml",
|
|
32
|
-
"protocol/",
|
|
33
|
-
"install/",
|
|
34
|
-
"skills/",
|
|
35
|
-
"README.md",
|
|
36
|
-
"LICENSE",
|
|
37
|
-
"NOTICE",
|
|
38
|
-
"SECURITY.md"
|
|
39
|
-
],
|
|
8
|
+
"repository": { "type": "git", "url": "git+https://github.com/kshvidler/peerband-cli.git" },
|
|
9
|
+
"bugs": { "url": "https://github.com/kshvidler/peerband-cli/issues" },
|
|
10
|
+
"keywords": ["peerband", "herdr", "mcp", "coding-agents", "cli"],
|
|
11
|
+
"bin": { "peerband": "dist/peerband.mjs" },
|
|
12
|
+
"engines": { "node": ">=22.13.0" },
|
|
13
|
+
"files": ["dist/", "herdr/", "herdr-plugin.toml", "protocol/", "install/", "skills/", "README.md", "LICENSE", "NOTICE", "SECURITY.md"],
|
|
40
14
|
"scripts": {
|
|
41
15
|
"build": "node scripts/build.mjs",
|
|
42
16
|
"typecheck": "tsc --noEmit",
|
package/protocol/README.md
CHANGED
|
@@ -51,7 +51,7 @@ available. A server must check this feature before routing `list_environment` or
|
|
|
51
51
|
request deadline are unchanged. Old servers can ignore the header value.
|
|
52
52
|
|
|
53
53
|
Both tools require `principal.role: "owner"`, `environment:control` in the verified
|
|
54
|
-
principal's scopes, and
|
|
54
|
+
principal's scopes, and local environment control not being turned off (`enableEnvironmentControl` defaults to true). Read-only
|
|
55
55
|
mode and configured agent/workspace allowlists deny both tools. The server must
|
|
56
56
|
resolve ownership and require an explicit installation before dispatch. Guest
|
|
57
57
|
shares never grant environment authority.
|
|
@@ -75,4 +75,7 @@ Connectors may additionally return an `actions` array from `list_environment`.
|
|
|
75
75
|
Clients should require `agent.rename` in that list before offering agent-name
|
|
76
76
|
changes. This action takes `{paneId, name, idempotencyKey}` and addresses Herdr
|
|
77
77
|
by the explicit pane ID. Pane metadata includes the agent live `name` when known.
|
|
78
|
+
Clients should likewise require `workspace.close`, `tab.close` or `pane.close`
|
|
79
|
+
before offering to delete a space, tab or pane. Each takes only the matching
|
|
80
|
+
explicit ID and closes it in Herdr, ending whatever runs there.
|
|
78
81
|
Older connectors omit `actions` and keep their existing environment controls.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"$defs": {
|
|
14
14
|
"environmentControlArgs": {
|
|
15
|
-
"description": "Owner-only
|
|
15
|
+
"description": "Owner-only actions (on unless the machine turns them off); no native args, shell, implicit targets, agent stop or env overrides; close actions remove the explicitly named space, tab or pane. cwd must be an absolute path on the remote machine. See README for supported agent kinds.",
|
|
16
16
|
"oneOf": [
|
|
17
17
|
{"type": "object", "required": ["action", "idempotencyKey", "paneId", "name"], "additionalProperties": false, "properties": {"action": {"const": "agent.rename"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "paneId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}, "name": {"type": "string", "minLength": 1, "maxLength": 32, "pattern": "^[a-z][a-z0-9_-]{0,31}$"}}},
|
|
18
18
|
{"type": "object", "required": ["action", "idempotencyKey", "cwd"], "additionalProperties": false, "properties": {"action": {"const": "workspace.create"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "cwd": {"type": "string", "minLength": 1, "maxLength": 2048}, "label": {"type": "string", "minLength": 1, "maxLength": 128}}},
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
{"type": "object", "required": ["action", "idempotencyKey", "tabId"], "additionalProperties": false, "properties": {"action": {"const": "tab.focus"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "tabId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}}},
|
|
25
25
|
{"type": "object", "required": ["action", "idempotencyKey", "tabId", "label"], "additionalProperties": false, "properties": {"action": {"const": "tab.rename"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "tabId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}, "label": {"type": "string", "minLength": 1, "maxLength": 128}}},
|
|
26
26
|
{"type": "object", "required": ["action", "idempotencyKey", "paneId"], "additionalProperties": false, "properties": {"action": {"const": "pane.focus"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "paneId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}}},
|
|
27
|
-
{"type": "object", "required": ["action", "idempotencyKey", "paneId", "label"], "additionalProperties": false, "properties": {"action": {"const": "pane.rename"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "paneId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}, "label": {"type": "string", "minLength": 1, "maxLength": 128}}}
|
|
27
|
+
{"type": "object", "required": ["action", "idempotencyKey", "paneId", "label"], "additionalProperties": false, "properties": {"action": {"const": "pane.rename"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "paneId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}, "label": {"type": "string", "minLength": 1, "maxLength": 128}}},
|
|
28
|
+
{"type": "object", "required": ["action", "idempotencyKey", "workspaceId"], "additionalProperties": false, "properties": {"action": {"const": "workspace.close"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "workspaceId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}}},
|
|
29
|
+
{"type": "object", "required": ["action", "idempotencyKey", "tabId"], "additionalProperties": false, "properties": {"action": {"const": "tab.close"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "tabId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}}},
|
|
30
|
+
{"type": "object", "required": ["action", "idempotencyKey", "paneId"], "additionalProperties": false, "properties": {"action": {"const": "pane.close"}, "idempotencyKey": {"type": "string", "minLength": 16, "maxLength": 256}, "paneId": {"type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$"}}}
|
|
28
31
|
]
|
|
29
32
|
},
|
|
30
33
|
"agentStatus": { "enum": ["idle", "working", "blocked", "done", "unknown"] },
|
package/skills/peerband/SKILL.md
CHANGED
|
@@ -98,9 +98,10 @@ peerband notify "Migration finished, 3 tests failing"
|
|
|
98
98
|
|
|
99
99
|
Use `list_environment` and `control_environment` for owner-requested Herdr layout
|
|
100
100
|
changes and agent startup. These need explicit `installation_id`, separate
|
|
101
|
-
`environment:control` OAuth consent
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
`environment:control` OAuth consent. They are on by default; the owner can turn
|
|
102
|
+
them off with `enableEnvironmentControl: false` in the machine's connector config
|
|
103
|
+
(or read-only mode). Message shares never grant this authority. Ask the owner to
|
|
104
|
+
enable it when disabled; do not edit their config on a guest's request.
|
|
104
105
|
|
|
105
106
|
List machines, then list that machine's environment for exact IDs. Use
|
|
106
107
|
`tab.create` with `workspace_id` and an absolute remote `cwd`, check the receipt
|
|
@@ -108,8 +109,10 @@ with `get_request_status`, then `agent.start` in its `result.rootPane.paneId`
|
|
|
108
109
|
(`pane_id`, `name`, `kind`). Next call `list_agents` for a PeerBand agent ID and
|
|
109
110
|
`send_agent_message` for its task. Other supported actions create workspaces,
|
|
110
111
|
split panes, and rename or focus workspaces/tabs/panes. Creation preserves focus.
|
|
112
|
+
`workspace.close`, `tab.close` and `pane.close` end everything running there:
|
|
113
|
+
use them only when the owner explicitly asks to close that exact item.
|
|
111
114
|
|
|
112
115
|
Each control needs a fresh random idempotency key; reuse that key for retries of
|
|
113
116
|
the identical operation. Inspect receipts before continuing a dependent action.
|
|
114
117
|
`delivery_unknown` requires inspection, never an automatic retry with a new key.
|
|
115
|
-
No shell, raw keys, agent flags
|
|
118
|
+
No shell, raw keys, agent flags or permission approvals are exposed.
|