use-agently 0.29.0 → 0.31.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 (3) hide show
  1. package/README.md +1 -0
  2. package/build/bin.js +58 -13
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -7,6 +7,7 @@ Manage local EVM wallets, discover agents, and communicate with them via the [A2
7
7
  ## Install
8
8
 
9
9
  ```bash
10
+ npx skills add https://github.com/agentlyhq/use-agently --skill use-agently
10
11
  npm install -g use-agently@latest
11
12
  ```
12
13
 
package/build/bin.js CHANGED
@@ -91828,7 +91828,7 @@ function PayTransaction(wallet) {
91828
91828
  // ../use-agently-sdk/package.json
91829
91829
  var package_default = {
91830
91830
  name: "@use-agently/sdk",
91831
- version: "0.29.0",
91831
+ version: "0.31.0",
91832
91832
  description: "Core SDK for the Agently platform — wallet management, A2A, MCP, x402 payments",
91833
91833
  homepage: "https://github.com/AgentlyHQ/use-agently/tree/main/packages/use-agently-sdk",
91834
91834
  bugs: {
@@ -96483,7 +96483,9 @@ Config: ~/.use-agently/config.json (global), .use-agently/config.json (local)`).
96483
96483
  });
96484
96484
 
96485
96485
  // src/commands/whoami.ts
96486
- var whoamiCommand = new Command("whoami").description("Show current wallet info").showHelpAfterError(true).action(async (_options, command) => {
96486
+ var whoamiCommand = new Command("whoami").description("Show current wallet info").showHelpAfterError(true).addHelpText("after", `
96487
+ Examples:
96488
+ use-agently whoami`).action(async (_options, command) => {
96487
96489
  const config2 = await getConfigOrThrow();
96488
96490
  const wallet = loadWallet(config2.wallet);
96489
96491
  output(command, {
@@ -96493,7 +96495,9 @@ var whoamiCommand = new Command("whoami").description("Show current wallet info"
96493
96495
  });
96494
96496
 
96495
96497
  // src/commands/balance.ts
96496
- var balanceCommand = new Command("balance").description("Check wallet balance on-chain").option("--rpc <url>", "Custom RPC URL").showHelpAfterError(true).action(async (options, command) => {
96498
+ var balanceCommand = new Command("balance").description("Check wallet balance on-chain").option("--rpc <url>", "Custom RPC URL").showHelpAfterError(true).addHelpText("after", `
96499
+ Examples:
96500
+ use-agently balance`).action(async (options, command) => {
96497
96501
  const config2 = await getConfigOrThrow();
96498
96502
  const wallet = loadWallet(config2.wallet);
96499
96503
  const result = await getBalance2(wallet.address, { rpc: options.rpc });
@@ -96502,7 +96506,7 @@ var balanceCommand = new Command("balance").description("Check wallet balance on
96502
96506
  // package.json
96503
96507
  var package_default2 = {
96504
96508
  name: "use-agently",
96505
- version: "0.29.0",
96509
+ version: "0.31.0",
96506
96510
  description: "Use Agently CLI",
96507
96511
  homepage: "https://use-agently.com",
96508
96512
  bugs: "https://github.com/AgentlyHQ/use-agently/issues",
@@ -96526,7 +96530,7 @@ var package_default2 = {
96526
96530
  test: "bun test"
96527
96531
  },
96528
96532
  dependencies: {
96529
- "@use-agently/sdk": "0.29.0",
96533
+ "@use-agently/sdk": "0.31.0",
96530
96534
  boxen: "^8.0.1",
96531
96535
  "cli-table3": "^0.6.5",
96532
96536
  commander: "^14.0.3",
@@ -96554,8 +96558,10 @@ class DryRunPaymentRequired2 extends DryRunPaymentRequired {
96554
96558
  const req = requirements[0];
96555
96559
  const amount = req ? formatUsdcAmount2(req) : null;
96556
96560
  this.message = amount ? `This request requires payment of ${amount}.
96557
- Run the same command with --pay to authorize the transaction and proceed.` : `This request requires payment, but the amount could not be determined.
96558
- Inspect the endpoint manually before running with --pay.`;
96561
+ Run the same command with --pay to authorize the transaction and proceed.
96562
+ Run "use-agently balance" to check your wallet address and balance, then send USDC on Base to fund it.` : `This request requires payment, but the amount could not be determined.
96563
+ Inspect the endpoint manually before running with --pay.
96564
+ Run "use-agently balance" to check your wallet address and balance.`;
96559
96565
  }
96560
96566
  }
96561
96567
  function createDryRunFetch2() {
@@ -96761,7 +96767,10 @@ async function resolveTransactionMode(pay) {
96761
96767
  }
96762
96768
  return { client: defaultClient, mode: DryRunTransaction };
96763
96769
  }
96764
- var a2aCommand = new Command("a2a").description("Send messages and fetch agent cards via the A2A protocol").action(function() {
96770
+ var a2aCommand = new Command("a2a").description("Send messages and fetch agent cards via the A2A protocol").addHelpText("after", `
96771
+ Examples:
96772
+ use-agently a2a send --uri <uri> -m "Hello!"
96773
+ use-agently a2a card --uri <uri>`).action(function() {
96765
96774
  this.outputHelp();
96766
96775
  });
96767
96776
  var a2aSendCommand = new Command("send").description("Send a message to an agent via A2A protocol").requiredOption("-u, --uri <value>", "Agent URL or CAIP-19 ID (e.g. https://example.com/agent or eip155:8453/erc8004:0x1234/1)").requiredOption("-m, --message <text>", "Message to send").option("--pay", "Authorize payment if the agent requires it (default: dry-run, shows cost only)").showHelpAfterError(true).addHelpText("after", `
@@ -96825,7 +96834,10 @@ function checkSpendLimit(err, maxSpendPerCall) {
96825
96834
  throw new SpendLimitExceeded(amountInDollars, maxSpendPerCall);
96826
96835
  }
96827
96836
  }
96828
- var mcpCommand = new Command("mcp").description("Discover and call tools on MCP servers (always list tools before calling)").action(function() {
96837
+ var mcpCommand = new Command("mcp").description("Discover and call tools on MCP servers (always list tools before calling)").addHelpText("after", `
96838
+ Examples:
96839
+ use-agently mcp tools --uri <uri>
96840
+ use-agently mcp call --uri <uri> --tool <name> --args '{"key":"value"}'`).action(function() {
96829
96841
  this.outputHelp();
96830
96842
  });
96831
96843
  var mcpToolsCommand = new Command("tools").description("List available tools on an MCP server").requiredOption("-u, --uri <value>", "MCP server URL or CAIP-19 ID").showHelpAfterError(true).addHelpText("after", `
@@ -96920,7 +96932,7 @@ function outputMcpResult(result, command) {
96920
96932
  }
96921
96933
  message = `Insufficient funds to pay for this tool.
96922
96934
  Required: ${amountStr}
96923
- Ensure your wallet has sufficient USDC balance and try again.`;
96935
+ Run "use-agently balance" to check your wallet address and balance, then send USDC on Base to fund it.`;
96924
96936
  } else {
96925
96937
  message = `Payment error: ${parsed.error}`;
96926
96938
  }
@@ -97182,15 +97194,20 @@ function createMethodSubcommand(method, description, hasBody) {
97182
97194
  const cmd = new Command(method).description(description).argument("<url>", "Full URL to request (e.g. https://api.example.com/data)").showHelpAfterError(true);
97183
97195
  addSharedOptions(cmd, hasBody);
97184
97196
  const bodyExample = hasBody ? ` -d '{"key":"value"}' -H "Content-Type: application/json"` : "";
97197
+ const payExample = !hasBody ? `
97198
+ use-agently web ${method} https://api.example.com/paid-endpoint --pay` : "";
97185
97199
  cmd.addHelpText("after", `
97186
97200
  Examples:
97187
- use-agently web ${method} https://api.example.com/data${bodyExample} -v`);
97201
+ use-agently web ${method} https://api.example.com/data${bodyExample} -v${payExample}`);
97188
97202
  cmd.action(async (url2, options, command) => {
97189
97203
  await executeHttpRequest(method, url2, options, command);
97190
97204
  });
97191
97205
  return cmd;
97192
97206
  }
97193
- var webCommand = new Command("web").description("Make HTTP requests with automatic x402 payment support (GET, POST, PUT, PATCH, DELETE)").action(function() {
97207
+ var webCommand = new Command("web").description("Make HTTP requests with automatic x402 payment support (GET, POST, PUT, PATCH, DELETE)").addHelpText("after", `
97208
+ Examples:
97209
+ use-agently web get https://api.example.com/data
97210
+ use-agently web post https://api.example.com/data -d '{"key":"value"}' --pay`).action(function() {
97194
97211
  this.outputHelp();
97195
97212
  });
97196
97213
  webCommand.addCommand(createMethodSubcommand("get", "Make an HTTP GET request", false));
@@ -97201,6 +97218,9 @@ webCommand.addCommand(createMethodSubcommand("delete", "Make an HTTP DELETE requ
97201
97218
 
97202
97219
  // src/commands/doctor.ts
97203
97220
  var doctorCommand = new Command("doctor").description("Run environment checks and report any issues").option("--rpc <url>", "Custom RPC URL to use for network check").showHelpAfterError(true).addHelpText("after", `
97221
+ Examples:
97222
+ use-agently doctor
97223
+
97204
97224
  Config: ~/.use-agently/config.json (global), .use-agently/config.json (local)`).action(async (options, command) => {
97205
97225
  const checks3 = [];
97206
97226
  const config2 = await loadConfig();
@@ -97324,7 +97344,10 @@ var updateCommand = new Command("update").description("Update use-agently to the
97324
97344
  });
97325
97345
 
97326
97346
  // src/commands/wallet.ts
97327
- var walletCommand = new Command("wallet").description("Manage wallet settings (spend limits)").action(function() {
97347
+ var walletCommand = new Command("wallet").description("Manage wallet settings (spend limits)").addHelpText("after", `
97348
+ Examples:
97349
+ use-agently wallet spend
97350
+ use-agently wallet spend set-max 0.5`).action(function() {
97328
97351
  this.outputHelp();
97329
97352
  });
97330
97353
  var spendCommand = new Command("spend").description("View or manage wallet spend limits").showHelpAfterError(true).addHelpText("after", `
@@ -97370,6 +97393,28 @@ cli.addCommand(webCommand.helpGroup("Protocols"));
97370
97393
  cli.addCommand(initCommand.helpGroup("Lifecycle"));
97371
97394
  cli.addCommand(walletCommand.helpGroup("Lifecycle"));
97372
97395
  cli.addCommand(updateCommand.helpGroup("Lifecycle"));
97396
+ cli.addHelpText("after", `
97397
+ Getting started: use-agently init → use-agently doctor → use-agently search
97398
+
97399
+ Quick Reference:
97400
+
97401
+ Send a message or fetch an agent card via A2A:
97402
+ a2a send -u <uri> -m <message> [--pay]
97403
+ a2a card -u <uri>
97404
+
97405
+ List or call tools on an MCP server:
97406
+ mcp tools -u <uri>
97407
+ mcp call -u <uri> --tool <name> [--args <json>] [--pay]
97408
+
97409
+ HTTP requests with x402 payment support:
97410
+ web get|post|put|patch|delete <url> [-d <body>] [-H <header>] [-v] [--pay]
97411
+
97412
+ Manage wallet spend limits:
97413
+ wallet spend
97414
+ wallet spend set-max <value>
97415
+
97416
+ <uri> = HTTP URL or CAIP-19 ID (e.g. eip155:8453/erc8004:0x…/1)
97417
+ Run "use-agently <command> -h" for full option details.`);
97373
97418
  function enableGlobalOptionsInHelp(cmd) {
97374
97419
  for (const sub of cmd.commands) {
97375
97420
  sub.configureHelp({ showGlobalOptions: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-agently",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Use Agently CLI",
5
5
  "homepage": "https://use-agently.com",
6
6
  "bugs": "https://github.com/AgentlyHQ/use-agently/issues",
@@ -24,7 +24,7 @@
24
24
  "test": "bun test"
25
25
  },
26
26
  "dependencies": {
27
- "@use-agently/sdk": "0.29.0",
27
+ "@use-agently/sdk": "0.31.0",
28
28
  "boxen": "^8.0.1",
29
29
  "cli-table3": "^0.6.5",
30
30
  "commander": "^14.0.3",