@vibiz/cli 0.3.12 → 0.3.15

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/vibiz.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  formatUsd,
12
12
  mergeEnvFile,
13
13
  oneKeyMessage
14
- } from "./chunk-NNIG26UF.js";
14
+ } from "./chunk-E4DLG5EA.js";
15
15
 
16
16
  // packages/cli/src/main.ts
17
17
  import { spawn } from "node:child_process";
@@ -232,7 +232,7 @@ var VibizApp = class _VibizApp {
232
232
  throw new VibizAppError(
233
233
  401,
234
234
  "unauthorized",
235
- "No app key. Set VIBIZ_APP_KEY (Vibiz puts it in your app\u2019s env), or pass { key }."
235
+ "No app key. Set VIBIZ_APP_KEY (thelastapi puts it in your app\u2019s env), or pass { key }."
236
236
  );
237
237
  }
238
238
  return key;
@@ -249,7 +249,7 @@ var VibizApp = class _VibizApp {
249
249
  throw new VibizAppError(
250
250
  400,
251
251
  "invalid_request",
252
- "The app key is a server secret: call Vibiz from your server, not the browser."
252
+ "The app key is a server secret: call thelastapi from your server, not the browser."
253
253
  );
254
254
  }
255
255
  const res = await (this.options.fetch ?? fetch)(`${this.url}/v1${path}`, {
@@ -276,7 +276,7 @@ var VibizApp = class _VibizApp {
276
276
  throw new VibizAppError(
277
277
  res.status,
278
278
  e?.code ?? "error",
279
- e?.message ?? `Vibiz answered ${res.status}.`,
279
+ e?.message ?? `thelastapi answered ${res.status}.`,
280
280
  e?.details
281
281
  );
282
282
  }
@@ -594,7 +594,7 @@ var STATUS = {
594
594
  low: "low balance",
595
595
  payment_required: "out of credits: paid calls are refused",
596
596
  past_due: "out of credits for a week: deploys and new resources are paused",
597
- exempt: "covered by Vibiz"
597
+ exempt: "covered by thelastapi"
598
598
  };
599
599
  var KIND = {
600
600
  trial: "Trial credit",
@@ -617,7 +617,7 @@ function formatEntry(e) {
617
617
  }
618
618
  function formatBilling(b, history) {
619
619
  const lines = [
620
- b.mode === "exempt" ? "Billing Vibiz covers this account\u2019s usage" : `Balance ${dollars(b.balance_cents)} (${STATUS[b.status]})`
620
+ b.mode === "exempt" ? "Billing thelastapi covers this account\u2019s usage" : `Balance ${dollars(b.balance_cents)} (${STATUS[b.status]})`
621
621
  ];
622
622
  if (b.pauses_at && b.status === "payment_required") {
623
623
  lines.push(` deploys pause on ${b.pauses_at.slice(0, 10)} unless credits are added`);
@@ -979,9 +979,9 @@ var DNS_RECORDS_USAGE = [
979
979
  " vibiz domains records remove <domain> <id> [--force]"
980
980
  ].join("\n");
981
981
  var MANAGED_LABEL = {
982
- hosting: "managed by Vibiz: hosting",
983
- email: "managed by Vibiz: email",
984
- default: "managed by Vibiz: DNS default"
982
+ hosting: "managed by thelastapi: hosting",
983
+ email: "managed by thelastapi: email",
984
+ default: "managed by thelastapi: DNS default"
985
985
  };
986
986
  function recordLine(r) {
987
987
  const value = r.type === "TXT" ? JSON.stringify(r.value) : r.value;
@@ -1044,7 +1044,7 @@ async function dnsRecordsCommand(io, vibiz2, flags, args) {
1044
1044
  io.log(`Add one: vibiz domains records add ${list2.domain} <TYPE> <name> <value>`);
1045
1045
  if (list2.data.some((r) => r.managed)) {
1046
1046
  io.log(
1047
- "Leave the managed ones: Vibiz keeps them for hosting, email and HTTPS (removing one needs --force)."
1047
+ "Leave the managed ones: thelastapi keeps them for hosting, email and HTTPS (removing one needs --force)."
1048
1048
  );
1049
1049
  }
1050
1050
  io.log(`In the console: ${list2.console_url}`);
@@ -1645,7 +1645,7 @@ async function exportCommand(io, flags) {
1645
1645
  if (envPath) io.log(` ${envPath} the secret values (mode 600)`);
1646
1646
  for (const w of done.warnings) io.log(` ! ${w}`);
1647
1647
  io.log(
1648
- zipKind ? " Start with VIBIZ-EXPORT.md in the zip: running it anywhere, keeping Vibiz with one key, or moving everything." : ' Restore the database with: gunzip -c <file>.sql.gz | psql "$DATABASE_URL"'
1648
+ zipKind ? " Start with VIBIZ-EXPORT.md in the zip: running it anywhere, keeping thelastapi with one key, or moving everything." : ' Restore the database with: gunzip -c <file>.sql.gz | psql "$DATABASE_URL"'
1649
1649
  );
1650
1650
  if (!flags.secrets) {
1651
1651
  io.log(
@@ -1673,7 +1673,7 @@ var UNTRUSTED_END = "\u2500\u2500\u2500\u2500\u2500 end of external email conten
1673
1673
  var list = (v) => (v ?? "").split(",").map((x) => x.trim()).filter(Boolean);
1674
1674
  var when = (iso) => iso.slice(0, 16).replace("T", " ");
1675
1675
  function printDomain(io, d) {
1676
- io.log(`${d.domain} ${d.status}${d.managed_dns ? " (records set by Vibiz)" : ""}`);
1676
+ io.log(`${d.domain} ${d.status}${d.managed_dns ? " (records set by thelastapi)" : ""}`);
1677
1677
  for (const r of d.records) {
1678
1678
  const mark = r.status === "ok" ? "\u2713" : r.status === "unknown" ? "\xB7" : "\u2717";
1679
1679
  io.log(
@@ -2612,7 +2612,7 @@ async function skillsList(io, api, opts) {
2612
2612
  return;
2613
2613
  }
2614
2614
  io.log(
2615
- `Vibiz skills for ${agent === "claude" ? "Claude Code" : agent === "codex" ? "Codex" : "Cursor"}:`
2615
+ `thelastapi skills for ${agent === "claude" ? "Claude Code" : agent === "codex" ? "Codex" : "Cursor"}:`
2616
2616
  );
2617
2617
  for (const r of rows) {
2618
2618
  io.log(` ${r.installed ? "\u25CF" : "\u25CB"} ${r.name.padEnd(18)} ${r.installed ?? "not installed"}`);
@@ -3225,7 +3225,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3225
3225
  key) into .env.development.local
3226
3226
  vibiz dev -- <command\u2026> run a command with the development env, no file
3227
3227
  vibiz env [--write <file>] the PRODUCTION env (full-access keys only), to paste into
3228
- a host outside Vibiz; agents use \`vibiz dev\`
3228
+ a host outside thelastapi; agents use \`vibiz dev\`
3229
3229
  vibiz env set <NAME> [--dev] the app's own variable (a third-party key\u2026): from $NAME
3230
3230
  or a hidden prompt; write-only, never printed. The app
3231
3231
  reads it from its env; connected hosts get it too
@@ -3262,7 +3262,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3262
3262
  move a bought name to another project (full-access keys)
3263
3263
  vibiz domains point <name> <host or IP|none>
3264
3264
  a bought name used by an app elsewhere: we point it there
3265
- vibiz domains records <domain> [--json] a bought domain's DNS records; the ones Vibiz keeps
3265
+ vibiz domains records <domain> [--json] a bought domain's DNS records; the ones thelastapi keeps
3266
3266
  (hosting, email, DNS defaults) are marked managed
3267
3267
  vibiz domains records add <domain> <TYPE> <name> <value> [--ttl n] [--priority n]
3268
3268
  add a record (A, AAAA, CNAME, MX, TXT, CAA; name @ for
@@ -3301,7 +3301,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3301
3301
  [--brand-background #hex] [--brand-font inter] [--brand-border pill|rounded|rectangular]
3302
3302
  a checkout link to pay right now, in your brand
3303
3303
  vibiz payments list [--dev] payments, newest first
3304
- vibiz payments webhook <url|none> [--dev] where Vibiz POSTs payment events (the app verifies
3304
+ vibiz payments webhook <url|none> [--dev] where thelastapi POSTs payment events (the app verifies
3305
3305
  them with VIBIZ_WEBHOOK_SECRET: vibiz docs webhooks)
3306
3306
  vibiz payments withdraw [--amount <cents>] [--dev]
3307
3307
  send the balance to your bank; shows the amount and
@@ -3313,7 +3313,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3313
3313
  vibiz payments connect [--dev] [--open] a link for the owner to connect their own Stripe
3314
3314
  account instead (sales charged and paid out there);
3315
3315
  give it to them: only they can complete it
3316
- vibiz payments disconnect [--dev] owner: back to payments through Vibiz (an opt-out:
3316
+ vibiz payments disconnect [--dev] owner: back to payments through thelastapi (an opt-out:
3317
3317
  account apply leaves the project alone)
3318
3318
  vibiz payments use-account [--dev] owner: put the project on your Stripe account for
3319
3319
  every project
@@ -3326,14 +3326,14 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3326
3326
  vibiz payments account apply [--dev] [--yes]
3327
3327
  owner: switch existing projects to it for new sales;
3328
3328
  lists what changes and asks you to confirm
3329
- vibiz payments account disconnect [--dev] owner: projects on it go back to payments through Vibiz
3329
+ vibiz payments account disconnect [--dev] owner: projects on it go back to payments through thelastapi
3330
3330
  vibiz payments app-store connect [--open] a link for the owner to connect their own RevenueCat
3331
3331
  account (they paste its secret key there, once)
3332
3332
  vibiz payments app-store setup --ios <bundle id> [--android <package>] [--store-project <id>] [--dev]
3333
3333
  iOS/Android in-app purchases: the app in their
3334
3334
  RevenueCat account, this catalog mirrored, the public
3335
3335
  SDK key and the App Store product ids (safe to re-run)
3336
- vibiz payments app-store [--dev] [--json] what is set up and the steps left (no Vibiz fee on
3336
+ vibiz payments app-store [--dev] [--json] what is set up and the steps left (no thelastapi fee on
3337
3337
  store purchases)
3338
3338
  vibiz payments app-store subscriptions [--user id] [--dev]
3339
3339
  App Store and Google Play purchases recorded
@@ -3363,7 +3363,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3363
3363
  [--start-date YYYY-MM-DD] [--end-date \u2026] [--file campaign.json] [--active] [--dev]
3364
3364
  a Google Ads campaign, created PAUSED (--active starts
3365
3365
  spending; live: you confirm; agents ask the owner)
3366
- vibiz connectors [list] [--json] your own APIs, called through Vibiz, which holds their
3366
+ vibiz connectors [list] [--json] your own APIs, called through thelastapi, which holds their
3367
3367
  keys (docs/CONNECTORS.md)
3368
3368
  vibiz connectors import <spec-url|file> [--name n] [--enable op,op] [--add]
3369
3369
  preview an OpenAPI 3 spec (JSON or YAML): its operations
@@ -3385,9 +3385,9 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3385
3385
  the command with the app's env; any language
3386
3386
  vibiz env pull [--format dotenv|shell|docker|json] [-o file]
3387
3387
  the app's env from VIBIZ_APP_KEY, for a build step
3388
- vibiz hosts hosts outside Vibiz that get the env server to server
3388
+ vibiz hosts hosts outside thelastapi that get the env server to server
3389
3389
  vibiz hosts add <host> <app> [field=value\u2026] [--dev]
3390
- connect your own host so Vibiz keeps its env in sync
3390
+ connect your own host so thelastapi keeps its env in sync
3391
3391
  (full-access key): vercel, netlify, render, railway, fly,
3392
3392
  heroku, cloudflare-workers, cloudflare-pages,
3393
3393
  github-actions. The token comes from the host's usual
@@ -3507,7 +3507,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3507
3507
  there; --check looks again now
3508
3508
  vibiz email forward <address@domain> <inbox\u2026> [--replace-mx]
3509
3509
  forward mail for hello@yourdomain.com (or *@ for any
3510
- other address) to up to 5 inboxes, "via Vibiz" (owner
3510
+ other address) to up to 5 inboxes, "via thelastapi" (owner
3511
3511
  keys). Each inbox confirms once by email. A domain
3512
3512
  bought here gets its records set; --replace-mx
3513
3513
  confirms taking its mail from another provider
@@ -3569,9 +3569,9 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3569
3569
  vibiz email automation list|runs <id>|activate <id>|pause <id>
3570
3570
  vibiz email automation create --file automation.json {name, trigger, steps, exit_event}
3571
3571
  vibiz ai "<prompt>" [--model m] [--system s] stream an answer from a language model (metered)
3572
- --model: a Vibiz model (vibiz/smart) or any lab model
3572
+ --model: a thelastapi model (vibiz/smart) or any lab model
3573
3573
  (anthropic/claude-sonnet-5.5): app.vibiz.app/docs/ai
3574
- vibiz ai models [search\u2026] [--all] [--json] the Vibiz models and the model each runs, with prices;
3574
+ vibiz ai models [search\u2026] [--all] [--json] the thelastapi models and the model each runs, with prices;
3575
3575
  --all (or a search) lists every model you can call
3576
3576
  vibiz ai budget [<dollars>] [--project id | --all] a project's daily AI budget: show it, or set it
3577
3577
  (--all: every project with AI). Full-access key to change.
@@ -3591,7 +3591,9 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3591
3591
  vibiz files get <id> [--json] one file: its link, size, and the prompt if AI made it
3592
3592
  vibiz files download <id> [-o path] save its bytes here (private files too)
3593
3593
  vibiz files rm <id> delete it: its link stops working
3594
- vibiz image "<prompt>" -o out.png [--size 1024x1024] [--model m] generate an image
3594
+ vibiz image "<prompt>" -o out.png [--size 1024x1024] [--model m] [--from-image <https url>] generate an image, or edit a photo
3595
+ vibiz video "<prompt>" -o out.mp4 [--from-image <https url>] [--aspect 16:9|9:16] [--model m] [--params '<json>'] a short video (or animate an image)
3596
+ vibiz media-models [words] [--category image-to-video] every image/video model you can run by id (Kling, face swap\u2026), with its live price
3595
3597
  vibiz say "<text>" -o out.mp3 [--voice alloy] text to speech
3596
3598
  vibiz transcribe <audio-file> [--language en] speech to text
3597
3599
  vibiz usage [--period 24h|7d|30d|month] [--by tool|model|alias|project|api_key|end_user|day|capability]
@@ -3609,7 +3611,7 @@ var HELP = `vibiz \u2014 website, database and sign-in for a new business, in on
3609
3611
  access by default; Limited ones never move live
3610
3612
  money or read production secrets
3611
3613
  vibiz admin metrics [--period 7d] [--json] [--open] the platform view (admin key)
3612
- vibiz mcp serve the Vibiz tools to AI agents (MCP, stdio)
3614
+ vibiz mcp serve the thelastapi tools to AI agents (MCP, stdio)
3613
3615
  vibiz mcp add --clients "<client>[,\u2026]" connect a coding agent to the remote MCP server once:
3614
3616
  "Claude Code", Codex, Cursor, "VS Code with Copilot",
3615
3617
  Windsurf, "Gemini CLI", OpenCode (merges, never replaces)
@@ -4230,7 +4232,7 @@ function printProject(io, p) {
4230
4232
  if (p.url) io.log(` ${p.url}`);
4231
4233
  else if (p.status === "active" && !p.resources.some((r) => r.type === "hosting"))
4232
4234
  io.log(
4233
- ` no Vibiz hosting: run the app anywhere${p.domains?.length ? ` (${p.domains.join(", ")})` : ""}; its env: vibiz connect`
4235
+ ` no thelastapi hosting: run the app anywhere${p.domains?.length ? ` (${p.domains.join(", ")})` : ""}; its env: vibiz connect`
4234
4236
  );
4235
4237
  for (const r of p.resources) {
4236
4238
  const detail = r.error ? ` ${r.error.message}` : "";
@@ -4328,8 +4330,8 @@ function printCompany(io, c) {
4328
4330
  var USAGE_WORDS = {
4329
4331
  account: "your Stripe account (every project)",
4330
4332
  other_account: "its own Stripe account",
4331
- vibiz: "through Vibiz",
4332
- opted_out: "through Vibiz (opted out)",
4333
+ vibiz: "through thelastapi",
4334
+ opted_out: "through thelastapi (opted out)",
4333
4335
  not_started: "no payments yet"
4334
4336
  };
4335
4337
  async function ownerStripeCommand(io, vibiz2, [sub, arg], flags) {
@@ -4383,7 +4385,7 @@ ${link.url}`
4383
4385
  const show = (r2) => {
4384
4386
  for (const c of r2.changed) {
4385
4387
  io.log(
4386
- ` ${r2.dry_run ? "will switch" : "switched"}: ${c.name} (${c.environment})${c.balance_cents ? ` \xB7 ${cents2(c.balance_cents)} stays in its balance to withdraw` : ""}${c.vibiz_subscriptions ? ` \xB7 ${c.vibiz_subscriptions} subscription(s) keep billing through Vibiz` : ""}`
4388
+ ` ${r2.dry_run ? "will switch" : "switched"}: ${c.name} (${c.environment})${c.balance_cents ? ` \xB7 ${cents2(c.balance_cents)} stays in its balance to withdraw` : ""}${c.vibiz_subscriptions ? ` \xB7 ${c.vibiz_subscriptions} subscription(s) keep billing through thelastapi` : ""}`
4387
4389
  );
4388
4390
  }
4389
4391
  for (const x of r2.skipped) io.log(` skipped: ${x.name} (${x.environment}): ${x.message}`);
@@ -4426,7 +4428,7 @@ function printPayments(io, a) {
4426
4428
  io.log(`Payments (${a.environment}) ${a.status} statement: ${a.statement_descriptor}`);
4427
4429
  if (a.account) {
4428
4430
  io.log(
4429
- own ? ` sales: your own Stripe account${a.account.own.account_name ? ` (${a.account.own.account_name})` : ""}, paid out by it` : ` sales: through Vibiz (the default)${a.account.own.available ? " \xB7 own Stripe account: vibiz payments connect" : ""}`
4431
+ own ? ` sales: your own Stripe account${a.account.own.account_name ? ` (${a.account.own.account_name})` : ""}, paid out by it` : ` sales: through thelastapi (the default)${a.account.own.available ? " \xB7 own Stripe account: vibiz payments connect" : ""}`
4430
4432
  );
4431
4433
  }
4432
4434
  const held = b.available_cents + b.pending_cents + b.in_transit_cents + b.negative_cents > 0;
@@ -4448,7 +4450,7 @@ function printPayments(io, a) {
4448
4450
  }
4449
4451
  if (a.webhook.url) io.log(`
4450
4452
  webhook: ${a.webhook.url}`);
4451
- const next = a.status === "frozen" ? "payments are paused by Vibiz: contact support" : own && !held ? null : p.status !== "ready" ? "verify your identity and add a bank in the console (Payments \u25B8 Get paid); your app can already sell" : b.available_cents > 0 ? "vibiz payments withdraw" : null;
4453
+ const next = a.status === "frozen" ? "payments are paused by thelastapi: contact support" : own && !held ? null : p.status !== "ready" ? "verify your identity and add a bank in the console (Payments \u25B8 Get paid); your app can already sell" : b.available_cents > 0 ? "vibiz payments withdraw" : null;
4452
4454
  if (next) io.log(`
4453
4455
  next: ${next}`);
4454
4456
  }
@@ -4713,6 +4715,10 @@ async function runCli(argv2, io) {
4713
4715
  system: { type: "string" },
4714
4716
  size: { type: "string" },
4715
4717
  voice: { type: "string" },
4718
+ "from-image": { type: "string" },
4719
+ params: { type: "string" },
4720
+ category: { type: "string" },
4721
+ aspect: { type: "string" },
4716
4722
  language: { type: "string" },
4717
4723
  project: { type: "string" },
4718
4724
  by: { type: "string" },
@@ -5250,7 +5256,7 @@ ${link.url}`
5250
5256
  `This files ${name} (${c.entity_type === "llc" ? "LLC" : "C-Corp"}, ${c.state}) with the state for real and charges ${total}.`
5251
5257
  );
5252
5258
  io.log(
5253
- "Vibiz files formation documents on your instructions. It is not a law firm and does not give legal or tax advice."
5259
+ "thelastapi files formation documents on your instructions. It is not a law firm and does not give legal or tax advice."
5254
5260
  );
5255
5261
  const typed = await io.promptLine(`Type the company's name (${name}) to confirm: `);
5256
5262
  if (typed !== name) throw new Error("Not confirmed: nothing was filed.");
@@ -5498,7 +5504,7 @@ ${c.url}`));
5498
5504
  ${link.url}`
5499
5505
  );
5500
5506
  io.log(
5501
- "\n They sign in to the console, read what changes, and connect their Stripe account (or keep payments through Vibiz)."
5507
+ "\n They sign in to the console, read what changes, and connect their Stripe account (or keep payments through thelastapi)."
5502
5508
  );
5503
5509
  });
5504
5510
  if (values.open) io.openUrl(link.url);
@@ -5604,7 +5610,7 @@ ${link.url}`
5604
5610
  ${link.url}`
5605
5611
  );
5606
5612
  io.log(
5607
- "You sign in to Vibiz, check it, then sign in on the platform. Then: vibiz social accounts"
5613
+ "You sign in to thelastapi, check it, then sign in on the platform. Then: vibiz social accounts"
5608
5614
  );
5609
5615
  });
5610
5616
  if (values.open) io.openUrl(link.url);
@@ -6057,7 +6063,7 @@ ${link.url}`
6057
6063
  environments: values.dev && host.environments.includes("development") ? ["production", "development"] : ["production"]
6058
6064
  });
6059
6065
  io.log(
6060
- `Connected ${host.label} ${t.name} (${t.id}). Vibiz writes the env there now and on every change; it applies ${host.applies}.`
6066
+ `Connected ${host.label} ${t.name} (${t.id}). thelastapi writes the env there now and on every change; it applies ${host.applies}.`
6061
6067
  );
6062
6068
  return;
6063
6069
  }
@@ -6070,7 +6076,7 @@ ${link.url}`
6070
6076
  if (!a) throw new Error("usage: vibiz hosts rm <id> [--keep-values]");
6071
6077
  await vibiz2.projects.hosts.remove(id, a, { keepValues: values["keep-values"] });
6072
6078
  io.log(
6073
- values["keep-values"] ? `Disconnected ${a}; its variables stay but get no more updates.` : `Disconnected ${a}; removing the variables Vibiz wrote there.`
6079
+ values["keep-values"] ? `Disconnected ${a}; its variables stay but get no more updates.` : `Disconnected ${a}; removing the variables thelastapi wrote there.`
6074
6080
  );
6075
6081
  return;
6076
6082
  }
@@ -6203,11 +6209,11 @@ ${await oneKeyLines(vibiz2, id)}`);
6203
6209
  const linked = await local.readFile(PROJECT_FILE, "utf8").then((t) => JSON.parse(String(t)).project_id).catch(() => void 0);
6204
6210
  const oneKey = async (host) => {
6205
6211
  if (!linked) {
6206
- return ` One key, VIBIZ_APP_KEY, gives the app everything on Vibiz. This folder has no ${PROJECT_FILE} yet: run vibiz init <name> here, then vibiz connect again for the link to copy it.`;
6212
+ return ` One key, VIBIZ_APP_KEY, gives the app everything on thelastapi. This folder has no ${PROJECT_FILE} yet: run vibiz init <name> here, then vibiz connect again for the link to copy it.`;
6207
6213
  }
6208
6214
  return oneKeyLines(await io.client(), linked, host);
6209
6215
  };
6210
- io.log("Recommended: Vibiz hosting. Every key is already there and stays in sync:");
6216
+ io.log("Recommended: thelastapi hosting. Every key is already there and stays in sync:");
6211
6217
  io.log(" vibiz deploy\n");
6212
6218
  if (!found.length) {
6213
6219
  io.log("No other host found in this folder. Hosting somewhere else?");
@@ -6218,7 +6224,7 @@ ${await oneKeyLines(vibiz2, id)}`);
6218
6224
  for (const h of found) {
6219
6225
  io.log(`Found ${h.label} (${h.file}).`);
6220
6226
  if (h.push) {
6221
- io.log(` Vibiz can write the env into it and keep it in sync (an owner, once):`);
6227
+ io.log(` thelastapi can write the env into it and keep it in sync (an owner, once):`);
6222
6228
  io.log(` vibiz hosts add ${h.kind} <its project or service>`);
6223
6229
  io.log(` Or with one key instead:`);
6224
6230
  }
@@ -6245,7 +6251,7 @@ ${await oneKeyLines(vibiz2, id)}`);
6245
6251
  headers: { authorization: `Bearer ${key}` }
6246
6252
  });
6247
6253
  const text = await res.text();
6248
- if (!res.ok) throw new Error(`Vibiz answered ${res.status}: ${text.slice(0, 200)}`);
6254
+ if (!res.ok) throw new Error(`thelastapi answered ${res.status}: ${text.slice(0, 200)}`);
6249
6255
  if (values.output) {
6250
6256
  await io.local().writeFile(values.output, text, { mode: 384 });
6251
6257
  await io.local().chmod(values.output, 384);
@@ -6277,7 +6283,7 @@ ${await oneKeyLines(vibiz2, id)}`);
6277
6283
  const link = await vibiz2.projects.secretLink(id, { name, environment });
6278
6284
  if (values.json) return io.log(JSON.stringify(link, null, 2));
6279
6285
  return io.log(
6280
- `Paste ${name} here: ${link.console_url} . It goes straight to Vibiz, never through a chat.`
6286
+ `Paste ${name} here: ${link.console_url} . It goes straight to thelastapi, never through a chat.`
6281
6287
  );
6282
6288
  }
6283
6289
  const value = io.env[name] ?? await io.promptHidden(`${name} (hidden): `);
@@ -6625,12 +6631,19 @@ ${await oneKeyLines(vibiz2, id)}`);
6625
6631
  case "image": {
6626
6632
  io.local();
6627
6633
  const prompt = positionals.join(" ");
6628
- if (!prompt || !values.output) throw new Error('usage: vibiz image "<prompt>" -o out.png');
6634
+ if (!prompt || !values.output)
6635
+ throw new Error('usage: vibiz image "<prompt>" -o out.png [--from-image <https url>]');
6636
+ const photo = values["from-image"];
6637
+ if (photo && !photo.startsWith("https://"))
6638
+ throw new Error(
6639
+ "--from-image must be a public https link (upload it with vibiz files add first)."
6640
+ );
6629
6641
  const vibiz2 = await io.aiClient(values.project);
6630
6642
  const out = await vibiz2.ai.image({
6631
6643
  prompt,
6632
6644
  ...values.size ? { size: values.size } : {},
6633
- ...values.model ? { model: values.model } : {}
6645
+ ...values.model ? { model: values.model } : {},
6646
+ ...photo ? { image_url: photo } : {}
6634
6647
  });
6635
6648
  const b64 = out.data[0]?.b64_json;
6636
6649
  if (!b64) throw new Error("No image came back.");
@@ -6640,6 +6653,79 @@ ${await oneKeyLines(vibiz2, id)}`);
6640
6653
  if (saved) io.log(` saved in the project's Files: ${saved}`);
6641
6654
  return;
6642
6655
  }
6656
+ case "video": {
6657
+ io.local();
6658
+ const prompt = positionals.join(" ");
6659
+ if (!prompt || !values.output)
6660
+ throw new Error(
6661
+ 'usage: vibiz video "<prompt>" -o out.mp4 [--from-image <https url>] [--aspect 16:9|9:16]'
6662
+ );
6663
+ const aspect = values.aspect;
6664
+ if (aspect && aspect !== "16:9" && aspect !== "9:16")
6665
+ throw new Error("--aspect is 16:9 or 9:16.");
6666
+ const from = values["from-image"];
6667
+ if (from && !from.startsWith("https://"))
6668
+ throw new Error(
6669
+ "--from-image must be a public https link (upload it with vibiz files add first)."
6670
+ );
6671
+ let params;
6672
+ if (values.params) {
6673
+ try {
6674
+ params = JSON.parse(values.params);
6675
+ } catch {
6676
+ throw new Error(
6677
+ `--params must be a JSON object, e.g. --params '{"duration":"10"}' (the model's own parameters).`
6678
+ );
6679
+ }
6680
+ }
6681
+ const vibiz2 = await io.aiClient(values.project);
6682
+ const job = await vibiz2.ai.jobs.create({
6683
+ type: "video",
6684
+ ...values.model ? { model: values.model } : {},
6685
+ input: {
6686
+ prompt,
6687
+ ...from ? { image_url: from } : {},
6688
+ ...aspect ? { aspect_ratio: aspect } : {},
6689
+ ...params ? { model_input: params } : {}
6690
+ }
6691
+ });
6692
+ io.error(` rendering ${job.id} (about a minute)\u2026`);
6693
+ const done = await vibiz2.ai.jobs.wait(job.id, { timeoutMs: 10 * 6e4, intervalMs: 3e3 });
6694
+ const clip = done.output?.data?.[0];
6695
+ if (done.status !== "succeeded" || !clip)
6696
+ throw new Error(done.error?.message ?? `The video ${done.status}.`);
6697
+ const res = await fetch(clip.url);
6698
+ if (!res.ok) throw new Error(`Couldn't download the video (${res.status}): ${clip.url}`);
6699
+ await io.local().writeFile(values.output, new Uint8Array(await res.arrayBuffer()));
6700
+ io.log(
6701
+ `${dot("ready")} ${values.output} (${done.model}${done.cost_micro_usd === null ? "" : `, ${usd4(done.cost_micro_usd)}`})`
6702
+ );
6703
+ if (clip.file_url) io.log(` saved in the project's Files: ${clip.file_url}`);
6704
+ return;
6705
+ }
6706
+ case "media-models": {
6707
+ const vibiz2 = await io.aiClient(values.project);
6708
+ const q = positionals.join(" ");
6709
+ const models = await vibiz2.ai.mediaModels({
6710
+ ...q ? { q } : {},
6711
+ ...values.category ? { category: values.category } : {}
6712
+ });
6713
+ if (values.json) {
6714
+ io.log(JSON.stringify(models, null, 2));
6715
+ return;
6716
+ }
6717
+ if (!models.length) {
6718
+ io.log('No model matches. Try other words, like "kling", "face swap" or "upscale".');
6719
+ return;
6720
+ }
6721
+ for (const m of models) {
6722
+ const price = m.price ? `$${m.price.usd} / ${m.price.unit}` : "price on request";
6723
+ io.log(`${m.id} (${m.type}, ${price}) ${m.name}`);
6724
+ }
6725
+ io.log(`
6726
+ Run one: vibiz video "<prompt>" -o out.mp4 --model <id> [--params '{...}']`);
6727
+ return;
6728
+ }
6643
6729
  case "say": {
6644
6730
  io.local();
6645
6731
  const text = positionals.join(" ");
@@ -6855,7 +6941,7 @@ Store the key now: it is not shown again.`
6855
6941
  return;
6856
6942
  }
6857
6943
  case "docs": {
6858
- const { DOC_TOPICS, DOCS } = await import("./src-BDMYQOXL.js");
6944
+ const { DOC_TOPICS, DOCS } = await import("./src-5M4CJUDY.js");
6859
6945
  const topic = positionals[0];
6860
6946
  if (!topic || !DOC_TOPICS.includes(topic)) {
6861
6947
  for (const t of DOC_TOPICS) io.log(` vibiz docs ${t.padEnd(13)} ${DOCS[t].title}`);
@@ -6880,7 +6966,7 @@ ${DOCS[topic].body}`);
6880
6966
  if (positionals[0])
6881
6967
  throw new Error('usage: vibiz mcp (serve over stdio) | vibiz mcp add --clients "<client>"');
6882
6968
  io.local();
6883
- const { serveStdio } = await import("./src-BDMYQOXL.js");
6969
+ const { serveStdio } = await import("./src-5M4CJUDY.js");
6884
6970
  await serveStdio({ version: cliVersion() });
6885
6971
  return;
6886
6972
  }
@@ -7008,7 +7094,7 @@ async function aiKeysCommand(io, args, values) {
7008
7094
  const mine = (k.models ?? []).filter((m) => m.paid_by === "your_key").map((m) => m.model);
7009
7095
  const ours = (k.models ?? []).filter((m) => m.paid_by === "vibiz").map((m) => m.model);
7010
7096
  io.log(` on your key (0 here): ${mine.join(", ") || "none"}`);
7011
- io.log(` on Vibiz (billed): ${ours.join(", ") || "none"}`);
7097
+ io.log(` on thelastapi (billed): ${ours.join(", ") || "none"}`);
7012
7098
  };
7013
7099
  const useFor = values["use-for"] ? values["use-for"].split(",").map((x) => x.trim()) : void 0;
7014
7100
  switch (sub) {
@@ -7233,7 +7319,7 @@ function isNewer(latest, current) {
7233
7319
  function updateNotice(latest, current) {
7234
7320
  if (!isNewer(latest, current)) return null;
7235
7321
  return [
7236
- `A newer Vibiz CLI is out: ${current} \u2192 ${latest}. Some commands may be missing from this one.`,
7322
+ `A newer thelastapi CLI is out: ${current} \u2192 ${latest}. Some commands may be missing from this one.`,
7237
7323
  "Update: npm install -g @vibiz/cli@latest (then refresh the agent skills: vibiz skills add --global)"
7238
7324
  ].join("\n");
7239
7325
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vibiz/cli",
3
- "version": "0.3.12",
4
- "description": "The Vibiz Stack CLI and MCP server: website, database, sign-in, email and AI for a new business, from your terminal or your AI agent.",
3
+ "version": "0.3.15",
4
+ "description": "The thelastapi CLI and MCP server: website, database, sign-in, email and AI for a new business, from your terminal or your AI agent.",
5
5
  "keywords": [
6
6
  "vibiz",
7
7
  "cli",