pulse-framework-cli 0.4.7 → 0.4.8

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.
@@ -26,10 +26,12 @@ function registerLearnCommand(program) {
26
26
  // eslint-disable-next-line no-console
27
27
  console.log("\n📚 PULSE Learn\n");
28
28
  // Gather information
29
- const problem = opts.problem ?? (await (0, input_js_1.promptText)("What was the problem?", ""));
30
- const solution = opts.solution ?? (await (0, input_js_1.promptText)("What was the solution?", ""));
31
- const rule = opts.rule ?? (await (0, input_js_1.promptText)("Derived rule (what to observe?)", ""));
32
- const reason = opts.reason ?? (await (0, input_js_1.promptText)("Why? (optional)", ""));
29
+ // If --no-promote is set, skip interactive prompts (non-interactive mode)
30
+ const isInteractive = opts.promote !== false;
31
+ const problem = opts.problem ?? (isInteractive ? await (0, input_js_1.promptText)("What was the problem?", "") : "");
32
+ const solution = opts.solution ?? (isInteractive ? await (0, input_js_1.promptText)("What was the solution?", "") : "");
33
+ const rule = opts.rule ?? (isInteractive ? await (0, input_js_1.promptText)("Derived rule (what to observe?)", "") : "");
34
+ const reason = opts.reason ?? (isInteractive ? await (0, input_js_1.promptText)("Why? (optional)", "") : "");
33
35
  const ts = (0, artifacts_js_1.timestampId)();
34
36
  // ════════════════════════════════════════════════════════════════════════
35
37
  // Create memory entry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-framework-cli",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Pulse Framework CLI – Guardrails, checkpoints, and escalation for AI-assisted development.",
5
5
  "author": "Manuel Fuß <kontakt@manuel-fuss.de>",
6
6
  "license": "MIT",