vela 0.24.0 → 0.25.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 process55 from "node:process";
15
15
  import * as p75 from "@clack/prompts";
16
- import { Command as Command122 } from "commander";
16
+ import { Command as Command124 } 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.24.0",
23
+ version: "0.25.0",
24
24
  type: "module",
25
25
  description: "A CLI for creating and updating SvelteKit projects",
26
26
  license: "MIT",
@@ -64,7 +64,7 @@ var package_default = {
64
64
  dependencies: {
65
65
  "@clack/prompts": "^1.7.0",
66
66
  "@faker-js/faker": "^10.6.0",
67
- "@velastack/patterns": "^0.11.0",
67
+ "@velastack/patterns": "^0.12.0",
68
68
  "@velastack/pocketbase-codegen": "^0.1.0",
69
69
  "@velastack/schema": "^0.3.0",
70
70
  "@velastack/schema-ui": "^0.3.1",
@@ -72,7 +72,7 @@ var package_default = {
72
72
  commander: "^15.0.0",
73
73
  "cross-spawn": "^7.0.6",
74
74
  dedent: "^1.7.2",
75
- devalue: "^5.9.4",
75
+ devalue: "^6.0.3",
76
76
  dotenv: "^18.0.1",
77
77
  "fetch-cookie": "^3.2.0",
78
78
  "json-schema-faker": "^0.6.3",
@@ -82,7 +82,7 @@ var package_default = {
82
82
  pocketbase: "^0.28.0",
83
83
  "pocketbase-server": "^0.40.6-beta.5",
84
84
  stripe: "^23.0.1",
85
- sv: "~1.1.1",
85
+ sv: "~1.2.0",
86
86
  svelte: "^5.56.10",
87
87
  tar: "^7.5.22",
88
88
  tinyexec: "^1.3.0",
@@ -7634,7 +7634,7 @@ var NEXT_STEPS = {
7634
7634
  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);
7635
7635
 
7636
7636
  // src/commands/enable.ts
7637
- import { Command as Command30 } from "commander";
7637
+ import { Command as Command31 } from "commander";
7638
7638
 
7639
7639
  // src/commands/enable/ai.ts
7640
7640
  import { Command as Command12 } from "commander";
@@ -8292,9 +8292,35 @@ var notifications = new Command24("notifications").description("enable in-app no
8292
8292
  )
8293
8293
  );
8294
8294
 
8295
+ // src/commands/enable/og.ts
8296
+ import { Command as Command25 } from "commander";
8297
+ var og = new Command25("og").description("enable generated Open Graph images (a share card for every page)").allowExcessArguments(true).configureHelp(helpConfig).action(
8298
+ (_opts, cmd) => runCommand(
8299
+ () => runPattern(
8300
+ "enable-og",
8301
+ cmd.args,
8302
+ {},
8303
+ {
8304
+ summary: "Enabled Open Graph images.",
8305
+ nextSteps: [
8306
+ "Design the card in `src/lib/og/card.svelte`; it is plain markup and CSS.",
8307
+ "Open `/og/index.png` to see the home page card, or `/og/<path>.png` for any other page.",
8308
+ "Set `url` in `src/lib/site.ts` to the deployed address: the image URL in the meta tags is built from it."
8309
+ ],
8310
+ task: {
8311
+ title: "Enabling Open Graph images",
8312
+ success: "Enabled Open Graph images",
8313
+ error: "Failed to enable Open Graph images"
8314
+ }
8315
+ }
8316
+ ),
8317
+ "Failed to enable Open Graph images."
8318
+ )
8319
+ );
8320
+
8295
8321
  // src/commands/enable/cms.ts
8296
8322
  import process20 from "node:process";
8297
- import { Command as Command25 } from "commander";
8323
+ import { Command as Command26 } from "commander";
8298
8324
  import * as p23 from "@clack/prompts";
8299
8325
  import pc8 from "picocolors";
8300
8326
  function resolveCmsBackend(facts) {
@@ -8312,7 +8338,7 @@ function adapterOf(root) {
8312
8338
  return "none";
8313
8339
  }
8314
8340
  }
8315
- var cms = new Command25("cms").description("enable an inline-editing CMS with an admin bar").option(
8341
+ var cms = new Command26("cms").description("enable an inline-editing CMS with an admin bar").option(
8316
8342
  "--endpoint <url>",
8317
8343
  "read from a hosted CMS at this URL instead of installing the backend in this app"
8318
8344
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -8361,8 +8387,8 @@ Any one of these gives it one:
8361
8387
  );
8362
8388
 
8363
8389
  // src/commands/enable/blog.ts
8364
- import { Command as Command26 } from "commander";
8365
- var blog = new Command26("blog").description("enable an mdsvex blog with posts, tags, and RSS").allowExcessArguments(true).configureHelp(helpConfig).action(
8390
+ import { Command as Command27 } from "commander";
8391
+ var blog = new Command27("blog").description("enable an mdsvex blog with posts, tags, and RSS").allowExcessArguments(true).configureHelp(helpConfig).action(
8366
8392
  (_opts, cmd) => runCommand(
8367
8393
  () => runPattern(
8368
8394
  "enable-blog",
@@ -8388,8 +8414,8 @@ var blog = new Command26("blog").description("enable an mdsvex blog with posts,
8388
8414
 
8389
8415
  // src/commands/enable/content-negotiation.ts
8390
8416
  import process21 from "node:process";
8391
- import { Command as Command27 } from "commander";
8392
- var contentNegotiation = new Command27("content-negotiation").description("enable content negotiation (sveltekit-negotiate)").allowExcessArguments(true).configureHelp(helpConfig).action(
8417
+ import { Command as Command28 } from "commander";
8418
+ var contentNegotiation = new Command28("content-negotiation").description("enable content negotiation (sveltekit-negotiate)").allowExcessArguments(true).configureHelp(helpConfig).action(
8393
8419
  (_opts, cmd) => runCommand(
8394
8420
  () => runPattern(
8395
8421
  "enable-content-negotiation",
@@ -8415,8 +8441,8 @@ var contentNegotiation = new Command27("content-negotiation").description("enabl
8415
8441
  );
8416
8442
 
8417
8443
  // src/commands/enable/workflows.ts
8418
- import { Command as Command28 } from "commander";
8419
- var workflows = new Command28("workflows").description("add background workflows to a project created before they were built in").allowExcessArguments(true).configureHelp(helpConfig).action(
8444
+ import { Command as Command29 } from "commander";
8445
+ var workflows = new Command29("workflows").description("add background workflows to a project created before they were built in").allowExcessArguments(true).configureHelp(helpConfig).action(
8420
8446
  (_opts, cmd) => runCommand(
8421
8447
  () => runPattern(
8422
8448
  "enable-workflows",
@@ -8441,8 +8467,8 @@ var workflows = new Command28("workflows").description("add background workflows
8441
8467
  );
8442
8468
 
8443
8469
  // src/commands/enable/whatsapp.ts
8444
- import { Command as Command29 } from "commander";
8445
- var whatsapp = new Command29("whatsapp").description("enable WhatsApp sign-in on the login and signup pages (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
8470
+ import { Command as Command30 } from "commander";
8471
+ var whatsapp = new Command30("whatsapp").description("enable WhatsApp sign-in on the login and signup pages (requires auth)").allowExcessArguments(true).configureHelp(helpConfig).action(
8446
8472
  (_opts, cmd) => runCommand(
8447
8473
  () => runPattern(
8448
8474
  "enable-whatsapp",
@@ -8467,13 +8493,13 @@ var whatsapp = new Command29("whatsapp").description("enable WhatsApp sign-in on
8467
8493
  );
8468
8494
 
8469
8495
  // src/commands/enable.ts
8470
- 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);
8496
+ var enable = new Command31("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(og).addCommand(cms).addCommand(blog).addCommand(workflows).addCommand(whatsapp);
8471
8497
 
8472
8498
  // src/commands/disable.ts
8473
- import { Command as Command46 } from "commander";
8499
+ import { Command as Command48 } from "commander";
8474
8500
 
8475
8501
  // src/commands/disable/ai.ts
8476
- import { Command as Command31 } from "commander";
8502
+ import { Command as Command32 } from "commander";
8477
8503
 
8478
8504
  // src/commands/disable/_shared.ts
8479
8505
  import process22 from "node:process";
@@ -8493,7 +8519,7 @@ async function runDisable(opts, flags, cmdArgs) {
8493
8519
  }
8494
8520
 
8495
8521
  // src/commands/disable/ai.ts
8496
- var ai2 = new Command31("ai").description("disable AI chat").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8522
+ var ai2 = new Command32("ai").description("disable AI chat").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8497
8523
  (opts, cmd) => runCommand(
8498
8524
  () => runDisable(
8499
8525
  {
@@ -8519,8 +8545,8 @@ var ai2 = new Command31("ai").description("disable AI chat").option("-y, --yes",
8519
8545
  );
8520
8546
 
8521
8547
  // src/commands/disable/analytics.ts
8522
- import { Command as Command32 } from "commander";
8523
- var analytics2 = new Command32("analytics").description("disable web analytics").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8548
+ import { Command as Command33 } from "commander";
8549
+ var analytics2 = new Command33("analytics").description("disable web analytics").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8524
8550
  (opts, cmd) => runCommand(
8525
8551
  () => runDisable(
8526
8552
  {
@@ -8546,8 +8572,8 @@ var analytics2 = new Command32("analytics").description("disable web analytics")
8546
8572
  );
8547
8573
 
8548
8574
  // src/commands/disable/auth.ts
8549
- import { Command as Command33 } from "commander";
8550
- var auth2 = new Command33("auth").description("disable authentication").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8575
+ import { Command as Command34 } from "commander";
8576
+ var auth2 = new Command34("auth").description("disable authentication").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8551
8577
  (opts, cmd) => runCommand(
8552
8578
  () => runDisable(
8553
8579
  {
@@ -8573,8 +8599,8 @@ var auth2 = new Command33("auth").description("disable authentication").option("
8573
8599
  );
8574
8600
 
8575
8601
  // src/commands/disable/api.ts
8576
- import { Command as Command34 } from "commander";
8577
- var api2 = new Command34("api").description("disable the REST API").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8602
+ import { Command as Command35 } from "commander";
8603
+ var api2 = new Command35("api").description("disable the REST API").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8578
8604
  (opts, cmd) => runCommand(
8579
8605
  () => runDisable(
8580
8606
  {
@@ -8597,8 +8623,8 @@ var api2 = new Command34("api").description("disable the REST API").option("-y,
8597
8623
  );
8598
8624
 
8599
8625
  // src/commands/disable/api-keys.ts
8600
- import { Command as Command35 } from "commander";
8601
- var apiKeys2 = new Command35("api-keys").description("disable API key management").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8626
+ import { Command as Command36 } from "commander";
8627
+ var apiKeys2 = new Command36("api-keys").description("disable API key management").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8602
8628
  (opts, cmd) => runCommand(
8603
8629
  () => runDisable(
8604
8630
  {
@@ -8621,8 +8647,8 @@ var apiKeys2 = new Command35("api-keys").description("disable API key management
8621
8647
  );
8622
8648
 
8623
8649
  // src/commands/disable/backend.ts
8624
- import { Command as Command36 } from "commander";
8625
- var backend2 = new Command36("backend").description("disable the PocketBase backend").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8650
+ import { Command as Command37 } from "commander";
8651
+ var backend2 = new Command37("backend").description("disable the PocketBase backend").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8626
8652
  (opts, cmd) => runCommand(
8627
8653
  () => runDisable(
8628
8654
  {
@@ -8645,8 +8671,8 @@ var backend2 = new Command36("backend").description("disable the PocketBase back
8645
8671
  );
8646
8672
 
8647
8673
  // src/commands/disable/content-negotiation.ts
8648
- import { Command as Command37 } from "commander";
8649
- var contentNegotiation2 = new Command37("content-negotiation").description("disable content negotiation").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8674
+ import { Command as Command38 } from "commander";
8675
+ var contentNegotiation2 = new Command38("content-negotiation").description("disable content negotiation").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8650
8676
  (opts, cmd) => runCommand(
8651
8677
  () => runDisable(
8652
8678
  {
@@ -8669,8 +8695,8 @@ var contentNegotiation2 = new Command37("content-negotiation").description("disa
8669
8695
  );
8670
8696
 
8671
8697
  // src/commands/disable/i18n.ts
8672
- import { Command as Command38 } from "commander";
8673
- var i18n2 = new Command38("i18n").description("disable internationalization").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8698
+ import { Command as Command39 } from "commander";
8699
+ var i18n2 = new Command39("i18n").description("disable internationalization").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8674
8700
  (opts, cmd) => runCommand(
8675
8701
  () => runDisable(
8676
8702
  {
@@ -8694,8 +8720,8 @@ var i18n2 = new Command38("i18n").description("disable internationalization").op
8694
8720
  );
8695
8721
 
8696
8722
  // src/commands/disable/notifications.ts
8697
- import { Command as Command39 } from "commander";
8698
- var notifications2 = new Command39("notifications").description("disable in-app notifications").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8723
+ import { Command as Command40 } from "commander";
8724
+ var notifications2 = new Command40("notifications").description("disable in-app notifications").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8699
8725
  (opts, cmd) => runCommand(
8700
8726
  () => runDisable(
8701
8727
  {
@@ -8720,9 +8746,34 @@ var notifications2 = new Command39("notifications").description("disable in-app
8720
8746
  )
8721
8747
  );
8722
8748
 
8749
+ // src/commands/disable/og.ts
8750
+ import { Command as Command41 } from "commander";
8751
+ var og2 = new Command41("og").description("disable generated Open Graph images").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8752
+ (opts, cmd) => runCommand(
8753
+ () => runDisable(
8754
+ {
8755
+ slug: "disable-og",
8756
+ confirmMessage: "Disable Open Graph images? Deletes the card (including any changes to src/lib/og/card.svelte), its renderer and the /og route, takes withCard off the root layout and uninstalls @takumi-rs/core.",
8757
+ report: {
8758
+ summary: "Disabled Open Graph images.",
8759
+ nextSteps: ["Pages share the site-wide `static/og.jpg` again."],
8760
+ task: {
8761
+ title: "Disabling Open Graph images",
8762
+ success: "Disabled Open Graph images",
8763
+ error: "Failed to disable Open Graph images"
8764
+ }
8765
+ }
8766
+ },
8767
+ opts,
8768
+ cmd.args
8769
+ ),
8770
+ "Failed to disable Open Graph images."
8771
+ )
8772
+ );
8773
+
8723
8774
  // src/commands/disable/teams.ts
8724
- import { Command as Command40 } from "commander";
8725
- var teams2 = new Command40("teams").description("disable teams").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8775
+ import { Command as Command42 } from "commander";
8776
+ var teams2 = new Command42("teams").description("disable teams").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8726
8777
  (opts, cmd) => runCommand(
8727
8778
  () => runDisable(
8728
8779
  {
@@ -8745,7 +8796,7 @@ var teams2 = new Command40("teams").description("disable teams").option("-y, --y
8745
8796
  );
8746
8797
 
8747
8798
  // src/commands/disable/payments.ts
8748
- import { Command as Command41 } from "commander";
8799
+ import { Command as Command43 } from "commander";
8749
8800
  var STRIPE = {
8750
8801
  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.",
8751
8802
  nextSteps: [
@@ -8767,7 +8818,7 @@ var WHATSAPP = {
8767
8818
  ]
8768
8819
  };
8769
8820
  var COPY = { shopify: SHOPIFY, whatsapp: WHATSAPP };
8770
- var payments2 = new Command41("payments").description("disable payments").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8821
+ var payments2 = new Command43("payments").description("disable payments").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8771
8822
  (opts, cmd) => runCommand(async () => {
8772
8823
  const { detected } = await detectWorkspace();
8773
8824
  const provider = detected.providers.payments;
@@ -8796,8 +8847,8 @@ var payments2 = new Command41("payments").description("disable payments").option
8796
8847
  );
8797
8848
 
8798
8849
  // src/commands/disable/ecommerce.ts
8799
- import { Command as Command42 } from "commander";
8800
- var ecommerce2 = new Command42("ecommerce").description("disable ecommerce").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8850
+ import { Command as Command44 } from "commander";
8851
+ var ecommerce2 = new Command44("ecommerce").description("disable ecommerce").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8801
8852
  (opts, cmd) => runCommand(
8802
8853
  () => runDisable(
8803
8854
  {
@@ -8824,8 +8875,8 @@ var ecommerce2 = new Command42("ecommerce").description("disable ecommerce").opt
8824
8875
  );
8825
8876
 
8826
8877
  // src/commands/disable/subscriptions.ts
8827
- import { Command as Command43 } from "commander";
8828
- var subscriptions2 = new Command43("subscriptions").description("disable Stripe subscriptions").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8878
+ import { Command as Command45 } from "commander";
8879
+ var subscriptions2 = new Command45("subscriptions").description("disable Stripe subscriptions").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8829
8880
  (opts, cmd) => runCommand(
8830
8881
  () => runDisable(
8831
8882
  {
@@ -8852,8 +8903,8 @@ var subscriptions2 = new Command43("subscriptions").description("disable Stripe
8852
8903
  );
8853
8904
 
8854
8905
  // src/commands/disable/orders.ts
8855
- import { Command as Command44 } from "commander";
8856
- var orders2 = new Command44("orders").description("disable Stripe Checkout orders").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8906
+ import { Command as Command46 } from "commander";
8907
+ var orders2 = new Command46("orders").description("disable Stripe Checkout orders").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8857
8908
  (opts, cmd) => runCommand(
8858
8909
  () => runDisable(
8859
8910
  {
@@ -8880,8 +8931,8 @@ var orders2 = new Command44("orders").description("disable Stripe Checkout order
8880
8931
  );
8881
8932
 
8882
8933
  // src/commands/disable/whatsapp.ts
8883
- import { Command as Command45 } from "commander";
8884
- var whatsapp2 = new Command45("whatsapp").description("disable WhatsApp sign-in").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8934
+ import { Command as Command47 } from "commander";
8935
+ var whatsapp2 = new Command47("whatsapp").description("disable WhatsApp sign-in").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
8885
8936
  (opts, cmd) => runCommand(
8886
8937
  () => runDisable(
8887
8938
  {
@@ -8909,13 +8960,13 @@ var whatsapp2 = new Command45("whatsapp").description("disable WhatsApp sign-in"
8909
8960
  );
8910
8961
 
8911
8962
  // src/commands/disable.ts
8912
- 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);
8963
+ var disable = new Command48("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(og2).addCommand(teams2).addCommand(payments2).addCommand(ecommerce2).addCommand(subscriptions2).addCommand(orders2).addCommand(whatsapp2);
8913
8964
 
8914
8965
  // src/commands/destroy.ts
8915
- import { Command as Command53 } from "commander";
8966
+ import { Command as Command55 } from "commander";
8916
8967
 
8917
8968
  // src/commands/destroy/form.ts
8918
- import { Command as Command47 } from "commander";
8969
+ import { Command as Command49 } from "commander";
8919
8970
 
8920
8971
  // src/commands/destroy/_shared.ts
8921
8972
  import process23 from "node:process";
@@ -8932,7 +8983,7 @@ async function runDestroy(slug2, model, confirmMessage, report5, flags) {
8932
8983
  }
8933
8984
 
8934
8985
  // src/commands/destroy/form.ts
8935
- 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(
8986
+ var form2 = new Command49("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(
8936
8987
  "--route <route>",
8937
8988
  "custom route the form was generated at (must match the --route used at generation)"
8938
8989
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -8956,8 +9007,8 @@ var form2 = new Command47("form").description("destroy a form generated by `vela
8956
9007
  );
8957
9008
 
8958
9009
  // src/commands/destroy/schema.ts
8959
- import { Command as Command48 } from "commander";
8960
- 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(
9010
+ import { Command as Command50 } from "commander";
9011
+ var schema2 = new Command50("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(
8961
9012
  (model, opts) => runCommand(
8962
9013
  () => runDestroy(
8963
9014
  "destroy-schema",
@@ -8978,8 +9029,8 @@ var schema2 = new Command48("schema").description("destroy a zod schema generate
8978
9029
  );
8979
9030
 
8980
9031
  // src/commands/destroy/resource.ts
8981
- import { Command as Command49 } from "commander";
8982
- 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(
9032
+ import { Command as Command51 } from "commander";
9033
+ var resource2 = new Command51("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(
8983
9034
  (model, opts) => runCommand(
8984
9035
  () => runDestroy(
8985
9036
  "destroy-resource",
@@ -9000,8 +9051,8 @@ var resource2 = new Command49("resource").description("destroy a resource genera
9000
9051
  );
9001
9052
 
9002
9053
  // src/commands/destroy/scaffold.ts
9003
- import { Command as Command50 } from "commander";
9004
- 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(
9054
+ import { Command as Command52 } from "commander";
9055
+ var scaffold2 = new Command52("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(
9005
9056
  "--route <route>",
9006
9057
  "custom route the scaffold was generated at (must match the --route used at generation)"
9007
9058
  ).allowExcessArguments(true).configureHelp(helpConfig).action(
@@ -9029,7 +9080,7 @@ var scaffold2 = new Command50("scaffold").description("destroy a scaffold genera
9029
9080
 
9030
9081
  // src/commands/destroy/deployment.ts
9031
9082
  import process27 from "node:process";
9032
- import { Command as Command51 } from "commander";
9083
+ import { Command as Command53 } from "commander";
9033
9084
  import * as p29 from "@clack/prompts";
9034
9085
  import pc12 from "picocolors";
9035
9086
 
@@ -10252,7 +10303,7 @@ ${pc11.dim(err instanceof Error ? err.message : String(err))}`
10252
10303
  // src/commands/destroy/deployment.ts
10253
10304
  var deployment = addLockWaitOption(
10254
10305
  addTargetOptions(
10255
- new Command51("deployment").description("remove a deployed environment from its server").configureHelp(helpConfig),
10306
+ new Command53("deployment").description("remove a deployed environment from its server").configureHelp(helpConfig),
10256
10307
  "production"
10257
10308
  )
10258
10309
  ).option("--purge", "also delete the database and uploaded files").option("-y, --yes", "skip the confirmation prompt").option(
@@ -10337,9 +10388,9 @@ async function confirm6(appName, targetName, byName) {
10337
10388
 
10338
10389
  // src/commands/destroy/shop.ts
10339
10390
  import process28 from "node:process";
10340
- import { Command as Command52 } from "commander";
10391
+ import { Command as Command54 } from "commander";
10341
10392
  import * as p30 from "@clack/prompts";
10342
- 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(
10393
+ var shop2 = new Command54("shop").description("destroy the shop pages generated by `vela generate shop`").option("-y, --yes", "skip confirmation prompt").allowExcessArguments(true).configureHelp(helpConfig).action(
10343
10394
  (opts, cmd) => runCommand(async () => {
10344
10395
  if (!opts.yes) {
10345
10396
  const ok = await p30.confirm({
@@ -10368,13 +10419,13 @@ var shop2 = new Command52("shop").description("destroy the shop pages generated
10368
10419
  );
10369
10420
 
10370
10421
  // src/commands/destroy.ts
10371
- 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);
10422
+ var destroy = new Command55("destroy").description("destroy scaffolding, or a deployment").configureHelp(helpConfig).addCommand(form2).addCommand(schema2).addCommand(resource2).addCommand(scaffold2).addCommand(shop2).addCommand(deployment);
10372
10423
 
10373
10424
  // src/commands/ui.ts
10374
- import { Command as Command59 } from "commander";
10425
+ import { Command as Command61 } from "commander";
10375
10426
 
10376
10427
  // src/commands/ui/add.ts
10377
- import { Command as Command54 } from "commander";
10428
+ import { Command as Command56 } from "commander";
10378
10429
  import * as p31 from "@clack/prompts";
10379
10430
  import { installComponents } from "@velastack/patterns";
10380
10431
 
@@ -10424,7 +10475,7 @@ function uiAddReport(requested, outcome) {
10424
10475
  }
10425
10476
 
10426
10477
  // src/commands/ui/add.ts
10427
- 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(
10478
+ var add = new Command56("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(
10428
10479
  (components, options) => runCommand(async () => {
10429
10480
  const { workspaceRootDir } = await getWorkspace();
10430
10481
  assertShadcn("vela ui add", workspaceRootDir);
@@ -10447,10 +10498,10 @@ var add = new Command54("add").description("add ui components (shadcn-svelte ite
10447
10498
  );
10448
10499
 
10449
10500
  // src/commands/ui/base.ts
10450
- import { Command as Command55 } from "commander";
10501
+ import { Command as Command57 } from "commander";
10451
10502
  import * as p32 from "@clack/prompts";
10452
10503
  import { applyBaseColor } from "@velastack/patterns";
10453
- var base = new Command55("base").description("change the base (gray) palette").argument("<color>", `base color to use (${BASE_COLORS.join(", ")})`).configureHelp(helpConfig).action(
10504
+ var base = new Command57("base").description("change the base (gray) palette").argument("<color>", `base color to use (${BASE_COLORS.join(", ")})`).configureHelp(helpConfig).action(
10454
10505
  (color) => runCommand(async () => {
10455
10506
  const { workspaceRootDir } = await getWorkspace();
10456
10507
  assertShadcn("vela ui base", workspaceRootDir);
@@ -10476,7 +10527,7 @@ var base = new Command55("base").description("change the base (gray) palette").a
10476
10527
  );
10477
10528
 
10478
10529
  // src/commands/ui/list.ts
10479
- import { Command as Command56 } from "commander";
10530
+ import { Command as Command58 } from "commander";
10480
10531
  import * as p33 from "@clack/prompts";
10481
10532
  import { listComponents } from "@velastack/patterns";
10482
10533
 
@@ -10508,7 +10559,7 @@ function uiListReport(result) {
10508
10559
  }
10509
10560
 
10510
10561
  // src/commands/ui/list.ts
10511
- 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(
10562
+ var list = new Command58("list").description("list installed ui components, vela components and the style registry").option("--json", "print the result as JSON", false).configureHelp(helpConfig).action(
10512
10563
  (options) => runCommand(async () => {
10513
10564
  const { workspaceRootDir } = await getWorkspace();
10514
10565
  assertShadcn("vela ui list", workspaceRootDir);
@@ -10536,7 +10587,7 @@ Registry components are not listed.`);
10536
10587
  );
10537
10588
 
10538
10589
  // src/commands/ui/style.ts
10539
- import { Command as Command57 } from "commander";
10590
+ import { Command as Command59 } from "commander";
10540
10591
  import * as p34 from "@clack/prompts";
10541
10592
  import { switchStyle } from "@velastack/patterns";
10542
10593
 
@@ -10563,7 +10614,7 @@ function uiStyleReport(result) {
10563
10614
  }
10564
10615
 
10565
10616
  // src/commands/ui/style.ts
10566
- 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(
10617
+ var style = new Command59("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(
10567
10618
  (name, options) => runCommand(async () => {
10568
10619
  const { workspaceRootDir } = await getWorkspace();
10569
10620
  assertShadcn("vela ui style", workspaceRootDir);
@@ -10617,10 +10668,10 @@ ${components.map((c) => `- ${c}`).join("\n")}`
10617
10668
  );
10618
10669
 
10619
10670
  // src/commands/ui/theme.ts
10620
- import { Command as Command58 } from "commander";
10671
+ import { Command as Command60 } from "commander";
10621
10672
  import * as p35 from "@clack/prompts";
10622
10673
  import { applyTheme } from "@velastack/patterns";
10623
- var theme = new Command58("theme").description("change the accent color, keeping the base palette").argument("<accent>", `accent to use (${THEMES.join(", ")})`).configureHelp(helpConfig).action(
10674
+ var theme = new Command60("theme").description("change the accent color, keeping the base palette").argument("<accent>", `accent to use (${THEMES.join(", ")})`).configureHelp(helpConfig).action(
10624
10675
  (accent) => runCommand(async () => {
10625
10676
  const { workspaceRootDir } = await getWorkspace();
10626
10677
  assertShadcn("vela ui theme", workspaceRootDir);
@@ -10646,14 +10697,14 @@ var theme = new Command58("theme").description("change the accent color, keeping
10646
10697
  );
10647
10698
 
10648
10699
  // src/commands/ui.ts
10649
- var ui = new Command59("ui").description("generate ui components").configureHelp(helpConfig).addCommand(add).addCommand(list).addCommand(style).addCommand(base).addCommand(theme);
10700
+ var ui = new Command61("ui").description("generate ui components").configureHelp(helpConfig).addCommand(add).addCommand(list).addCommand(style).addCommand(base).addCommand(theme);
10650
10701
 
10651
10702
  // src/commands/legal.ts
10652
- import { Command as Command62 } from "commander";
10703
+ import { Command as Command64 } from "commander";
10653
10704
 
10654
10705
  // src/commands/legal/terms.ts
10655
10706
  import path42 from "node:path";
10656
- import { Command as Command60 } from "commander";
10707
+ import { Command as Command62 } from "commander";
10657
10708
  import * as p37 from "@clack/prompts";
10658
10709
 
10659
10710
  // src/commands/legal/shared.ts
@@ -11364,11 +11415,11 @@ async function termsAction() {
11364
11415
  ]
11365
11416
  });
11366
11417
  }
11367
- var terms = new Command60("terms").description("generate placeholder terms and conditions").configureHelp(helpConfig).action(() => runCommand(termsAction, "Failed to generate terms and conditions."));
11418
+ var terms = new Command62("terms").description("generate placeholder terms and conditions").configureHelp(helpConfig).action(() => runCommand(termsAction, "Failed to generate terms and conditions."));
11368
11419
 
11369
11420
  // src/commands/legal/privacy.ts
11370
11421
  import path43 from "node:path";
11371
- import { Command as Command61 } from "commander";
11422
+ import { Command as Command63 } from "commander";
11372
11423
  import * as p38 from "@clack/prompts";
11373
11424
  var mapLabels = {
11374
11425
  personalInfo: {
@@ -12100,16 +12151,16 @@ async function privacyAction() {
12100
12151
  ]
12101
12152
  });
12102
12153
  }
12103
- var privacy = new Command61("privacy").description("generate placeholder privacy policy").configureHelp(helpConfig).action(() => runCommand(privacyAction, "Failed to generate privacy policy."));
12154
+ var privacy = new Command63("privacy").description("generate placeholder privacy policy").configureHelp(helpConfig).action(() => runCommand(privacyAction, "Failed to generate privacy policy."));
12104
12155
 
12105
12156
  // src/commands/legal.ts
12106
- var legal = new Command62("legal").description("generate placeholder legal documents").configureHelp(helpConfig).addCommand(terms).addCommand(privacy);
12157
+ var legal = new Command64("legal").description("generate placeholder legal documents").configureHelp(helpConfig).addCommand(terms).addCommand(privacy);
12107
12158
 
12108
12159
  // src/commands/fixtures.ts
12109
- import { Command as Command68 } from "commander";
12160
+ import { Command as Command70 } from "commander";
12110
12161
 
12111
12162
  // src/commands/fixtures/load.ts
12112
- import { Command as Command63 } from "commander";
12163
+ import { Command as Command65 } from "commander";
12113
12164
 
12114
12165
  // src/lib/data.ts
12115
12166
  import fs43 from "node:fs";
@@ -12299,7 +12350,7 @@ async function hasLoadedFixtures(pb) {
12299
12350
  }
12300
12351
 
12301
12352
  // src/commands/fixtures/load.ts
12302
- var load = new Command63("load").description("load fixtures into the database").configureHelp(helpConfig).action(
12353
+ var load = new Command65("load").description("load fixtures into the database").configureHelp(helpConfig).action(
12303
12354
  () => runCommand(async () => {
12304
12355
  const { workspaceRootDir } = await getWorkspace();
12305
12356
  let loaded = [];
@@ -12325,8 +12376,8 @@ var load = new Command63("load").description("load fixtures into the database").
12325
12376
  );
12326
12377
 
12327
12378
  // src/commands/fixtures/clear.ts
12328
- import { Command as Command64 } from "commander";
12329
- var clear = new Command64("clear").description("clear loaded fixtures").configureHelp(helpConfig).action(
12379
+ import { Command as Command66 } from "commander";
12380
+ var clear = new Command66("clear").description("clear loaded fixtures").configureHelp(helpConfig).action(
12330
12381
  () => runCommand(async () => {
12331
12382
  const { workspaceRootDir } = await getWorkspace();
12332
12383
  let cleared = [];
@@ -12355,8 +12406,8 @@ var clear = new Command64("clear").description("clear loaded fixtures").configur
12355
12406
  );
12356
12407
 
12357
12408
  // src/commands/fixtures/reset.ts
12358
- import { Command as Command65 } from "commander";
12359
- var reset = new Command65("reset").description("clear and reload fixtures").configureHelp(helpConfig).action(
12409
+ import { Command as Command67 } from "commander";
12410
+ var reset = new Command67("reset").description("clear and reload fixtures").configureHelp(helpConfig).action(
12360
12411
  () => runCommand(async () => {
12361
12412
  const { workspaceRootDir } = await getWorkspace();
12362
12413
  let cleared = [];
@@ -12388,7 +12439,7 @@ var reset = new Command65("reset").description("clear and reload fixtures").conf
12388
12439
  // src/commands/fixtures/generate.ts
12389
12440
  import fs44 from "node:fs";
12390
12441
  import path45 from "node:path";
12391
- import { Command as Command66, InvalidArgumentError } from "commander";
12442
+ import { Command as Command68, InvalidArgumentError } from "commander";
12392
12443
  import * as p39 from "@clack/prompts";
12393
12444
  import { annotate } from "annotate-json-schema";
12394
12445
  import { createGenerator } from "json-schema-faker";
@@ -12499,7 +12550,7 @@ async function generateFixtureFiles(pb, workspaceRootDir, opts) {
12499
12550
  }
12500
12551
  return { writtenFiles, warnings };
12501
12552
  }
12502
- 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(
12553
+ var generate2 = new Command68("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(
12503
12554
  (opts) => runCommand(async () => {
12504
12555
  const { workspaceRootDir } = await getWorkspace();
12505
12556
  const existing = getFixtureFiles(workspaceRootDir);
@@ -12552,7 +12603,7 @@ var generate2 = new Command66("generate").description("generate fixture data").o
12552
12603
  );
12553
12604
 
12554
12605
  // src/commands/fixtures/regen.ts
12555
- import { Command as Command67, InvalidArgumentError as InvalidArgumentError2 } from "commander";
12606
+ import { Command as Command69, InvalidArgumentError as InvalidArgumentError2 } from "commander";
12556
12607
  import * as p40 from "@clack/prompts";
12557
12608
  function parseCount2(value) {
12558
12609
  const n = parseInt(value, 10);
@@ -12568,7 +12619,7 @@ function parseSeed2(value) {
12568
12619
  }
12569
12620
  return n;
12570
12621
  }
12571
- 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(
12622
+ var regen = new Command69("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(
12572
12623
  (opts) => runCommand(async () => {
12573
12624
  const { workspaceRootDir } = await getWorkspace();
12574
12625
  let cleared = [];
@@ -12597,14 +12648,14 @@ var regen = new Command67("regen").description("clear the database, regenerate f
12597
12648
  );
12598
12649
 
12599
12650
  // src/commands/fixtures.ts
12600
- var fixtures = new Command68("fixtures").description("manage fixture data").configureHelp(helpConfig).addCommand(generate2).addCommand(load).addCommand(clear).addCommand(reset).addCommand(regen);
12651
+ var fixtures = new Command70("fixtures").description("manage fixture data").configureHelp(helpConfig).addCommand(generate2).addCommand(load).addCommand(clear).addCommand(reset).addCommand(regen);
12601
12652
 
12602
12653
  // src/commands/seeds.ts
12603
- import { Command as Command72 } from "commander";
12654
+ import { Command as Command74 } from "commander";
12604
12655
 
12605
12656
  // src/commands/seeds/load.ts
12606
- import { Command as Command69 } from "commander";
12607
- 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(
12657
+ import { Command as Command71 } from "commander";
12658
+ var load2 = new Command71("load").description("load seeds into the database").option("-f, --force", "load even if target collections already have records").configureHelp(helpConfig).action(
12608
12659
  (opts) => runCommand(async () => {
12609
12660
  const { workspaceRootDir } = await getWorkspace();
12610
12661
  const seedFiles = getSeedFiles(workspaceRootDir);
@@ -12643,7 +12694,7 @@ var load2 = new Command69("load").description("load seeds into the database").op
12643
12694
  // src/commands/seeds/save.ts
12644
12695
  import fs45 from "node:fs";
12645
12696
  import path46 from "node:path";
12646
- import { Command as Command70 } from "commander";
12697
+ import { Command as Command72 } from "commander";
12647
12698
  var padZeros2 = (num, length) => num.toString().padStart(length, "0");
12648
12699
  function filterSystemFields(record, systemFieldNames) {
12649
12700
  const out = {};
@@ -12654,7 +12705,7 @@ function filterSystemFields(record, systemFieldNames) {
12654
12705
  }
12655
12706
  return out;
12656
12707
  }
12657
- var save = new Command70("save").description("save the current data as seeds").option("-f, --force", "overwrite existing seed files").configureHelp(helpConfig).action(
12708
+ var save = new Command72("save").description("save the current data as seeds").option("-f, --force", "overwrite existing seed files").configureHelp(helpConfig).action(
12658
12709
  (opts) => runCommand(async () => {
12659
12710
  const { workspaceRootDir } = await getWorkspace();
12660
12711
  const seedsPath = dataDir(workspaceRootDir, "seeds");
@@ -12726,8 +12777,8 @@ var save = new Command70("save").description("save the current data as seeds").o
12726
12777
  );
12727
12778
 
12728
12779
  // src/commands/seeds/clear.ts
12729
- import { Command as Command71 } from "commander";
12730
- var clear2 = new Command71("clear").description("clear seeded records").configureHelp(helpConfig).action(
12780
+ import { Command as Command73 } from "commander";
12781
+ var clear2 = new Command73("clear").description("clear seeded records").configureHelp(helpConfig).action(
12731
12782
  () => runCommand(async () => {
12732
12783
  const { workspaceRootDir } = await getWorkspace();
12733
12784
  const seedFiles = getSeedFiles(workspaceRootDir);
@@ -12758,13 +12809,13 @@ var clear2 = new Command71("clear").description("clear seeded records").configur
12758
12809
  );
12759
12810
 
12760
12811
  // src/commands/seeds.ts
12761
- var seeds = new Command72("seeds").description("manage seed data").configureHelp(helpConfig).addCommand(load2).addCommand(save).addCommand(clear2);
12812
+ var seeds = new Command74("seeds").description("manage seed data").configureHelp(helpConfig).addCommand(load2).addCommand(save).addCommand(clear2);
12762
12813
 
12763
12814
  // src/commands/signup.ts
12764
- import { Command as Command73 } from "commander";
12815
+ import { Command as Command75 } from "commander";
12765
12816
  import * as p41 from "@clack/prompts";
12766
12817
  import makeFetchCookie2 from "fetch-cookie";
12767
- var signup = new Command73("signup").description("signup to velastack.dev").configureHelp(helpConfig).action(
12818
+ var signup = new Command75("signup").description("signup to velastack.dev").configureHelp(helpConfig).action(
12768
12819
  () => runCommand(async () => {
12769
12820
  const method = await chooseAuthMethod("signup", await fetchAuthMethods());
12770
12821
  const fetchCookie = makeFetchCookie2(fetch);
@@ -12806,9 +12857,9 @@ async function signupWithPassword(fetchCookie) {
12806
12857
  }
12807
12858
 
12808
12859
  // src/commands/logout.ts
12809
- import { Command as Command74 } from "commander";
12860
+ import { Command as Command76 } from "commander";
12810
12861
  import * as p42 from "@clack/prompts";
12811
- var logout = new Command74("logout").alias("signout").description("logout from velastack.dev").configureHelp(helpConfig).action(
12862
+ var logout = new Command76("logout").alias("signout").description("logout from velastack.dev").configureHelp(helpConfig).action(
12812
12863
  () => runCommand(() => {
12813
12864
  if (!readConfig()) {
12814
12865
  p42.log.info("Not logged in");
@@ -12820,9 +12871,9 @@ var logout = new Command74("logout").alias("signout").description("logout from v
12820
12871
  );
12821
12872
 
12822
12873
  // src/commands/whoami.ts
12823
- import { Command as Command75 } from "commander";
12874
+ import { Command as Command77 } from "commander";
12824
12875
  import * as p43 from "@clack/prompts";
12825
- var whoami = new Command75("whoami").description("show the current user").configureHelp(helpConfig).action(
12876
+ var whoami = new Command77("whoami").description("show the current user").configureHelp(helpConfig).action(
12826
12877
  () => runCommand(async () => {
12827
12878
  const apiKey = readConfig()?.apiKey;
12828
12879
  if (!apiKey) {
@@ -12841,10 +12892,10 @@ var whoami = new Command75("whoami").description("show the current user").config
12841
12892
  );
12842
12893
 
12843
12894
  // src/commands/migrate.ts
12844
- import { Command as Command82 } from "commander";
12895
+ import { Command as Command84 } from "commander";
12845
12896
 
12846
12897
  // src/commands/migrate/up.ts
12847
- import { Command as Command76 } from "commander";
12898
+ import { Command as Command78 } from "commander";
12848
12899
 
12849
12900
  // src/lib/migrate.ts
12850
12901
  import path47 from "node:path";
@@ -12886,10 +12937,10 @@ async function runMigrateUp() {
12886
12937
  ]
12887
12938
  });
12888
12939
  }
12889
- var up = new Command76("up").description("apply all pending migrations").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations."));
12940
+ var up = new Command78("up").description("apply all pending migrations").configureHelp(helpConfig).action(() => runCommand(runMigrateUp, "Failed to run migrations."));
12890
12941
 
12891
12942
  // src/commands/migrate/down.ts
12892
- import { Command as Command77, InvalidArgumentError as InvalidArgumentError3 } from "commander";
12943
+ import { Command as Command79, InvalidArgumentError as InvalidArgumentError3 } from "commander";
12893
12944
  function parseSteps(value) {
12894
12945
  const n = parseInt(value, 10);
12895
12946
  if (!Number.isFinite(n) || n <= 0) {
@@ -12897,7 +12948,7 @@ function parseSteps(value) {
12897
12948
  }
12898
12949
  return n;
12899
12950
  }
12900
- 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(
12951
+ var down = new Command79("down").alias("rollback").description("revert the last N applied migrations").argument("[number]", "how many migrations to revert", parseSteps, 1).configureHelp(helpConfig).action(
12901
12952
  (n) => runCommand(async () => {
12902
12953
  await runPocketbaseMigrate(["down", String(n)]);
12903
12954
  reportResult({
@@ -12913,8 +12964,8 @@ var down = new Command77("down").alias("rollback").description("revert the last
12913
12964
  // src/commands/migrate/create.ts
12914
12965
  import fs46 from "node:fs";
12915
12966
  import path48 from "node:path";
12916
- import { Command as Command78 } from "commander";
12917
- var create2 = new Command78("create").alias("new").description("create a new blank migration").argument("<name>", "migration name (snake_case)").configureHelp(helpConfig).action(
12967
+ import { Command as Command80 } from "commander";
12968
+ var create2 = new Command80("create").alias("new").description("create a new blank migration").argument("<name>", "migration name (snake_case)").configureHelp(helpConfig).action(
12918
12969
  (name) => runCommand(async () => {
12919
12970
  const cwd = migrateRoot();
12920
12971
  const before = listMigrationFiles(cwd);
@@ -12940,8 +12991,8 @@ function listMigrationFiles(cwd) {
12940
12991
  // src/commands/migrate/collections.ts
12941
12992
  import fs47 from "node:fs";
12942
12993
  import path49 from "node:path";
12943
- import { Command as Command79 } from "commander";
12944
- var collections = new Command79("collections").alias("snapshot").description("snapshot local collections into a new migration").configureHelp(helpConfig).action(
12994
+ import { Command as Command81 } from "commander";
12995
+ var collections = new Command81("collections").alias("snapshot").description("snapshot local collections into a new migration").configureHelp(helpConfig).action(
12945
12996
  () => runCommand(async () => {
12946
12997
  const cwd = migrateRoot();
12947
12998
  const before = listMigrationFiles2(cwd);
@@ -12972,8 +13023,8 @@ function listMigrationFiles2(cwd) {
12972
13023
  }
12973
13024
 
12974
13025
  // src/commands/migrate/history-sync.ts
12975
- import { Command as Command80 } from "commander";
12976
- var historySync = new Command80("history-sync").description("drop _migrations rows whose files no longer exist").configureHelp(helpConfig).action(
13026
+ import { Command as Command82 } from "commander";
13027
+ var historySync = new Command82("history-sync").description("drop _migrations rows whose files no longer exist").configureHelp(helpConfig).action(
12977
13028
  () => runCommand(async () => {
12978
13029
  await runPocketbaseMigrate(["history-sync"]);
12979
13030
  reportResult({
@@ -12986,10 +13037,10 @@ var historySync = new Command80("history-sync").description("drop _migrations ro
12986
13037
  // src/commands/migrate/sveltekit-3.ts
12987
13038
  import path50 from "node:path";
12988
13039
  import process31 from "node:process";
12989
- import { Command as Command81 } from "commander";
13040
+ import { Command as Command83 } from "commander";
12990
13041
  import * as p44 from "@clack/prompts";
12991
13042
  import pc13 from "picocolors";
12992
- 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(
13043
+ var sveltekit3 = new Command83("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(
12993
13044
  (options) => runCommand(async () => {
12994
13045
  const root = options.cwd ? path50.resolve(options.cwd) : findWorkspaceRoot() ?? process31.cwd();
12995
13046
  p44.intro(pc13.bgCyan(pc13.black(" vela migrate sveltekit-3 ")));
@@ -13063,14 +13114,14 @@ function nextStepsFor(result) {
13063
13114
  }
13064
13115
 
13065
13116
  // src/commands/migrate.ts
13066
- 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);
13117
+ var migrate = new Command84("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);
13067
13118
 
13068
13119
  // src/commands/dev.ts
13069
13120
  import fs48 from "node:fs";
13070
13121
  import path52 from "node:path";
13071
13122
  import process33 from "node:process";
13072
13123
  import { performance } from "node:perf_hooks";
13073
- import { Command as Command83, InvalidArgumentError as InvalidArgumentError4 } from "commander";
13124
+ import { Command as Command85, InvalidArgumentError as InvalidArgumentError4 } from "commander";
13074
13125
  import pc15 from "picocolors";
13075
13126
  import PocketBase5 from "pocketbase";
13076
13127
 
@@ -13143,7 +13194,7 @@ function parsePort(value) {
13143
13194
  }
13144
13195
  return port;
13145
13196
  }
13146
- 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) => {
13197
+ var dev = new Command85("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) => {
13147
13198
  const cwd = process33.cwd();
13148
13199
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => console.warn(pc15.yellow(`\u25B2 ${m}`)));
13149
13200
  process33.env.VELA_DATA_DIR ??= localDataDir(cwd);
@@ -13268,7 +13319,7 @@ async function startWatchingTypes(cwd, pb) {
13268
13319
  import fs49 from "node:fs";
13269
13320
  import path53 from "node:path";
13270
13321
  import process35 from "node:process";
13271
- import { Command as Command84 } from "commander";
13322
+ import { Command as Command86 } from "commander";
13272
13323
  import * as p45 from "@clack/prompts";
13273
13324
  import pc16 from "picocolors";
13274
13325
  import { x as x5 } from "tinyexec";
@@ -13309,7 +13360,7 @@ function splitHosts(value) {
13309
13360
 
13310
13361
  // src/commands/build.ts
13311
13362
  var PRERENDERED_DIR = path53.join(".svelte-kit", "output", "prerendered");
13312
- 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) => {
13363
+ var build = new Command86("build").description("build the app").configureHelp(helpConfig).option("-t, --target <target>", "which copy of the app to build for", PRODUCTION_TARGET).action(async (options) => {
13313
13364
  const cwd = process35.cwd();
13314
13365
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => p45.log.warn(m));
13315
13366
  warnIfSsrExternalMissing(findWorkspaceRoot(cwd) ?? cwd);
@@ -13404,14 +13455,14 @@ Set one with ${pc16.cyan("vela deploy --domain example.com")}, or pass ${pc16.cy
13404
13455
  import fs50 from "node:fs";
13405
13456
  import path54 from "node:path";
13406
13457
  import process36 from "node:process";
13407
- import { Command as Command85 } from "commander";
13458
+ import { Command as Command87 } from "commander";
13408
13459
  import * as p46 from "@clack/prompts";
13409
13460
  import pc17 from "picocolors";
13410
13461
  import { x as x6 } from "tinyexec";
13411
13462
  import { detect as detect9 } from "package-manager-detector";
13412
13463
  import { resolveCommand as resolveCommand7 } from "package-manager-detector/commands";
13413
13464
  var ADAPTER_NODE_MODULE = path54.join("build", "adapter-node.js");
13414
- var preview = new Command85("preview").description("preview the built app").configureHelp(helpConfig).action(async () => {
13465
+ var preview = new Command87("preview").description("preview the built app").configureHelp(helpConfig).action(async () => {
13415
13466
  const cwd = process36.cwd();
13416
13467
  process36.env.VELA_DATA_DIR ??= localDataDir(cwd);
13417
13468
  warnIfKit2(findWorkspaceRoot(cwd) ?? cwd, (m) => p46.log.warn(m));
@@ -13480,8 +13531,8 @@ set empty so no domain is baked in.`
13480
13531
 
13481
13532
  // src/commands/sync.ts
13482
13533
  import path55 from "node:path";
13483
- import { Command as Command86 } from "commander";
13484
- var sync = new Command86("sync").description("sync types from the database").configureHelp(helpConfig).action(
13534
+ import { Command as Command88 } from "commander";
13535
+ var sync = new Command88("sync").description("sync types from the database").configureHelp(helpConfig).action(
13485
13536
  () => runCommand(async () => {
13486
13537
  const { workspaceRootDir } = await getWorkspace();
13487
13538
  const typesDir = path55.join(workspaceRootDir, ".svelte-kit", "types");
@@ -13494,7 +13545,7 @@ var sync = new Command86("sync").description("sync types from the database").con
13494
13545
  );
13495
13546
 
13496
13547
  // src/commands/provision.ts
13497
- import { Command as Command87 } from "commander";
13548
+ import { Command as Command89 } from "commander";
13498
13549
  import * as p47 from "@clack/prompts";
13499
13550
  import pc18 from "picocolors";
13500
13551
  import * as v9 from "valibot";
@@ -13509,7 +13560,7 @@ var OptionsSchema2 = v9.object({
13509
13560
  )
13510
13561
  });
13511
13562
  var provision = addSshOptions(
13512
- 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)
13563
+ new Command89("provision").description("prepare a server to host vela apps").argument("<target>", "SSH target \u2014 an alias from ~/.ssh/config, or user@host").configureHelp(helpConfig)
13513
13564
  ).option("--pb-version <version>", "PocketBase version to install").option(
13514
13565
  "--node-major <version>",
13515
13566
  "Node.js major version to bring the server up to (match the one you build with)",
@@ -13558,7 +13609,7 @@ var provision = addSshOptions(
13558
13609
  import path59 from "node:path";
13559
13610
  import fs54 from "node:fs";
13560
13611
  import process38 from "node:process";
13561
- import { Command as Command88, Option as Option2 } from "commander";
13612
+ import { Command as Command90, Option as Option2 } from "commander";
13562
13613
  import * as p49 from "@clack/prompts";
13563
13614
  import pc20 from "picocolors";
13564
13615
  import * as v10 from "valibot";
@@ -13924,7 +13975,7 @@ var OptionsSchema3 = v10.object({
13924
13975
  });
13925
13976
  var deploy = addLockWaitOption(
13926
13977
  addTargetOptions(
13927
- new Command88("deploy").description("deploy the app").configureHelp(helpConfig),
13978
+ new Command90("deploy").description("deploy the app").configureHelp(helpConfig),
13928
13979
  "production"
13929
13980
  )
13930
13981
  ).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(
@@ -14358,10 +14409,10 @@ async function serverTimeOrLocal(session) {
14358
14409
  // src/commands/link.ts
14359
14410
  import path60 from "node:path";
14360
14411
  import process39 from "node:process";
14361
- import { Command as Command89 } from "commander";
14412
+ import { Command as Command91 } from "commander";
14362
14413
  import * as p50 from "@clack/prompts";
14363
14414
  var CREATE_NEW = "__new__";
14364
- var link = new Command89("link").description("link this project to a velastack.dev project").configureHelp(helpConfig).action(() => runCommand(linkProject, "Failed to link the project."));
14415
+ var link = new Command91("link").description("link this project to a velastack.dev project").configureHelp(helpConfig).action(() => runCommand(linkProject, "Failed to link the project."));
14365
14416
  async function linkProject() {
14366
14417
  const { workspaceRootDir } = await getWorkspace();
14367
14418
  const existing = readProjectConfig(workspaceRootDir);
@@ -14428,10 +14479,10 @@ function defaultProjectName2(workspaceRootDir) {
14428
14479
  }
14429
14480
 
14430
14481
  // src/commands/env.ts
14431
- import { Command as Command95 } from "commander";
14482
+ import { Command as Command97 } from "commander";
14432
14483
 
14433
14484
  // src/commands/env/list.ts
14434
- import { Command as Command90 } from "commander";
14485
+ import { Command as Command92 } from "commander";
14435
14486
  import * as v12 from "valibot";
14436
14487
  import * as p53 from "@clack/prompts";
14437
14488
  import pc23 from "picocolors";
@@ -14703,7 +14754,7 @@ var OptionsSchema5 = v12.object({
14703
14754
  var HIDDEN = "\u2022\u2022\u2022\u2022";
14704
14755
  var MAX_VALUE = 32;
14705
14756
  var envList = addEnvTargetOptions(
14706
- new Command90("list").description("list environment variables \u2014 every scope at once without -t").configureHelp(helpConfig)
14757
+ new Command92("list").description("list environment variables \u2014 every scope at once without -t").configureHelp(helpConfig)
14707
14758
  ).action(
14708
14759
  (raw) => runCommand(async () => {
14709
14760
  const options = parseOptions(OptionsSchema5, raw);
@@ -14869,11 +14920,11 @@ function plain(text20) {
14869
14920
 
14870
14921
  // src/commands/env/set.ts
14871
14922
  import process41 from "node:process";
14872
- import { Command as Command91 } from "commander";
14923
+ import { Command as Command93 } from "commander";
14873
14924
  import * as p54 from "@clack/prompts";
14874
14925
  import pc24 from "picocolors";
14875
14926
  var envSet = addEnvTargetOptions(
14876
- new Command91("set").description("set an environment variable \u2014 the value is prompted for, never an argument").argument("<key>", "variable name").option(
14927
+ new Command93("set").description("set an environment variable \u2014 the value is prompted for, never an argument").argument("<key>", "variable name").option(
14877
14928
  "--public",
14878
14929
  "readable back with `vela env list` and `vela env get`; PUBLIC_* keys are public regardless"
14879
14930
  ).configureHelp(helpConfig)
@@ -14931,11 +14982,11 @@ async function promptValue2(key, visibility) {
14931
14982
  }
14932
14983
 
14933
14984
  // src/commands/env/unset.ts
14934
- import { Command as Command92 } from "commander";
14985
+ import { Command as Command94 } from "commander";
14935
14986
  import * as p55 from "@clack/prompts";
14936
14987
  import pc25 from "picocolors";
14937
14988
  var envUnset = addEnvTargetOptions(
14938
- new Command92("unset").description("remove an environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14989
+ new Command94("unset").description("remove an environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
14939
14990
  ).action(
14940
14991
  (key, raw) => runCommand(
14941
14992
  () => withEnvScope(
@@ -14979,11 +15030,11 @@ var envUnset = addEnvTargetOptions(
14979
15030
  import fs56 from "node:fs";
14980
15031
  import path61 from "node:path";
14981
15032
  import process42 from "node:process";
14982
- import { Command as Command93 } from "commander";
15033
+ import { Command as Command95 } from "commander";
14983
15034
  import * as p56 from "@clack/prompts";
14984
15035
  import pc26 from "picocolors";
14985
15036
  var envImport = addEnvTargetOptions(
14986
- 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)
15037
+ new Command95("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)
14987
15038
  ).action(
14988
15039
  (file, raw) => runCommand(
14989
15040
  () => withEnvScope(
@@ -15059,11 +15110,11 @@ function read(resolved, shown) {
15059
15110
 
15060
15111
  // src/commands/env/get.ts
15061
15112
  import process43 from "node:process";
15062
- import { Command as Command94 } from "commander";
15113
+ import { Command as Command96 } from "commander";
15063
15114
  import * as p57 from "@clack/prompts";
15064
15115
  import pc27 from "picocolors";
15065
15116
  var envGet = addEnvTargetOptions(
15066
- new Command94("get").description("print a public environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
15117
+ new Command96("get").description("print a public environment variable").argument("<key>", "variable name").configureHelp(helpConfig)
15067
15118
  ).action(
15068
15119
  (key, raw) => runCommand(
15069
15120
  () => withEnvScope(
@@ -15111,14 +15162,14 @@ Set it again to change it: ${pc27.cyan(`vela env set ${key}`)}`
15111
15162
  }
15112
15163
 
15113
15164
  // src/commands/env.ts
15114
- 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);
15165
+ var env = new Command97("env").description("manage environment variables, locally or on a target").configureHelp(helpConfig).addCommand(envList).addCommand(envGet).addCommand(envSet).addCommand(envUnset).addCommand(envImport);
15115
15166
 
15116
15167
  // src/commands/status.ts
15117
- import { Command as Command96 } from "commander";
15168
+ import { Command as Command98 } from "commander";
15118
15169
  import * as p58 from "@clack/prompts";
15119
15170
  import pc28 from "picocolors";
15120
15171
  var status = addTargetOptions(
15121
- new Command96("status").description("show what is deployed").configureHelp(helpConfig),
15172
+ new Command98("status").description("show what is deployed").configureHelp(helpConfig),
15122
15173
  "production"
15123
15174
  ).option("--all", "show every app on the server, not just this project").option("--json", "print raw JSON").action(
15124
15175
  (raw) => runCommand(async () => {
@@ -15177,12 +15228,12 @@ function describe2(state) {
15177
15228
  }
15178
15229
 
15179
15230
  // src/commands/rollback.ts
15180
- import { Command as Command97 } from "commander";
15231
+ import { Command as Command99 } from "commander";
15181
15232
  import * as p59 from "@clack/prompts";
15182
15233
  import pc29 from "picocolors";
15183
15234
  var rollback = addLockWaitOption(
15184
15235
  addTargetOptions(
15185
- new Command97("rollback").description("put the previous release back").configureHelp(helpConfig),
15236
+ new Command99("rollback").description("put the previous release back").configureHelp(helpConfig),
15186
15237
  "production"
15187
15238
  )
15188
15239
  ).option("--to <release>", "roll back to a specific release instead of the previous one").action(
@@ -15221,7 +15272,7 @@ var rollback = addLockWaitOption(
15221
15272
  );
15222
15273
 
15223
15274
  // src/commands/logs.ts
15224
- import { Command as Command98 } from "commander";
15275
+ import { Command as Command100 } from "commander";
15225
15276
 
15226
15277
  // src/lib/remote-pocketbase.ts
15227
15278
  import PocketBase6 from "pocketbase";
@@ -15272,7 +15323,7 @@ async function withRemotePocketbase(session, instance, fn) {
15272
15323
 
15273
15324
  // src/commands/logs.ts
15274
15325
  var logs = addTargetOptions(
15275
- new Command98("logs").description("tail the logs of a deployed app").configureHelp(helpConfig),
15326
+ new Command100("logs").description("tail the logs of a deployed app").configureHelp(helpConfig),
15276
15327
  "production"
15277
15328
  ).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(
15278
15329
  (raw) => runCommand(async () => {
@@ -15307,16 +15358,16 @@ var logs = addTargetOptions(
15307
15358
  );
15308
15359
 
15309
15360
  // src/commands/admin.ts
15310
- import { Command as Command100 } from "commander";
15361
+ import { Command as Command102 } from "commander";
15311
15362
 
15312
15363
  // src/commands/admin/create.ts
15313
15364
  import process44 from "node:process";
15314
- import { Command as Command99 } from "commander";
15365
+ import { Command as Command101 } from "commander";
15315
15366
  import * as p60 from "@clack/prompts";
15316
15367
  import pc30 from "picocolors";
15317
15368
  var MIN_PASSWORD = 10;
15318
15369
  var adminCreate = addTargetOptions(
15319
- 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),
15370
+ new Command101("create").description("create a login for the admin panel").argument("[email]", "email to sign in with \u2014 prompted for when omitted").configureHelp(helpConfig),
15320
15371
  "local"
15321
15372
  ).action(
15322
15373
  (email2, raw) => runCommand(
@@ -15434,15 +15485,15 @@ async function promptPassword() {
15434
15485
  }
15435
15486
 
15436
15487
  // src/commands/admin.ts
15437
- var admin = new Command100("admin").description("manage admin panel logins").configureHelp(helpConfig).addCommand(adminCreate);
15488
+ var admin = new Command102("admin").description("manage admin panel logins").configureHelp(helpConfig).addCommand(adminCreate);
15438
15489
 
15439
15490
  // src/commands/backup.ts
15440
- import { Command as Command106 } from "commander";
15491
+ import { Command as Command108 } from "commander";
15441
15492
 
15442
15493
  // src/commands/backup/create.ts
15443
15494
  import fs57 from "node:fs";
15444
15495
  import path62 from "node:path";
15445
- import { Command as Command101 } from "commander";
15496
+ import { Command as Command103 } from "commander";
15446
15497
  import * as p61 from "@clack/prompts";
15447
15498
  import pc32 from "picocolors";
15448
15499
 
@@ -15591,7 +15642,7 @@ async function writeSchedule(pb, cron, maxKeep) {
15591
15642
  // src/commands/backup/create.ts
15592
15643
  var DEFAULT_BACKUP_DIR = "backups";
15593
15644
  var backupCreate = addTargetOptions(
15594
- 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),
15645
+ new Command103("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),
15595
15646
  "production"
15596
15647
  ).action(
15597
15648
  (name, raw) => runCommand(() => {
@@ -15675,11 +15726,11 @@ async function download(ctx, key, outputDir) {
15675
15726
  }
15676
15727
 
15677
15728
  // src/commands/backup/list.ts
15678
- import { Command as Command102 } from "commander";
15729
+ import { Command as Command104 } from "commander";
15679
15730
  import * as p62 from "@clack/prompts";
15680
15731
  import pc33 from "picocolors";
15681
15732
  var backupList = addTargetOptions(
15682
- new Command102("list").description("list the backups on a target").configureHelp(helpConfig),
15733
+ new Command104("list").description("list the backups on a target").configureHelp(helpConfig),
15683
15734
  "production"
15684
15735
  ).action(
15685
15736
  (raw) => runCommand(
@@ -15707,11 +15758,11 @@ Take one with ${pc33.cyan("vela backup create")}.`
15707
15758
  // src/commands/backup/download.ts
15708
15759
  import fs58 from "node:fs";
15709
15760
  import path63 from "node:path";
15710
- import { Command as Command103 } from "commander";
15761
+ import { Command as Command105 } from "commander";
15711
15762
  import * as p63 from "@clack/prompts";
15712
15763
  import pc34 from "picocolors";
15713
15764
  var backupDownload = addTargetOptions(
15714
- 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),
15765
+ new Command105("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),
15715
15766
  "production"
15716
15767
  ).action(
15717
15768
  (key, raw) => runCommand(() => {
@@ -15759,11 +15810,11 @@ Fetch it from the bucket directly \u2014 vela does not hold its credentials.`
15759
15810
 
15760
15811
  // src/commands/backup/delete.ts
15761
15812
  import process45 from "node:process";
15762
- import { Command as Command104 } from "commander";
15813
+ import { Command as Command106 } from "commander";
15763
15814
  import * as p64 from "@clack/prompts";
15764
15815
  import pc35 from "picocolors";
15765
15816
  var backupDelete = addTargetOptions(
15766
- 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),
15817
+ new Command106("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),
15767
15818
  "production"
15768
15819
  ).action(
15769
15820
  (key, raw) => runCommand(() => {
@@ -15794,12 +15845,12 @@ Run ${pc35.cyan("vela backup list")} to see what it does have.`
15794
15845
  );
15795
15846
 
15796
15847
  // src/commands/backup/schedule.ts
15797
- import { Command as Command105 } from "commander";
15848
+ import { Command as Command107 } from "commander";
15798
15849
  import * as p65 from "@clack/prompts";
15799
15850
  import pc36 from "picocolors";
15800
15851
  var DEFAULT_KEEP = 7;
15801
15852
  var backupSchedule = addTargetOptions(
15802
- 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),
15853
+ new Command107("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),
15803
15854
  "production"
15804
15855
  ).action(
15805
15856
  (cron, raw) => runCommand(() => {
@@ -15843,18 +15894,18 @@ Set one with ${pc36.cyan('vela backup schedule "0 3 * * *"')}.`
15843
15894
  );
15844
15895
 
15845
15896
  // src/commands/backup.ts
15846
- 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);
15897
+ var backup = new Command108("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);
15847
15898
 
15848
15899
  // src/commands/restore.ts
15849
15900
  import fs59 from "node:fs";
15850
15901
  import path64 from "node:path";
15851
15902
  import process46 from "node:process";
15852
- import { Command as Command107 } from "commander";
15903
+ import { Command as Command109 } from "commander";
15853
15904
  import * as p66 from "@clack/prompts";
15854
15905
  import pc37 from "picocolors";
15855
15906
  var restore = addLockWaitOption(
15856
15907
  addTargetOptions(
15857
- 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),
15908
+ new Command109("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),
15858
15909
  "production"
15859
15910
  )
15860
15911
  ).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(
@@ -16003,7 +16054,7 @@ async function confirm14(appName, targetName, envTag, from) {
16003
16054
  }
16004
16055
 
16005
16056
  // src/commands/targets.ts
16006
- import { Command as Command108 } from "commander";
16057
+ import { Command as Command110 } from "commander";
16007
16058
  import * as p67 from "@clack/prompts";
16008
16059
  import pc38 from "picocolors";
16009
16060
  import * as v13 from "valibot";
@@ -16013,7 +16064,7 @@ var OptionsSchema6 = v13.object({
16013
16064
  offline: v13.optional(v13.boolean())
16014
16065
  });
16015
16066
  var targets = addSshOptions(
16016
- new Command108("targets").description("list the targets this project can deploy to").configureHelp(helpConfig)
16067
+ new Command110("targets").description("list the targets this project can deploy to").configureHelp(helpConfig)
16017
16068
  ).option("--json", "print raw JSON").option("--offline", "skip connecting to servers").action(
16018
16069
  (raw) => runCommand(async () => {
16019
16070
  const options = parseOptions(OptionsSchema6, raw);
@@ -16091,7 +16142,7 @@ Release and domain are shown from what this project recorded.`
16091
16142
 
16092
16143
  // src/commands/test.ts
16093
16144
  import process48 from "node:process";
16094
- import { Command as Command109 } from "commander";
16145
+ import { Command as Command111 } from "commander";
16095
16146
  import pc39 from "picocolors";
16096
16147
  import { x as x7 } from "tinyexec";
16097
16148
  import { detect as detect10 } from "package-manager-detector";
@@ -16244,7 +16295,7 @@ function stubPagesPlugin() {
16244
16295
  }
16245
16296
 
16246
16297
  // src/commands/test.ts
16247
- var testServer = new Command109("test:server").description("run server tests").allowUnknownOption(true).allowExcessArguments(true).configureHelp(helpConfig).action(async (_opts, cmd) => {
16298
+ var testServer = new Command111("test:server").description("run server tests").allowUnknownOption(true).allowExcessArguments(true).configureHelp(helpConfig).action(async (_opts, cmd) => {
16248
16299
  const cwd = process48.cwd();
16249
16300
  warnIfKit2(cwd, (m) => console.warn(pc39.yellow(`\u25B2 ${m}`)));
16250
16301
  const extraArgs = (cmd.parent?.args ?? []).slice(1);
@@ -16271,7 +16322,7 @@ var testServer = new Command109("test:server").description("run server tests").a
16271
16322
  process48.exitCode = 1;
16272
16323
  }
16273
16324
  });
16274
- var testHarness = new Command109("test:harness").description("start the servers for server tests and wait (used by vela/testing)").configureHelp(helpConfig).action(async () => {
16325
+ var testHarness = new Command111("test:harness").description("start the servers for server tests and wait (used by vela/testing)").configureHelp(helpConfig).action(async () => {
16275
16326
  const cwd = process48.cwd();
16276
16327
  if (!process48.send) {
16277
16328
  console.error(
@@ -16320,7 +16371,7 @@ var testHarness = new Command109("test:harness").description("start the servers
16320
16371
  // src/commands/routes.ts
16321
16372
  import fs61 from "node:fs";
16322
16373
  import path66 from "node:path";
16323
- import { Command as Command110 } from "commander";
16374
+ import { Command as Command112 } from "commander";
16324
16375
  var HTTP_METHODS = /* @__PURE__ */ new Set([
16325
16376
  "GET",
16326
16377
  "POST",
@@ -16331,7 +16382,7 @@ var HTTP_METHODS = /* @__PURE__ */ new Set([
16331
16382
  "HEAD",
16332
16383
  "fallback"
16333
16384
  ]);
16334
- var routes = new Command110("routes").description("list routes").configureHelp(helpConfig).action(async () => {
16385
+ var routes = new Command112("routes").description("list routes").configureHelp(helpConfig).action(async () => {
16335
16386
  const { workspaceRootDir, routesDir } = await getWorkspace();
16336
16387
  const routesRoot = path66.join(workspaceRootDir, routesDir);
16337
16388
  const found = walk(routesRoot, routesRoot).filter((r) => r.methods.length > 0);
@@ -16409,7 +16460,7 @@ function printTable(routes2) {
16409
16460
  import fs62 from "node:fs";
16410
16461
  import path67 from "node:path";
16411
16462
  import process49 from "node:process";
16412
- import { Command as Command111 } from "commander";
16463
+ import { Command as Command113 } from "commander";
16413
16464
  import { x as x8 } from "tinyexec";
16414
16465
  import { detect as detect11 } from "package-manager-detector";
16415
16466
  import { resolveCommand as resolveCommand9 } from "package-manager-detector/commands";
@@ -16428,24 +16479,24 @@ async function runWuchale(extraArgs) {
16428
16479
  throwOnError: true
16429
16480
  });
16430
16481
  }
16431
- var extract2 = new Command111("extract").description("extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale([])));
16432
- var watch = new Command111("watch").description("watch and extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--watch"])));
16433
- var status2 = new Command111("status").description("show i18n status").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["status"])));
16434
- var clean = new Command111("clean").description("clean unused translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--clean"])));
16435
- var i18n3 = new Command111("i18n").description("i18n utilities").configureHelp(helpConfig).addCommand(extract2, { isDefault: true }).addCommand(watch).addCommand(status2).addCommand(clean);
16482
+ var extract2 = new Command113("extract").description("extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale([])));
16483
+ var watch = new Command113("watch").description("watch and extract translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--watch"])));
16484
+ var status2 = new Command113("status").description("show i18n status").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["status"])));
16485
+ var clean = new Command113("clean").description("clean unused translatable strings").configureHelp(helpConfig).action(() => runCommand(() => runWuchale(["--clean"])));
16486
+ var i18n3 = new Command113("i18n").description("i18n utilities").configureHelp(helpConfig).addCommand(extract2, { isDefault: true }).addCommand(watch).addCommand(status2).addCommand(clean);
16436
16487
 
16437
16488
  // src/commands/cms.ts
16438
- import { Command as Command117 } from "commander";
16489
+ import { Command as Command119 } from "commander";
16439
16490
 
16440
16491
  // src/commands/cms/deploy.ts
16441
16492
  import process50 from "node:process";
16442
- import { Command as Command112 } from "commander";
16493
+ import { Command as Command114 } from "commander";
16443
16494
  import * as p68 from "@clack/prompts";
16444
16495
  import pc40 from "picocolors";
16445
16496
  var POLL_INTERVAL2 = 5e3;
16446
16497
  var POLL_TIMEOUT = 30 * 6e4;
16447
16498
  var inFlight = (run) => run?.status === "pending" || run?.status === "building";
16448
- var deploy2 = new Command112("deploy").description("rebuild the hosted site with the latest published content").option(
16499
+ var deploy2 = new Command114("deploy").description("rebuild the hosted site with the latest published content").option(
16449
16500
  "--project <id>",
16450
16501
  "velastack.dev project whose site to rebuild, instead of the linked one"
16451
16502
  ).option("--no-wait", "return once the build has started instead of waiting for it").configureHelp(helpConfig).action(
@@ -16534,11 +16585,11 @@ async function waitForRun(apiKey, projectId, runId) {
16534
16585
  }
16535
16586
 
16536
16587
  // src/commands/cms/editor.ts
16537
- import { Command as Command116 } from "commander";
16588
+ import { Command as Command118 } from "commander";
16538
16589
 
16539
16590
  // src/commands/cms/editor/add.ts
16540
16591
  import { randomBytes } from "node:crypto";
16541
- import { Command as Command113 } from "commander";
16592
+ import { Command as Command115 } from "commander";
16542
16593
  import * as p69 from "@clack/prompts";
16543
16594
  import pc42 from "picocolors";
16544
16595
 
@@ -16581,7 +16632,7 @@ async function withCmsBackend(fn, cwd = process51.cwd()) {
16581
16632
  }
16582
16633
 
16583
16634
  // src/commands/cms/editor/add.ts
16584
- 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(
16635
+ var editorAdd = new Command115("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(
16585
16636
  (email2, options) => runCommand(async () => {
16586
16637
  const generated = options.password === void 0;
16587
16638
  const password8 = options.password ?? randomBytes(12).toString("base64url");
@@ -16600,10 +16651,10 @@ var editorAdd = new Command113("add").description("create an editor who can sign
16600
16651
  );
16601
16652
 
16602
16653
  // src/commands/cms/editor/password.ts
16603
- import { Command as Command114 } from "commander";
16654
+ import { Command as Command116 } from "commander";
16604
16655
  import * as p70 from "@clack/prompts";
16605
16656
  import pc43 from "picocolors";
16606
- var editorPassword = new Command114("password").description("set an editor's password").argument("<email>", "email of the editor").argument("<password>", "new password").configureHelp(helpConfig).action(
16657
+ var editorPassword = new Command116("password").description("set an editor's password").argument("<email>", "email of the editor").argument("<password>", "new password").configureHelp(helpConfig).action(
16607
16658
  (email2, password8) => runCommand(async () => {
16608
16659
  await withCmsBackend((cms3) => cms3.editors.setPassword(email2, password8));
16609
16660
  p70.log.success(
@@ -16613,10 +16664,10 @@ var editorPassword = new Command114("password").description("set an editor's pas
16613
16664
  );
16614
16665
 
16615
16666
  // src/commands/cms/editor/list.ts
16616
- import { Command as Command115 } from "commander";
16667
+ import { Command as Command117 } from "commander";
16617
16668
  import * as p71 from "@clack/prompts";
16618
16669
  import pc44 from "picocolors";
16619
- var editorList = new Command115("list").description("list editors and the projects they may edit").configureHelp(helpConfig).action(
16670
+ var editorList = new Command117("list").description("list editors and the projects they may edit").configureHelp(helpConfig).action(
16620
16671
  () => runCommand(async () => {
16621
16672
  const rows = await withCmsBackend(
16622
16673
  async (cms3) => cms3.editors.list().map((editor2) => ({
@@ -16640,17 +16691,17 @@ var editorList = new Command115("list").description("list editors and the projec
16640
16691
  );
16641
16692
 
16642
16693
  // src/commands/cms/editor.ts
16643
- var editor = new Command116("editor").description("manage who can sign in to the admin bar").configureHelp(helpConfig).addCommand(editorAdd).addCommand(editorPassword).addCommand(editorList);
16694
+ var editor = new Command118("editor").description("manage who can sign in to the admin bar").configureHelp(helpConfig).addCommand(editorAdd).addCommand(editorPassword).addCommand(editorList);
16644
16695
 
16645
16696
  // src/commands/cms.ts
16646
- var cms2 = new Command117("cms").description("manage the CMS").configureHelp(helpConfig).addCommand(editor).addCommand(deploy2);
16697
+ var cms2 = new Command119("cms").description("manage the CMS").configureHelp(helpConfig).addCommand(editor).addCommand(deploy2);
16647
16698
 
16648
16699
  // src/commands/workflows.ts
16649
- import { Command as Command121 } from "commander";
16700
+ import { Command as Command123 } from "commander";
16650
16701
 
16651
16702
  // src/commands/workflows/list.ts
16652
16703
  import process52 from "node:process";
16653
- import { Command as Command118, InvalidArgumentError as InvalidArgumentError5 } from "commander";
16704
+ import { Command as Command120, InvalidArgumentError as InvalidArgumentError5 } from "commander";
16654
16705
  import * as p72 from "@clack/prompts";
16655
16706
  import pc45 from "picocolors";
16656
16707
 
@@ -16725,7 +16776,7 @@ function formatRun(run, nameWidth) {
16725
16776
  const error = run.status === "failed" && run.error?.message ? pc45.red(` ${run.error.message}`) : "";
16726
16777
  return `${run.id} ${run.workflowName.padEnd(nameWidth)} ${status3}${attempts} ${when}${error}`;
16727
16778
  }
16728
- 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(
16779
+ var workflowsList = new Command120("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(
16729
16780
  (options) => runCommand(async () => {
16730
16781
  await withPocketbase(process52.cwd(), async (pb) => {
16731
16782
  const runs = await listRuns(pb, {
@@ -16749,7 +16800,7 @@ Start one from server code with ${pc45.cyan("<workflow>.run(input)")}, or with $
16749
16800
 
16750
16801
  // src/commands/workflows/run.ts
16751
16802
  import process53 from "node:process";
16752
- import { Command as Command119, InvalidArgumentError as InvalidArgumentError6 } from "commander";
16803
+ import { Command as Command121, InvalidArgumentError as InvalidArgumentError6 } from "commander";
16753
16804
  import * as p73 from "@clack/prompts";
16754
16805
  import pc46 from "picocolors";
16755
16806
  function parseInput(value) {
@@ -16759,7 +16810,7 @@ function parseInput(value) {
16759
16810
  throw new InvalidArgumentError6(`must be JSON, e.g. '{"userId":"abc"}'.`);
16760
16811
  }
16761
16812
  }
16762
- 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(
16813
+ var workflowsRun = new Command121("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(
16763
16814
  (name, input) => runCommand(async () => {
16764
16815
  await withPocketbase(process53.cwd(), async (pb) => {
16765
16816
  const run = await createRun(pb, name, input);
@@ -16774,10 +16825,10 @@ It runs once the app is up (${pc46.cyan("vela dev")}); ${pc46.cyan("vela workflo
16774
16825
 
16775
16826
  // src/commands/workflows/cancel.ts
16776
16827
  import process54 from "node:process";
16777
- import { Command as Command120 } from "commander";
16828
+ import { Command as Command122 } from "commander";
16778
16829
  import * as p74 from "@clack/prompts";
16779
16830
  import pc47 from "picocolors";
16780
- 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(
16831
+ var workflowsCancel = new Command122("cancel").description("cancel a pending or running workflow run").argument("<run-id>", "the run id from `vela workflows list`").configureHelp(helpConfig).action(
16781
16832
  (id) => runCommand(async () => {
16782
16833
  await withPocketbase(process54.cwd(), async (pb) => {
16783
16834
  const run = await cancelRun(pb, id);
@@ -16787,7 +16838,7 @@ var workflowsCancel = new Command120("cancel").description("cancel a pending or
16787
16838
  );
16788
16839
 
16789
16840
  // src/commands/workflows.ts
16790
- var workflows2 = new Command121("workflows").description("list, start and cancel background workflow runs").configureHelp(helpConfig).addCommand(workflowsList).addCommand(workflowsRun).addCommand(workflowsCancel);
16841
+ var workflows2 = new Command123("workflows").description("list, start and cancel background workflow runs").configureHelp(helpConfig).addCommand(workflowsList).addCommand(workflowsRun).addCommand(workflowsCancel);
16791
16842
 
16792
16843
  // src/program.ts
16793
16844
  var NO_BACKEND_COMMMANDS = /* @__PURE__ */ new Set([
@@ -16826,6 +16877,9 @@ var NO_BACKEND_COMMMANDS = /* @__PURE__ */ new Set([
16826
16877
  // Only wires hooks, reroute and the root layout; no collections involved.
16827
16878
  "enable content-negotiation",
16828
16879
  "disable content-negotiation",
16880
+ // The card is rendered by a SvelteKit endpoint, prerendered on a static site.
16881
+ "enable og",
16882
+ "disable og",
16829
16883
  // Posts are mdsvex files on disk.
16830
16884
  "enable blog",
16831
16885
  // Translations live in wuchale catalogs.
@@ -16860,7 +16914,7 @@ var PROVIDER_GATED_COMMANDS = /* @__PURE__ */ new Set([
16860
16914
  ]);
16861
16915
  var BACKEND_OPTIONAL_COMMANDS = /* @__PURE__ */ new Set(["dev", "build", "preview", "deploy"]);
16862
16916
  var SELF_CREDENTIALED_COMMANDS = /* @__PURE__ */ new Set(["test:server", "test:harness"]);
16863
- var program = new Command122().name(package_default.name).description(package_default.description).version(package_default.version, "-v, --version").configureHelp(helpConfig);
16917
+ var program = new Command124().name(package_default.name).description(package_default.description).version(package_default.version, "-v, --version").configureHelp(helpConfig);
16864
16918
  program.hook("preAction", (_thisCommand, actionCommand) => {
16865
16919
  const envRoot = findWorkspaceRoot() ?? process55.cwd();
16866
16920
  dotenv2.config({ path: nodePath.join(envRoot, ".env"), quiet: true });