@countersign-hub/cli 0.1.2 → 0.1.4
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 +4 -2
- package/dist/child-entry.js +15268 -56710
- package/dist/cli.js +178842 -0
- package/package.json +6 -34
- package/LICENSE +0 -21
- package/dist/bin.js +0 -67518
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ It runs on Node 20 or later.
|
|
|
18
18
|
npx -y @countersign-hub/cli login
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
- **The page.** `login`
|
|
21
|
+
- **The page.** `login` prints a link to a page on the countersign console, and opens it in your browser when it can. Open the link if it does not open. Sign in with Privy, by email or a passkey.
|
|
22
22
|
- **The code.** Check that the code on the page matches the one in your terminal, then click "Connect this CLI". Never approve a code you did not start yourself: whoever started it gets your agent wallet's session.
|
|
23
23
|
- **The wallet.** The CLI prints your agent wallet's address. The wallet is a Privy server wallet: you never see, paste or store its key, and the CLI keeps only a session token.
|
|
24
24
|
- **The session.** `whoami` prints the address, and `logout` ends the session. A session lasts at most 7 days.
|
|
@@ -33,7 +33,7 @@ On Arc the hub pays the gas, so USDC is all the agent needs.
|
|
|
33
33
|
|
|
34
34
|
## Buy
|
|
35
35
|
|
|
36
|
-
Set the agent's limits first. The hub
|
|
36
|
+
Set the agent's limits first. The CLI and the MCP server check them before they ask the hub to sign, and the hub itself caps each payment at 1 USDC (1 USDT on Whitechain):
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
39
|
npx -y @countersign-hub/cli envelope set --cap 0.5 --per-merchant 0.1 --ask-above 0.05
|
|
@@ -42,6 +42,8 @@ npx -y @countersign-hub/cli buy <offer hash> --input '{"question":"what is arc?"
|
|
|
42
42
|
npx -y @countersign-hub/cli verify ~/.countersign/slips/<slip hash>.json --rpc https://rpc.testnet.arc.network
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
If that RPC answers "rate limit exceeded", which can happen on a shared network, any Arc testnet RPC works the same, for example `https://5042002.rpc.thirdweb.com`.
|
|
46
|
+
|
|
45
47
|
`buy` prints the seller's output, the slip hash and the release transaction on Arc. `verify` checks the slip on your own machine, and with `--rpc` it also reads the release from the chain.
|
|
46
48
|
|
|
47
49
|
## Sell
|