@trustwallet/cli 0.12.1 → 0.13.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/commands/serve.d.ts.map +1 -1
- package/dist/commands/transfer.d.ts.map +1 -1
- package/dist/commands/wallet.d.ts.map +1 -1
- package/dist/commands/x402.d.ts.map +1 -1
- package/dist/index.js +4048 -10580
- package/dist/password.d.ts +12 -0
- package/dist/password.d.ts.map +1 -0
- package/dist/setup/phase-wallet.d.ts +1 -1
- package/dist/setup/phase-wallet.d.ts.map +1 -1
- package/package.json +15 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the comma-separated list of password-strength requirements that
|
|
3
|
+
* `pw` fails to meet (e.g. "include an uppercase letter, include a number"),
|
|
4
|
+
* or null if the password meets every rule.
|
|
5
|
+
*
|
|
6
|
+
* Callers prefix their own framing — e.g. "Password too weak: must <…>.",
|
|
7
|
+
* "Password must <…>.", "TWAK_WALLET_PASSWORD too weak: must <…>." — so each
|
|
8
|
+
* entry point keeps its own user-visible error wording while sharing the
|
|
9
|
+
* rule set.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getPasswordWeaknesses(pw: string): string | null;
|
|
12
|
+
//# sourceMappingURL=password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../src/password.ts"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG/D"}
|
|
@@ -2,6 +2,7 @@ import type { SetupOptions } from './types';
|
|
|
2
2
|
export type WalletChoice = '1' | '2' | '3';
|
|
3
3
|
export interface WalletPrompter {
|
|
4
4
|
selectWalletOption(): Promise<WalletChoice>;
|
|
5
|
+
promptWalletPassword(): Promise<string>;
|
|
5
6
|
}
|
|
6
7
|
export interface WalletCreator {
|
|
7
8
|
create(password: string): Promise<{
|
|
@@ -22,7 +23,6 @@ export interface WalletPhaseDeps {
|
|
|
22
23
|
deleteProbe(): Promise<void>;
|
|
23
24
|
};
|
|
24
25
|
env: NodeJS.ProcessEnv;
|
|
25
|
-
generatePassword: () => string;
|
|
26
26
|
}
|
|
27
27
|
export declare function runWalletPhase(opts: SetupOptions, deps?: WalletPhaseDeps): Promise<void>;
|
|
28
28
|
//# sourceMappingURL=phase-wallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phase-wallet.d.ts","sourceRoot":"","sources":["../../src/setup/phase-wallet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phase-wallet.d.ts","sourceRoot":"","sources":["../../src/setup/phase-wallet.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAI3C,MAAM,WAAW,cAAc;IAC7B,kBAAkB,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAM5C,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE;QAAE,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;IACxC,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE;QACR,WAAW,IAAI,OAAO,CAAC;QACvB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAMpD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACxC,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;QACnC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9B,CAAC;IACF,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;CACxB;AAwFD,wBAAsB,cAAc,CAClC,IAAI,EAAE,YAAY,EAClB,IAAI,GAAE,eAAmC,GACxC,OAAO,CAAC,IAAI,CAAC,CAyBf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustwallet/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"fake-indexeddb": "6.2.5",
|
|
20
20
|
"node-fetch": "2.7.0",
|
|
21
21
|
"qrcode": "1.5.4",
|
|
22
|
-
"qrcode-terminal": "0.12.0"
|
|
22
|
+
"qrcode-terminal": "0.12.0",
|
|
23
|
+
"zod": "3.25.76"
|
|
23
24
|
},
|
|
24
25
|
"optionalDependencies": {
|
|
25
26
|
"@amplitude/analytics-node": "1.5.39"
|
|
@@ -32,17 +33,18 @@
|
|
|
32
33
|
"tsup": "8.5.1",
|
|
33
34
|
"typescript": "5.7.3",
|
|
34
35
|
"vitest": "4.1.2",
|
|
35
|
-
"@twak/
|
|
36
|
-
"@twak/
|
|
37
|
-
"@twak/core": "0.
|
|
38
|
-
"@twak/mcp": "0.
|
|
39
|
-
"@twak/security": "0.
|
|
40
|
-
"@twak/storage": "0.
|
|
41
|
-
"@twak/swap": "0.
|
|
42
|
-
"@twak/transactions": "0.
|
|
43
|
-
"@twak/wallet": "0.
|
|
44
|
-
"@twak/wallet-core": "0.
|
|
45
|
-
"@twak/walletconnect": "0.
|
|
36
|
+
"@twak/blockchain": "0.13.0",
|
|
37
|
+
"@twak/actions": "0.13.0",
|
|
38
|
+
"@twak/core": "0.13.0",
|
|
39
|
+
"@twak/mcp": "0.13.0",
|
|
40
|
+
"@twak/security": "0.13.0",
|
|
41
|
+
"@twak/storage": "0.13.0",
|
|
42
|
+
"@twak/swap": "0.13.0",
|
|
43
|
+
"@twak/transactions": "0.13.0",
|
|
44
|
+
"@twak/wallet": "0.13.0",
|
|
45
|
+
"@twak/wallet-core": "0.13.0",
|
|
46
|
+
"@twak/walletconnect": "0.13.0",
|
|
47
|
+
"@twak/x402": "0.13.0"
|
|
46
48
|
},
|
|
47
49
|
"publishConfig": {
|
|
48
50
|
"access": "public"
|