@trading-boy/cli 1.2.11 → 1.2.12
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/api-client.js +8 -1
- package/dist/cli.bundle.js +8 -1
- package/package.json +1 -1
package/dist/api-client.js
CHANGED
|
@@ -112,7 +112,14 @@ export async function apiRequest(path, options = {}) {
|
|
|
112
112
|
throw new ApiError('API key invalid or expired. Run `trading-boy login` to re-authenticate.', 401);
|
|
113
113
|
}
|
|
114
114
|
if (response.status === 403) {
|
|
115
|
-
|
|
115
|
+
let message = 'Subscription inactive. Run `trading-boy billing manage` to update your billing.';
|
|
116
|
+
try {
|
|
117
|
+
const body = await response.clone().json();
|
|
118
|
+
if (typeof body.error === 'string')
|
|
119
|
+
message = body.error;
|
|
120
|
+
}
|
|
121
|
+
catch { /* use default message */ }
|
|
122
|
+
throw new ApiError(message, 403);
|
|
116
123
|
}
|
|
117
124
|
if (response.status === 429) {
|
|
118
125
|
const retryAfter = response.headers.get('Retry-After');
|
package/dist/cli.bundle.js
CHANGED
|
@@ -42781,7 +42781,14 @@ async function apiRequest(path4, options = {}) {
|
|
|
42781
42781
|
throw new ApiError("API key invalid or expired. Run `trading-boy login` to re-authenticate.", 401);
|
|
42782
42782
|
}
|
|
42783
42783
|
if (response.status === 403) {
|
|
42784
|
-
|
|
42784
|
+
let message = "Subscription inactive. Run `trading-boy billing manage` to update your billing.";
|
|
42785
|
+
try {
|
|
42786
|
+
const body = await response.clone().json();
|
|
42787
|
+
if (typeof body.error === "string")
|
|
42788
|
+
message = body.error;
|
|
42789
|
+
} catch {
|
|
42790
|
+
}
|
|
42791
|
+
throw new ApiError(message, 403);
|
|
42785
42792
|
}
|
|
42786
42793
|
if (response.status === 429) {
|
|
42787
42794
|
const retryAfter = response.headers.get("Retry-After");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trading-boy/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "Trading Boy CLI — crypto context intelligence for traders and AI agents. Query real-time prices, funding rates, whale activity, and DeFi risk for 100+ Solana tokens and 229 Hyperliquid perpetuals.",
|
|
5
5
|
"homepage": "https://cabal.ventures",
|
|
6
6
|
"repository": {
|