vela 0.19.0 → 0.21.0

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/bin.js CHANGED
@@ -13,14 +13,14 @@ function normalizeArgv(argv) {
13
13
  // src/program.ts
14
14
  import process54 from "node:process";
15
15
  import * as p74 from "@clack/prompts";
16
- import { Command as Command120 } from "commander";
16
+ import { Command as Command122 } from "commander";
17
17
  import nodePath from "node:path";
18
18
  import dotenv2 from "dotenv";
19
19
 
20
20
  // package.json
21
21
  var package_default = {
22
22
  name: "vela",
23
- version: "0.19.0",
23
+ version: "0.21.0",
24
24
  type: "module",
25
25
  description: "A CLI for creating and updating SvelteKit projects",
26
26
  license: "MIT",
@@ -57,7 +57,7 @@ var package_default = {
57
57
  dependencies: {
58
58
  "@clack/prompts": "^1.7.0",
59
59
  "@faker-js/faker": "^10.6.0",
60
- "@velastack/patterns": "^0.8.0",
60
+ "@velastack/patterns": "^0.10.0",
61
61
  "@velastack/pocketbase-codegen": "^0.1.0",
62
62
  "@velastack/schema": "^0.3.0",
63
63
  "@velastack/schema-ui": "^0.3.1",
@@ -609,6 +609,9 @@ function detectFeatures(root, { isAppMode }) {
609
609
  whatsapp: has("src/routes/(public)/(auth)/whatsapp"),
610
610
  // The cart store every provider's ecommerce files share a path for.
611
611
  ecommerce: has("src/lib/cart.svelte.ts"),
612
+ notifications: has("src/lib/server/notifications.ts"),
613
+ subscriptions: has("src/lib/workflows/sync-stripe-subscriptions.ts"),
614
+ orders: has("src/routes/webhooks/stripe/handlers/checkout"),
612
615
  ui: detectUi(root)
613
616
  };
614
617
  }
@@ -6574,7 +6577,9 @@ var DISABLE_COMMAND = {
6574
6577
  blog: "vela disable blog",
6575
6578
  contentNegotiation: "vela disable content-negotiation",
6576
6579
  cms: "vela disable cms",
6577
- ecommerce: "vela disable ecommerce"
6580
+ ecommerce: "vela disable ecommerce",
6581
+ subscriptions: "vela disable subscriptions",
6582
+ orders: "vela disable orders"
6578
6583
  };
6579
6584
  var FEATURE_NAME = {
6580
6585
  apiKeys: "API keys",
@@ -7375,7 +7380,7 @@ var NEXT_STEPS = {
7375
7380
  var generate = new Command11("generate").description("generate scaffolding for database models and forms").configureHelp(helpConfig).addCommand(form).addCommand(schema).addCommand(resource).addCommand(scaffold).addCommand(shop).addCommand(migration).addCommand(workflow);
7376
7381
 
7377
7382
  // src/commands/enable.ts
7378
- import { Command as Command29 } from "commander";
7383
+ import { Command as Command30 } from "commander";
7379
7384
 
7380
7385
  // src/commands/enable/ai.ts
7381
7386
  import { Command as Command12 } from "commander";
@@ -7957,9 +7962,35 @@ var subscriptions = new Command22("subscriptions").description("enable Stripe su
7957
7962
  )
7958
7963
  );
7959
7964
 
7960
- // src/commands/enable/notifications.ts
7965
+ // src/commands/enable/orders.ts
7961
7966
  import { Command as Command23 } from "commander";
7962
- var notifications = new Command23("notifications").description("enable in-app notifications with a bell dropdown (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
7967
+ var orders = new Command23("orders").description("record Stripe Checkout orders (requires Stripe payments and the cart)").allowExcessArguments(true).configureHelp(helpConfig).action(
7968
+ (_opts, cmd) => runCommand(
7969
+ () => runPattern(
7970
+ "enable-orders",
7971
+ cmd.args,
7972
+ {},
7973
+ {
7974
+ summary: "Enabled orders.",
7975
+ nextSteps: [
7976
+ "Forward webhooks locally with `stripe listen --forward-to localhost:5173/webhooks/stripe`.",
7977
+ "Run `vela dev`, buy something from the shop, and see the order on /checkout/success.",
7978
+ "With auth on, signed-in buyers see their orders at /orders."
7979
+ ],
7980
+ task: {
7981
+ title: "Enabling orders",
7982
+ success: "Enabled orders",
7983
+ error: "Failed to enable orders"
7984
+ }
7985
+ }
7986
+ ),
7987
+ "Failed to enable orders."
7988
+ )
7989
+ );
7990
+
7991
+ // src/commands/enable/notifications.ts
7992
+ import { Command as Command24 } from "commander";
7993
+ var notifications = new Command24("notifications").description("enable in-app notifications with a bell dropdown (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
7963
7994
  (_opts, cmd) => runCommand(
7964
7995
  () => runPattern(
7965
7996
  "enable-notifications",
@@ -7985,7 +8016,7 @@ var notifications = new Command23("notifications").description("enable in-app no
7985
8016
 
7986
8017
  // src/commands/enable/cms.ts
7987
8018
  import process20 from "node:process";
7988
- import { Command as Command24 } from "commander";
8019
+ import { Command as Command25 } from "commander";
7989
8020
  import * as p22 from "@clack/prompts";
7990
8021
  import pc8 from "picocolors";
7991
8022
  function resolveCmsBackend(facts) {
@@ -8003,7 +8034,7 @@ function adapterOf(root) {
8003
8034
  return "none";
8004
8035
  }
8005
8036
  }
8006
- var cms = new Command24("cms").description("enable an inline-editing CMS with an admin bar").option(
8037
+ var cms = new Command25("cms").description("enable an inline-editing CMS with an admin bar").option(
8007
8038
  "--endpoint <url>",
8008
8039
  "read from a hosted CMS at this URL instead of installing the backend in this app"
8009
8040
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -8052,8 +8083,8 @@ Any one of these gives it one:
8052
8083
  );
8053
8084
 
8054
8085
  // src/commands/enable/blog.ts
8055
- import { Command as Command25 } from "commander";
8056
- var blog = new Command25("blog").description("enable an mdsvex blog with posts, tags, and RSS").allowExcessArguments(true).configureHelp(helpConfig).action(
8086
+ import { Command as Command26 } from "commander";
8087
+ var blog = new Command26("blog").description("enable an mdsvex blog with posts, tags, and RSS").allowExcessArguments(true).configureHelp(helpConfig).action(
8057
8088
  (_opts, cmd) => runCommand(
8058
8089
  () => runPattern(
8059
8090
  "enable-blog",
@@ -8079,8 +8110,8 @@ var blog = new Command25("blog").description("enable an mdsvex blog with posts,
8079
8110
 
8080
8111
  // src/commands/enable/content-negotiation.ts
8081
8112
  import process21 from "node:process";
8082
- import { Command as Command26 } from "commander";
8083
- var contentNegotiation = new Command26("content-negotiation").description("enable content negotiation (sveltekit-negotiate)").allowExcessArguments(true).configureHelp(helpConfig).action(
8113
+ import { Command as Command27 } from "commander";
8114
+ var contentNegotiation = new Command27("content-negotiation").description("enable content negotiation (sveltekit-negotiate)").allowExcessArguments(true).configureHelp(helpConfig).action(
8084
8115
  (_opts, cmd) => runCommand(
8085
8116
  () => runPattern(
8086
8117
  "enable-content-negotiation",
@@ -8106,8 +8137,8 @@ var contentNegotiation = new Command26("content-negotiation").description("enabl
8106
8137
  );
8107
8138
 
8108
8139
  // src/commands/enable/workflows.ts
8109
- import { Command as Command27 } from "commander";
8110
- var workflows = new Command27("workflows").description("add background workflows to a project created before they were built in").allowExcessArguments(true).configureHelp(helpConfig).action(
8140
+ import { Command as Command28 } from "commander";
8141
+ var workflows = new Command28("workflows").description("add background workflows to a project created before they were built in").allowExcessArguments(true).configureHelp(helpConfig).action(
8111
8142
  (_opts, cmd) => runCommand(
8112
8143
  () => runPattern(
8113
8144
  "enable-workflows",
@@ -8132,8 +8163,8 @@ var workflows = new Command27("workflows").description("add background workflows
8132
8163
  );
8133
8164
 
8134
8165
  // src/commands/enable/whatsapp.ts
8135
- import { Command as Command28 } from "commander";
8136
- var whatsapp = new Command28("whatsapp").description("enable WhatsApp sign-in on the login and signup pages (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
8166
+ import { Command as Command29 } from "commander";
8167
+ var whatsapp = new Command29("whatsapp").description("enable WhatsApp sign-in on the login and signup pages (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
8137
8168
  (_opts, cmd) => runCommand(
8138
8169
  () => runPattern(
8139
8170
  "enable-whatsapp",
@@ -8158,13 +8189,13 @@ var whatsapp = new Command28("whatsapp").description("enable WhatsApp sign-in on
8158
8189
  );
8159
8190
 
8160
8191
  // src/commands/enable.ts
8161
- var enable = new Command29("enable").description("enable features").configureHelp(helpConfig).addCommand(ai).addCommand(analytics).addCommand(auth).addCommand(api).addCommand(apiKeys).addCommand(backend).addCommand(contentNegotiation).addCommand(i18n).addCommand(teams).addCommand(payments).addCommand(ecommerce).addCommand(subscriptions).addCommand(notifications).addCommand(cms).addCommand(blog).addCommand(workflows).addCommand(whatsapp);
8192
+ var enable = new Command30("enable").description("enable features").configureHelp(helpConfig).addCommand(ai).addCommand(analytics).addCommand(auth).addCommand(api).addCommand(apiKeys).addCommand(backend).addCommand(contentNegotiation).addCommand(i18n).addCommand(teams).addCommand(payments).addCommand(ecommerce).addCommand(subscriptions).addCommand(orders).addCommand(notifications).addCommand(cms).addCommand(blog).addCommand(workflows).addCommand(whatsapp);
8162
8193
 
8163
8194
  // src/commands/disable.ts
8164
- import { Command as Command44 } from "commander";
8195
+ import { Command as Command46 } from "commander";
8165
8196
 
8166
8197
  // src/commands/disable/ai.ts
8167
- import { Command as Command30 } from "commander";
8198
+ import { Command as Command31 } from "commander";
8168
8199
 
8169
8200
  // src/commands/disable/_shared.ts
8170
8201
  import process22 from "node:process";
@@ -8184,7 +8215,7 @@ async function runDisable(opts, flags, cmdArgs) {
8184
8215
  }
8185
8216
 
8186
8217
  // src/commands/disable/ai.ts
8187
- var ai2 = new Command30("ai").description("disable AI chat").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8218
+ var ai2 = new Command31("ai").description("disable AI chat").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8188
8219
  (opts, cmd) => runCommand(
8189
8220
  () => runDisable(
8190
8221
  {
@@ -8210,8 +8241,8 @@ var ai2 = new Command30("ai").description("disable AI chat").option("-y, --yes",
8210
8241
  );
8211
8242
 
8212
8243
  // src/commands/disable/analytics.ts
8213
- import { Command as Command31 } from "commander";
8214
- var analytics2 = new Command31("analytics").description("disable web analytics").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8244
+ import { Command as Command32 } from "commander";
8245
+ var analytics2 = new Command32("analytics").description("disable web analytics").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8215
8246
  (opts, cmd) => runCommand(
8216
8247
  () => runDisable(
8217
8248
  {
@@ -8237,8 +8268,8 @@ var analytics2 = new Command31("analytics").description("disable web analytics")
8237
8268
  );
8238
8269
 
8239
8270
  // src/commands/disable/auth.ts
8240
- import { Command as Command32 } from "commander";
8241
- var auth2 = new Command32("auth").description("disable authentication").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8271
+ import { Command as Command33 } from "commander";
8272
+ var auth2 = new Command33("auth").description("disable authentication").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8242
8273
  (opts, cmd) => runCommand(
8243
8274
  () => runDisable(
8244
8275
  {
@@ -8264,8 +8295,8 @@ var auth2 = new Command32("auth").description("disable authentication").option("
8264
8295
  );
8265
8296
 
8266
8297
  // src/commands/disable/api.ts
8267
- import { Command as Command33 } from "commander";
8268
- var api2 = new Command33("api").description("disable the REST API").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8298
+ import { Command as Command34 } from "commander";
8299
+ var api2 = new Command34("api").description("disable the REST API").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8269
8300
  (opts, cmd) => runCommand(
8270
8301
  () => runDisable(
8271
8302
  {
@@ -8288,8 +8319,8 @@ var api2 = new Command33("api").description("disable the REST API").option("-y,
8288
8319
  );
8289
8320
 
8290
8321
  // src/commands/disable/api-keys.ts
8291
- import { Command as Command34 } from "commander";
8292
- var apiKeys2 = new Command34("api-keys").description("disable API key management").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8322
+ import { Command as Command35 } from "commander";
8323
+ var apiKeys2 = new Command35("api-keys").description("disable API key management").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8293
8324
  (opts, cmd) => runCommand(
8294
8325
  () => runDisable(
8295
8326
  {
@@ -8312,8 +8343,8 @@ var apiKeys2 = new Command34("api-keys").description("disable API key management
8312
8343
  );
8313
8344
 
8314
8345
  // src/commands/disable/backend.ts
8315
- import { Command as Command35 } from "commander";
8316
- var backend2 = new Command35("backend").description("disable the PocketBase backend").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8346
+ import { Command as Command36 } from "commander";
8347
+ var backend2 = new Command36("backend").description("disable the PocketBase backend").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8317
8348
  (opts, cmd) => runCommand(
8318
8349
  () => runDisable(
8319
8350
  {
@@ -8336,8 +8367,8 @@ var backend2 = new Command35("backend").description("disable the PocketBase back
8336
8367
  );
8337
8368
 
8338
8369
  // src/commands/disable/content-negotiation.ts
8339
- import { Command as Command36 } from "commander";
8340
- var contentNegotiation2 = new Command36("content-negotiation").description("disable content negotiation").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8370
+ import { Command as Command37 } from "commander";
8371
+ var contentNegotiation2 = new Command37("content-negotiation").description("disable content negotiation").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8341
8372
  (opts, cmd) => runCommand(
8342
8373
  () => runDisable(
8343
8374
  {
@@ -8360,8 +8391,8 @@ var contentNegotiation2 = new Command36("content-negotiation").description("disa
8360
8391
  );
8361
8392
 
8362
8393
  // src/commands/disable/i18n.ts
8363
- import { Command as Command37 } from "commander";
8364
- var i18n2 = new Command37("i18n").description("disable internationalization").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8394
+ import { Command as Command38 } from "commander";
8395
+ var i18n2 = new Command38("i18n").description("disable internationalization").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8365
8396
  (opts, cmd) => runCommand(
8366
8397
  () => runDisable(
8367
8398
  {
@@ -8385,8 +8416,8 @@ var i18n2 = new Command37("i18n").description("disable internationalization").op
8385
8416
  );
8386
8417
 
8387
8418
  // src/commands/disable/notifications.ts
8388
- import { Command as Command38 } from "commander";
8389
- var notifications2 = new Command38("notifications").description("disable in-app notifications").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8419
+ import { Command as Command39 } from "commander";
8420
+ var notifications2 = new Command39("notifications").description("disable in-app notifications").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8390
8421
  (opts, cmd) => runCommand(
8391
8422
  () => runDisable(
8392
8423
  {
@@ -8412,8 +8443,8 @@ var notifications2 = new Command38("notifications").description("disable in-app
8412
8443
  );
8413
8444
 
8414
8445
  // src/commands/disable/teams.ts
8415
- import { Command as Command39 } from "commander";
8416
- var teams2 = new Command39("teams").description("disable teams").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8446
+ import { Command as Command40 } from "commander";
8447
+ var teams2 = new Command40("teams").description("disable teams").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8417
8448
  (opts, cmd) => runCommand(
8418
8449
  () => runDisable(
8419
8450
  {
@@ -8436,7 +8467,7 @@ var teams2 = new Command39("teams").description("disable teams").option("-y, --y
8436
8467
  );
8437
8468
 
8438
8469
  // src/commands/disable/payments.ts
8439
- import { Command as Command40 } from "commander";
8470
+ import { Command as Command41 } from "commander";
8440
8471
  var STRIPE = {
8441
8472
  confirmMessage: "Disable payments? Drops Stripe collections, strips Stripe env credentials, reverts nav/signup edits, and removes generated payment files. Stripe dashboard products/prices and the stripe packages are untouched.",
8442
8473
  nextSteps: [
@@ -8458,7 +8489,7 @@ var WHATSAPP = {
8458
8489
  ]
8459
8490
  };
8460
8491
  var COPY = { shopify: SHOPIFY, whatsapp: WHATSAPP };
8461
- var payments2 = new Command40("payments").description("disable payments").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8492
+ var payments2 = new Command41("payments").description("disable payments").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8462
8493
  (opts, cmd) => runCommand(async () => {
8463
8494
  const { detected } = await detectWorkspace();
8464
8495
  const provider = detected.providers.payments;
@@ -8487,8 +8518,8 @@ var payments2 = new Command40("payments").description("disable payments").option
8487
8518
  );
8488
8519
 
8489
8520
  // src/commands/disable/ecommerce.ts
8490
- import { Command as Command41 } from "commander";
8491
- var ecommerce2 = new Command41("ecommerce").description("disable ecommerce").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8521
+ import { Command as Command42 } from "commander";
8522
+ var ecommerce2 = new Command42("ecommerce").description("disable ecommerce").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8492
8523
  (opts, cmd) => runCommand(
8493
8524
  () => runDisable(
8494
8525
  {
@@ -8515,8 +8546,8 @@ var ecommerce2 = new Command41("ecommerce").description("disable ecommerce").opt
8515
8546
  );
8516
8547
 
8517
8548
  // src/commands/disable/subscriptions.ts
8518
- import { Command as Command42 } from "commander";
8519
- var subscriptions2 = new Command42("subscriptions").description("disable Stripe subscriptions").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8549
+ import { Command as Command43 } from "commander";
8550
+ var subscriptions2 = new Command43("subscriptions").description("disable Stripe subscriptions").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8520
8551
  (opts, cmd) => runCommand(
8521
8552
  () => runDisable(
8522
8553
  {
@@ -8542,9 +8573,37 @@ var subscriptions2 = new Command42("subscriptions").description("disable Stripe
8542
8573
  )
8543
8574
  );
8544
8575
 
8576
+ // src/commands/disable/orders.ts
8577
+ import { Command as Command44 } from "commander";
8578
+ var orders2 = new Command44("orders").description("disable Stripe Checkout orders").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8579
+ (opts, cmd) => runCommand(
8580
+ () => runDisable(
8581
+ {
8582
+ slug: "disable-orders",
8583
+ confirmMessage: "Disable orders? Drops the orders and order_lines collections, removes the Checkout Session webhook handlers and the orders pages, and puts the success page back to Stripe\u2019s summary. Payments and the cart stay enabled.",
8584
+ report: {
8585
+ summary: "Disabled orders.",
8586
+ nextSteps: [
8587
+ "Stripe keeps every Checkout Session; the dashboard still lists what was bought.",
8588
+ "The cart is untouched; run `vela disable ecommerce` to remove it."
8589
+ ],
8590
+ task: {
8591
+ title: "Disabling orders",
8592
+ success: "Disabled orders",
8593
+ error: "Failed to disable orders"
8594
+ }
8595
+ }
8596
+ },
8597
+ opts,
8598
+ cmd.args
8599
+ ),
8600
+ "Failed to disable orders."
8601
+ )
8602
+ );
8603
+
8545
8604
  // src/commands/disable/whatsapp.ts
8546
- import { Command as Command43 } from "commander";
8547
- var whatsapp2 = new Command43("whatsapp").description("disable WhatsApp sign-in").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8605
+ import { Command as Command45 } from "commander";
8606
+ var whatsapp2 = new Command45("whatsapp").description("disable WhatsApp sign-in").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8548
8607
  (opts, cmd) => runCommand(
8549
8608
  () => runDisable(
8550
8609
  {
@@ -8572,13 +8631,13 @@ var whatsapp2 = new Command43("whatsapp").description("disable WhatsApp sign-in"
8572
8631
  );
8573
8632
 
8574
8633
  // src/commands/disable.ts
8575
- var disable = new Command44("disable").description("disable features").configureHelp(helpConfig).addCommand(ai2).addCommand(analytics2).addCommand(auth2).addCommand(api2).addCommand(apiKeys2).addCommand(backend2).addCommand(contentNegotiation2).addCommand(i18n2).addCommand(notifications2).addCommand(teams2).addCommand(payments2).addCommand(ecommerce2).addCommand(subscriptions2).addCommand(whatsapp2);
8634
+ var disable = new Command46("disable").description("disable features").configureHelp(helpConfig).addCommand(ai2).addCommand(analytics2).addCommand(auth2).addCommand(api2).addCommand(apiKeys2).addCommand(backend2).addCommand(contentNegotiation2).addCommand(i18n2).addCommand(notifications2).addCommand(teams2).addCommand(payments2).addCommand(ecommerce2).addCommand(subscriptions2).addCommand(orders2).addCommand(whatsapp2);
8576
8635
 
8577
8636
  // src/commands/destroy.ts
8578
- import { Command as Command51 } from "commander";
8637
+ import { Command as Command53 } from "commander";
8579
8638
 
8580
8639
  // src/commands/destroy/form.ts
8581
- import { Command as Command45 } from "commander";
8640
+ import { Command as Command47 } from "commander";
8582
8641
 
8583
8642
  // src/commands/destroy/_shared.ts
8584
8643
  import process23 from "node:process";
@@ -8595,7 +8654,7 @@ async function runDestroy(slug2, model, confirmMessage, report5, flags) {
8595
8654
  }
8596
8655
 
8597
8656
  // src/commands/destroy/form.ts
8598
- var form2 = new Command45("form").description("destroy a form generated by `vela generate form`").argument("<model>", "model name used when the form was generated (e.g., contact, login)").option("-y, --yes", "skip confirmation prompt").option(
8657
+ var form2 = new Command47("form").description("destroy a form generated by `vela generate form`").argument("<model>", "model name used when the form was generated (e.g., contact, login)").option("-y, --yes", "skip confirmation prompt").option(
8599
8658
  "--route <route>",
8600
8659
  "custom route the form was generated at (must match the --route used at generation)"
8601
8660
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -8619,8 +8678,8 @@ var form2 = new Command45("form").description("destroy a form generated by `vela
8619
8678
  );
8620
8679
 
8621
8680
  // src/commands/destroy/schema.ts
8622
- import { Command as Command46 } from "commander";
8623
- var schema2 = new Command46("schema").description("destroy a zod schema generated by `vela generate schema`").argument("<model>", "schema model name (e.g., contact, login)").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8681
+ import { Command as Command48 } from "commander";
8682
+ var schema2 = new Command48("schema").description("destroy a zod schema generated by `vela generate schema`").argument("<model>", "schema model name (e.g., contact, login)").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8624
8683
  (model, opts) => runCommand(
8625
8684
  () => runDestroy(
8626
8685
  "destroy-schema",
@@ -8641,8 +8700,8 @@ var schema2 = new Command46("schema").description("destroy a zod schema generate
8641
8700
  );
8642
8701
 
8643
8702
  // src/commands/destroy/resource.ts
8644
- import { Command as Command47 } from "commander";
8645
- var resource2 = new Command47("resource").description("destroy a resource generated by `vela generate resource`").argument("<model>", "model path used when the resource was generated (e.g., contacts, articles)").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8703
+ import { Command as Command49 } from "commander";
8704
+ var resource2 = new Command49("resource").description("destroy a resource generated by `vela generate resource`").argument("<model>", "model path used when the resource was generated (e.g., contacts, articles)").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8646
8705
  (model, opts) => runCommand(
8647
8706
  () => runDestroy(
8648
8707
  "destroy-resource",
@@ -8663,8 +8722,8 @@ var resource2 = new Command47("resource").description("destroy a resource genera
8663
8722
  );
8664
8723
 
8665
8724
  // src/commands/destroy/scaffold.ts
8666
- import { Command as Command48 } from "commander";
8667
- var scaffold2 = new Command48("scaffold").description("destroy a scaffold generated by `vela generate scaffold`").argument("<model>", "model name used when the scaffold was generated (e.g., contact, todo)").option("-y, --yes", "skip confirmation prompt").option(
8725
+ import { Command as Command50 } from "commander";
8726
+ var scaffold2 = new Command50("scaffold").description("destroy a scaffold generated by `vela generate scaffold`").argument("<model>", "model name used when the scaffold was generated (e.g., contact, todo)").option("-y, --yes", "skip confirmation prompt").option(
8668
8727
  "--route <route>",
8669
8728
  "custom route the scaffold was generated at (must match the --route used at generation)"
8670
8729
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -8692,7 +8751,7 @@ var scaffold2 = new Command48("scaffold").description("destroy a scaffold genera
8692
8751
 
8693
8752
  // src/commands/destroy/deployment.ts
8694
8753
  import process27 from "node:process";
8695
- import { Command as Command49 } from "commander";
8754
+ import { Command as Command51 } from "commander";
8696
8755
  import * as p28 from "@clack/prompts";
8697
8756
  import pc12 from "picocolors";
8698
8757
 
@@ -9915,7 +9974,7 @@ ${pc11.dim(err instanceof Error ? err.message : String(err))}`
9915
9974
  // src/commands/destroy/deployment.ts
9916
9975
  var deployment = addLockWaitOption(
9917
9976
  addTargetOptions(
9918
- new Command49("deployment").description("remove a deployed environment from its server").configureHelp(helpConfig),
9977
+ new Command51("deployment").description("remove a deployed environment from its server").configureHelp(helpConfig),
9919
9978
  "production"
9920
9979
  )
9921
9980
  ).option("--purge", "also delete the database and uploaded files").option("-y, --yes", "skip the confirmation prompt").option(
@@ -10000,9 +10059,9 @@ async function confirm6(appName, targetName, byName) {
10000
10059
 
10001
10060
  // src/commands/destroy/shop.ts
10002
10061
  import process28 from "node:process";
10003
- import { Command as Command50 } from "commander";
10062
+ import { Command as Command52 } from "commander";
10004
10063
  import * as p29 from "@clack/prompts";
10005
- var shop2 = new Command50("shop").description("destroy the shop pages generated by `vela generate shop`").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
10064
+ var shop2 = new Command52("shop").description("destroy the shop pages generated by `vela generate shop`").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
10006
10065
  (opts, cmd) => runCommand(async () => {
10007
10066
  if (!opts.yes) {
10008
10067
  const ok = await p29.confirm({
@@ -10031,13 +10090,13 @@ var shop2 = new Command50("shop").description("destroy the shop pages generated
10031
10090
  );
10032
10091
 
10033
10092
  // src/commands/destroy.ts
10034
- var destroy = new Command51("destroy").description("destroy scaffolding, or a deployment").configureHelp(helpConfig).addCommand(form2).addCommand(schema2).addCommand(resource2).addCommand(scaffold2).addCommand(shop2).addCommand(deployment);
10093
+ var destroy = new Command53("destroy").description("destroy scaffolding, or a deployment").configureHelp(helpConfig).addCommand(form2).addCommand(schema2).addCommand(resource2).addCommand(scaffold2).addCommand(shop2).addCommand(deployment);
10035
10094
 
10036
10095
  // src/commands/ui.ts
10037
- import { Command as Command57 } from "commander";
10096
+ import { Command as Command59 } from "commander";
10038
10097
 
10039
10098
  // src/commands/ui/add.ts
10040
- import { Command as Command52 } from "commander";
10099
+ import { Command as Command54 } from "commander";
10041
10100
  import * as p30 from "@clack/prompts";
10042
10101
  import { installComponents } from "@velastack/patterns";
10043
10102
 
@@ -10087,7 +10146,7 @@ function uiAddReport(requested, outcome) {
10087
10146
  }
10088
10147
 
10089
10148
  // src/commands/ui/add.ts
10090
- var add = new Command52("add").description("add ui components (shadcn-svelte items and vela components such as data-table)").argument("<components...>", "the components to add").option("--overwrite", "replace components that already exist", false).configureHelp(helpConfig).action(
10149
+ var add = new Command54("add").description("add ui components (shadcn-svelte items and vela components such as data-table)").argument("<components...>", "the components to add").option("--overwrite", "replace components that already exist", false).configureHelp(helpConfig).action(
10091
10150
  (components, options) => runCommand(async () => {
10092
10151
  const { workspaceRootDir } = await getWorkspace();
10093
10152
  assertShadcn("vela ui add", workspaceRootDir);
@@ -10110,10 +10169,10 @@ var add = new Command52("add").description("add ui components (shadcn-svelte ite
10110
10169
  );
10111
10170
 
10112
10171
  // src/commands/ui/base.ts
10113
- import { Command as Command53 } from "commander";
10172
+ import { Command as Command55 } from "commander";
10114
10173
  import * as p31 from "@clack/prompts";
10115
10174
  import { applyBaseColor } from "@velastack/patterns";
10116
- var base = new Command53("base").description("change the base (gray) palette").argument("<color>", `base color to use (${BASE_COLORS.join(", ")})`).configureHelp(helpConfig).action(
10175
+ var base = new Command55("base").description("change the base (gray) palette").argument("<color>", `base color to use (${BASE_COLORS.join(", ")})`).configureHelp(helpConfig).action(
10117
10176
  (color) => runCommand(async () => {
10118
10177
  const { workspaceRootDir } = await getWorkspace();
10119
10178
  assertShadcn("vela ui base", workspaceRootDir);
@@ -10139,7 +10198,7 @@ var base = new Command53("base").description("change the base (gray) palette").a
10139
10198
  );
10140
10199
 
10141
10200
  // src/commands/ui/list.ts
10142
- import { Command as Command54 } from "commander";
10201
+ import { Command as Command56 } from "commander";
10143
10202
  import * as p32 from "@clack/prompts";
10144
10203
  import { listComponents } from "@velastack/patterns";
10145
10204
 
@@ -10171,7 +10230,7 @@ function uiListReport(result) {
10171
10230
  }
10172
10231
 
10173
10232
  // src/commands/ui/list.ts
10174
- var list = new Command54("list").description("list installed ui components, vela components and the style registry").option("--json", "print the result as JSON", false).configureHelp(helpConfig).action(
10233
+ var list = new Command56("list").description("list installed ui components, vela components and the style registry").option("--json", "print the result as JSON", false).configureHelp(helpConfig).action(
10175
10234
  (options) => runCommand(async () => {
10176
10235
  const { workspaceRootDir } = await getWorkspace();
10177
10236
  assertShadcn("vela ui list", workspaceRootDir);
@@ -10199,7 +10258,7 @@ Registry components are not listed.`);
10199
10258
  );
10200
10259
 
10201
10260
  // src/commands/ui/style.ts
10202
- import { Command as Command55 } from "commander";
10261
+ import { Command as Command57 } from "commander";
10203
10262
  import * as p33 from "@clack/prompts";
10204
10263
  import { switchStyle } from "@velastack/patterns";
10205
10264
 
@@ -10226,7 +10285,7 @@ function uiStyleReport(result) {
10226
10285
  }
10227
10286
 
10228
10287
  // src/commands/ui/style.ts
10229
- var style = new Command55("style").description("switch the shadcn-svelte style, re-adding its components").argument("<style>", `style to switch to (${STYLES.join(", ")})`).option("-y, --yes", "skip the confirmation prompt").option("--no-font", "keep the current font instead of applying the style's").configureHelp(helpConfig).action(
10288
+ var style = new Command57("style").description("switch the shadcn-svelte style, re-adding its components").argument("<style>", `style to switch to (${STYLES.join(", ")})`).option("-y, --yes", "skip the confirmation prompt").option("--no-font", "keep the current font instead of applying the style's").configureHelp(helpConfig).action(
10230
10289
  (name, options) => runCommand(async () => {
10231
10290
  const { workspaceRootDir } = await getWorkspace();
10232
10291
  assertShadcn("vela ui style", workspaceRootDir);
@@ -10280,10 +10339,10 @@ ${components.map((c) => `- ${c}`).join("\n")}`
10280
10339
  );
10281
10340
 
10282
10341
  // src/commands/ui/theme.ts
10283
- import { Command as Command56 } from "commander";
10342
+ import { Command as Command58 } from "commander";
10284
10343
  import * as p34 from "@clack/prompts";
10285
10344
  import { applyTheme } from "@velastack/patterns";
10286
- var theme = new Command56("theme").description("change the accent color, keeping the base palette").argument("<accent>", `accent to use (${THEMES.join(", ")})`).configureHelp(helpConfig).action(
10345
+ var theme = new Command58("theme").description("change the accent color, keeping the base palette").argument("<accent>", `accent to use (${THEMES.join(", ")})`).configureHelp(helpConfig).action(
10287
10346
  (accent) => runCommand(async () => {
10288
10347
  const { workspaceRootDir } = await getWorkspace();
10289
10348
  assertShadcn("vela ui theme", workspaceRootDir);
@@ -10309,14 +10368,14 @@ var theme = new Command56("theme").description("change the accent color, keeping
10309
10368
  );
10310
10369
 
10311
10370
  // src/commands/ui.ts
10312
- var ui = new Command57("ui").description("generate ui components").configureHelp(helpConfig).addCommand(add).addCommand(list).addCommand(style).addCommand(base).addCommand(theme);
10371
+ var ui = new Command59("ui").description("generate ui components").configureHelp(helpConfig).addCommand(add).addCommand(list).addCommand(style).addCommand(base).addCommand(theme);
10313
10372
 
10314
10373
  // src/commands/legal.ts
10315
- import { Command as Command60 } from "commander";
10374
+ import { Command as Command62 } from "commander";
10316
10375
 
10317
10376
  // src/commands/legal/terms.ts
10318
10377
  import path41 from "node:path";
10319
- import { Command as Command58 } from "commander";
10378
+ import { Command as Command60 } from "commander";
10320
10379
  import * as p36 from "@clack/prompts";
10321
10380
 
10322
10381
  // src/commands/legal/shared.ts
@@ -11027,11 +11086,11 @@ async function termsAction() {
11027
11086
  ]
11028
11087
  });
11029
11088
  }
11030
- var terms = new Command58("terms").description("generate placeholder terms and conditions").configureHelp(helpConfig).action(() => runCommand(termsAction, "Failed to generate terms and conditions."));
11089
+ var terms = new Command60("terms").description("generate placeholder terms and conditions").configureHelp(helpConfig).action(() => runCommand(termsAction, "Failed to generate terms and conditions."));
11031
11090
 
11032
11091
  // src/commands/legal/privacy.ts
11033
11092
  import path42 from "node:path";
11034
- import { Command as Command59 } from "commander";
11093
+ import { Command as Command61 } from "commander";
11035
11094
  import * as p37 from "@clack/prompts";
11036
11095
  var mapLabels = {
11037
11096
  personalInfo: {
@@ -11763,16 +11822,16 @@ async function privacyAction() {
11763
11822
  ]
11764
11823
  });
11765
11824
  }
11766
- var privacy = new Command59("privacy").description("generate placeholder privacy policy").configureHelp(helpConfig).action(() => runCommand(privacyAction, "Failed to generate privacy policy."));
11825
+ var privacy = new Command61("privacy").description("generate placeholder privacy policy").configureHelp(helpConfig).action(() => runCommand(privacyAction, "Failed to generate privacy policy."));
11767
11826
 
11768
11827
  // src/commands/legal.ts
11769
- var legal = new Command60("legal").description("generate placeholder legal documents").configureHelp(helpConfig).addCommand(terms).addCommand(privacy);
11828
+ var legal = new Command62("legal").description("generate placeholder legal documents").configureHelp(helpConfig).addCommand(terms).addCommand(privacy);
11770
11829
 
11771
11830
  // src/commands/fixtures.ts
11772
- import { Command as Command66 } from "commander";
11831
+ import { Command as Command68 } from "commander";
11773
11832
 
11774
11833
  // src/commands/fixtures/load.ts
11775
- import { Command as Command61 } from "commander";
11834
+ import { Command as Command63 } from "commander";
11776
11835
 
11777
11836
  // src/lib/data.ts
11778
11837
  import fs42 from "node:fs";
@@ -11962,7 +12021,7 @@ async function hasLoadedFixtures(pb) {
11962
12021
  }
11963
12022
 
11964
12023
  // src/commands/fixtures/load.ts
11965
- var load = new Command61("load").description("load fixtures into the database").configureHelp(helpConfig).action(
12024
+ var load = new Command63("load").description("load fixtures into the database").configureHelp(helpConfig).action(
11966
12025
  () => runCommand(async () => {
11967
12026
  const { workspaceRootDir } = await getWorkspace();
11968
12027
  let loaded = [];
@@ -11988,8 +12047,8 @@ var load = new Command61("load").description("load fixtures into the database").
11988
12047
  );
11989
12048
 
11990
12049
  // src/commands/fixtures/clear.ts
11991
- import { Command as Command62 } from "commander";
11992
- var clear = new Command62("clear").description("clear loaded fixtures").configureHelp(helpConfig).action(
12050
+ import { Command as Command64 } from "commander";
12051
+ var clear = new Command64("clear").description("clear loaded fixtures").configureHelp(helpConfig).action(
11993
12052
  () => runCommand(async () => {
11994
12053
  const { workspaceRootDir } = await getWorkspace();
11995
12054
  let cleared = [];
@@ -12018,8 +12077,8 @@ var clear = new Command62("clear").description("clear loaded fixtures").configur
12018
12077
  );
12019
12078
 
12020
12079
  // src/commands/fixtures/reset.ts
12021
- import { Command as Command63 } from "commander";
12022
- var reset = new Command63("reset").description("clear and reload fixtures").configureHelp(helpConfig).action(
12080
+ import { Command as Command65 } from "commander";
12081
+ var reset = new Command65("reset").description("clear and reload fixtures").configureHelp(helpConfig).action(
12023
12082
  () => runCommand(async () => {
12024
12083
  const { workspaceRootDir } = await getWorkspace();
12025
12084
  let cleared = [];
@@ -12051,7 +12110,7 @@ var reset = new Command63("reset").description("clear and reload fixtures").conf
12051
12110
  // src/commands/fixtures/generate.ts
12052
12111
  import fs43 from "node:fs";
12053
12112
  import path44 from "node:path";
12054
- import { Command as Command64, InvalidArgumentError } from "commander";
12113
+ import { Command as Command66, InvalidArgumentError } from "commander";
12055
12114
  import * as p38 from "@clack/prompts";
12056
12115
  import { annotate } from "annotate-json-schema";
12057
12116
  import { createGenerator } from "json-schema-faker";
@@ -12162,7 +12221,7 @@ async function generateFixtureFiles(pb, workspaceRootDir, opts) {
12162
12221
  }
12163
12222
  return { writtenFiles, warnings };
12164
12223
  }
12165
- var generate2 = new Command64("generate").description("generate fixture data").option("-c, --count <count>", "number of records per collection", parseCount, 10).option("-s, --seed <seed>", "seed for deterministic output", parseSeed).option("-f, --force", "overwrite existing fixture files and clear loaded fixtures").configureHelp(helpConfig).action(
12224
+ var generate2 = new Command66("generate").description("generate fixture data").option("-c, --count <count>", "number of records per collection", parseCount, 10).option("-s, --seed <seed>", "seed for deterministic output", parseSeed).option("-f, --force", "overwrite existing fixture files and clear loaded fixtures").configureHelp(helpConfig).action(
12166
12225
  (opts) => runCommand(async () => {
12167
12226
  const { workspaceRootDir } = await getWorkspace();
12168
12227
  const existing = getFixtureFiles(workspaceRootDir);
@@ -12215,7 +12274,7 @@ var generate2 = new Command64("generate").description("generate fixture data").o
12215
12274
  );
12216
12275
 
12217
12276
  // src/commands/fixtures/regen.ts
12218
- import { Command as Command65, InvalidArgumentError as InvalidArgumentError2 } from "commander";
12277
+ import { Command as Command67, InvalidArgumentError as InvalidArgumentError2 } from "commander";
12219
12278
  import * as p39 from "@clack/prompts";
12220
12279
  function parseCount2(value) {
12221
12280
  const n = parseInt(value, 10);
@@ -12231,7 +12290,7 @@ function parseSeed2(value) {
12231
12290
  }
12232
12291
  return n;
12233
12292
  }
12234
- var regen = new Command65("regen").description("clear the database, regenerate fixture files, and reload them").option("-c, --count <count>", "number of records per collection", parseCount2, 10).option("-s, --seed <seed>", "seed for deterministic output", parseSeed2).configureHelp(helpConfig).action(
12293
+ var regen = new Command67("regen").description("clear the database, regenerate fixture files, and reload them").option("-c, --count <count>", "number of records per collection", parseCount2, 10).option("-s, --seed <seed>", "seed for deterministic output", parseSeed2).configureHelp(helpConfig).action(
12235
12294
  (opts) => runCommand(async () => {
12236
12295
  const { workspaceRootDir } = await getWorkspace();
12237
12296
  let cleared = [];
@@ -12260,14 +12319,14 @@ var regen = new Command65("regen").description("clear the database, regenerate f
12260
12319
  );
12261
12320
 
12262
12321
  // src/commands/fixtures.ts
12263
- var fixtures = new Command66("fixtures").description("manage fixture data").configureHelp(helpConfig).addCommand(generate2).addCommand(load).addCommand(clear).addCommand(reset).addCommand(regen);
12322
+ var fixtures = new Command68("fixtures").description("manage fixture data").configureHelp(helpConfig).addCommand(generate2).addCommand(load).addCommand(clear).addCommand(reset).addCommand(regen);
12264
12323
 
12265
12324
  // src/commands/seeds.ts
12266
- import { Command as Command70 } from "commander";
12325
+ import { Command as Command72 } from "commander";
12267
12326
 
12268
12327
  // src/commands/seeds/load.ts
12269
- import { Command as Command67 } from "commander";
12270
- var load2 = new Command67("load").description("load seeds into the database").option("-f, --force", "load even if target collections already have records").configureHelp(helpConfig).action(
12328
+ import { Command as Command69 } from "commander";
12329
+ var load2 = new Command69("load").description("load seeds into the database").option("-f, --force", "load even if target collections already have records").configureHelp(helpConfig).action(
12271
12330
  (opts) => runCommand(async () => {
12272
12331
  const { workspaceRootDir } = await getWorkspace();
12273
12332
  const seedFiles = getSeedFiles(workspaceRootDir);
@@ -12306,7 +12365,7 @@ var load2 = new Command67("load").description("load seeds into the database").op
12306
12365
  // src/commands/seeds/save.ts
12307
12366
  import fs44 from "node:fs";
12308
12367
  import path45 from "node:path";
12309
- import { Command as Command68 } from "commander";
12368
+ import { Command as Command70 } from "commander";
12310
12369
  var padZeros2 = (num, length) => num.toString().padStart(length, "0");
12311
12370
  function filterSystemFields(record, systemFieldNames) {
12312
12371
  const out = {};
@@ -12317,7 +12376,7 @@ function filterSystemFields(record, systemFieldNames) {
12317
12376
  }
12318
12377
  return out;
12319
12378
  }
12320
- var save = new Command68("save").description("save the current data as seeds").option("-f, --force", "overwrite existing seed files").configureHelp(helpConfig).action(
12379
+ var save = new Command70("save").description("save the current data as seeds").option("-f, --force", "overwrite existing seed files").configureHelp(helpConfig).action(
12321
12380
  (opts) => runCommand(async () => {
12322
12381
  const { workspaceRootDir } = await getWorkspace();
12323
12382
  const seedsPath = dataDir(workspaceRootDir, "seeds");
@@ -12389,8 +12448,8 @@ var save = new Command68("save").description("save the current data as seeds").o
12389
12448
  );
12390
12449
 
12391
12450
  // src/commands/seeds/clear.ts
12392
- import { Command as Command69 } from "commander";
12393
- var clear2 = new Command69("clear").description("clear seeded records").configureHelp(helpConfig).action(
12451
+ import { Command as Command71 } from "commander";
12452
+ var clear2 = new Command71("clear").description("clear seeded records").configureHelp(helpConfig).action(
12394
12453
  () => runCommand(async () => {
12395
12454
  const { workspaceRootDir } = await getWorkspace();
12396
12455
  const seedFiles = getSeedFiles(workspaceRootDir);
@@ -12421,13 +12480,13 @@ var clear2 = new Command69("clear").description("clear seeded records").configur
12421
12480
  );
12422
12481
 
12423
12482
  // src/commands/seeds.ts
12424
- var seeds = new Command70("seeds").description("manage seed data").configureHelp(helpConfig).addCommand(load2).addCommand(save).addCommand(clear2);
12483
+ var seeds = new Command72("seeds").description("manage seed data").configureHelp(helpConfig).addCommand(load2).addCommand(save).addCommand(clear2);
12425
12484
 
12426
12485
  // src/commands/signup.ts
12427
- import { Command as Command71 } from "commander";
12486
+ import { Command as Command73 } from "commander";
12428
12487
  import * as p40 from "@clack/prompts";
12429
12488
  import makeFetchCookie2 from "fetch-cookie";
12430
- var signup = new Command71("signup").description("signup to velastack.dev").configureHelp(helpConfig).action(
12489
+ var signup = new Command73("signup").description("signup to velastack.dev").configureHelp(helpConfig).action(
12431
12490
  () => runCommand(async () => {
12432
12491
  const { email: email2, password: password8, passwordConfirm } = await p40.group({
12433
12492
  email: () => p40.text({ message: "Email" }),
@@ -12462,9 +12521,9 @@ var signup = new Command71("signup").description("signup to velastack.dev").conf
12462
12521
  );
12463
12522
 
12464
12523
  // src/commands/logout.ts
12465
- import { Command as Command72 } from "commander";
12524
+ import { Command as Command74 } from "commander";
12466
12525
  import * as p41 from "@clack/prompts";
12467
- var logout = new Command72("logout").alias("signout").description("logout from velastack.dev").configureHelp(helpConfig).action(
12526
+ var logout = new Command74("logout").alias("signout").description("logout from velastack.dev").configureHelp(helpConfig).action(
12468
12527
  () => runCommand(() => {
12469
12528
  if (!readConfig()) {
12470
12529
  p41.log.info("Not logged in");
@@ -12476,9 +12535,9 @@ var logout = new Command72("logout").alias("signout").description("logout from v
12476
12535
  );
12477
12536
 
12478
12537
  // src/commands/whoami.ts
12479
- import { Command as Command73 } from "commander";
12538
+ import { Command as Command75 } from "commander";
12480
12539
  import * as p42 from "@clack/prompts";
12481
- var whoami = new Command73("whoami").description("show the current user").configureHelp(helpConfig).action(
12540
+ var whoami = new Command75("whoami").description("show the current user").configureHelp(helpConfig).action(
12482
12541
  () => runCommand(async () => {
12483
12542
  const apiKey = readConfig()?.apiKey;
12484
12543
  if (!apiKey) {
@@ -12495,10 +12554,10 @@ var whoami = new Command73("whoami").description("show the current user").config
12495
12554
  );
12496
12555
 
12497
12556
  // src/commands/migrate.ts
12498
- import { Command as Command80 } from "commander";
12557
+ import { Command as Command82 } from "commander";
12499
12558
 
12500
12559
  // src/commands/migrate/up.ts
12501
- import { Command as Command74 } from "commander";
12560
+ import { Command as Command76 } from "commander";
12502
12561
 
12503
12562
  // src/lib/migrate.ts
12504
12563
  import path46 from "node:path";
@@ -12540,10 +12599,10 @@ async function runMigrateUp() {
12540
12599
  ]
12541
12600
  });
12542
12601
  }
12543
- var up = new Command74("up").description("apply all pending migrations").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations."));
12602
+ var up = new Command76("up").description("apply all pending migrations").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations."));
12544
12603
 
12545
12604
  // src/commands/migrate/down.ts
12546
- import { Command as Command75, InvalidArgumentError as InvalidArgumentError3 } from "commander";
12605
+ import { Command as Command77, InvalidArgumentError as InvalidArgumentError3 } from "commander";
12547
12606
  function parseSteps(value) {
12548
12607
  const n = parseInt(value, 10);
12549
12608
  if (!Number.isFinite(n) || n <= 0) {
@@ -12551,7 +12610,7 @@ function parseSteps(value) {
12551
12610
  }
12552
12611
  return n;
12553
12612
  }
12554
- var down = new Command75("down").alias("rollback").description("revert the last N applied migrations").argument("[number]", "how many migrations to revert", parseSteps, 1).configureHelp(helpConfig).action(
12613
+ var down = new Command77("down").alias("rollback").description("revert the last N applied migrations").argument("[number]", "how many migrations to revert", parseSteps, 1).configureHelp(helpConfig).action(
12555
12614
  (n) => runCommand(async () => {
12556
12615
  await runPocketbaseMigrate(["down", String(n)]);
12557
12616
  reportResult({
@@ -12567,8 +12626,8 @@ var down = new Command75("down").alias("rollback").description("revert the last
12567
12626
  // src/commands/migrate/create.ts
12568
12627
  import fs45 from "node:fs";
12569
12628
  import path47 from "node:path";
12570
- import { Command as Command76 } from "commander";
12571
- var create2 = new Command76("create").alias("new").description("create a new blank migration").argument("<name>", "migration name (snake_case)").configureHelp(helpConfig).action(
12629
+ import { Command as Command78 } from "commander";
12630
+ var create2 = new Command78("create").alias("new").description("create a new blank migration").argument("<name>", "migration name (snake_case)").configureHelp(helpConfig).action(
12572
12631
  (name) => runCommand(async () => {
12573
12632
  const cwd = migrateRoot();
12574
12633
  const before = listMigrationFiles(cwd);
@@ -12594,8 +12653,8 @@ function listMigrationFiles(cwd) {
12594
12653
  // src/commands/migrate/collections.ts
12595
12654
  import fs46 from "node:fs";
12596
12655
  import path48 from "node:path";
12597
- import { Command as Command77 } from "commander";
12598
- var collections = new Command77("collections").alias("snapshot").description("snapshot local collections into a new migration").configureHelp(helpConfig).action(
12656
+ import { Command as Command79 } from "commander";
12657
+ var collections = new Command79("collections").alias("snapshot").description("snapshot local collections into a new migration").configureHelp(helpConfig).action(
12599
12658
  () => runCommand(async () => {
12600
12659
  const cwd = migrateRoot();
12601
12660
  const before = listMigrationFiles2(cwd);
@@ -12626,8 +12685,8 @@ function listMigrationFiles2(cwd) {
12626
12685
  }
12627
12686
 
12628
12687
  // src/commands/migrate/history-sync.ts
12629
- import { Command as Command78 } from "commander";
12630
- var historySync = new Command78("history-sync").description("drop _migrations rows whose files no longer exist").configureHelp(helpConfig).action(
12688
+ import { Command as Command80 } from "commander";
12689
+ var historySync = new Command80("history-sync").description("drop _migrations rows whose files no longer exist").configureHelp(helpConfig).action(
12631
12690
  () => runCommand(async () => {
12632
12691
  await runPocketbaseMigrate(["history-sync"]);
12633
12692
  reportResult({
@@ -12640,10 +12699,10 @@ var historySync = new Command78("history-sync").description("drop _migrations ro
12640
12699
  // src/commands/migrate/sveltekit-3.ts
12641
12700
  import path49 from "node:path";
12642
12701
  import process31 from "node:process";
12643
- import { Command as Command79 } from "commander";
12702
+ import { Command as Command81 } from "commander";
12644
12703
  import * as p43 from "@clack/prompts";
12645
12704
  import pc13 from "picocolors";
12646
- var sveltekit3 = new Command79("sveltekit-3").description("upgrade a SvelteKit 2 project to SvelteKit 3 (sv migrate, then the vela steps)").option("--cwd <path>", "the project to migrate (default: the current project)").option("--no-install", "skip installing dependencies").option("--force", "run even when the git working tree has uncommitted changes").option("--skip-sv", "only run the vela steps (sv has already been run)").configureHelp(helpConfig).action(
12705
+ var sveltekit3 = new Command81("sveltekit-3").description("upgrade a SvelteKit 2 project to SvelteKit 3 (sv migrate, then the vela steps)").option("--cwd <path>", "the project to migrate (default: the current project)").option("--no-install", "skip installing dependencies").option("--force", "run even when the git working tree has uncommitted changes").option("--skip-sv", "only run the vela steps (sv has already been run)").configureHelp(helpConfig).action(
12647
12706
  (options) => runCommand(async () => {
12648
12707
  const root = options.cwd ? path49.resolve(options.cwd) : findWorkspaceRoot() ?? process31.cwd();
12649
12708
  p43.intro(pc13.bgCyan(pc13.black(" vela migrate sveltekit-3 ")));
@@ -12717,14 +12776,14 @@ function nextStepsFor(result) {
12717
12776
  }
12718
12777
 
12719
12778
  // src/commands/migrate.ts
12720
- var migrate = new Command80("migrate").description("manage database migrations (and `migrate sveltekit-3` to upgrade SvelteKit)").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations.")).addCommand(up).addCommand(down).addCommand(create2).addCommand(collections).addCommand(historySync).addCommand(sveltekit3);
12779
+ var migrate = new Command82("migrate").description("manage database migrations (and `migrate sveltekit-3` to upgrade SvelteKit)").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations.")).addCommand(up).addCommand(down).addCommand(create2).addCommand(collections).addCommand(historySync).addCommand(sveltekit3);
12721
12780
 
12722
12781
  // src/commands/dev.ts
12723
12782
  import fs47 from "node:fs";
12724
12783
  import path51 from "node:path";
12725
12784
  import process33 from "node:process";
12726
12785
  import { performance } from "node:perf_hooks";
12727
- import { Command as Command81, InvalidArgumentError as InvalidArgumentError4 } from "commander";
12786
+ import { Command as Command83, InvalidArgumentError as InvalidArgumentError4 } from "commander";
12728
12787
  import pc15 from "picocolors";
12729
12788
  import PocketBase5 from "pocketbase";
12730
12789
 
@@ -12797,7 +12856,7 @@ function parsePort(value) {
12797
12856
  }
12798
12857
  return port;
12799
12858
  }
12800
- var dev = new Command81("dev").description("start the development server").option("--open [path]", "open the app in a browser once the server is ready").option("--host [host]", "expose the server on the network").option("--port <port>", "port to listen on", parsePort).option("--strictPort", "exit if the port is already in use instead of taking the next one").option("--cors", "enable CORS").option("--force", "re-bundle dependencies, ignoring the optimizer cache").option("--all-sql", "also print the auth lookup PocketBase runs on every request").configureHelp(helpConfig).action(async (options) => {
12859
+ var dev = new Command83("dev").description("start the development server").option("--open [path]", "open the app in a browser once the server is ready").option("--host [host]", "expose the server on the network").option("--port <port>", "port to listen on", parsePort).option("--strictPort", "exit if the port is already in use instead of taking the next one").option("--cors", "enable CORS").option("--force", "re-bundle dependencies, ignoring the optimizer cache").option("--all-sql", "also print the auth lookup PocketBase runs on every request").configureHelp(helpConfig).action(async (options) => {
12801
12860
  const cwd = process33.cwd();
12802
12861
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => console.warn(pc15.yellow(`\u25B2 ${m}`)));
12803
12862
  process33.env.VELA_DATA_DIR ??= localDataDir(cwd);
@@ -12922,7 +12981,7 @@ async function startWatchingTypes(cwd, pb) {
12922
12981
  import fs48 from "node:fs";
12923
12982
  import path52 from "node:path";
12924
12983
  import process35 from "node:process";
12925
- import { Command as Command82 } from "commander";
12984
+ import { Command as Command84 } from "commander";
12926
12985
  import * as p44 from "@clack/prompts";
12927
12986
  import pc16 from "picocolors";
12928
12987
  import { x as x4 } from "tinyexec";
@@ -12963,7 +13022,7 @@ function splitHosts(value) {
12963
13022
 
12964
13023
  // src/commands/build.ts
12965
13024
  var PRERENDERED_DIR = path52.join(".svelte-kit", "output", "prerendered");
12966
- var build = new Command82("build").description("build the app").configureHelp(helpConfig).option("-t, --target <target>", "which copy of the app to build for", PRODUCTION_TARGET).action(async (options) => {
13025
+ var build = new Command84("build").description("build the app").configureHelp(helpConfig).option("-t, --target <target>", "which copy of the app to build for", PRODUCTION_TARGET).action(async (options) => {
12967
13026
  const cwd = process35.cwd();
12968
13027
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => p44.log.warn(m));
12969
13028
  warnIfSsrExternalMissing(findWorkspaceRoot(cwd) ?? cwd);
@@ -13058,14 +13117,14 @@ Set one with ${pc16.cyan("vela deploy --domain example.com")}, or pass ${pc16.cy
13058
13117
  import fs49 from "node:fs";
13059
13118
  import path53 from "node:path";
13060
13119
  import process36 from "node:process";
13061
- import { Command as Command83 } from "commander";
13120
+ import { Command as Command85 } from "commander";
13062
13121
  import * as p45 from "@clack/prompts";
13063
13122
  import pc17 from "picocolors";
13064
13123
  import { x as x5 } from "tinyexec";
13065
13124
  import { detect as detect8 } from "package-manager-detector";
13066
13125
  import { resolveCommand as resolveCommand6 } from "package-manager-detector/commands";
13067
13126
  var ADAPTER_NODE_MODULE = path53.join("build", "adapter-node.js");
13068
- var preview = new Command83("preview").description("preview the built app").configureHelp(helpConfig).action(async () => {
13127
+ var preview = new Command85("preview").description("preview the built app").configureHelp(helpConfig).action(async () => {
13069
13128
  const cwd = process36.cwd();
13070
13129
  process36.env.VELA_DATA_DIR ??= localDataDir(cwd);
13071
13130
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => p45.log.warn(m));
@@ -13134,8 +13193,8 @@ set empty so no domain is baked in.`
13134
13193
 
13135
13194
  // src/commands/sync.ts
13136
13195
  import path54 from "node:path";
13137
- import { Command as Command84 } from "commander";
13138
- var sync = new Command84("sync").description("sync types from the database").configureHelp(helpConfig).action(
13196
+ import { Command as Command86 } from "commander";
13197
+ var sync = new Command86("sync").description("sync types from the database").configureHelp(helpConfig).action(
13139
13198
  () => runCommand(async () => {
13140
13199
  const { workspaceRootDir } = await getWorkspace();
13141
13200
  const typesDir = path54.join(workspaceRootDir, ".svelte-kit", "types");
@@ -13148,7 +13207,7 @@ var sync = new Command84("sync").description("sync types from the database").con
13148
13207
  );
13149
13208
 
13150
13209
  // src/commands/provision.ts
13151
- import { Command as Command85 } from "commander";
13210
+ import { Command as Command87 } from "commander";
13152
13211
  import * as p46 from "@clack/prompts";
13153
13212
  import pc18 from "picocolors";
13154
13213
  import * as v9 from "valibot";
@@ -13163,7 +13222,7 @@ var OptionsSchema2 = v9.object({
13163
13222
  )
13164
13223
  });
13165
13224
  var provision = addSshOptions(
13166
- new Command85("provision").description("prepare a server to host vela apps").argument("<target>", "SSH target \u2014 an alias from ~/.ssh/config, or user@host").configureHelp(helpConfig)
13225
+ new Command87("provision").description("prepare a server to host vela apps").argument("<target>", "SSH target \u2014 an alias from ~/.ssh/config, or user@host").configureHelp(helpConfig)
13167
13226
  ).option("--pb-version <version>", "PocketBase version to install").option(
13168
13227
  "--node-major <version>",
13169
13228
  "Node.js major version to bring the server up to (match the one you build with)",
@@ -13212,7 +13271,7 @@ var provision = addSshOptions(
13212
13271
  import path58 from "node:path";
13213
13272
  import fs53 from "node:fs";
13214
13273
  import process38 from "node:process";
13215
- import { Command as Command86, Option as Option2 } from "commander";
13274
+ import { Command as Command88, Option as Option2 } from "commander";
13216
13275
  import * as p48 from "@clack/prompts";
13217
13276
  import pc20 from "picocolors";
13218
13277
  import * as v10 from "valibot";
@@ -13578,7 +13637,7 @@ var OptionsSchema3 = v10.object({
13578
13637
  });
13579
13638
  var deploy = addLockWaitOption(
13580
13639
  addTargetOptions(
13581
- new Command86("deploy").description("deploy the app").configureHelp(helpConfig),
13640
+ new Command88("deploy").description("deploy the app").configureHelp(helpConfig),
13582
13641
  "production"
13583
13642
  )
13584
13643
  ).option("--project <name>", "override the project name").option("--domain <hosts>", "hostname(s) to serve on, comma separated").option("--health-path <path>", "path the health check requests").option("--keep <count>", "how many old releases to keep on the server").option("--pb-version <version>", "PocketBase version to run").option("--no-build", "deploy the existing build output without rebuilding").addOption(
@@ -14012,10 +14071,10 @@ async function serverTimeOrLocal(session) {
14012
14071
  // src/commands/link.ts
14013
14072
  import path59 from "node:path";
14014
14073
  import process39 from "node:process";
14015
- import { Command as Command87 } from "commander";
14074
+ import { Command as Command89 } from "commander";
14016
14075
  import * as p49 from "@clack/prompts";
14017
14076
  var CREATE_NEW = "__new__";
14018
- var link = new Command87("link").description("link this project to a velastack.dev project").configureHelp(helpConfig).action(() => runCommand(linkProject, "Failed to link the project."));
14077
+ var link = new Command89("link").description("link this project to a velastack.dev project").configureHelp(helpConfig).action(() => runCommand(linkProject, "Failed to link the project."));
14019
14078
  async function linkProject() {
14020
14079
  const { workspaceRootDir } = await getWorkspace();
14021
14080
  const existing = readProjectConfig(workspaceRootDir);
@@ -14082,10 +14141,10 @@ function defaultProjectName2(workspaceRootDir) {
14082
14141
  }
14083
14142
 
14084
14143
  // src/commands/env.ts
14085
- import { Command as Command93 } from "commander";
14144
+ import { Command as Command95 } from "commander";
14086
14145
 
14087
14146
  // src/commands/env/list.ts
14088
- import { Command as Command88 } from "commander";
14147
+ import { Command as Command90 } from "commander";
14089
14148
  import * as v12 from "valibot";
14090
14149
  import * as p52 from "@clack/prompts";
14091
14150
  import pc23 from "picocolors";
@@ -14357,7 +14416,7 @@ var OptionsSchema5 = v12.object({
14357
14416
  var HIDDEN = "\u2022\u2022\u2022\u2022";
14358
14417
  var MAX_VALUE = 32;
14359
14418
  var envList = addEnvTargetOptions(
14360
- new Command88("list").description("list environment variables \u2014 every scope at once without -t").configureHelp(helpConfig)
14419
+ new Command90("list").description("list environment variables \u2014 every scope at once without -t").configureHelp(helpConfig)
14361
14420
  ).action(
14362
14421
  (raw) => runCommand(async () => {
14363
14422
  const options = parseOptions(OptionsSchema5, raw);
@@ -14523,11 +14582,11 @@ function plain(text19) {
14523
14582
 
14524
14583
  // src/commands/env/set.ts
14525
14584
  import process41 from "node:process";
14526
- import { Command as Command89 } from "commander";
14585
+ import { Command as Command91 } from "commander";
14527
14586
  import * as p53 from "@clack/prompts";
14528
14587
  import pc24 from "picocolors";
14529
14588
  var envSet = addEnvTargetOptions(
14530
- new Command89("set").description("set an environment variable \u2014 the value is prompted for, never an argument").argument("<key>", "variable name").option(
14589
+ new Command91("set").description("set an environment variable \u2014 the value is prompted for, never an argument").argument("<key>", "variable name").option(
14531
14590
  "--public",
14532
14591
  "readable back with `vela env list` and `vela env get`; PUBLIC_* keys are public regardless"
14533
14592
  ).configureHelp(helpConfig)
@@ -14585,11 +14644,11 @@ async function promptValue2(key, visibility) {
14585
14644
  }
14586
14645
 
14587
14646
  // src/commands/env/unset.ts
14588
- import { Command as Command90 } from "commander";
14647
+ import { Command as Command92 } from "commander";
14589
14648
  import * as p54 from "@clack/prompts";
14590
14649
  import pc25 from "picocolors";
14591
14650
  var envUnset = addEnvTargetOptions(
14592
- new Command90("unset").description("remove an environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14651
+ new Command92("unset").description("remove an environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14593
14652
  ).action(
14594
14653
  (key, raw) => runCommand(
14595
14654
  () => withEnvScope(
@@ -14633,11 +14692,11 @@ var envUnset = addEnvTargetOptions(
14633
14692
  import fs55 from "node:fs";
14634
14693
  import path60 from "node:path";
14635
14694
  import process42 from "node:process";
14636
- import { Command as Command91 } from "commander";
14695
+ import { Command as Command93 } from "commander";
14637
14696
  import * as p55 from "@clack/prompts";
14638
14697
  import pc26 from "picocolors";
14639
14698
  var envImport = addEnvTargetOptions(
14640
- new Command91("import").description("merge a dotenv file into the environment").argument("<file>", "dotenv file to read").option("--public", "import as readable values; PUBLIC_* keys are public regardless").configureHelp(helpConfig)
14699
+ new Command93("import").description("merge a dotenv file into the environment").argument("<file>", "dotenv file to read").option("--public", "import as readable values; PUBLIC_* keys are public regardless").configureHelp(helpConfig)
14641
14700
  ).action(
14642
14701
  (file, raw) => runCommand(
14643
14702
  () => withEnvScope(
@@ -14713,11 +14772,11 @@ function read(resolved, shown) {
14713
14772
 
14714
14773
  // src/commands/env/get.ts
14715
14774
  import process43 from "node:process";
14716
- import { Command as Command92 } from "commander";
14775
+ import { Command as Command94 } from "commander";
14717
14776
  import * as p56 from "@clack/prompts";
14718
14777
  import pc27 from "picocolors";
14719
14778
  var envGet = addEnvTargetOptions(
14720
- new Command92("get").description("print a public environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14779
+ new Command94("get").description("print a public environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14721
14780
  ).action(
14722
14781
  (key, raw) => runCommand(
14723
14782
  () => withEnvScope(
@@ -14765,14 +14824,14 @@ Set it again to change it: ${pc27.cyan(`vela env set ${key}`)}`
14765
14824
  }
14766
14825
 
14767
14826
  // src/commands/env.ts
14768
- var env = new Command93("env").description("manage environment variables, locally or on a target").configureHelp(helpConfig).addCommand(envList).addCommand(envGet).addCommand(envSet).addCommand(envUnset).addCommand(envImport);
14827
+ var env = new Command95("env").description("manage environment variables, locally or on a target").configureHelp(helpConfig).addCommand(envList).addCommand(envGet).addCommand(envSet).addCommand(envUnset).addCommand(envImport);
14769
14828
 
14770
14829
  // src/commands/status.ts
14771
- import { Command as Command94 } from "commander";
14830
+ import { Command as Command96 } from "commander";
14772
14831
  import * as p57 from "@clack/prompts";
14773
14832
  import pc28 from "picocolors";
14774
14833
  var status = addTargetOptions(
14775
- new Command94("status").description("show what is deployed").configureHelp(helpConfig),
14834
+ new Command96("status").description("show what is deployed").configureHelp(helpConfig),
14776
14835
  "production"
14777
14836
  ).option("--all", "show every app on the server, not just this project").option("--json", "print raw JSON").action(
14778
14837
  (raw) => runCommand(async () => {
@@ -14831,12 +14890,12 @@ function describe2(state) {
14831
14890
  }
14832
14891
 
14833
14892
  // src/commands/rollback.ts
14834
- import { Command as Command95 } from "commander";
14893
+ import { Command as Command97 } from "commander";
14835
14894
  import * as p58 from "@clack/prompts";
14836
14895
  import pc29 from "picocolors";
14837
14896
  var rollback = addLockWaitOption(
14838
14897
  addTargetOptions(
14839
- new Command95("rollback").description("put the previous release back").configureHelp(helpConfig),
14898
+ new Command97("rollback").description("put the previous release back").configureHelp(helpConfig),
14840
14899
  "production"
14841
14900
  )
14842
14901
  ).option("--to <release>", "roll back to a specific release instead of the previous one").action(
@@ -14875,7 +14934,7 @@ var rollback = addLockWaitOption(
14875
14934
  );
14876
14935
 
14877
14936
  // src/commands/logs.ts
14878
- import { Command as Command96 } from "commander";
14937
+ import { Command as Command98 } from "commander";
14879
14938
 
14880
14939
  // src/lib/remote-pocketbase.ts
14881
14940
  import PocketBase6 from "pocketbase";
@@ -14926,7 +14985,7 @@ async function withRemotePocketbase(session, instance, fn) {
14926
14985
 
14927
14986
  // src/commands/logs.ts
14928
14987
  var logs = addTargetOptions(
14929
- new Command96("logs").description("tail the logs of a deployed app").configureHelp(helpConfig),
14988
+ new Command98("logs").description("tail the logs of a deployed app").configureHelp(helpConfig),
14930
14989
  "production"
14931
14990
  ).option("-f, --follow", "keep streaming new output").option("-n, --lines <count>", "how many lines of history to show", "100").option("--pocketbase", "show the PocketBase service instead of the app").action(
14932
14991
  (raw) => runCommand(async () => {
@@ -14961,16 +15020,16 @@ var logs = addTargetOptions(
14961
15020
  );
14962
15021
 
14963
15022
  // src/commands/admin.ts
14964
- import { Command as Command98 } from "commander";
15023
+ import { Command as Command100 } from "commander";
14965
15024
 
14966
15025
  // src/commands/admin/create.ts
14967
15026
  import process44 from "node:process";
14968
- import { Command as Command97 } from "commander";
15027
+ import { Command as Command99 } from "commander";
14969
15028
  import * as p59 from "@clack/prompts";
14970
15029
  import pc30 from "picocolors";
14971
15030
  var MIN_PASSWORD = 10;
14972
15031
  var adminCreate = addTargetOptions(
14973
- new Command97("create").description("create a login for the admin panel").argument("[email]", "email to sign in with \u2014 prompted for when omitted").configureHelp(helpConfig),
15032
+ new Command99("create").description("create a login for the admin panel").argument("[email]", "email to sign in with \u2014 prompted for when omitted").configureHelp(helpConfig),
14974
15033
  "local"
14975
15034
  ).action(
14976
15035
  (email2, raw) => runCommand(
@@ -15088,15 +15147,15 @@ async function promptPassword() {
15088
15147
  }
15089
15148
 
15090
15149
  // src/commands/admin.ts
15091
- var admin = new Command98("admin").description("manage admin panel logins").configureHelp(helpConfig).addCommand(adminCreate);
15150
+ var admin = new Command100("admin").description("manage admin panel logins").configureHelp(helpConfig).addCommand(adminCreate);
15092
15151
 
15093
15152
  // src/commands/backup.ts
15094
- import { Command as Command104 } from "commander";
15153
+ import { Command as Command106 } from "commander";
15095
15154
 
15096
15155
  // src/commands/backup/create.ts
15097
15156
  import fs56 from "node:fs";
15098
15157
  import path61 from "node:path";
15099
- import { Command as Command99 } from "commander";
15158
+ import { Command as Command101 } from "commander";
15100
15159
  import * as p60 from "@clack/prompts";
15101
15160
  import pc32 from "picocolors";
15102
15161
 
@@ -15245,7 +15304,7 @@ async function writeSchedule(pb, cron, maxKeep) {
15245
15304
  // src/commands/backup/create.ts
15246
15305
  var DEFAULT_BACKUP_DIR = "backups";
15247
15306
  var backupCreate = addTargetOptions(
15248
- new Command99("create").description("take a backup of the database and uploads").argument("[name]", "name for the archive \u2014 generated when omitted").option("-o, --output <dir>", "where to save the archive", DEFAULT_BACKUP_DIR).option("--no-download", "leave the archive on the server").configureHelp(helpConfig),
15307
+ new Command101("create").description("take a backup of the database and uploads").argument("[name]", "name for the archive \u2014 generated when omitted").option("-o, --output <dir>", "where to save the archive", DEFAULT_BACKUP_DIR).option("--no-download", "leave the archive on the server").configureHelp(helpConfig),
15249
15308
  "production"
15250
15309
  ).action(
15251
15310
  (name, raw) => runCommand(() => {
@@ -15329,11 +15388,11 @@ async function download(ctx, key, outputDir) {
15329
15388
  }
15330
15389
 
15331
15390
  // src/commands/backup/list.ts
15332
- import { Command as Command100 } from "commander";
15391
+ import { Command as Command102 } from "commander";
15333
15392
  import * as p61 from "@clack/prompts";
15334
15393
  import pc33 from "picocolors";
15335
15394
  var backupList = addTargetOptions(
15336
- new Command100("list").description("list the backups on a target").configureHelp(helpConfig),
15395
+ new Command102("list").description("list the backups on a target").configureHelp(helpConfig),
15337
15396
  "production"
15338
15397
  ).action(
15339
15398
  (raw) => runCommand(
@@ -15361,11 +15420,11 @@ Take one with ${pc33.cyan("vela backup create")}.`
15361
15420
  // src/commands/backup/download.ts
15362
15421
  import fs57 from "node:fs";
15363
15422
  import path62 from "node:path";
15364
- import { Command as Command101 } from "commander";
15423
+ import { Command as Command103 } from "commander";
15365
15424
  import * as p62 from "@clack/prompts";
15366
15425
  import pc34 from "picocolors";
15367
15426
  var backupDownload = addTargetOptions(
15368
- new Command101("download").description("save a backup off the server").argument("<key>", "archive to download, as shown by `vela backup list`").option("-o, --output <dir>", "where to save the archive", DEFAULT_BACKUP_DIR).configureHelp(helpConfig),
15427
+ new Command103("download").description("save a backup off the server").argument("<key>", "archive to download, as shown by `vela backup list`").option("-o, --output <dir>", "where to save the archive", DEFAULT_BACKUP_DIR).configureHelp(helpConfig),
15369
15428
  "production"
15370
15429
  ).action(
15371
15430
  (key, raw) => runCommand(() => {
@@ -15413,11 +15472,11 @@ Fetch it from the bucket directly \u2014 vela does not hold its credentials.`
15413
15472
 
15414
15473
  // src/commands/backup/delete.ts
15415
15474
  import process45 from "node:process";
15416
- import { Command as Command102 } from "commander";
15475
+ import { Command as Command104 } from "commander";
15417
15476
  import * as p63 from "@clack/prompts";
15418
15477
  import pc35 from "picocolors";
15419
15478
  var backupDelete = addTargetOptions(
15420
- new Command102("delete").description("remove a backup from a target").argument("<key>", "archive to delete, as shown by `vela backup list`").option("-y, --yes", "skip the confirmation").configureHelp(helpConfig),
15479
+ new Command104("delete").description("remove a backup from a target").argument("<key>", "archive to delete, as shown by `vela backup list`").option("-y, --yes", "skip the confirmation").configureHelp(helpConfig),
15421
15480
  "production"
15422
15481
  ).action(
15423
15482
  (key, raw) => runCommand(() => {
@@ -15448,12 +15507,12 @@ Run ${pc35.cyan("vela backup list")} to see what it does have.`
15448
15507
  );
15449
15508
 
15450
15509
  // src/commands/backup/schedule.ts
15451
- import { Command as Command103 } from "commander";
15510
+ import { Command as Command105 } from "commander";
15452
15511
  import * as p64 from "@clack/prompts";
15453
15512
  import pc36 from "picocolors";
15454
15513
  var DEFAULT_KEEP = 7;
15455
15514
  var backupSchedule = addTargetOptions(
15456
- new Command103("schedule").description("back up automatically on a schedule").argument("[cron]", "when to run, as a cron expression \u2014 shows the current one when omitted").option("--keep <n>", "how many scheduled archives to keep", String(DEFAULT_KEEP)).option("--off", "stop backing up automatically").configureHelp(helpConfig),
15515
+ new Command105("schedule").description("back up automatically on a schedule").argument("[cron]", "when to run, as a cron expression \u2014 shows the current one when omitted").option("--keep <n>", "how many scheduled archives to keep", String(DEFAULT_KEEP)).option("--off", "stop backing up automatically").configureHelp(helpConfig),
15457
15516
  "production"
15458
15517
  ).action(
15459
15518
  (cron, raw) => runCommand(() => {
@@ -15497,18 +15556,18 @@ Set one with ${pc36.cyan('vela backup schedule "0 3 * * *"')}.`
15497
15556
  );
15498
15557
 
15499
15558
  // src/commands/backup.ts
15500
- var backup = new Command104("backup").description("back up the database and uploads, locally or on a target").configureHelp(helpConfig).addCommand(backupCreate).addCommand(backupList).addCommand(backupDownload).addCommand(backupDelete).addCommand(backupSchedule);
15559
+ var backup = new Command106("backup").description("back up the database and uploads, locally or on a target").configureHelp(helpConfig).addCommand(backupCreate).addCommand(backupList).addCommand(backupDownload).addCommand(backupDelete).addCommand(backupSchedule);
15501
15560
 
15502
15561
  // src/commands/restore.ts
15503
15562
  import fs58 from "node:fs";
15504
15563
  import path63 from "node:path";
15505
15564
  import process46 from "node:process";
15506
- import { Command as Command105 } from "commander";
15565
+ import { Command as Command107 } from "commander";
15507
15566
  import * as p65 from "@clack/prompts";
15508
15567
  import pc37 from "picocolors";
15509
15568
  var restore = addLockWaitOption(
15510
15569
  addTargetOptions(
15511
- new Command105("restore").description("replace a deployment\u2019s database and uploads from a backup").argument("[source]", "a backup key on the target, or a path to a local archive").configureHelp(helpConfig),
15570
+ new Command107("restore").description("replace a deployment\u2019s database and uploads from a backup").argument("[source]", "a backup key on the target, or a path to a local archive").configureHelp(helpConfig),
15512
15571
  "production"
15513
15572
  )
15514
15573
  ).option("-y, --yes", "skip the confirmation prompt").option("--no-migrate", "do not run migrations against the restored database").option("--keep-previous <n>", "how many replaced databases to keep", "1").action(
@@ -15657,7 +15716,7 @@ async function confirm14(appName, targetName, envTag, from) {
15657
15716
  }
15658
15717
 
15659
15718
  // src/commands/targets.ts
15660
- import { Command as Command106 } from "commander";
15719
+ import { Command as Command108 } from "commander";
15661
15720
  import * as p66 from "@clack/prompts";
15662
15721
  import pc38 from "picocolors";
15663
15722
  import * as v13 from "valibot";
@@ -15667,7 +15726,7 @@ var OptionsSchema6 = v13.object({
15667
15726
  offline: v13.optional(v13.boolean())
15668
15727
  });
15669
15728
  var targets = addSshOptions(
15670
- new Command106("targets").description("list the targets this project can deploy to").configureHelp(helpConfig)
15729
+ new Command108("targets").description("list the targets this project can deploy to").configureHelp(helpConfig)
15671
15730
  ).option("--json", "print raw JSON").option("--offline", "skip connecting to servers").action(
15672
15731
  (raw) => runCommand(async () => {
15673
15732
  const options = parseOptions(OptionsSchema6, raw);
@@ -15746,14 +15805,14 @@ Release and domain are shown from what this project recorded.`
15746
15805
  // src/commands/test.ts
15747
15806
  import path64 from "node:path";
15748
15807
  import process47 from "node:process";
15749
- import { Command as Command107 } from "commander";
15808
+ import { Command as Command109 } from "commander";
15750
15809
  import PocketBase7 from "pocketbase";
15751
15810
  import pc39 from "picocolors";
15752
15811
  import { x as x6 } from "tinyexec";
15753
15812
  import { detect as detect9 } from "package-manager-detector";
15754
15813
  import { resolveCommand as resolveCommand7 } from "package-manager-detector/commands";
15755
15814
  import fs59 from "node:fs";
15756
- var testServer = new Command107("test:server").description("run server tests").allowUnknownOption(true).allowExcessArguments(true).configureHelp(helpConfig).action(async (_opts, cmd) => {
15815
+ var testServer = new Command109("test:server").description("run server tests").allowUnknownOption(true).allowExcessArguments(true).configureHelp(helpConfig).action(async (_opts, cmd) => {
15757
15816
  const cwd = process47.cwd();
15758
15817
  warnIfKit2(cwd, (m) => console.warn(pc39.yellow(`\u25B2 ${m}`)));
15759
15818
  const email2 = `test-${Math.random().toString(36).slice(2)}@example.com`;
@@ -15897,7 +15956,7 @@ function stubPagesPlugin() {
15897
15956
  // src/commands/routes.ts
15898
15957
  import fs60 from "node:fs";
15899
15958
  import path65 from "node:path";
15900
- import { Command as Command108 } from "commander";
15959
+ import { Command as Command110 } from "commander";
15901
15960
  var HTTP_METHODS = /* @__PURE__ */ new Set([
15902
15961
  "GET",
15903
15962
  "POST",
@@ -15908,7 +15967,7 @@ var HTTP_METHODS = /* @__PURE__ */ new Set([
15908
15967
  "HEAD",
15909
15968
  "fallback"
15910
15969
  ]);
15911
- var routes = new Command108("routes").description("list routes").configureHelp(helpConfig).action(async () => {
15970
+ var routes = new Command110("routes").description("list routes").configureHelp(helpConfig).action(async () => {
15912
15971
  const { workspaceRootDir, routesDir } = await getWorkspace();
15913
15972
  const routesRoot = path65.join(workspaceRootDir, routesDir);
15914
15973
  const found = walk(routesRoot, routesRoot).filter((r) => r.methods.length > 0);
@@ -15986,7 +16045,7 @@ function printTable(routes2) {
15986
16045
  import fs61 from "node:fs";
15987
16046
  import path66 from "node:path";
15988
16047
  import process48 from "node:process";
15989
- import { Command as Command109 } from "commander";
16048
+ import { Command as Command111 } from "commander";
15990
16049
  import { x as x7 } from "tinyexec";
15991
16050
  import { detect as detect10 } from "package-manager-detector";
15992
16051
  import { resolveCommand as resolveCommand8 } from "package-manager-detector/commands";
@@ -16005,24 +16064,24 @@ async function runWuchale(extraArgs) {
16005
16064
  throwOnError: true
16006
16065
  });
16007
16066
  }
16008
- var extract2 = new Command109("extract").description("extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale([])));
16009
- var watch = new Command109("watch").description("watch and extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--watch"])));
16010
- var status2 = new Command109("status").description("show i18n status").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["status"])));
16011
- var clean = new Command109("clean").description("clean unused translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--clean"])));
16012
- var i18n3 = new Command109("i18n").description("i18n utilities").configureHelp(helpConfig).addCommand(extract2, { isDefault: true }).addCommand(watch).addCommand(status2).addCommand(clean);
16067
+ var extract2 = new Command111("extract").description("extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale([])));
16068
+ var watch = new Command111("watch").description("watch and extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--watch"])));
16069
+ var status2 = new Command111("status").description("show i18n status").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["status"])));
16070
+ var clean = new Command111("clean").description("clean unused translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--clean"])));
16071
+ var i18n3 = new Command111("i18n").description("i18n utilities").configureHelp(helpConfig).addCommand(extract2, { isDefault: true }).addCommand(watch).addCommand(status2).addCommand(clean);
16013
16072
 
16014
16073
  // src/commands/cms.ts
16015
- import { Command as Command115 } from "commander";
16074
+ import { Command as Command117 } from "commander";
16016
16075
 
16017
16076
  // src/commands/cms/deploy.ts
16018
16077
  import process49 from "node:process";
16019
- import { Command as Command110 } from "commander";
16078
+ import { Command as Command112 } from "commander";
16020
16079
  import * as p67 from "@clack/prompts";
16021
16080
  import pc40 from "picocolors";
16022
16081
  var POLL_INTERVAL2 = 5e3;
16023
16082
  var POLL_TIMEOUT = 30 * 6e4;
16024
16083
  var inFlight = (run) => run?.status === "pending" || run?.status === "building";
16025
- var deploy2 = new Command110("deploy").description("rebuild the hosted site with the latest published content").option(
16084
+ var deploy2 = new Command112("deploy").description("rebuild the hosted site with the latest published content").option(
16026
16085
  "--project <id>",
16027
16086
  "velastack.dev project whose site to rebuild, instead of the linked one"
16028
16087
  ).option("--no-wait", "return once the build has started instead of waiting for it").configureHelp(helpConfig).action(
@@ -16111,11 +16170,11 @@ async function waitForRun(apiKey, projectId, runId) {
16111
16170
  }
16112
16171
 
16113
16172
  // src/commands/cms/editor.ts
16114
- import { Command as Command114 } from "commander";
16173
+ import { Command as Command116 } from "commander";
16115
16174
 
16116
16175
  // src/commands/cms/editor/add.ts
16117
16176
  import { randomBytes } from "node:crypto";
16118
- import { Command as Command111 } from "commander";
16177
+ import { Command as Command113 } from "commander";
16119
16178
  import * as p68 from "@clack/prompts";
16120
16179
  import pc42 from "picocolors";
16121
16180
 
@@ -16158,7 +16217,7 @@ async function withCmsBackend(fn, cwd = process50.cwd()) {
16158
16217
  }
16159
16218
 
16160
16219
  // src/commands/cms/editor/add.ts
16161
- var editorAdd = new Command111("add").description("create an editor who can sign in to the admin bar").argument("<email>", "email the editor signs in with").option("--password <password>", "password to set \u2014 generated and shown once when omitted").option("--project <id>", "project the editor may edit", DEFAULT_PROJECT).configureHelp(helpConfig).action(
16220
+ var editorAdd = new Command113("add").description("create an editor who can sign in to the admin bar").argument("<email>", "email the editor signs in with").option("--password <password>", "password to set \u2014 generated and shown once when omitted").option("--project <id>", "project the editor may edit", DEFAULT_PROJECT).configureHelp(helpConfig).action(
16162
16221
  (email2, options) => runCommand(async () => {
16163
16222
  const generated = options.password === void 0;
16164
16223
  const password8 = options.password ?? randomBytes(12).toString("base64url");
@@ -16177,10 +16236,10 @@ var editorAdd = new Command111("add").description("create an editor who can sign
16177
16236
  );
16178
16237
 
16179
16238
  // src/commands/cms/editor/password.ts
16180
- import { Command as Command112 } from "commander";
16239
+ import { Command as Command114 } from "commander";
16181
16240
  import * as p69 from "@clack/prompts";
16182
16241
  import pc43 from "picocolors";
16183
- var editorPassword = new Command112("password").description("set an editor's password").argument("<email>", "email of the editor").argument("<password>", "new password").configureHelp(helpConfig).action(
16242
+ var editorPassword = new Command114("password").description("set an editor's password").argument("<email>", "email of the editor").argument("<password>", "new password").configureHelp(helpConfig).action(
16184
16243
  (email2, password8) => runCommand(async () => {
16185
16244
  await withCmsBackend((cms3) => cms3.editors.setPassword(email2, password8));
16186
16245
  p69.log.success(
@@ -16190,10 +16249,10 @@ var editorPassword = new Command112("password").description("set an editor's pas
16190
16249
  );
16191
16250
 
16192
16251
  // src/commands/cms/editor/list.ts
16193
- import { Command as Command113 } from "commander";
16252
+ import { Command as Command115 } from "commander";
16194
16253
  import * as p70 from "@clack/prompts";
16195
16254
  import pc44 from "picocolors";
16196
- var editorList = new Command113("list").description("list editors and the projects they may edit").configureHelp(helpConfig).action(
16255
+ var editorList = new Command115("list").description("list editors and the projects they may edit").configureHelp(helpConfig).action(
16197
16256
  () => runCommand(async () => {
16198
16257
  const rows = await withCmsBackend(
16199
16258
  async (cms3) => cms3.editors.list().map((editor2) => ({
@@ -16217,17 +16276,17 @@ var editorList = new Command113("list").description("list editors and the projec
16217
16276
  );
16218
16277
 
16219
16278
  // src/commands/cms/editor.ts
16220
- var editor = new Command114("editor").description("manage who can sign in to the admin bar").configureHelp(helpConfig).addCommand(editorAdd).addCommand(editorPassword).addCommand(editorList);
16279
+ var editor = new Command116("editor").description("manage who can sign in to the admin bar").configureHelp(helpConfig).addCommand(editorAdd).addCommand(editorPassword).addCommand(editorList);
16221
16280
 
16222
16281
  // src/commands/cms.ts
16223
- var cms2 = new Command115("cms").description("manage the CMS").configureHelp(helpConfig).addCommand(editor).addCommand(deploy2);
16282
+ var cms2 = new Command117("cms").description("manage the CMS").configureHelp(helpConfig).addCommand(editor).addCommand(deploy2);
16224
16283
 
16225
16284
  // src/commands/workflows.ts
16226
- import { Command as Command119 } from "commander";
16285
+ import { Command as Command121 } from "commander";
16227
16286
 
16228
16287
  // src/commands/workflows/list.ts
16229
16288
  import process51 from "node:process";
16230
- import { Command as Command116, InvalidArgumentError as InvalidArgumentError5 } from "commander";
16289
+ import { Command as Command118, InvalidArgumentError as InvalidArgumentError5 } from "commander";
16231
16290
  import * as p71 from "@clack/prompts";
16232
16291
  import pc45 from "picocolors";
16233
16292
 
@@ -16302,7 +16361,7 @@ function formatRun(run, nameWidth) {
16302
16361
  const error = run.status === "failed" && run.error?.message ? pc45.red(` ${run.error.message}`) : "";
16303
16362
  return `${run.id} ${run.workflowName.padEnd(nameWidth)} ${status3}${attempts} ${when}${error}`;
16304
16363
  }
16305
- var workflowsList = new Command116("list").description("list recent workflow runs").option("--status <status>", `only runs in this state (${STATUSES.join(", ")})`, parseStatus).option("--name <workflow>", "only runs of this workflow").option("--limit <n>", "how many to show", parseLimit, 50).configureHelp(helpConfig).action(
16364
+ var workflowsList = new Command118("list").description("list recent workflow runs").option("--status <status>", `only runs in this state (${STATUSES.join(", ")})`, parseStatus).option("--name <workflow>", "only runs of this workflow").option("--limit <n>", "how many to show", parseLimit, 50).configureHelp(helpConfig).action(
16306
16365
  (options) => runCommand(async () => {
16307
16366
  await withPocketbase(process51.cwd(), async (pb) => {
16308
16367
  const runs = await listRuns(pb, {
@@ -16326,7 +16385,7 @@ Start one from server code with ${pc45.cyan("<workflow>.run(input)")}, or with $
16326
16385
 
16327
16386
  // src/commands/workflows/run.ts
16328
16387
  import process52 from "node:process";
16329
- import { Command as Command117, InvalidArgumentError as InvalidArgumentError6 } from "commander";
16388
+ import { Command as Command119, InvalidArgumentError as InvalidArgumentError6 } from "commander";
16330
16389
  import * as p72 from "@clack/prompts";
16331
16390
  import pc46 from "picocolors";
16332
16391
  function parseInput(value) {
@@ -16336,7 +16395,7 @@ function parseInput(value) {
16336
16395
  throw new InvalidArgumentError6(`must be JSON, e.g. '{"userId":"abc"}'.`);
16337
16396
  }
16338
16397
  }
16339
- var workflowsRun = new Command117("run").description("start a run of a workflow; the running app picks it up").argument("<name>", "the workflow name, as in its defineWorkflow spec").argument("[input]", "the run input as JSON", parseInput).configureHelp(helpConfig).action(
16398
+ var workflowsRun = new Command119("run").description("start a run of a workflow; the running app picks it up").argument("<name>", "the workflow name, as in its defineWorkflow spec").argument("[input]", "the run input as JSON", parseInput).configureHelp(helpConfig).action(
16340
16399
  (name, input) => runCommand(async () => {
16341
16400
  await withPocketbase(process52.cwd(), async (pb) => {
16342
16401
  const run = await createRun(pb, name, input);
@@ -16351,10 +16410,10 @@ It runs once the app is up (${pc46.cyan("vela dev")}); ${pc46.cyan("vela workflo
16351
16410
 
16352
16411
  // src/commands/workflows/cancel.ts
16353
16412
  import process53 from "node:process";
16354
- import { Command as Command118 } from "commander";
16413
+ import { Command as Command120 } from "commander";
16355
16414
  import * as p73 from "@clack/prompts";
16356
16415
  import pc47 from "picocolors";
16357
- var workflowsCancel = new Command118("cancel").description("cancel a pending or running workflow run").argument("<run-id>", "the run id from `vela workflows list`").configureHelp(helpConfig).action(
16416
+ var workflowsCancel = new Command120("cancel").description("cancel a pending or running workflow run").argument("<run-id>", "the run id from `vela workflows list`").configureHelp(helpConfig).action(
16358
16417
  (id) => runCommand(async () => {
16359
16418
  await withPocketbase(process53.cwd(), async (pb) => {
16360
16419
  const run = await cancelRun(pb, id);
@@ -16364,7 +16423,7 @@ var workflowsCancel = new Command118("cancel").description("cancel a pending or
16364
16423
  );
16365
16424
 
16366
16425
  // src/commands/workflows.ts
16367
- var workflows2 = new Command119("workflows").description("list, start and cancel background workflow runs").configureHelp(helpConfig).addCommand(workflowsList).addCommand(workflowsRun).addCommand(workflowsCancel);
16426
+ var workflows2 = new Command121("workflows").description("list, start and cancel background workflow runs").configureHelp(helpConfig).addCommand(workflowsList).addCommand(workflowsRun).addCommand(workflowsCancel);
16368
16427
 
16369
16428
  // src/program.ts
16370
16429
  var NO_BACKEND_COMMMANDS = /* @__PURE__ */ new Set([
@@ -16437,7 +16496,7 @@ var PROVIDER_GATED_COMMANDS = /* @__PURE__ */ new Set([
16437
16496
  ]);
16438
16497
  var BACKEND_OPTIONAL_COMMANDS = /* @__PURE__ */ new Set(["dev", "build", "preview", "deploy"]);
16439
16498
  var SELF_CREDENTIALED_COMMANDS = /* @__PURE__ */ new Set(["test:server"]);
16440
- var program = new Command120().name(package_default.name).description(package_default.description).version(package_default.version, "-v, --version").configureHelp(helpConfig);
16499
+ var program = new Command122().name(package_default.name).description(package_default.description).version(package_default.version, "-v, --version").configureHelp(helpConfig);
16441
16500
  program.hook("preAction", (_thisCommand, actionCommand) => {
16442
16501
  const envRoot = findWorkspaceRoot() ?? process54.cwd();
16443
16502
  dotenv2.config({ path: nodePath.join(envRoot, ".env"), quiet: true });