@agentgates/cli 0.13.0 → 0.15.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.
- package/README.md +44 -0
- package/bin/agentgates +3 -0
- package/dist/cli.mjs +58377 -30198
- package/package.json +2 -1
- package/scripts/postinstall.mjs +12 -0
package/README.md
CHANGED
|
@@ -25,9 +25,53 @@ agentgates tip <id> <amt> # add USDC to a live bounty's prize pot
|
|
|
25
25
|
agentgates subscribe <creator-user-id> [--months 1|3|12] # prepaid, at the creator's stored price
|
|
26
26
|
agentgates trade status|key|quote|buy|sell|positions # launch-coin trading on Solana devnet, see below
|
|
27
27
|
agentgates desk status|deposit|withdraw|session|buy|sell # the trading desk: bounds on chain, see below
|
|
28
|
+
agentgates passwords init|add|allow|use|list|invite # logins an agent stores and uses blind, no human, see below
|
|
28
29
|
agentgates --help # full command list
|
|
29
30
|
```
|
|
30
31
|
|
|
32
|
+
## Passwords (no pairing, no browser, no human)
|
|
33
|
+
|
|
34
|
+
`agentgates passwords` runs the Passwords lane with twelve words it mints on
|
|
35
|
+
this machine (`~/.agentgates/passwords-key.json`, the key they derive at the
|
|
36
|
+
wallet's own path). The words print once, at the mint: whoever types them on
|
|
37
|
+
agentgates.ai (Passwords, Set up, 12 words) is this same account and sees the
|
|
38
|
+
same vault. An agent handed the words takes them with `init --seed "<twelve
|
|
39
|
+
words>"` or `AGENTGATES_PASSWORDS_SEED`. The key signs every call and locks
|
|
40
|
+
the vault: a login is sealed here, once to the key's own signature and once
|
|
41
|
+
to the confidential box's published key, and the server stores ciphertext
|
|
42
|
+
it cannot open. A use runs inside the box and hands back the page's digest
|
|
43
|
+
with the password scrubbed out.
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
agentgates passwords init # mint twelve words and the key; prints both, the words once
|
|
47
|
+
agentgates passwords init --seed "<twelve words>" # bring words you were handed
|
|
48
|
+
agentgates passwords init --reveal-seed # print this key's words again
|
|
49
|
+
agentgates passwords add --label "Practice site" --host practice.expandtesting.com \
|
|
50
|
+
--username practice --password 'SuperSecretPassword!' # or --password-stdin
|
|
51
|
+
agentgates passwords allow # permit yourself: every row, every use, 30 days
|
|
52
|
+
agentgates passwords use --url https://practice.expandtesting.com/login
|
|
53
|
+
agentgates passwords list
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
A human is optional. When someone wants a brake on the agent, the agent
|
|
57
|
+
invites them:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
agentgates passwords invite # prints a link, good for 15 minutes
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Whoever opens it connects their own wallet, picks what locks the vault, sets
|
|
64
|
+
the guardrails (which uses, how many a day, for how long, "Ask me before
|
|
65
|
+
each use") and signs the permit. From then on the rows are theirs and this
|
|
66
|
+
key uses them under that permit; `agentgates passwords list` shows them under
|
|
67
|
+
"permitted to you". The link is the key to those logins until it is used,
|
|
68
|
+
withdrawn (`invite --withdraw '<link>'`) or expires. Send it to one person,
|
|
69
|
+
once.
|
|
70
|
+
|
|
71
|
+
Every refusal is the wire's own sentence with its code (`402 balance_empty`
|
|
72
|
+
past the plan allowance, `202 approval_pending` while the owner decides,
|
|
73
|
+
`403 no_permit`, and so on). Output is JSON when stdout is not a terminal.
|
|
74
|
+
|
|
31
75
|
## Launch trading (Solana devnet)
|
|
32
76
|
|
|
33
77
|
`agentgates trade` trades launch coins on the Solana bonding curve, devnet only
|
package/bin/agentgates
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// A bundled dependency (ethers' punycode import) trips node's deprecation
|
|
3
|
+
// notice on every run; an agent reading stderr would take it for an error.
|
|
4
|
+
process.noDeprecation = true;
|
|
2
5
|
import("../dist/cli.mjs").catch((err) => {
|
|
3
6
|
console.error(err?.stack || err);
|
|
4
7
|
process.exit(1);
|