thaifi-wallet-cli 0.3.4 → 0.3.5
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/services.js +10 -1
- package/package.json +1 -1
|
@@ -19,7 +19,16 @@ export async function services(options = {}) {
|
|
|
19
19
|
process.exitCode = 1;
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
let data;
|
|
23
|
+
try {
|
|
24
|
+
data = (await res.json());
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
console.error("Registry returned a non-JSON response (" + (err instanceof Error ? err.message : err) + ").");
|
|
28
|
+
console.error("Set THAIFI_MPP_REGISTRY to your MPP/x402 registry URL.");
|
|
29
|
+
process.exitCode = 1;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
23
32
|
const list = Array.isArray(data) ? data : (data.services ?? []);
|
|
24
33
|
if (list.length === 0) {
|
|
25
34
|
console.log("No services found.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thaifi-wallet-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "ThaiFi Wallet CLI for AI agents — pair with wallet.thaifi.com, sign with on-chain access keys (spending limits enforced on-chain), x402/MPP payments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|