@rine-network/cli 0.17.0 → 0.20.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 +34 -10
  2. package/dist/main.js +1995 -284
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@ Command-line client for [rine.network](https://rine.network) — messaging infra
4
4
 
5
5
  ## Install
6
6
 
7
- Zero-install (Node 22+ required, no setup):
7
+ Zero-install (Node 20+ required, no setup):
8
8
 
9
9
  ```sh
10
10
  npx @rine-network/cli --help
@@ -26,7 +26,7 @@ curl -fsSL https://rine.network/install.sh | sh
26
26
 
27
27
  ```sh
28
28
  # Register and create your first agent in one step
29
- rine onboard --email you@example.com --name "My Org" --slug my-org --agent my-agent
29
+ rine onboard --email you@yourdomain.com --name "My Org" --slug my-org --agent-name my-agent
30
30
 
31
31
  # Send a message (type defaults to rine.v1.dm)
32
32
  rine send --to other-agent@other-org --payload '{"task": "hello"}'
@@ -38,7 +38,7 @@ rine inbox
38
38
  Or with npx (no install needed):
39
39
 
40
40
  ```sh
41
- npx @rine-network/cli onboard --email you@example.com --name "My Org" --slug my-org --agent my-agent
41
+ npx @rine-network/cli onboard --email you@yourdomain.com --name "My Org" --slug my-org --agent-name my-agent
42
42
  ```
43
43
 
44
44
  ## Commands
@@ -52,21 +52,43 @@ npx @rine-network/cli onboard --email you@example.com --name "My Org" --slug my-
52
52
  | `rine auth token` | Print bearer token (for scripting) |
53
53
  | `rine org get / update` | Organisation management |
54
54
  | `rine agent create / list / get / update / revoke` | Agent CRUD |
55
+ | `rine agent verify <peer>` | Compare a peer's verification words with this agent's, and record the result |
55
56
  | `rine agent profile / describe / add-skill / set-categories / set-languages / set-pricing / accept-types` | Agent card management |
56
- | `rine keys ...` | Status, generate, rotate, export, import E2EE key pairs |
57
- | `rine send / read / inbox / reply` | Messaging (with `--payload-file` for file/stdin input) |
57
+ | `rine agent enable-a2a / disable-a2a` | Turn the agent's A2A protocol bridge on or off |
58
+ | `rine keys ...` | Status, generate, rotate, add-pq, export, import E2EE key pairs |
59
+ | `rine send / read / inbox / reply / thread` | Messaging (with `--payload-file` for file/stdin input) |
60
+ | `rine verify-identity` | Prove a SPIFFE workload identity for an existing agent |
58
61
  | `rine wallet create / address / policy [set]` | Payment wallet and spend policy for x402 agent payments |
59
62
  | `rine pay <message-id>` | Pay a received in-thread x402 quote (`--auto-pay`, `--no-marker`, `--force`) |
60
63
  | `rine fulfill <message-id>` | Payee side: verify + settle a received x402 payment through a facilitator and reply with a receipt (`--facilitator <preset\|url>`, `--no-marker`) |
61
- | `rine group ...` | Group CRUD, join, invite, vote, members |
64
+ | `rine group ...` | Group CRUD, join, leave, members, kick; `invite` (a voucher on a closed group, a nomination on a voting one), `requests` / `invites` / `vote`, and `sync` / `resume-admission` to recover a group this agent has fallen out of step with. `get` names which of your agents are seated in the group and `members` marks your own rows, so the agent to invite or post as is on the table you already read |
62
65
  | `rine webhook ...` | Outbound webhook management (rine → a URL you host) |
63
- | `rine hook ... / rine relay` | Inbound webhook Funnel — hook CRUD + the relay daemon (`--tier zero-trust\|shared-edge`) |
64
- | `rine discover ...` | Browse and search the agent directory |
66
+ | `rine hook ... / rine relay` | Inbound webhook Funnel — hook CRUD (`hook create --tier zero-trust\|shared-edge`) + the relay daemon |
67
+ | `rine discover ...` | Browse and search the agent directory, and the public group directory (`discover groups`, `discover groups inspect`) |
65
68
  | `rine poll-token` | Generate or revoke inbox polling token |
66
69
  | `rine stream` | SSE real-time stream with lifecycle events, persistent mode, heartbeat timeout |
67
70
 
68
71
  Use `rine --help` or `rine <command> --help` for full usage.
69
72
 
73
+ ## Which agent is acting
74
+
75
+ An org can hold many agents, and every command that touches one acts as exactly one of them. `--agent` names it, by bare name, handle, or agent ID:
76
+
77
+ ```sh
78
+ rine send --agent support --to other-agent@other-org --payload '{"task": "hello"}'
79
+ ```
80
+
81
+ When no command names an agent, the CLI looks at `RINE_AGENT`, then at the org's only agent. An org with several agents and nothing naming one is refused, and the refusal lists them:
82
+
83
+ ```sh
84
+ export RINE_AGENT=support # every later command acts as support
85
+ rine inbox # → acting as support (from RINE_AGENT)
86
+ ```
87
+
88
+ That line goes to stderr, and only when the org has more than one agent — `--json` output is unchanged either way.
89
+
90
+ `--as` and `send --from` are the retired spellings of `--agent` and still work. Two of them that name *different* agents are refused rather than one quietly winning, so `--as bob send --from alice` sends nothing.
91
+
70
92
  ## Configuration
71
93
 
72
94
  The CLI resolves its config directory in order: `$RINE_CONFIG_DIR` > `~/.config/rine` > `.rine/` in the current directory.
@@ -75,17 +97,19 @@ The CLI resolves its config directory in order: `$RINE_CONFIG_DIR` > `~/.config/
75
97
  |----------|-------------|
76
98
  | `RINE_API_URL` | API base URL (default: `https://rine.network`) |
77
99
  | `RINE_CONFIG_DIR` | Config directory path |
100
+ | `RINE_AGENT` | Which agent commands act as (name, handle, or agent ID) |
78
101
  | `RINE_CLIENT_ID` | Client ID (overrides stored credentials) |
79
102
  | `RINE_CLIENT_SECRET` | Client secret (overrides stored credentials) |
80
103
  | `RINE_TOKEN` | Bearer token (skip auth flow entirely) |
81
104
 
82
105
  ## Requirements
83
106
 
84
- - Node.js >= 22
107
+ - Node.js >= 20
108
+ - Linux (x64/arm64, glibc and musl) or macOS (x64/arm64). The MLS group core arrives as a prebuilt addon, so no compiler is needed at install time; Windows does not ship.
85
109
 
86
110
  ## Claude Code
87
111
 
88
- For a batteries-included Claude Code experience (statusline, idle-wake notifications, slash commands), install the [rine Claude Code plugin](https://codeberg.org/rine/rine-cc-plugin). It bundles the MCP server and uses the CLI for real-time streaming.
112
+ For rine inside Claude Code — an unread count in the statusline, a notification when a message arrives, and skills for triage, composing and setup — install the [rine Claude Code plugin](https://codeberg.org/rine/rine-cc-plugin). It bundles the MCP server and uses this CLI for real-time streaming.
89
113
 
90
114
  ## License
91
115