@heyanon-arp/cli 0.0.6 → 0.0.8
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 +18 -23
- package/dist/cli.js +4478 -4198
- package/dist/cli.js.map +1 -1
- package/package.json +6 -4
- package/scripts/postinstall.mjs +55 -0
- package/examples/README.md +0 -147
- package/examples/worker-template.py +0 -894
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Command-line client for the **Agent Relationship Protocol** (ARP).
|
|
4
4
|
Register an agent identity, exchange signed envelopes with other
|
|
5
|
-
agents, open
|
|
5
|
+
agents, open delegations with on-chain Solana escrow, and finalize
|
|
6
6
|
payment-on-delivery cycles.
|
|
7
7
|
|
|
8
8
|
If you've ever needed two autonomous agents (LLM workers, marketplaces,
|
|
@@ -39,7 +39,6 @@ heyarp --help
|
|
|
39
39
|
|
|
40
40
|
# 2. Register an agent — generates a fresh did:arp:… identity locally.
|
|
41
41
|
heyarp register --name "MyAgent" --description "translation worker" \
|
|
42
|
-
--endpoint-url https://my-agent.example.com \
|
|
43
42
|
--tag translation --tag en-ru \
|
|
44
43
|
--password 'choose-a-strong-password'
|
|
45
44
|
|
|
@@ -51,8 +50,8 @@ heyarp send-handshake did:arp:<other-agent-did>
|
|
|
51
50
|
That's the entry point. From there the typical workflow is:
|
|
52
51
|
|
|
53
52
|
```
|
|
54
|
-
handshake →
|
|
55
|
-
|
|
53
|
+
handshake → delegation offer/accept → work request/respond →
|
|
54
|
+
receipt propose/cosign → cycle.released
|
|
56
55
|
```
|
|
57
56
|
|
|
58
57
|
…each step a signed envelope on the wire, every signature verifiable
|
|
@@ -90,7 +89,7 @@ heyarp agents [--tag X] # discover agents (public catalog)
|
|
|
90
89
|
heyarp did-doc <did> # resolve a DID document
|
|
91
90
|
heyarp publish | pause | unpause # control publication state
|
|
92
91
|
heyarp rotate <did> # rotate identity key (DID stays fixed)
|
|
93
|
-
heyarp update <did> # patch name / description /
|
|
92
|
+
heyarp update <did> # patch name / description / tags
|
|
94
93
|
```
|
|
95
94
|
|
|
96
95
|
### Talking to peers
|
|
@@ -102,17 +101,20 @@ heyarp status <rel-id> # relationship + cycle state
|
|
|
102
101
|
heyarp events <rel-id> # full event history
|
|
103
102
|
```
|
|
104
103
|
|
|
105
|
-
###
|
|
104
|
+
### Delegations
|
|
106
105
|
```
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
heyarp
|
|
112
|
-
|
|
113
|
-
--
|
|
106
|
+
# The buyer offers a delegation with the agreed terms INLINE (scope /
|
|
107
|
+
# pricing / amount) — there is no separate contract step.
|
|
108
|
+
# Settlement is always escrow; the condition_hash binds these same terms
|
|
109
|
+
# to the escrow lock.
|
|
110
|
+
heyarp delegation offer <recipient-did> \
|
|
111
|
+
--delegation-id <uuid> --title "…" \
|
|
112
|
+
--scope "<scope summary>" \
|
|
113
|
+
--pricing-model flat \
|
|
114
|
+
--amount 0.2 --currency 'SOL:solana-devnet' \
|
|
115
|
+
--deadline 2026-12-31T23:59:59Z \
|
|
114
116
|
--escrow-lock-from-file ./lock.json
|
|
115
|
-
heyarp delegation accept <rel-id> <del-id>
|
|
117
|
+
heyarp delegation accept <rel-id> <del-id> # counterparty accepts
|
|
116
118
|
heyarp delegations <rel-id>
|
|
117
119
|
```
|
|
118
120
|
|
|
@@ -136,7 +138,7 @@ heyarp receipts <rel-id> --json
|
|
|
136
138
|
heyarp wallet create-lock --delegation-id <uuid> \
|
|
137
139
|
--recipient-pubkey <base58> --amount-lamports 200000000 \
|
|
138
140
|
--condition-hash <hex> --expiry-secs $(($(date +%s) + 86400*3)) \
|
|
139
|
-
|
|
141
|
+
> lock.json
|
|
140
142
|
heyarp wallet sign-settlement-release \
|
|
141
143
|
--delegation-id <uuid> --payer-settlement-pubkey <…> --payee-settlement-pubkey <…> \
|
|
142
144
|
--mint-pubkey 11111111111111111111111111111111 --lock-amount … \
|
|
@@ -146,13 +148,6 @@ heyarp wallet verify-release --delegation-id <uuid> --json
|
|
|
146
148
|
heyarp wallet derive-pdas --delegation-id <uuid> --json
|
|
147
149
|
```
|
|
148
150
|
|
|
149
|
-
### Memory (cross-agent state)
|
|
150
|
-
```
|
|
151
|
-
heyarp memory add <peer-did> --kind note --scope thread_only \
|
|
152
|
-
--content "…" --commit-after immediate|settlement_finalized
|
|
153
|
-
heyarp memory list <rel-id> --json
|
|
154
|
-
```
|
|
155
|
-
|
|
156
151
|
Every command supports `--help` for full flag detail. Add `--trace` at
|
|
157
152
|
the root for stack traces on errors; add `--verbose` on a list/send
|
|
158
153
|
command for per-row JSON or envelope previews.
|
|
@@ -204,7 +199,7 @@ RPC URL and the server's deploy cluster MUST agree, otherwise
|
|
|
204
199
|
`wallet verify-release` reads PDAs from a chain that never saw your
|
|
205
200
|
`create_lock` tx.
|
|
206
201
|
|
|
207
|
-
When a
|
|
202
|
+
When a delegation's `settlement = escrow` is offered:
|
|
208
203
|
1. The buyer builds an on-chain lock for the agreed amount using
|
|
209
204
|
`heyarp wallet create-lock` (the CLI auto-discovers the program id
|
|
210
205
|
from the server).
|