@vxil/cli 0.11.0 → 0.11.1

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.
Files changed (2) hide show
  1. package/dist/vxil.js +7 -3
  2. package/package.json +1 -1
package/dist/vxil.js CHANGED
@@ -4462,8 +4462,8 @@ function lowerAllTriggerBindings(def, name) {
4462
4462
  }
4463
4463
  var CONFIG_FILENAMES = ["vxil.config.ts", "vxil.config.mjs", "vxil.config.js"];
4464
4464
  var VXIL_CONFIG_PKG_VERSION = "0.7.0";
4465
- var VXIL_SDK_PKG_VERSION = "0.11.0";
4466
- var VXIL_CLI_PKG_VERSION = "0.11.0";
4465
+ var VXIL_SDK_PKG_VERSION = "0.11.1";
4466
+ var VXIL_CLI_PKG_VERSION = "0.11.1";
4467
4467
  function ensureScaffoldPackageJson(cwd, opts = {}) {
4468
4468
  const file = resolve(cwd, "package.json");
4469
4469
  const wanted = {
@@ -22180,7 +22180,11 @@ export default defineConfig(${JSON.stringify({ features: featBlocks, cms: { coll
22180
22180
  console.log(`scaffolded functions/${name}.ts \u2014 declare it in vxil.config.ts \`functions\` and \`vxil push\``);
22181
22181
  } else if (sub === "list") {
22182
22182
  const { api } = requireApi(selector());
22183
- printEnvelope(await api("GET", "/v1/functions"));
22183
+ const listRes = await api("GET", "/v1/functions");
22184
+ printEnvelope(listRes);
22185
+ if (listRes.status === 200 && listRes.body?.data?.enabled === false) {
22186
+ console.error("vxil: these functions are PAUSED for the whole project (every invoke answers 404) \u2014 a Free project on the production workload, or a plan downgrade. `vxil projects workload <slug> staging` or an upgrade resumes them.");
22187
+ }
22184
22188
  } else if (sub === "delete") {
22185
22189
  if (!name) fail("usage: vxil functions delete <name>");
22186
22190
  const { api } = requireApi(selector(), { write: `functions delete ${name}` });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxil/cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "private": false,
5
5
  "description": "The vxil CLI — init, quickstart, push, gen, secrets, keys, migrate, doctor, diff, functions, payments; installs the `vxil` command (npm i -g @vxil/cli).",
6
6
  "license": "MIT",