@lumerahq/cli 0.20.0 → 0.21.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/index.js
CHANGED
|
@@ -226,25 +226,25 @@ async function main() {
|
|
|
226
226
|
switch (command) {
|
|
227
227
|
// Resource commands
|
|
228
228
|
case "plan":
|
|
229
|
-
await import("./resources-
|
|
229
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.plan(args.slice(1)));
|
|
230
230
|
break;
|
|
231
231
|
case "apply":
|
|
232
|
-
await import("./resources-
|
|
232
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.apply(args.slice(1)));
|
|
233
233
|
break;
|
|
234
234
|
case "pull":
|
|
235
|
-
await import("./resources-
|
|
235
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.pull(args.slice(1)));
|
|
236
236
|
break;
|
|
237
237
|
case "destroy":
|
|
238
|
-
await import("./resources-
|
|
238
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.destroy(args.slice(1)));
|
|
239
239
|
break;
|
|
240
240
|
case "list":
|
|
241
|
-
await import("./resources-
|
|
241
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.list(args.slice(1)));
|
|
242
242
|
break;
|
|
243
243
|
case "show":
|
|
244
|
-
await import("./resources-
|
|
244
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.show(args.slice(1)));
|
|
245
245
|
break;
|
|
246
246
|
case "diff":
|
|
247
|
-
await import("./resources-
|
|
247
|
+
await import("./resources-W7TYJOQN.js").then((m) => m.diff(args.slice(1)));
|
|
248
248
|
break;
|
|
249
249
|
// Development
|
|
250
250
|
case "dev":
|
|
@@ -2306,6 +2306,7 @@ async function planAgents(api, localAgents, projectId) {
|
|
|
2306
2306
|
if ((remote.description || "") !== (agent.description || "")) diffs.push("description");
|
|
2307
2307
|
if ((remote.system_prompt || "").trim() !== systemPrompt.trim()) diffs.push("system_prompt");
|
|
2308
2308
|
if ((remote.model || "") !== (agent.model || "")) diffs.push("model");
|
|
2309
|
+
if (agent.thinking_level !== void 0 && (remote.thinking_level || "") !== agent.thinking_level) diffs.push("thinking_level");
|
|
2309
2310
|
if ((remote.idle_reap_timeout_seconds ?? 0) !== (agent.idle_reap_timeout_seconds ?? 0)) diffs.push("idle_reap_timeout_seconds");
|
|
2310
2311
|
if ((remote.policy_script || "").trim() !== (policyScript || "").trim()) diffs.push("policy_script");
|
|
2311
2312
|
if ((remote.policy_enabled || false) !== (agent.policy_enabled || false)) diffs.push("policy_enabled");
|
|
@@ -2399,6 +2400,7 @@ async function applyAgents(api, localAgents, projectId) {
|
|
|
2399
2400
|
description: agent.description || "",
|
|
2400
2401
|
system_prompt: systemPrompt,
|
|
2401
2402
|
model: agent.model || "",
|
|
2403
|
+
...agent.thinking_level !== void 0 ? { thinking_level: agent.thinking_level } : {},
|
|
2402
2404
|
idle_reap_timeout_seconds: agent.idle_reap_timeout_seconds ?? 0,
|
|
2403
2405
|
skill_ids: skillIds,
|
|
2404
2406
|
policy_script: policyScript || "",
|
|
@@ -2457,6 +2459,7 @@ async function pullAgents(api, platformDir, filterName, projectId) {
|
|
|
2457
2459
|
};
|
|
2458
2460
|
if (agent.description) config.description = agent.description;
|
|
2459
2461
|
if (agent.model) config.model = agent.model;
|
|
2462
|
+
if (agent.thinking_level) config.thinking_level = agent.thinking_level;
|
|
2460
2463
|
if (agent.idle_reap_timeout_seconds) config.idle_reap_timeout_seconds = agent.idle_reap_timeout_seconds;
|
|
2461
2464
|
if (skillSlugs.length > 0) config.skills = skillSlugs;
|
|
2462
2465
|
if (agent.policy_enabled) config.policy_enabled = true;
|
|
@@ -3702,13 +3705,16 @@ async function diff(args) {
|
|
|
3702
3705
|
console.log(` description: ${pc2.red(remote.description || "(empty)")} \u2192 ${pc2.green(local.agent.description || "(empty)")}`);
|
|
3703
3706
|
if ((remote.model || "") !== (local.agent.model || ""))
|
|
3704
3707
|
console.log(` model: ${pc2.red(remote.model || "(default)")} \u2192 ${pc2.green(local.agent.model || "(default)")}`);
|
|
3708
|
+
if (local.agent.thinking_level !== void 0 && (remote.thinking_level || "") !== local.agent.thinking_level)
|
|
3709
|
+
console.log(` thinking_level: ${pc2.red(remote.thinking_level || "(default)")} \u2192 ${pc2.green(local.agent.thinking_level)}`);
|
|
3705
3710
|
if ((remote.idle_reap_timeout_seconds ?? 0) !== (local.agent.idle_reap_timeout_seconds ?? 0))
|
|
3706
3711
|
console.log(` idle_reap_timeout_seconds: ${pc2.red(String(remote.idle_reap_timeout_seconds ?? 0))} \u2192 ${pc2.green(String(local.agent.idle_reap_timeout_seconds ?? 0))}`);
|
|
3707
3712
|
if ((remote.policy_enabled || false) !== (local.agent.policy_enabled || false))
|
|
3708
3713
|
console.log(` policy_enabled: ${pc2.red(String(remote.policy_enabled || false))} \u2192 ${pc2.green(String(local.agent.policy_enabled || false))}`);
|
|
3709
3714
|
const promptChanged = (remote.system_prompt || "").trim() !== local.systemPrompt.trim();
|
|
3710
3715
|
const policyChanged = (remote.policy_script || "").trim() !== (local.policyScript || "").trim();
|
|
3711
|
-
|
|
3716
|
+
const thinkingLevelChanged = local.agent.thinking_level !== void 0 && (remote.thinking_level || "") !== local.agent.thinking_level;
|
|
3717
|
+
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)) {
|
|
3712
3718
|
console.log(pc2.green(` \u2713 No changes`));
|
|
3713
3719
|
} else {
|
|
3714
3720
|
if (promptChanged) renderFullDiff("system_prompt.md", remote.system_prompt || "", local.systemPrompt);
|