@pollinations/cli 0.1.89 → 0.1.91
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 +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
"package.json"() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: "@pollinations/cli",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.91",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -551,7 +551,7 @@ async function showAuthStatus() {
|
|
|
551
551
|
authenticated: false,
|
|
552
552
|
message: "Not logged in. Run: polli auth login"
|
|
553
553
|
});
|
|
554
|
-
|
|
554
|
+
throw new ExitSignal(1);
|
|
555
555
|
}
|
|
556
556
|
const masked = `${key.slice(0, 5)}...${key.slice(-6)}`;
|
|
557
557
|
const rejectedKey = (error) => error instanceof ApiError && error.status === 401 ? error : null;
|
|
@@ -569,7 +569,7 @@ async function showAuthStatus() {
|
|
|
569
569
|
key: masked,
|
|
570
570
|
status: "API key rejected. Run: polli auth login"
|
|
571
571
|
});
|
|
572
|
-
|
|
572
|
+
throw new ExitSignal(1);
|
|
573
573
|
}
|
|
574
574
|
if (!profile) {
|
|
575
575
|
printResult({
|
|
@@ -1491,7 +1491,7 @@ var earningsCommand = new Command5("earnings").description("Show developer earni
|
|
|
1491
1491
|
}
|
|
1492
1492
|
const total = totalPollenEarned(data.perEntity);
|
|
1493
1493
|
printResult({
|
|
1494
|
-
|
|
1494
|
+
total_earned: `$${total.toFixed(4)}`,
|
|
1495
1495
|
window_days: days
|
|
1496
1496
|
});
|
|
1497
1497
|
printTable(
|
|
@@ -1499,7 +1499,7 @@ var earningsCommand = new Command5("earnings").description("Show developer earni
|
|
|
1499
1499
|
entity: row.entity_name,
|
|
1500
1500
|
source: row.source,
|
|
1501
1501
|
requests: row.requests,
|
|
1502
|
-
|
|
1502
|
+
earned: `$${row.pollen_earned.toFixed(4)}`,
|
|
1503
1503
|
volume: `$${row.cost_usd.toFixed(2)}`
|
|
1504
1504
|
}))
|
|
1505
1505
|
);
|