httpcat-cli 0.0.14 → 0.0.16
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 +2 -2
- package/dist/utils/formatting.d.ts.map +1 -1
- package/dist/utils/formatting.js +92 -40
- package/dist/utils/formatting.js.map +1 -1
- package/homebrew-httpcat/Formula/httpcat.rb +3 -3
- package/homebrew-httpcat/homebrew-httpcat/Formula/httpcat.rb +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ if (args.includes("--version") || args.includes("-V")) {
|
|
|
23
23
|
if (args.includes("--json")) {
|
|
24
24
|
console.log(JSON.stringify({
|
|
25
25
|
name: "httpcat-cli",
|
|
26
|
-
version: "0.0.
|
|
26
|
+
version: "0.0.16",
|
|
27
27
|
}, null, 2));
|
|
28
28
|
process.exit(0);
|
|
29
29
|
}
|
|
@@ -32,7 +32,7 @@ const program = new Command();
|
|
|
32
32
|
program
|
|
33
33
|
.name("httpcat")
|
|
34
34
|
.description("CLI tool for interacting with httpcat agent")
|
|
35
|
-
.version("0.0.
|
|
35
|
+
.version("0.0.16")
|
|
36
36
|
.option("--json", "Output in JSON format")
|
|
37
37
|
.option("--quiet", "Minimal output (exit codes only)")
|
|
38
38
|
.option("--verbose", "Verbose error messages")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../src/utils/formatting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../src/utils/formatting.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAoF3E;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAS7D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAIjE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAahE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAIjE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAQvD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAmB7E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI9C"}
|
package/dist/utils/formatting.js
CHANGED
|
@@ -1,67 +1,119 @@
|
|
|
1
|
-
import chalk from
|
|
2
|
-
import Table from
|
|
1
|
+
import chalk from "chalk";
|
|
2
|
+
import Table from "cli-table3";
|
|
3
3
|
export function formatCurrency(value, decimals = 6) {
|
|
4
|
-
const num = typeof value ===
|
|
4
|
+
const num = typeof value === "string" ? parseFloat(value) : value;
|
|
5
5
|
if (isNaN(num)) {
|
|
6
|
-
return
|
|
6
|
+
return "$0.00";
|
|
7
7
|
}
|
|
8
8
|
if (decimals === 6) {
|
|
9
9
|
// USDC - detect if value is already in decimal format or needs conversion
|
|
10
|
-
// API responses
|
|
10
|
+
// API responses can be either:
|
|
11
|
+
// - Decimal strings: "0.20", "5.00", "0.002" (already in decimal format)
|
|
12
|
+
// - Micro-USDC integers: "200000", "2000" (need conversion: divide by 10^6)
|
|
11
13
|
// Raw blockchain values are numbers in micro-USDC format (e.g., 200000 = $0.20)
|
|
12
|
-
|
|
13
|
-
if (typeof value ===
|
|
14
|
-
//
|
|
15
|
-
|
|
14
|
+
let formattedNum;
|
|
15
|
+
if (typeof value === "string") {
|
|
16
|
+
// String from API - need to detect format
|
|
17
|
+
// If it contains a decimal point, it's already in decimal format
|
|
18
|
+
// If it's an integer without decimal point, it's in micro-USDC format (needs division by 10^6)
|
|
19
|
+
// Exception: "0" should be treated as decimal 0, not micro-USDC
|
|
20
|
+
if (value.includes(".")) {
|
|
21
|
+
// Has decimal point - already in decimal format
|
|
22
|
+
formattedNum = num;
|
|
23
|
+
}
|
|
24
|
+
else if (value === "0" || num === 0) {
|
|
25
|
+
// Explicit zero - treat as decimal 0
|
|
26
|
+
formattedNum = 0;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
// Integer without decimal point - in micro-USDC format
|
|
30
|
+
formattedNum = num / 10 ** 6;
|
|
31
|
+
}
|
|
16
32
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
else {
|
|
34
|
+
// Numeric value (not from API) - check if it looks like micro-USDC
|
|
35
|
+
// Values >= 1,000,000 are likely in micro-USDC format and need conversion
|
|
36
|
+
if (num >= 1000000) {
|
|
37
|
+
// Likely in micro-USDC format, convert
|
|
38
|
+
formattedNum = num / 10 ** 6;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// Treat as already in decimal format
|
|
42
|
+
formattedNum = num;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// Format with appropriate decimal places based on value size
|
|
46
|
+
// For very small values (< 0.01), show up to 6 decimal places to avoid rounding to $0.00
|
|
47
|
+
// For larger values, show 2 decimal places
|
|
48
|
+
// Use a small epsilon to check for zero (accounting for floating point precision)
|
|
49
|
+
if (Math.abs(formattedNum) < 1e-10) {
|
|
50
|
+
return "$0.00";
|
|
51
|
+
}
|
|
52
|
+
else if (formattedNum < 0.01) {
|
|
53
|
+
// Show up to 12 decimal places for very small values (like token prices)
|
|
54
|
+
// Use toFixed(12) to ensure we capture very small values, then trim trailing zeros
|
|
55
|
+
const formatted = formattedNum.toFixed(12);
|
|
56
|
+
// Remove trailing zeros and trailing decimal point
|
|
57
|
+
const trimmed = formatted.replace(/0+$/, "").replace(/\.$/, "");
|
|
58
|
+
// If after trimming we have nothing meaningful (just "0"), show $0.00
|
|
59
|
+
if (trimmed === "0" || trimmed === "") {
|
|
60
|
+
return "$0.00";
|
|
61
|
+
}
|
|
62
|
+
return `$${trimmed}`;
|
|
24
63
|
}
|
|
25
64
|
else {
|
|
26
|
-
//
|
|
27
|
-
return `$${
|
|
65
|
+
// Standard 2 decimal places for larger values
|
|
66
|
+
return `$${formattedNum.toFixed(2)}`;
|
|
28
67
|
}
|
|
29
68
|
}
|
|
30
69
|
else if (decimals === 18) {
|
|
31
70
|
// Token amount
|
|
32
|
-
return (num / 10 ** 18).toLocaleString(
|
|
71
|
+
return (num / 10 ** 18).toLocaleString("en-US", {
|
|
33
72
|
maximumFractionDigits: 2,
|
|
34
73
|
});
|
|
35
74
|
}
|
|
36
75
|
// Default: treat as already in decimal format
|
|
37
|
-
|
|
76
|
+
if (num === 0) {
|
|
77
|
+
return "$0.00";
|
|
78
|
+
}
|
|
79
|
+
else if (num < 0.01) {
|
|
80
|
+
// Show up to 12 decimal places for very small values
|
|
81
|
+
const formatted = num.toFixed(12).replace(/0+$/, "").replace(/\.$/, "");
|
|
82
|
+
if (formatted === "0" || formatted === "") {
|
|
83
|
+
return "$0.00";
|
|
84
|
+
}
|
|
85
|
+
return `$${formatted}`;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return `$${num.toFixed(2)}`;
|
|
89
|
+
}
|
|
38
90
|
}
|
|
39
91
|
export function formatEthBalance(wei) {
|
|
40
|
-
const weiValue = typeof wei ===
|
|
92
|
+
const weiValue = typeof wei === "string" ? BigInt(wei) : wei;
|
|
41
93
|
const divisor = BigInt(10 ** 18);
|
|
42
94
|
const eth = Number(weiValue) / Number(divisor);
|
|
43
95
|
if (eth === 0)
|
|
44
|
-
return
|
|
96
|
+
return "0 ETH";
|
|
45
97
|
if (eth < 0.0001)
|
|
46
|
-
return
|
|
98
|
+
return "< 0.0001 ETH";
|
|
47
99
|
return `${eth.toFixed(4)} ETH`;
|
|
48
100
|
}
|
|
49
101
|
export function formatUsdcBalance(amount) {
|
|
50
|
-
const amountValue = typeof amount ===
|
|
102
|
+
const amountValue = typeof amount === "string" ? BigInt(amount) : amount;
|
|
51
103
|
const num = Number(amountValue) / 10 ** 6;
|
|
52
104
|
return `$${num.toFixed(2)} USDC`;
|
|
53
105
|
}
|
|
54
106
|
export function formatTokenAmount(value) {
|
|
55
|
-
const amount = typeof value ===
|
|
107
|
+
const amount = typeof value === "string" ? BigInt(value) : value;
|
|
56
108
|
const divisor = BigInt(10 ** 18);
|
|
57
109
|
const whole = amount / divisor;
|
|
58
110
|
const fraction = amount % divisor;
|
|
59
111
|
if (fraction === 0n) {
|
|
60
|
-
return whole.toLocaleString(
|
|
112
|
+
return whole.toLocaleString("en-US");
|
|
61
113
|
}
|
|
62
114
|
// Show up to 4 decimal places
|
|
63
|
-
const fractionStr = fraction.toString().padStart(18,
|
|
64
|
-
return `${whole.toLocaleString(
|
|
115
|
+
const fractionStr = fraction.toString().padStart(18, "0").slice(0, 4);
|
|
116
|
+
return `${whole.toLocaleString("en-US")}.${fractionStr}`;
|
|
65
117
|
}
|
|
66
118
|
export function formatAddress(address, length = 8) {
|
|
67
119
|
if (address.length <= length)
|
|
@@ -77,7 +129,7 @@ export function createTable(head) {
|
|
|
77
129
|
head: head.map((h) => chalk.cyan.bold(h)),
|
|
78
130
|
style: {
|
|
79
131
|
head: [],
|
|
80
|
-
border: [
|
|
132
|
+
border: ["dim"],
|
|
81
133
|
},
|
|
82
134
|
});
|
|
83
135
|
}
|
|
@@ -85,30 +137,30 @@ export function printBox(title, content) {
|
|
|
85
137
|
const maxKeyLength = Math.max(...Object.keys(content).map((k) => k.length));
|
|
86
138
|
const maxValueLength = Math.max(...Object.values(content).map((v) => v.length));
|
|
87
139
|
const width = Math.max(maxKeyLength + maxValueLength + 5, title.length + 4);
|
|
88
|
-
console.log(
|
|
89
|
-
console.log(
|
|
90
|
-
console.log(
|
|
140
|
+
console.log("┌" + "─".repeat(width) + "┐");
|
|
141
|
+
console.log("│ " + chalk.bold(title) + " ".repeat(width - title.length - 1) + "│");
|
|
142
|
+
console.log("├" + "─".repeat(width) + "┤");
|
|
91
143
|
for (const [key, value] of Object.entries(content)) {
|
|
92
144
|
const padding = width - key.length - value.length - 3;
|
|
93
|
-
console.log(`│ ${chalk.dim(key +
|
|
145
|
+
console.log(`│ ${chalk.dim(key + ":")} ${value}${" ".repeat(padding)}│`);
|
|
94
146
|
}
|
|
95
|
-
console.log(
|
|
147
|
+
console.log("└" + "─".repeat(width) + "┘");
|
|
96
148
|
}
|
|
97
149
|
export function printSuccess(message) {
|
|
98
|
-
console.log(chalk.green(
|
|
150
|
+
console.log(chalk.green("✅ " + message));
|
|
99
151
|
}
|
|
100
152
|
export function printError(message) {
|
|
101
|
-
console.log(chalk.red(
|
|
153
|
+
console.log(chalk.red("❌ " + message));
|
|
102
154
|
}
|
|
103
155
|
export function printWarning(message) {
|
|
104
|
-
console.log(chalk.yellow(
|
|
156
|
+
console.log(chalk.yellow("⚠️ " + message));
|
|
105
157
|
}
|
|
106
158
|
export function printInfo(message) {
|
|
107
|
-
console.log(chalk.blue(
|
|
159
|
+
console.log(chalk.blue("ℹ️ " + message));
|
|
108
160
|
}
|
|
109
161
|
export function printHeader(text) {
|
|
110
|
-
console.log(chalk.cyan(
|
|
162
|
+
console.log(chalk.cyan("=".repeat(80)));
|
|
111
163
|
console.log(chalk.cyan.bold(text));
|
|
112
|
-
console.log(chalk.cyan(
|
|
164
|
+
console.log(chalk.cyan("=".repeat(80)));
|
|
113
165
|
}
|
|
114
166
|
//# sourceMappingURL=formatting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,MAAM,UAAU,cAAc,CAAC,KAAsB,EAAE,QAAQ,GAAG,CAAC;IACjE,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElE,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACnB,0EAA0E;QAC1E,
|
|
1
|
+
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,MAAM,UAAU,cAAc,CAAC,KAAsB,EAAE,QAAQ,GAAG,CAAC;IACjE,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElE,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACnB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C,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAe;IACvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
class Httpcat < Formula
|
|
2
2
|
desc "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments"
|
|
3
3
|
homepage "https://github.com/hathbanger/httpcat-cli"
|
|
4
|
-
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.
|
|
5
|
-
sha256 "
|
|
4
|
+
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.15.tgz"
|
|
5
|
+
sha256 "7a420c1c68e03ee8d9e6f9c8fcce90ef25d83b6abd347c9a9d1e894e77e2fd17"
|
|
6
6
|
license "MIT"
|
|
7
7
|
|
|
8
8
|
depends_on "node"
|
|
@@ -13,6 +13,6 @@ class Httpcat < Formula
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
test do
|
|
16
|
-
assert_match "0.0.
|
|
16
|
+
assert_match "0.0.15", shell_output("#{bin}/httpcat --version")
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
class Httpcat < Formula
|
|
2
2
|
desc "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments"
|
|
3
3
|
homepage "https://github.com/hathbanger/httpcat-cli"
|
|
4
|
-
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.
|
|
5
|
-
sha256 "
|
|
4
|
+
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.15.tgz"
|
|
5
|
+
sha256 "7a420c1c68e03ee8d9e6f9c8fcce90ef25d83b6abd347c9a9d1e894e77e2fd17"
|
|
6
6
|
license "MIT"
|
|
7
7
|
|
|
8
8
|
depends_on "node"
|
|
@@ -13,6 +13,6 @@ class Httpcat < Formula
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
test do
|
|
16
|
-
assert_match "0.0.
|
|
16
|
+
assert_match "0.0.15", shell_output("#{bin}/httpcat --version")
|
|
17
17
|
end
|
|
18
18
|
end
|