thaifi-wallet-cli 0.3.0 → 0.3.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/commands/request.js +1 -1
- package/dist/tokens.js +2 -2
- package/package.json +1 -1
package/dist/commands/request.js
CHANGED
|
@@ -185,7 +185,7 @@ async function maybeSaveImage(text) {
|
|
|
185
185
|
const id = (body?.id ?? body?.data?.id ?? "image").toString().replace(/[^\w-]/g, "");
|
|
186
186
|
const mime = (body?.mime_type ?? body?.data?.mime_type ?? "image/png").toString();
|
|
187
187
|
const ext = mime.includes("jpeg") ? "jpg" : mime.includes("webp") ? "webp" : "png";
|
|
188
|
-
const file = `
|
|
188
|
+
const file = `image-${id}.${ext}`;
|
|
189
189
|
const { writeFileSync } = await import("node:fs");
|
|
190
190
|
writeFileSync(file, Buffer.from(b64, "base64"));
|
|
191
191
|
const { width, height, time } = body;
|
package/dist/tokens.js
CHANGED
|
@@ -7,13 +7,13 @@ export const PATHUSD = {
|
|
|
7
7
|
decimals: 6,
|
|
8
8
|
};
|
|
9
9
|
export const THCFI = {
|
|
10
|
-
address: "
|
|
10
|
+
address: "0xfe76fedcfb6a7dfe7f10ecc518150ace70bd6994",
|
|
11
11
|
symbol: "THCFI",
|
|
12
12
|
name: "ThaiCoin ThaiFi",
|
|
13
13
|
decimals: 6,
|
|
14
14
|
};
|
|
15
15
|
export const THCOC = {
|
|
16
|
-
address: "
|
|
16
|
+
address: "0xadda91c4b336285ec732da4ae905f5ab3b4333b3",
|
|
17
17
|
symbol: "THCOC",
|
|
18
18
|
name: "ThaiCoin OpenCraft",
|
|
19
19
|
decimals: 6,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thaifi-wallet-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
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": {
|