@pollinations/cli 0.1.31 → 0.1.33
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 +7 -3
- 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.33",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -529,11 +529,13 @@ async function showAuthStatus() {
|
|
|
529
529
|
});
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
|
+
const wallet = balance?.accountBalance?.total;
|
|
532
533
|
printResult({
|
|
533
534
|
authenticated: true,
|
|
534
535
|
key: masked,
|
|
535
536
|
name: profile.githubUsername ?? "unknown",
|
|
536
|
-
pollen:
|
|
537
|
+
pollen: wallet ?? "unknown",
|
|
538
|
+
key_budget: balance?.balance !== wallet ? balance?.balance : void 0
|
|
537
539
|
});
|
|
538
540
|
}
|
|
539
541
|
var login, logout, status, authCommand, whoamiCommand;
|
|
@@ -1125,6 +1127,7 @@ Examples:
|
|
|
1125
1127
|
|
|
1126
1128
|
// src/commands/gen/chat.ts
|
|
1127
1129
|
init_api();
|
|
1130
|
+
init_client();
|
|
1128
1131
|
init_config();
|
|
1129
1132
|
import { writeFileSync as writeFileSync3 } from "fs";
|
|
1130
1133
|
import { createInterface as createInterface2 } from "readline";
|
|
@@ -1228,7 +1231,8 @@ Chat session started (model: ${opts.model ?? "API default"})
|
|
|
1228
1231
|
method: "POST",
|
|
1229
1232
|
headers: {
|
|
1230
1233
|
"Content-Type": "application/json",
|
|
1231
|
-
Authorization: `Bearer ${key}
|
|
1234
|
+
Authorization: `Bearer ${key}`,
|
|
1235
|
+
"X-Polli-Client": POLLI_CLIENT
|
|
1232
1236
|
},
|
|
1233
1237
|
body: JSON.stringify(body)
|
|
1234
1238
|
});
|