@trustwallet/cli 0.6.11 → 0.8.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/dist/output.d.ts CHANGED
@@ -4,4 +4,5 @@ export declare function error(message: string): void;
4
4
  export declare function warn(message: string): void;
5
5
  export declare function info(message: string): void;
6
6
  export declare function dim(message: string): void;
7
+ export declare function safeExit(): void;
7
8
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAMzD;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAMzD;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,QAAQ,IAAI,IAAI,CAU/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/cli",
3
- "version": "0.6.11",
3
+ "version": "0.8.0",
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",
@@ -14,11 +14,11 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "node-fetch": "2.7.0",
17
- "qrcode-terminal": "0.12.0"
17
+ "qrcode-terminal": "0.12.0",
18
+ "@napi-rs/keyring": "1.2.0"
18
19
  },
19
20
  "optionalDependencies": {
20
- "@amplitude/analytics-node": "1.5.39",
21
- "keytar": "7.9.0"
21
+ "@amplitude/analytics-node": "1.5.39"
22
22
  },
23
23
  "devDependencies": {
24
24
  "boxen": "5.1.2",
@@ -27,17 +27,18 @@
27
27
  "ora": "5.4.1",
28
28
  "tsup": "8.5.1",
29
29
  "typescript": "5.7.3",
30
- "@twak/core": "0.6.11",
31
- "@twak/mcp": "0.6.11",
32
- "@twak/security": "0.6.11",
33
- "@twak/storage": "0.6.11",
34
- "@twak/actions": "0.6.11",
35
- "@twak/swap": "0.6.11",
36
- "@twak/transactions": "0.6.11",
37
- "@twak/wallet": "0.6.11",
38
- "@twak/wallet-core": "0.6.11",
39
- "@twak/blockchain": "0.6.11",
40
- "@twak/walletconnect": "0.6.11"
30
+ "vitest": "4.1.2",
31
+ "@twak/actions": "0.8.0",
32
+ "@twak/blockchain": "0.8.0",
33
+ "@twak/core": "0.8.0",
34
+ "@twak/mcp": "0.8.0",
35
+ "@twak/security": "0.8.0",
36
+ "@twak/storage": "0.8.0",
37
+ "@twak/swap": "0.8.0",
38
+ "@twak/transactions": "0.8.0",
39
+ "@twak/wallet": "0.8.0",
40
+ "@twak/wallet-core": "0.8.0",
41
+ "@twak/walletconnect": "0.8.0"
41
42
  },
42
43
  "publishConfig": {
43
44
  "access": "public"
@@ -52,6 +53,7 @@
52
53
  "prebuild": "rm -rf trust-sdk && cp -r ../../vendor/trust-sdk trust-sdk",
53
54
  "build": "tsup && tsc --emitDeclarationOnly --outDir dist",
54
55
  "typecheck": "tsc --noEmit",
56
+ "test": "vitest run",
55
57
  "lint": "eslint src/",
56
58
  "clean": "rm -rf dist"
57
59
  }
@@ -48,10 +48,15 @@
48
48
  head: { appendChild: function(){} }
49
49
  };
50
50
  }
51
- // --- Suppress Node.js --localstorage-file warning from Trust SDK WASM ---
51
+ // --- Suppress noisy warnings fired by transitive deps at module load time ---
52
52
  var _origEmit = process.emitWarning;
53
53
  process.emitWarning = function(warning) {
54
54
  if (typeof warning === 'string' && warning.indexOf('--localstorage-file') !== -1) return;
55
+ // DEP0040: punycode module deprecation from ws/url used by Trust SDK
56
+ var opts = arguments[1];
57
+ var code = (opts && typeof opts === 'object' ? opts.code : arguments[2])
58
+ || (warning && typeof warning === 'object' ? warning.code : null);
59
+ if (code === 'DEP0040') return;
55
60
  return _origEmit.apply(process, arguments);
56
61
  };
57
62
 
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare function registerSkillCommand(program: Command): void;
3
- //# sourceMappingURL=skill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/commands/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6D3D"}