@pollinations/cli 0.1.26 → 0.1.27
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 +10 -2
- 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.27",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -3902,6 +3902,7 @@ var info = new Command17("info").description(
|
|
|
3902
3902
|
name: keyInfo.name ?? "-",
|
|
3903
3903
|
expires: keyInfo.expiresAt ?? "never",
|
|
3904
3904
|
budget: keyInfo.pollenBudget ?? "unlimited",
|
|
3905
|
+
quest_pollen_only: keyInfo.questPollenOnly ?? false,
|
|
3905
3906
|
rate_limited: keyInfo.rateLimitEnabled,
|
|
3906
3907
|
model_restrictions: keyInfo.permissions?.models?.join(", ") ?? "none (all models)",
|
|
3907
3908
|
account_permissions: keyInfo.permissions?.account?.join(", ") ?? "none"
|
|
@@ -3916,7 +3917,13 @@ var create2 = new Command17("create").description(
|
|
|
3916
3917
|
"--type <type>",
|
|
3917
3918
|
"Key type: secret or publishable app key",
|
|
3918
3919
|
"secret"
|
|
3919
|
-
).option("--expires-in <seconds>", "Expiry in seconds (max 365 days)").option(
|
|
3920
|
+
).option("--expires-in <seconds>", "Expiry in seconds (max 365 days)").option(
|
|
3921
|
+
"--models <models...>",
|
|
3922
|
+
"Restrict to model categories (text, image, video, audio, 3d, embedding, realtime); a model ID allows its whole category"
|
|
3923
|
+
).option("--budget <pollen>", "Pollen budget cap").option(
|
|
3924
|
+
"--quest-pollen-only",
|
|
3925
|
+
"Never spend paid Pollen; requests stop when Quest Pollen runs out"
|
|
3926
|
+
).option(
|
|
3920
3927
|
"--redirect-uri <uri...>",
|
|
3921
3928
|
"Allowed BYOP redirect URI(s) for publishable app keys"
|
|
3922
3929
|
).option("--earnings", "Enable developer earnings for publishable app keys").option(
|
|
@@ -3954,6 +3961,7 @@ Examples:
|
|
|
3954
3961
|
body.pollenBudget = budget;
|
|
3955
3962
|
}
|
|
3956
3963
|
if (opts.permissions) body.accountPermissions = opts.permissions;
|
|
3964
|
+
if (opts.questPollenOnly === true) body.questPollenOnly = true;
|
|
3957
3965
|
if (opts.redirectUri) body.redirectUris = opts.redirectUri;
|
|
3958
3966
|
if (opts.earnings === true) body.earningsEnabled = true;
|
|
3959
3967
|
const created = await gen("/account/keys", {
|