@trustwallet/cli 0.24.0 → 0.24.1
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/index.js +6 -3
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -49473,7 +49473,10 @@ var WalletModeActionProvider = class extends ActionProvider {
|
|
|
49473
49473
|
* emits a single text block with the JSON snapshot.
|
|
49474
49474
|
*/
|
|
49475
49475
|
snapshotResponse(snapshot) {
|
|
49476
|
-
const textPayload =
|
|
49476
|
+
const textPayload = {
|
|
49477
|
+
...snapshot.pairing ? { ...snapshot, pairing: { ...snapshot.pairing, qrCodeImageUrl: void 0 } } : snapshot,
|
|
49478
|
+
twakHome: twakHome()
|
|
49479
|
+
};
|
|
49477
49480
|
const content = [{ type: "text", text: JSON.stringify(textPayload, null, 2) }];
|
|
49478
49481
|
if (snapshot.pairing?.qrCodeImageUrl) {
|
|
49479
49482
|
const match = snapshot.pairing.qrCodeImageUrl.match(/^data:(image\/[^;]+);base64,(.+)$/);
|
|
@@ -49513,7 +49516,7 @@ var WalletModeActionProvider = class extends ActionProvider {
|
|
|
49513
49516
|
getWalletStatus() {
|
|
49514
49517
|
return {
|
|
49515
49518
|
name: "get_wallet_status",
|
|
49516
|
-
description: 'Returns the current wallet binding for this MCP server session: state ("unbound" | "local" | "wc-pairing" | "wc-connected"), wallet type (when bound), peer name (when wc-connected),
|
|
49519
|
+
description: 'Returns the current wallet binding for this MCP server session: state ("unbound" | "local" | "wc-pairing" | "wc-connected"), wallet type (when bound), peer name (when wc-connected), pairing data (URI / deep link / QR code, when state="wc-pairing"), and `twakHome`: the folder this server keeps its files in (wallet, WalletConnect session, credentials), set from TWAK_HOME when the server started (default ~/.twak). When state="wc-pairing", the response includes an inline QR-code image (MCP image content), a mobile deep link (`pairing.deepLink`) for users on their phone, and the raw `pairing.uri` as a copyable string for advanced users. Poll this after switch_wallet_mode({mode: "walletconnect"}) until state transitions to "wc-connected"; that\'s when signing actions become usable. If the user asks to see the QR code again (e.g. "show me the QR", "I can\'t see it"), call this action again \u2014 every call while state="wc-pairing" re-emits the inline QR image. Do NOT try to render the QR yourself from the URI or the response JSON.',
|
|
49517
49520
|
schema: import_zod15.z.object({}),
|
|
49518
49521
|
invoke: async () => this.snapshotResponse(this.walletContext.snapshot())
|
|
49519
49522
|
};
|
|
@@ -56211,7 +56214,7 @@ init_dist();
|
|
|
56211
56214
|
// package.json
|
|
56212
56215
|
var package_default = {
|
|
56213
56216
|
name: "@trustwallet/cli",
|
|
56214
|
-
version: "0.24.
|
|
56217
|
+
version: "0.24.1",
|
|
56215
56218
|
description: "TWAK CLI \u2014 command-line interface for Trust Wallet Agent Kit",
|
|
56216
56219
|
main: "dist/index.js",
|
|
56217
56220
|
types: "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustwallet/cli",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
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/
|
|
37
|
-
"@twak/
|
|
38
|
-
"@twak/
|
|
39
|
-
"@twak/
|
|
40
|
-
"@twak/storage": "0.24.
|
|
41
|
-
"@twak/
|
|
42
|
-
"@twak/
|
|
43
|
-
"@twak/
|
|
44
|
-
"@twak/
|
|
45
|
-
"@twak/
|
|
46
|
-
"@twak/
|
|
47
|
-
"@twak/
|
|
48
|
-
"@twak/
|
|
36
|
+
"@twak/actions": "0.24.1",
|
|
37
|
+
"@twak/mcp": "0.24.1",
|
|
38
|
+
"@twak/operations": "0.24.1",
|
|
39
|
+
"@twak/security": "0.24.1",
|
|
40
|
+
"@twak/storage": "0.24.1",
|
|
41
|
+
"@twak/swap": "0.24.1",
|
|
42
|
+
"@twak/transactions": "0.24.1",
|
|
43
|
+
"@twak/wallet": "0.24.1",
|
|
44
|
+
"@twak/core": "0.24.1",
|
|
45
|
+
"@twak/contracts": "0.24.1",
|
|
46
|
+
"@twak/walletconnect": "0.24.1",
|
|
47
|
+
"@twak/x402": "0.24.1",
|
|
48
|
+
"@twak/wallet-core": "0.24.1"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|