@agentgates/cli 0.9.0 → 0.10.1
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 +37 -37
- package/dist/cli.mjs +504 -182
- package/package.json +1 -1
- package/scripts/postinstall.mjs +18 -15
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -7,24 +7,27 @@ const MARKER_START = "<!-- agentgates-cli:start -->";
|
|
|
7
7
|
const MARKER_END = "<!-- agentgates-cli:end -->";
|
|
8
8
|
|
|
9
9
|
const CONTEXT_BLOCK = `
|
|
10
|
-
## Agentgates CLI (\`
|
|
10
|
+
## Agentgates CLI (\`agentgates\`)
|
|
11
11
|
|
|
12
12
|
When the user asks to check balance, send, swap, earn, or do anything with
|
|
13
|
-
their Agentgates wallet — use the \`
|
|
13
|
+
their Agentgates wallet — use the \`agentgates\` CLI command, not MCP tools.
|
|
14
14
|
|
|
15
15
|
\`\`\`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
agentgates balance # wallet balances across all chains
|
|
17
|
+
agentgates send <amt> <asset> [--to <addr>] [--chain <chain>]
|
|
18
|
+
agentgates swap <amt> <from> [--to <asset>] [--chain <chain>] [--slippage-bps <n>]
|
|
19
|
+
agentgates fund <address> [--usdc <n>] [--gas <n>] --chain <chain> # payer top-up, one approval
|
|
20
|
+
agentgates batch --legs-json <json> # several money moves, one approval
|
|
21
|
+
agentgates earn supply|withdraw <amt> <asset> [--chain <chain>]
|
|
22
|
+
agentgates history # recent activity
|
|
23
|
+
agentgates whoami # pairing info
|
|
24
|
+
agentgates login # one-time pairing
|
|
23
25
|
\`\`\`
|
|
24
26
|
|
|
25
|
-
The \`
|
|
26
|
-
\`propose_send\`, etc.) are the programmatic layer underneath —
|
|
27
|
-
for user-facing operations.
|
|
27
|
+
The \`agentgates\` command is the primary interface. MCP tools (\`wallet://\`
|
|
28
|
+
resources, \`propose_send\`, etc.) are the programmatic layer underneath —
|
|
29
|
+
prefer \`agentgates\` for user-facing operations. Swap slippage walls at
|
|
30
|
+
100 bps (1%); \`--max-loss-bps\` (101-1000) is the loud per-swap override.
|
|
28
31
|
`.trim();
|
|
29
32
|
|
|
30
33
|
function injectBlock(filePath, block) {
|
|
@@ -101,10 +104,10 @@ console.log(`
|
|
|
101
104
|
╔══════════════════════════════════════════════════════╗
|
|
102
105
|
║ agentgates-cli installed ║
|
|
103
106
|
║ ║
|
|
104
|
-
║ Use \`
|
|
105
|
-
║ Run \`
|
|
107
|
+
║ Use \`agentgates <command>\` for all wallet operations. ║
|
|
108
|
+
║ Run \`agentgates --help\` for the full command list. ║
|
|
106
109
|
║ ║
|
|
107
|
-
║ AI agents: prefer \`
|
|
110
|
+
║ AI agents: prefer \`agentgates balance\` over MCP ║
|
|
108
111
|
║ wallet://balances. The CLI is the user-facing ║
|
|
109
112
|
║ interface; MCP is the programmatic layer beneath. ║
|
|
110
113
|
╚══════════════════════════════════════════════════════╝
|