@lumerahq/cli 0.32.9 → 0.33.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.
@@ -5,8 +5,8 @@ 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.41.4,<0.42.0";
9
- var FUNCTIONS_SDK_COMPATIBILITY_RANGE = ">=0.34.0,<0.42.0";
8
+ var FUNCTIONS_SDK_VERSION_RANGE = ">=0.42.1,<0.43.0";
9
+ var FUNCTIONS_SDK_COMPATIBILITY_RANGE = ">=0.34.0,<0.43.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
12
  var RELEASE_SDK_REQUIREMENT = `lumera[release]${FUNCTIONS_SDK_VERSION_RANGE}`;
@@ -4,7 +4,7 @@ import {
4
4
  findFunctionsProjectRoot,
5
5
  functions,
6
6
  runFunctionRunner
7
- } from "./chunk-E4D7E7QO.js";
7
+ } from "./chunk-OQKBXKXW.js";
8
8
  import "./chunk-PNKVD2UK.js";
9
9
  export {
10
10
  buildFunctionRunnerArgs,
package/dist/index.js CHANGED
@@ -242,25 +242,25 @@ async function main() {
242
242
  switch (command) {
243
243
  // Resource commands
244
244
  case "plan":
245
- await import("./resources-IIOCZU23.js").then((m) => m.plan(args.slice(1)));
245
+ await import("./resources-LQWCEIJT.js").then((m) => m.plan(args.slice(1)));
246
246
  break;
247
247
  case "apply":
248
- await import("./resources-IIOCZU23.js").then((m) => m.apply(args.slice(1)));
248
+ await import("./resources-LQWCEIJT.js").then((m) => m.apply(args.slice(1)));
249
249
  break;
250
250
  case "pull":
251
- await import("./resources-IIOCZU23.js").then((m) => m.pull(args.slice(1)));
251
+ await import("./resources-LQWCEIJT.js").then((m) => m.pull(args.slice(1)));
252
252
  break;
253
253
  case "destroy":
254
- await import("./resources-IIOCZU23.js").then((m) => m.destroy(args.slice(1)));
254
+ await import("./resources-LQWCEIJT.js").then((m) => m.destroy(args.slice(1)));
255
255
  break;
256
256
  case "list":
257
- await import("./resources-IIOCZU23.js").then((m) => m.list(args.slice(1)));
257
+ await import("./resources-LQWCEIJT.js").then((m) => m.list(args.slice(1)));
258
258
  break;
259
259
  case "show":
260
- await import("./resources-IIOCZU23.js").then((m) => m.show(args.slice(1)));
260
+ await import("./resources-LQWCEIJT.js").then((m) => m.show(args.slice(1)));
261
261
  break;
262
262
  case "diff":
263
- await import("./resources-IIOCZU23.js").then((m) => m.diff(args.slice(1)));
263
+ await import("./resources-LQWCEIJT.js").then((m) => m.diff(args.slice(1)));
264
264
  break;
265
265
  // Development
266
266
  case "dev":
@@ -270,12 +270,12 @@ async function main() {
270
270
  await import("./run-4XFA5ZDJ.js").then((m) => m.run(args.slice(1)));
271
271
  break;
272
272
  case "functions":
273
- await import("./functions-PH4ZJA7U.js").then(
273
+ await import("./functions-WUZVDJUP.js").then(
274
274
  (m) => m.functions(subcommand, args.slice(2))
275
275
  );
276
276
  break;
277
277
  case "project":
278
- await import("./project-6ILDGQUF.js").then(
278
+ await import("./project-2VFG3J42.js").then(
279
279
  (m) => m.project(subcommand, args.slice(2))
280
280
  );
281
281
  break;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RELEASE_SDK_REQUIREMENT,
3
3
  findFunctionsProjectRoot
4
- } from "./chunk-E4D7E7QO.js";
4
+ } from "./chunk-OQKBXKXW.js";
5
5
  import "./chunk-PNKVD2UK.js";
6
6
 
7
7
  // src/commands/project.ts
@@ -3387,6 +3387,7 @@ async function planAgents(api, localAgents, projectId, localSourceSkillSlugs = /
3387
3387
  changes.push({ type: "create", resource: "agent", id: agent.external_id, name: agent.name });
3388
3388
  } else {
3389
3389
  const diffs = [];
3390
+ if (JSON.stringify([...remote.allowed_functions ?? []].sort()) !== JSON.stringify([...agent.allowed_functions ?? []].sort())) diffs.push("allowed_functions");
3390
3391
  if (remote.name !== agent.name) diffs.push("name");
3391
3392
  if ((remote.description || "") !== (agent.description || "")) diffs.push("description");
3392
3393
  if ((remote.system_prompt || "").trim() !== systemPrompt.trim()) diffs.push("system_prompt");
@@ -3497,6 +3498,7 @@ async function applyAgents(api, localAgents, projectId, localSourceSkillSlugs =
3497
3498
  ...agent.thinking_level !== void 0 ? { thinking_level: agent.thinking_level } : {},
3498
3499
  idle_reap_timeout_seconds: agent.idle_reap_timeout_seconds ?? 0,
3499
3500
  skill_ids: skillIds,
3501
+ allowed_functions: agent.allowed_functions ?? [],
3500
3502
  policy_script: policyScript || "",
3501
3503
  policy_enabled: agent.policy_enabled || false,
3502
3504
  policy_description: agent.policy_description || ""
@@ -3554,6 +3556,7 @@ async function pullAgents(api, platformDir, filterName, projectId, appName) {
3554
3556
  name: agent.name
3555
3557
  };
3556
3558
  if (agent.description) config.description = agent.description;
3559
+ config.allowed_functions = agent.allowed_functions ?? [];
3557
3560
  if (agent.model) config.model = agent.model;
3558
3561
  if (agent.thinking_level) config.thinking_level = agent.thinking_level;
3559
3562
  if (agent.idle_reap_timeout_seconds) config.idle_reap_timeout_seconds = agent.idle_reap_timeout_seconds;
@@ -5022,8 +5025,10 @@ async function diff(args) {
5022
5025
  console.log(` policy_enabled: ${pc2.red(String(remote.policy_enabled || false))} \u2192 ${pc2.green(String(local.agent.policy_enabled || false))}`);
5023
5026
  const promptChanged = (remote.system_prompt || "").trim() !== local.systemPrompt.trim();
5024
5027
  const policyChanged = (remote.policy_script || "").trim() !== (local.policyScript || "").trim();
5028
+ const functionsChanged = JSON.stringify([...remote.allowed_functions ?? []].sort()) !== JSON.stringify([...local.agent.allowed_functions ?? []].sort());
5029
+ if (functionsChanged) console.log(` allowed_functions: ${JSON.stringify(remote.allowed_functions ?? [])} \u2192 ${JSON.stringify(local.agent.allowed_functions ?? [])}`);
5025
5030
  const thinkingLevelChanged = local.agent.thinking_level !== void 0 && (remote.thinking_level || "") !== local.agent.thinking_level;
5026
- if (!promptChanged && !policyChanged && !thinkingLevelChanged && remote.name === local.agent.name && (remote.description || "") === (local.agent.description || "") && (remote.model || "") === (local.agent.model || "") && (remote.idle_reap_timeout_seconds ?? 0) === (local.agent.idle_reap_timeout_seconds ?? 0) && (remote.policy_enabled || false) === (local.agent.policy_enabled || false)) {
5031
+ if (!functionsChanged && !promptChanged && !policyChanged && !thinkingLevelChanged && remote.name === local.agent.name && (remote.description || "") === (local.agent.description || "") && (remote.model || "") === (local.agent.model || "") && (remote.idle_reap_timeout_seconds ?? 0) === (local.agent.idle_reap_timeout_seconds ?? 0) && (remote.policy_enabled || false) === (local.agent.policy_enabled || false)) {
5027
5032
  console.log(pc2.green(` \u2713 No changes`));
5028
5033
  } else {
5029
5034
  if (promptChanged) renderFullDiff("system_prompt.md", remote.system_prompt || "", local.systemPrompt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/cli",
3
- "version": "0.32.9",
3
+ "version": "0.33.0",
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.41.4,<0.42.0",
7
+ "lumera[functions]>=0.42.1,<0.43.0",
8
8
  ]
9
9
 
10
10
  [project.optional-dependencies]