@agether/sdk 2.12.2 → 2.14.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/dist/cli.d.ts +29 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +533 -161
- package/dist/clients/AgentIdentityClient.d.ts +200 -0
- package/dist/clients/AgentIdentityClient.d.ts.map +1 -0
- package/dist/clients/AgentIdentityClient.js +351 -0
- package/dist/clients/AgetherClient.d.ts +242 -0
- package/dist/clients/AgetherClient.d.ts.map +1 -0
- package/dist/clients/AgetherClient.js +736 -0
- package/dist/clients/MorphoClient.d.ts +572 -0
- package/dist/clients/MorphoClient.d.ts.map +1 -0
- package/dist/clients/MorphoClient.js +1974 -0
- package/dist/clients/ScoringClient.d.ts +103 -0
- package/dist/clients/ScoringClient.d.ts.map +1 -0
- package/dist/clients/ScoringClient.js +112 -0
- package/dist/clients/X402Client.d.ts +198 -0
- package/dist/clients/X402Client.d.ts.map +1 -0
- package/dist/clients/X402Client.js +438 -0
- package/dist/index.d.mts +175 -27
- package/dist/index.d.ts +175 -27
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +533 -161
- package/dist/index.mjs +533 -161
- package/dist/types/index.d.ts +132 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +46 -0
- package/dist/utils/abis.d.ts +29 -0
- package/dist/utils/abis.d.ts.map +1 -0
- package/dist/utils/abis.js +138 -0
- package/dist/utils/config.d.ts +36 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +168 -0
- package/dist/utils/format.d.ts +44 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +75 -0
- package/package.json +1 -1
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Agether CLI — Direct Morpho Blue Credit for AI Agents
|
|
4
|
+
*
|
|
5
|
+
* Architecture (v2 — Safe + Safe7579):
|
|
6
|
+
* - All commands sign transactions directly with the agent's private key
|
|
7
|
+
* - Uses MorphoClient for lending (ERC-4337 UserOps through Safe account)
|
|
8
|
+
* - Uses X402Client for paid API calls
|
|
9
|
+
*
|
|
10
|
+
* Supported chains: Ethereum (1, default), Base (8453), Base Sepolia (84532)
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* agether init <private-key> [--agent-id <id>] [--chain <chainId>]
|
|
14
|
+
* agether register [--name <n>] Register ERC-8004 + Safe account
|
|
15
|
+
* agether balance Check balances
|
|
16
|
+
* agether status Show Morpho positions
|
|
17
|
+
* agether score Get credit score (x402-gated)
|
|
18
|
+
* agether markets List Morpho markets
|
|
19
|
+
* agether deposit --amount 0.05 --token WETH Deposit collateral
|
|
20
|
+
* agether borrow --amount 100 Borrow USDC
|
|
21
|
+
* agether deposit-and-borrow --amount 0.05 --token WETH --borrow 100
|
|
22
|
+
* agether repay --amount 50 Repay USDC
|
|
23
|
+
* agether withdraw --amount 0.05 --token WETH Withdraw collateral
|
|
24
|
+
* agether sponsor --amount 0.05 --token WETH --agent-id 123
|
|
25
|
+
* agether fund --amount 50 Fund Safe account with USDC
|
|
26
|
+
* agether x402 <url> [--method GET|POST] [--body <json>]
|
|
27
|
+
*/
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
|