use-agently 0.29.0 → 0.30.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/README.md +1 -0
- package/build/bin.js +53 -10
- package/package.json +2 -2
package/README.md
CHANGED
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.
|
|
91831
|
+
version: "0.30.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).
|
|
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).
|
|
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.
|
|
96509
|
+
version: "0.30.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.
|
|
96533
|
+
"@use-agently/sdk": "0.30.0",
|
|
96530
96534
|
boxen: "^8.0.1",
|
|
96531
96535
|
"cli-table3": "^0.6.5",
|
|
96532
96536
|
commander: "^14.0.3",
|
|
@@ -96761,7 +96765,10 @@ async function resolveTransactionMode(pay) {
|
|
|
96761
96765
|
}
|
|
96762
96766
|
return { client: defaultClient, mode: DryRunTransaction };
|
|
96763
96767
|
}
|
|
96764
|
-
var a2aCommand = new Command("a2a").description("Send messages and fetch agent cards via the A2A protocol").
|
|
96768
|
+
var a2aCommand = new Command("a2a").description("Send messages and fetch agent cards via the A2A protocol").addHelpText("after", `
|
|
96769
|
+
Examples:
|
|
96770
|
+
use-agently a2a send --uri <uri> -m "Hello!"
|
|
96771
|
+
use-agently a2a card --uri <uri>`).action(function() {
|
|
96765
96772
|
this.outputHelp();
|
|
96766
96773
|
});
|
|
96767
96774
|
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 +96832,10 @@ function checkSpendLimit(err, maxSpendPerCall) {
|
|
|
96825
96832
|
throw new SpendLimitExceeded(amountInDollars, maxSpendPerCall);
|
|
96826
96833
|
}
|
|
96827
96834
|
}
|
|
96828
|
-
var mcpCommand = new Command("mcp").description("Discover and call tools on MCP servers (always list tools before calling)").
|
|
96835
|
+
var mcpCommand = new Command("mcp").description("Discover and call tools on MCP servers (always list tools before calling)").addHelpText("after", `
|
|
96836
|
+
Examples:
|
|
96837
|
+
use-agently mcp tools --uri <uri>
|
|
96838
|
+
use-agently mcp call --uri <uri> --tool <name> --args '{"key":"value"}'`).action(function() {
|
|
96829
96839
|
this.outputHelp();
|
|
96830
96840
|
});
|
|
96831
96841
|
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", `
|
|
@@ -97182,15 +97192,20 @@ function createMethodSubcommand(method, description, hasBody) {
|
|
|
97182
97192
|
const cmd = new Command(method).description(description).argument("<url>", "Full URL to request (e.g. https://api.example.com/data)").showHelpAfterError(true);
|
|
97183
97193
|
addSharedOptions(cmd, hasBody);
|
|
97184
97194
|
const bodyExample = hasBody ? ` -d '{"key":"value"}' -H "Content-Type: application/json"` : "";
|
|
97195
|
+
const payExample = !hasBody ? `
|
|
97196
|
+
use-agently web ${method} https://api.example.com/paid-endpoint --pay` : "";
|
|
97185
97197
|
cmd.addHelpText("after", `
|
|
97186
97198
|
Examples:
|
|
97187
|
-
use-agently web ${method} https://api.example.com/data${bodyExample} -v`);
|
|
97199
|
+
use-agently web ${method} https://api.example.com/data${bodyExample} -v${payExample}`);
|
|
97188
97200
|
cmd.action(async (url2, options, command) => {
|
|
97189
97201
|
await executeHttpRequest(method, url2, options, command);
|
|
97190
97202
|
});
|
|
97191
97203
|
return cmd;
|
|
97192
97204
|
}
|
|
97193
|
-
var webCommand = new Command("web").description("Make HTTP requests with automatic x402 payment support (GET, POST, PUT, PATCH, DELETE)").
|
|
97205
|
+
var webCommand = new Command("web").description("Make HTTP requests with automatic x402 payment support (GET, POST, PUT, PATCH, DELETE)").addHelpText("after", `
|
|
97206
|
+
Examples:
|
|
97207
|
+
use-agently web get https://api.example.com/data
|
|
97208
|
+
use-agently web post https://api.example.com/data -d '{"key":"value"}' --pay`).action(function() {
|
|
97194
97209
|
this.outputHelp();
|
|
97195
97210
|
});
|
|
97196
97211
|
webCommand.addCommand(createMethodSubcommand("get", "Make an HTTP GET request", false));
|
|
@@ -97201,6 +97216,9 @@ webCommand.addCommand(createMethodSubcommand("delete", "Make an HTTP DELETE requ
|
|
|
97201
97216
|
|
|
97202
97217
|
// src/commands/doctor.ts
|
|
97203
97218
|
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", `
|
|
97219
|
+
Examples:
|
|
97220
|
+
use-agently doctor
|
|
97221
|
+
|
|
97204
97222
|
Config: ~/.use-agently/config.json (global), .use-agently/config.json (local)`).action(async (options, command) => {
|
|
97205
97223
|
const checks3 = [];
|
|
97206
97224
|
const config2 = await loadConfig();
|
|
@@ -97324,7 +97342,10 @@ var updateCommand = new Command("update").description("Update use-agently to the
|
|
|
97324
97342
|
});
|
|
97325
97343
|
|
|
97326
97344
|
// src/commands/wallet.ts
|
|
97327
|
-
var walletCommand = new Command("wallet").description("Manage wallet settings (spend limits)").
|
|
97345
|
+
var walletCommand = new Command("wallet").description("Manage wallet settings (spend limits)").addHelpText("after", `
|
|
97346
|
+
Examples:
|
|
97347
|
+
use-agently wallet spend
|
|
97348
|
+
use-agently wallet spend set-max 0.5`).action(function() {
|
|
97328
97349
|
this.outputHelp();
|
|
97329
97350
|
});
|
|
97330
97351
|
var spendCommand = new Command("spend").description("View or manage wallet spend limits").showHelpAfterError(true).addHelpText("after", `
|
|
@@ -97370,6 +97391,28 @@ cli.addCommand(webCommand.helpGroup("Protocols"));
|
|
|
97370
97391
|
cli.addCommand(initCommand.helpGroup("Lifecycle"));
|
|
97371
97392
|
cli.addCommand(walletCommand.helpGroup("Lifecycle"));
|
|
97372
97393
|
cli.addCommand(updateCommand.helpGroup("Lifecycle"));
|
|
97394
|
+
cli.addHelpText("after", `
|
|
97395
|
+
Getting started: use-agently init → use-agently doctor → use-agently search
|
|
97396
|
+
|
|
97397
|
+
Quick Reference:
|
|
97398
|
+
|
|
97399
|
+
Send a message or fetch an agent card via A2A:
|
|
97400
|
+
a2a send -u <uri> -m <message> [--pay]
|
|
97401
|
+
a2a card -u <uri>
|
|
97402
|
+
|
|
97403
|
+
List or call tools on an MCP server:
|
|
97404
|
+
mcp tools -u <uri>
|
|
97405
|
+
mcp call -u <uri> --tool <name> [--args <json>] [--pay]
|
|
97406
|
+
|
|
97407
|
+
HTTP requests with x402 payment support:
|
|
97408
|
+
web get|post|put|patch|delete <url> [-d <body>] [-H <header>] [-v] [--pay]
|
|
97409
|
+
|
|
97410
|
+
Manage wallet spend limits:
|
|
97411
|
+
wallet spend
|
|
97412
|
+
wallet spend set-max <value>
|
|
97413
|
+
|
|
97414
|
+
<uri> = HTTP URL or CAIP-19 ID (e.g. eip155:8453/erc8004:0x…/1)
|
|
97415
|
+
Run "use-agently <command> -h" for full option details.`);
|
|
97373
97416
|
function enableGlobalOptionsInHelp(cmd) {
|
|
97374
97417
|
for (const sub of cmd.commands) {
|
|
97375
97418
|
sub.configureHelp({ showGlobalOptions: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-agently",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.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.
|
|
27
|
+
"@use-agently/sdk": "0.30.0",
|
|
28
28
|
"boxen": "^8.0.1",
|
|
29
29
|
"cli-table3": "^0.6.5",
|
|
30
30
|
"commander": "^14.0.3",
|