@lumerahq/cli 0.30.12 → 0.30.13

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.
@@ -5,11 +5,11 @@ import { join, resolve } from "path";
5
5
  import pc from "picocolors";
6
6
 
7
7
  // src/lib/functions-sdk.ts
8
- var FUNCTIONS_SDK_VERSION_RANGE = ">=0.36.2,<0.37.0";
9
- var FUNCTIONS_SDK_COMPATIBILITY_RANGE = ">=0.34.0,<0.37.0";
8
+ var FUNCTIONS_SDK_VERSION_RANGE = ">=0.38.1,<0.39.0";
9
+ var FUNCTIONS_SDK_COMPATIBILITY_RANGE = ">=0.34.0,<0.39.0";
10
10
  var FUNCTIONS_SDK_REQUIREMENT = `lumera[functions]${FUNCTIONS_SDK_COMPATIBILITY_RANGE}`;
11
11
  var DEFAULT_FUNCTIONS_SDK_REQUIREMENT = `lumera[functions]${FUNCTIONS_SDK_VERSION_RANGE}`;
12
- var RELEASE_SDK_REQUIREMENT = `lumera[release]${FUNCTIONS_SDK_COMPATIBILITY_RANGE}`;
12
+ var RELEASE_SDK_REQUIREMENT = `lumera[release]${FUNCTIONS_SDK_VERSION_RANGE}`;
13
13
 
14
14
  // src/commands/functions.ts
15
15
  var SUPPORTED_SUBCOMMANDS = /* @__PURE__ */ new Set(["list", "inspect", "invoke", "test"]);
@@ -4,7 +4,7 @@ import {
4
4
  findFunctionsProjectRoot,
5
5
  functions,
6
6
  runFunctionRunner
7
- } from "./chunk-ROARJJVX.js";
7
+ } from "./chunk-AEZLQMFF.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-G37WQWTG.js").then(
271
+ await import("./functions-DZCNHDRJ.js").then(
272
272
  (m) => m.functions(subcommand, args.slice(2))
273
273
  );
274
274
  break;
275
275
  case "project":
276
- await import("./project-GAVODH6S.js").then(
276
+ await import("./project-3HITJUM4.js").then(
277
277
  (m) => m.project(subcommand, args.slice(2))
278
278
  );
279
279
  break;
@@ -1,13 +1,11 @@
1
1
  import {
2
2
  RELEASE_SDK_REQUIREMENT,
3
3
  findFunctionsProjectRoot
4
- } from "./chunk-ROARJJVX.js";
4
+ } from "./chunk-AEZLQMFF.js";
5
5
  import "./chunk-PNKVD2UK.js";
6
6
 
7
7
  // src/commands/project.ts
8
8
  import { spawn } from "child_process";
9
- import { mkdirSync } from "fs";
10
- import { join } from "path";
11
9
  import pc from "picocolors";
12
10
  var RELEASE_PROTOCOL_VERSION = 1;
13
11
  var RELEASE_COMMANDS = /* @__PURE__ */ new Set([
@@ -17,32 +15,6 @@ var RELEASE_COMMANDS = /* @__PURE__ */ new Set([
17
15
  "deploy",
18
16
  "deploy-runtime"
19
17
  ]);
20
- function releaseCommandOutput(command, args, result) {
21
- if (command !== "deploy" || !result.envelope.ok || result.envelope.activation_required === true) {
22
- return result.raw;
23
- }
24
- const deployment = result.envelope.deployment;
25
- const release = typeof deployment === "object" && deployment !== null ? deployment.release : void 0;
26
- const releaseId = typeof release === "object" && release !== null ? String(release.id ?? "") : "";
27
- const projectIndex = args.indexOf("--project");
28
- const projectRef = projectIndex >= 0 ? String(args[projectIndex + 1] ?? "") : "";
29
- if (!releaseId || !projectRef) return result.raw;
30
- return `${JSON.stringify({
31
- ...result.envelope,
32
- activation_required: true,
33
- message: "Release uploaded but inactive; deploy it before invoking Functions.",
34
- next_command: [
35
- "lumera",
36
- "project",
37
- "release",
38
- "deploy-runtime",
39
- releaseId,
40
- "--project",
41
- projectRef
42
- ]
43
- })}
44
- `;
45
- }
46
18
  function showHelp() {
47
19
  console.log(`
48
20
  ${pc.dim("Usage:")}
@@ -76,17 +48,11 @@ function buildReleaseRunnerArgs(command, args, projectRoot) {
76
48
  ...args
77
49
  ];
78
50
  }
79
- async function runReleaseRunner(runnerArgs, projectRoot, releaseCommand, spawnRunner = (command, args, options) => spawn(command, args, options)) {
80
- let runnerEnvironment = process.env;
81
- if (releaseCommand === "build") {
82
- const releaseTempRoot = join(projectRoot, ".lumera", "tmp");
83
- mkdirSync(releaseTempRoot, { recursive: true, mode: 448 });
84
- runnerEnvironment = { ...process.env, TMPDIR: releaseTempRoot };
85
- }
51
+ async function runReleaseRunner(runnerArgs, projectRoot, spawnRunner = (command, args, options) => spawn(command, args, options)) {
86
52
  return await new Promise((resolvePromise, reject) => {
87
53
  const child = spawnRunner("uv", runnerArgs, {
88
54
  cwd: projectRoot,
89
- env: runnerEnvironment,
55
+ env: process.env,
90
56
  shell: false,
91
57
  stdio: ["inherit", "pipe", "inherit"]
92
58
  });
@@ -130,10 +96,9 @@ async function project(subcommand, args, dependencies = {}) {
130
96
  const projectRoot = findProjectRoot();
131
97
  const result = await runRunner(
132
98
  buildReleaseRunnerArgs(releaseCommand, releaseArgs, projectRoot),
133
- projectRoot,
134
- releaseCommand
99
+ projectRoot
135
100
  );
136
- writeOutput(releaseCommandOutput(releaseCommand, releaseArgs, result));
101
+ writeOutput(result.raw);
137
102
  if (result.code !== 0) process.exitCode = result.code;
138
103
  } catch (error) {
139
104
  writeOutput(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/cli",
3
- "version": "0.30.12",
3
+ "version": "0.30.13",
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.36.2,<0.37.0",
7
+ "lumera[functions]>=0.38.1,<0.39.0",
8
8
  ]
9
9
 
10
10
  [project.optional-dependencies]