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.
- package/dist/commands/learn.js +6 -4
- package/package.json +1 -1
package/dist/commands/learn.js
CHANGED
|
@@ -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
|
-
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
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