@pollinations/cli 0.1.48 → 0.1.49

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/README.md CHANGED
@@ -101,8 +101,8 @@ Two kinds of keys:
101
101
  polli keys list
102
102
  polli keys create --name mybot --budget 100 # secret (default)
103
103
  polli keys create --name myapp --type publishable # API publishable
104
- polli keys create --name myapp --type publishable \ # 3rd-party app key
105
- --redirect-uri https://myapp.com/callback --earnings
104
+ polli keys create --name myapp --type publishable \
105
+ --redirect-uri https://myapp.com/callback --earnings # 3rd-party app key
106
106
  polli keys create --name server --models black-forest-labs/flux.1-schnell tongyi-mai/z-image-turbo # only these models
107
107
  polli keys update <id> --models text black-forest-labs/flux.1-schnell # change the model list
108
108
  polli keys revoke <id>
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.48",
17
+ version: "0.1.49",
18
18
  description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
19
19
  type: "module",
20
20
  bin: {
@@ -645,6 +645,7 @@ function printAgents(agents) {
645
645
  agents.map((agent) => ({
646
646
  id: chalk2.dim(agent.id),
647
647
  name: agent.name,
648
+ model: agent.model ? chalk2.hex("#a78bfa").bold(agent.model) : chalk2.dim("- (link GitHub to get a callable model name)"),
648
649
  type: agent.type,
649
650
  base_model: agent.type === "prompt_agent" ? agent.baseModel : "-",
650
651
  visibility: agent.visibility,
@@ -653,6 +654,7 @@ function printAgents(agents) {
653
654
  [
654
655
  "id",
655
656
  "name",
657
+ "model",
656
658
  "type",
657
659
  "base_model",
658
660
  "visibility",
@@ -709,6 +711,16 @@ var create = new Command("create").description("Create a managed agent").require
709
711
  else {
710
712
  printSuccess(`Agent created: ${agent.id}`);
711
713
  printAgents([agent]);
714
+ if (agent.model) {
715
+ printInfo(
716
+ `Call it with model: ${agent.model}
717
+ It can take a minute or two to become callable while the model catalog refreshes \u2014 if you get "Invalid model or alias" right away, just wait and retry rather than running \`agents sync\` (that only redeploys code-agent source, it doesn't speed this up).`
718
+ );
719
+ } else {
720
+ printInfo(
721
+ "This agent has no callable model name yet: link a GitHub account to your Pollinations account and it will get one automatically (check with `agents get`)."
722
+ );
723
+ }
712
724
  }
713
725
  } catch (error) {
714
726
  printError(
@@ -6001,6 +6013,7 @@ var sandboxCommand = new Command22("sandbox").description("E2B sandboxes billed
6001
6013
  // A paused sandbox's endAt is when it paused.
6002
6014
  sandboxes.map((sandbox) => ({
6003
6015
  id: sandbox.sandboxID,
6016
+ name: sandbox.metadata?.name,
6004
6017
  template: sandbox.alias ?? sandbox.templateID,
6005
6018
  size: `${sandbox.cpuCount} vCPU, ${sandbox.memoryMB} MB`,
6006
6019
  state: sandbox.state === "running" ? `running until ${new Date(sandbox.endAt).toLocaleString()}` : sandbox.state