@agether/agether 2.1.0 → 2.2.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +13 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agether/agether",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "OpenClaw plugin for Agether — onchain credit for AI agents",
5
5
  "main": "src/index.ts",
6
6
  "openclaw": {
@@ -9,7 +9,7 @@
9
9
  ]
10
10
  },
11
11
  "dependencies": {
12
- "@agether/sdk": "^2.4.0",
12
+ "@agether/sdk": "^2.5.0",
13
13
  "axios": "^1.6.0",
14
14
  "ethers": "^6.9.0"
15
15
  },
package/src/index.ts CHANGED
@@ -339,12 +339,12 @@ export default function register(api: any) {
339
339
  api.registerTool({
340
340
  name: "morpho_deposit",
341
341
  description:
342
- "Deposit collateral (WETH, wstETH, or cbETH) into Morpho Blue via AgentAccount. Enables borrowing USDC.",
342
+ "Deposit collateral into Morpho Blue via AgentAccount. Enables borrowing USDC. Token is auto-discovered from available markets.",
343
343
  parameters: {
344
344
  type: "object",
345
345
  properties: {
346
346
  amount: { type: "string", description: "Amount of collateral tokens (e.g. '0.05')" },
347
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token" },
347
+ token: { type: "string", description: "Collateral token" },
348
348
  },
349
349
  required: ["amount", "token"],
350
350
  },
@@ -375,7 +375,7 @@ export default function register(api: any) {
375
375
  type: "object",
376
376
  properties: {
377
377
  collateralAmount: { type: "string", description: "Amount of collateral (e.g. '0.05')" },
378
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token" },
378
+ token: { type: "string", description: "Collateral token" },
379
379
  borrowAmount: { type: "string", description: "USDC amount to borrow (e.g. '50')" },
380
380
  },
381
381
  required: ["collateralAmount", "token", "borrowAmount"],
@@ -414,7 +414,7 @@ export default function register(api: any) {
414
414
  agentId: { type: "string", description: "Target agent's ERC-8004 ID (e.g. '17676')" },
415
415
  agentAddress: { type: "string", description: "Target AgentAccount address (alternative to agentId)" },
416
416
  amount: { type: "string", description: "Collateral amount (e.g. '0.05')" },
417
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token" },
417
+ token: { type: "string", description: "Collateral token" },
418
418
  },
419
419
  required: ["amount", "token"],
420
420
  },
@@ -452,7 +452,7 @@ export default function register(api: any) {
452
452
  type: "object",
453
453
  properties: {
454
454
  amount: { type: "string", description: "Amount in USD to borrow (e.g. '100')" },
455
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token (optional, auto-detected)" },
455
+ token: { type: "string", description: "Collateral token (optional, auto-detected)" },
456
456
  },
457
457
  required: ["amount"],
458
458
  },
@@ -484,7 +484,7 @@ export default function register(api: any) {
484
484
  type: "object",
485
485
  properties: {
486
486
  amount: { type: "string", description: "Amount in USD to repay (e.g. '50' or 'all' for full repayment)" },
487
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token (optional, auto-detected)" },
487
+ token: { type: "string", description: "Collateral token (optional, auto-detected)" },
488
488
  },
489
489
  required: ["amount"],
490
490
  },
@@ -515,7 +515,7 @@ export default function register(api: any) {
515
515
  type: "object",
516
516
  properties: {
517
517
  amount: { type: "string", description: "Amount to withdraw (e.g. '0.05' or 'all')" },
518
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token" },
518
+ token: { type: "string", description: "Collateral token" },
519
519
  },
520
520
  required: ["amount", "token"],
521
521
  },
@@ -551,7 +551,7 @@ export default function register(api: any) {
551
551
  amount: { type: "string", description: "USDC amount to supply (e.g. '500')" },
552
552
  market: {
553
553
  type: "string",
554
- enum: ["WETH", "wstETH", "cbETH"],
554
+
555
555
  description: "Which market to supply to, identified by collateral token (optional — auto-picks highest APY)",
556
556
  },
557
557
  },
@@ -588,7 +588,7 @@ export default function register(api: any) {
588
588
  properties: {
589
589
  market: {
590
590
  type: "string",
591
- enum: ["WETH", "wstETH", "cbETH"],
591
+
592
592
  description: "Filter by market collateral token (optional)",
593
593
  },
594
594
  },
@@ -641,7 +641,7 @@ export default function register(api: any) {
641
641
  amount: { type: "string", description: "USDC amount to withdraw (e.g. '100' or 'all')" },
642
642
  market: {
643
643
  type: "string",
644
- enum: ["WETH", "wstETH", "cbETH"],
644
+
645
645
  description: "Market collateral token (optional — auto-detects)",
646
646
  },
647
647
  },
@@ -679,7 +679,7 @@ export default function register(api: any) {
679
679
  amount: { type: "string", description: "USDC amount to pay from yield (e.g. '2.50')" },
680
680
  market: {
681
681
  type: "string",
682
- enum: ["WETH", "wstETH", "cbETH"],
682
+
683
683
  description: "Which supply position to use (optional — auto-picks highest yield)",
684
684
  },
685
685
  },
@@ -906,7 +906,7 @@ export default function register(api: any) {
906
906
  parameters: {
907
907
  type: "object",
908
908
  properties: {
909
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Filter by collateral token (optional)" },
909
+ token: { type: "string", description: "Filter by collateral token (optional)" },
910
910
  },
911
911
  required: [],
912
912
  },
@@ -947,7 +947,7 @@ export default function register(api: any) {
947
947
  parameters: {
948
948
  type: "object",
949
949
  properties: {
950
- token: { type: "string", enum: ["WETH", "wstETH", "cbETH"], description: "Collateral token" },
950
+ token: { type: "string", description: "Collateral token" },
951
951
  amount: { type: "string", description: "Collateral amount (e.g. '1.5')" },
952
952
  periodDays: { type: "number", description: "Period in days (default: 1)" },
953
953
  ethPriceUsd: { type: "number", description: "ETH price in USD (optional, uses oracle if not provided)" },