@trustwallet/cli 0.24.2 → 0.24.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/commands/wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0FpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6mB5D"}
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/commands/wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0FpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA+mB5D"}
package/dist/index.js CHANGED
@@ -44224,9 +44224,16 @@ ${qr3}`;
44224
44224
  "Comma-separated chains: keys, aliases or CAIP-2 IDs (default: all supported EVM chains)"
44225
44225
  ).option("--timeout <seconds>", "Connection timeout in seconds", "300").option("--json", "JSON output").action(async (opts) => {
44226
44226
  try {
44227
+ const timeoutSec = Number(opts.timeout);
44228
+ if (!Number.isInteger(timeoutSec) || timeoutSec <= 0) {
44229
+ throw new WalletError(
44230
+ "VALIDATION_ERROR",
44231
+ `--timeout must be a positive whole number of seconds (got "${opts.timeout}").`
44232
+ );
44233
+ }
44234
+ const chainKeys = opts.chains ? parseChainList(opts.chains) : void 0;
44227
44235
  const projectId = await resolveWcProjectId(opts.projectId);
44228
44236
  const provider = createWalletConnectProvider(projectId, new ChainClient());
44229
- const chainKeys = opts.chains ? parseChainList(opts.chains) : void 0;
44230
44237
  info("Connecting via WalletConnect...");
44231
44238
  const result = await provider.connect(chainKeys);
44232
44239
  const qr3 = getQRString(result.uri);
@@ -44236,13 +44243,6 @@ ${qr3}`;
44236
44243
  info(`Trust Wallet: ${result.deepLinks.native}`);
44237
44244
  info(`Universal: ${result.deepLinks.universal}`);
44238
44245
  info("\nWaiting for wallet approval...");
44239
- const timeoutSec = Number(opts.timeout);
44240
- if (!Number.isInteger(timeoutSec) || timeoutSec <= 0) {
44241
- throw new WalletError(
44242
- "VALIDATION_ERROR",
44243
- `--timeout must be a positive whole number of seconds (got "${opts.timeout}").`
44244
- );
44245
- }
44246
44246
  const session = await provider.waitForSession(timeoutSec * 1e3);
44247
44247
  if (opts.json) {
44248
44248
  output(
@@ -56319,7 +56319,7 @@ init_dist();
56319
56319
  // package.json
56320
56320
  var package_default = {
56321
56321
  name: "@trustwallet/cli",
56322
- version: "0.24.2",
56322
+ version: "0.24.3",
56323
56323
  description: "TWAK CLI \u2014 command-line interface for Trust Wallet Agent Kit",
56324
56324
  main: "dist/index.js",
56325
56325
  types: "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/cli",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "description": "TWAK CLI — command-line interface for Trust Wallet Agent Kit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,19 +33,19 @@
33
33
  "tsup": "8.5.1",
34
34
  "typescript": "5.7.3",
35
35
  "vitest": "4.1.2",
36
- "@twak/actions": "0.24.2",
37
- "@twak/core": "0.24.2",
38
- "@twak/operations": "0.24.2",
39
- "@twak/security": "0.24.2",
40
- "@twak/storage": "0.24.2",
41
- "@twak/transactions": "0.24.2",
42
- "@twak/wallet": "0.24.2",
43
- "@twak/wallet-core": "0.24.2",
44
- "@twak/walletconnect": "0.24.2",
45
- "@twak/swap": "0.24.2",
46
- "@twak/x402": "0.24.2",
47
- "@twak/contracts": "0.24.2",
48
- "@twak/mcp": "0.24.2"
36
+ "@twak/actions": "0.24.3",
37
+ "@twak/core": "0.24.3",
38
+ "@twak/mcp": "0.24.3",
39
+ "@twak/operations": "0.24.3",
40
+ "@twak/security": "0.24.3",
41
+ "@twak/storage": "0.24.3",
42
+ "@twak/transactions": "0.24.3",
43
+ "@twak/swap": "0.24.3",
44
+ "@twak/wallet": "0.24.3",
45
+ "@twak/wallet-core": "0.24.3",
46
+ "@twak/x402": "0.24.3",
47
+ "@twak/walletconnect": "0.24.3",
48
+ "@twak/contracts": "0.24.3"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"