use-agently 0.32.0 → 0.34.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 +24 -7
  2. package/package.json +2 -2
package/build/bin.js CHANGED
@@ -88872,6 +88872,13 @@ var chains = {
88872
88872
  chain: base,
88873
88873
  usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
88874
88874
  usdcDecimals: 6
88875
+ },
88876
+ "base-sepolia": {
88877
+ chainId: baseSepolia.id,
88878
+ network: `eip155:${baseSepolia.id}`,
88879
+ chain: baseSepolia,
88880
+ usdc: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
88881
+ usdcDecimals: 6
88875
88882
  }
88876
88883
  };
88877
88884
  function getChainConfig(name = "base") {
@@ -91828,7 +91835,7 @@ function PayTransaction(wallet) {
91828
91835
  // ../use-agently-sdk/package.json
91829
91836
  var package_default = {
91830
91837
  name: "@use-agently/sdk",
91831
- version: "0.32.0",
91838
+ version: "0.34.0",
91832
91839
  description: "Core SDK for the Agently platform — wallet management, A2A, MCP, x402 payments",
91833
91840
  homepage: "https://github.com/AgentlyHQ/use-agently/tree/main/packages/use-agently-sdk",
91834
91841
  bugs: {
@@ -96598,12 +96605,14 @@ Examples:
96598
96605
  });
96599
96606
 
96600
96607
  // src/commands/balance.ts
96601
- var balanceCommand = new Command("balance").description("Check wallet balance on-chain").option("--rpc <url>", "Custom RPC URL").showHelpAfterError(true).addHelpText("after", `
96608
+ var balanceCommand = new Command("balance").description("Check wallet balance on-chain").option("--rpc <url>", "Custom RPC URL").option("--testnet", "Check Base Sepolia Testnet").showHelpAfterError(true).addHelpText("after", `
96602
96609
  Examples:
96603
- use-agently balance`).action(async (options, command) => {
96610
+ use-agently balance
96611
+ use-agently balance --testnet`).action(async (options, command) => {
96604
96612
  const config2 = await getConfigOrThrow();
96605
96613
  const wallet = await resolveWallet(config2);
96606
- const result = await getBalance2(wallet.address, { rpc: options.rpc });
96614
+ const chain = options.testnet ? "base-sepolia" : "base";
96615
+ const result = await getBalance2(wallet.address, { rpc: options.rpc, chain });
96607
96616
  const activeProvider = getActiveProvider(config2);
96608
96617
  const detected = await detectProviders(activeProvider);
96609
96618
  const otherProviders = detected.filter((p) => p.installed && !p.active);
@@ -96636,7 +96645,7 @@ Switch provider: use-agently wallet set <provider>`);
96636
96645
  // package.json
96637
96646
  var package_default2 = {
96638
96647
  name: "use-agently",
96639
- version: "0.32.0",
96648
+ version: "0.34.0",
96640
96649
  description: "Use Agently CLI",
96641
96650
  homepage: "https://use-agently.com",
96642
96651
  bugs: "https://github.com/AgentlyHQ/use-agently/issues",
@@ -96660,7 +96669,7 @@ var package_default2 = {
96660
96669
  test: "bun test"
96661
96670
  },
96662
96671
  dependencies: {
96663
- "@use-agently/sdk": "0.32.0",
96672
+ "@use-agently/sdk": "0.34.0",
96664
96673
  boxen: "^8.0.1",
96665
96674
  "cli-table3": "^0.6.5",
96666
96675
  commander: "^14.0.3",
@@ -97040,6 +97049,13 @@ Expected a JSON object, e.g. --args '{"message":"hello"}'`);
97040
97049
  throw err;
97041
97050
  }
97042
97051
  });
97052
+ function tryParseJson(text) {
97053
+ try {
97054
+ return JSON.parse(text);
97055
+ } catch {
97056
+ return text;
97057
+ }
97058
+ }
97043
97059
  function outputMcpResult(result, command) {
97044
97060
  const content = result.content;
97045
97061
  if (result.isError) {
@@ -97088,7 +97104,8 @@ Run "use-agently balance" to check your wallet address and balance, then send US
97088
97104
  }
97089
97105
  if (content?.every((c) => c.type === "text" && c.text)) {
97090
97106
  const texts = content.map((c) => c.text);
97091
- output(command, texts.length === 1 ? texts[0] : texts);
97107
+ const parsed = texts.length === 1 ? tryParseJson(texts[0]) : texts.map(tryParseJson);
97108
+ output(command, parsed);
97092
97109
  } else {
97093
97110
  output(command, result);
97094
97111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-agently",
3
- "version": "0.32.0",
3
+ "version": "0.34.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.32.0",
27
+ "@use-agently/sdk": "0.34.0",
28
28
  "boxen": "^8.0.1",
29
29
  "cli-table3": "^0.6.5",
30
30
  "commander": "^14.0.3",