@lumerahq/cli 0.30.3 → 0.30.5

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.
@@ -3,8 +3,14 @@ import { spawn } from "child_process";
3
3
  import { existsSync } from "fs";
4
4
  import { join, resolve } from "path";
5
5
  import pc from "picocolors";
6
+
7
+ // src/lib/functions-sdk.ts
8
+ var FUNCTIONS_SDK_VERSION_RANGE = ">=0.34.0,<0.35.0";
9
+ var FUNCTIONS_SDK_REQUIREMENT = `lumera[functions]${FUNCTIONS_SDK_VERSION_RANGE}`;
10
+ var RELEASE_SDK_REQUIREMENT = `lumera[release]${FUNCTIONS_SDK_VERSION_RANGE}`;
11
+
12
+ // src/commands/functions.ts
6
13
  var SUPPORTED_SUBCOMMANDS = /* @__PURE__ */ new Set(["list", "inspect", "invoke", "test"]);
7
- var FUNCTIONS_SDK_REQUIREMENT = "lumera[functions]>=0.33.0,<0.34.0";
8
14
  var FUNCTIONS_RUNNER_PROTOCOL_VERSION = 1;
9
15
  function errorMessage(error, fallback) {
10
16
  return error instanceof Error && error.message ? error.message : fallback;
@@ -215,6 +221,7 @@ async function functions(subcommand, args, dependencies = {}) {
215
221
  }
216
222
 
217
223
  export {
224
+ RELEASE_SDK_REQUIREMENT,
218
225
  emitFunctionCliFailure,
219
226
  findFunctionsProjectRoot,
220
227
  buildFunctionRunnerArgs,
@@ -4,7 +4,7 @@ import {
4
4
  findFunctionsProjectRoot,
5
5
  functions,
6
6
  runFunctionRunner
7
- } from "./chunk-FLFEF2BN.js";
7
+ } from "./chunk-LDDGLPAZ.js";
8
8
  import "./chunk-PNKVD2UK.js";
9
9
  export {
10
10
  buildFunctionRunnerArgs,
package/dist/index.js CHANGED
@@ -268,12 +268,12 @@ async function main() {
268
268
  await import("./run-EBTA3FKD.js").then((m) => m.run(args.slice(1)));
269
269
  break;
270
270
  case "functions":
271
- await import("./functions-55J6E2RF.js").then(
271
+ await import("./functions-NE5PVRQU.js").then(
272
272
  (m) => m.functions(subcommand, args.slice(2))
273
273
  );
274
274
  break;
275
275
  case "project":
276
- await import("./project-6POVRBZL.js").then(
276
+ await import("./project-M4PV6OBO.js").then(
277
277
  (m) => m.project(subcommand, args.slice(2))
278
278
  );
279
279
  break;
@@ -1,20 +1,19 @@
1
1
  import {
2
+ RELEASE_SDK_REQUIREMENT,
2
3
  findFunctionsProjectRoot
3
- } from "./chunk-FLFEF2BN.js";
4
+ } from "./chunk-LDDGLPAZ.js";
4
5
  import "./chunk-PNKVD2UK.js";
5
6
 
6
7
  // src/commands/project.ts
7
8
  import { spawn } from "child_process";
8
9
  import pc from "picocolors";
9
- var RELEASE_SDK_REQUIREMENT = "lumera[release]>=0.33.0,<0.34.0";
10
10
  var RELEASE_PROTOCOL_VERSION = 1;
11
11
  var RELEASE_COMMANDS = /* @__PURE__ */ new Set([
12
12
  "build",
13
13
  "inspect",
14
14
  "contract-test",
15
15
  "deploy",
16
- "stage",
17
- "activate"
16
+ "deploy-runtime"
18
17
  ]);
19
18
  function showHelp() {
20
19
  console.log(`
@@ -23,13 +22,11 @@ ${pc.dim("Usage:")}
23
22
  lumera project release inspect <archive> [--expected-digest <sha256>]
24
23
  lumera project release contract-test <archive> [--mode api|worker|all]
25
24
  lumera project release deploy <archive> --project <project-id>
26
- lumera project release stage <release-id> --project <project-id> --expected-generation <n>
27
- lumera project release activate <deployment-id> --project <project-id> --expected-generation <n>
25
+ lumera project release deploy-runtime <release-id> --project <project-id>
28
26
 
29
27
  ${pc.dim("Description:")}
30
28
  Build, verify, and contract-test immutable Python 3.13/Linux/ARM64 project
31
- releases, upload an inactive resource, stage a healthy runtime, and activate
32
- it atomically with an expected generation.
29
+ releases, upload an inactive resource, and deploy it to the project's runtime.
33
30
  `);
34
31
  }
35
32
  function buildReleaseRunnerArgs(command, args, projectRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/cli",
3
- "version": "0.30.3",
3
+ "version": "0.30.5",
4
4
  "description": "CLI for building and deploying Lumera apps",
5
5
  "type": "module",
6
6
  "engines": {
@@ -4,7 +4,7 @@ version = "0.1.0"
4
4
  description = "{{projectTitle}} - Lumera custom app"
5
5
  requires-python = ">=3.11"
6
6
  dependencies = [
7
- "lumera[functions]>=0.33.0,<0.34.0",
7
+ "lumera[functions]>=0.34.0,<0.35.0",
8
8
  ]
9
9
 
10
10
  [project.optional-dependencies]