use-agently 0.24.0 → 0.26.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/build/bin.js +23 -13
  2. package/package.json +2 -2
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.24.0",
91831
+ version: "0.26.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: {
@@ -96495,7 +96495,7 @@ var balanceCommand = new Command("balance").description("Check wallet balance on
96495
96495
  // package.json
96496
96496
  var package_default2 = {
96497
96497
  name: "use-agently",
96498
- version: "0.24.0",
96498
+ version: "0.26.0",
96499
96499
  description: "Use Agently CLI",
96500
96500
  homepage: "https://use-agently.com",
96501
96501
  bugs: "https://github.com/AgentlyHQ/use-agently/issues",
@@ -96519,7 +96519,7 @@ var package_default2 = {
96519
96519
  test: "bun test"
96520
96520
  },
96521
96521
  dependencies: {
96522
- "@use-agently/sdk": "0.24.0",
96522
+ "@use-agently/sdk": "0.26.0",
96523
96523
  boxen: "^8.0.1",
96524
96524
  "cli-table3": "^0.6.5",
96525
96525
  commander: "^14.0.3",
@@ -96641,12 +96641,22 @@ ${item.description}`, (item.protocols ?? []).join(", ")]);
96641
96641
  }
96642
96642
 
96643
96643
  // src/commands/search.ts
96644
- var searchCommand = new Command("search").description("Search the Agently marketplace for agents").option("-q, --query <text>", "Search query to filter agents by name or description").option("-p, --protocol <protocols>", "Filter by protocol(s), comma-separated (e.g. a2a,mcp)").showHelpAfterError(true).addHelpText("after", `
96645
- Examples:
96646
- use-agently search
96647
- use-agently search -q "echo"
96648
- use-agently search --protocol a2a
96649
- use-agently search -q "assistant" --protocol "a2a,mcp"`).action(async (options, command) => {
96644
+ var searchCommand = new Command("search").description("Search the Agently marketplace for agents").option("-q, --query <text>", "Search query to filter agents by name or description").option("-p, --protocol <protocols>", "Filter by protocol(s), comma-separated (e.g. a2a,mcp)").showHelpAfterError(true).addHelpText("after", [
96645
+ "",
96646
+ "Examples:",
96647
+ " use-agently search",
96648
+ ' use-agently search -q "web search"',
96649
+ " use-agently search --protocol a2a",
96650
+ ' use-agently search -q "generate markdown report" --protocol "a2a,mcp"',
96651
+ "",
96652
+ "Workflow:",
96653
+ " Search results include a 'protocols' column showing each agent's supported protocols.",
96654
+ " Use the protocol commands to interact with the agent:",
96655
+ "",
96656
+ " a2a -> use-agently a2a send --uri <uri> -m <message>",
96657
+ " mcp -> use-agently mcp tools --uri <uri>"
96658
+ ].join(`
96659
+ `)).action(async (options, command) => {
96650
96660
  const format = getOutputFormat(command);
96651
96661
  const protocol = options.protocol ? options.protocol.split(",").map((p) => p.trim().toLowerCase()) : undefined;
96652
96662
  const result = await search(defaultClient, { q: options.query, protocol });
@@ -96709,7 +96719,7 @@ async function resolveTransactionMode(pay) {
96709
96719
  }
96710
96720
  return DryRunTransaction;
96711
96721
  }
96712
- var a2aCommand = new Command("a2a").description("Interact with agents via the A2A protocol").action(function() {
96722
+ var a2aCommand = new Command("a2a").description("Send messages and fetch agent cards via the A2A protocol").action(function() {
96713
96723
  this.outputHelp();
96714
96724
  });
96715
96725
  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", `
@@ -96763,7 +96773,7 @@ async function resolveTransactionMode2(pay) {
96763
96773
  }
96764
96774
  return DryRunTransaction;
96765
96775
  }
96766
- var mcpCommand = new Command("mcp").description("Connect to an MCP server and list or call tools").action(function() {
96776
+ var mcpCommand = new Command("mcp").description("Discover and call tools on MCP servers (always list tools before calling)").action(function() {
96767
96777
  this.outputHelp();
96768
96778
  });
96769
96779
  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", `
@@ -97091,7 +97101,7 @@ Examples:
97091
97101
  });
97092
97102
  return cmd;
97093
97103
  }
97094
- var webCommand = new Command("web").description("Make HTTP requests with x402 payment support").action(function() {
97104
+ var webCommand = new Command("web").description("Make HTTP requests with automatic x402 payment support (GET, POST, PUT, PATCH, DELETE)").action(function() {
97095
97105
  this.outputHelp();
97096
97106
  });
97097
97107
  webCommand.addCommand(createMethodSubcommand("get", "Make an HTTP GET request", false));
@@ -97226,7 +97236,7 @@ var updateCommand = new Command("update").description("Update use-agently to the
97226
97236
 
97227
97237
  // src/cli.ts
97228
97238
  var cli = new Command;
97229
- cli.name("use-agently").description("Agently is the way AI coordinate and transact. The routing and settlement layer for your agent economy.").version(package_default2.version).option("-o, --output <format>", "Output format (tui, json)", process.stdout.isTTY ? "tui" : "json").argument("[args...]").action((args) => {
97239
+ cli.name("use-agently").description("Agently is the way AI coordinate and transact. All protocol interactions (A2A, MCP, Web/HTTP) go through this CLI.").version(package_default2.version).option("-o, --output <format>", "Output format (tui, json)", process.stdout.isTTY ? "tui" : "json").argument("[args...]").action((args) => {
97230
97240
  if (args.length > 0) {
97231
97241
  cli.unknownCommand();
97232
97242
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-agently",
3
- "version": "0.24.0",
3
+ "version": "0.26.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.24.0",
27
+ "@use-agently/sdk": "0.26.0",
28
28
  "boxen": "^8.0.1",
29
29
  "cli-table3": "^0.6.5",
30
30
  "commander": "^14.0.3",