lynxprompt 0.5.2 → 0.5.4
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 +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4826,15 +4826,17 @@ async function runInteractiveWizard(options, detected, userTier) {
|
|
|
4826
4826
|
instructions: false
|
|
4827
4827
|
}, promptConfig);
|
|
4828
4828
|
answers.deploymentTargets = deployResponse.deploymentTargets || [];
|
|
4829
|
+
const dockerSelected = (answers.deploymentTargets || []).includes("docker");
|
|
4829
4830
|
const containerResponse = await prompts4({
|
|
4830
4831
|
type: "toggle",
|
|
4831
4832
|
name: "buildContainer",
|
|
4832
4833
|
message: chalk8.white("Build container images (Docker)?"),
|
|
4833
|
-
initial:
|
|
4834
|
+
initial: dockerSelected,
|
|
4835
|
+
// Default Yes if Docker selected
|
|
4834
4836
|
active: "Yes",
|
|
4835
4837
|
inactive: "No"
|
|
4836
4838
|
}, promptConfig);
|
|
4837
|
-
answers.buildContainer = containerResponse.buildContainer
|
|
4839
|
+
answers.buildContainer = containerResponse.buildContainer ?? dockerSelected;
|
|
4838
4840
|
if (answers.buildContainer) {
|
|
4839
4841
|
const registryResponse = await prompts4({
|
|
4840
4842
|
type: "select",
|
|
@@ -5042,15 +5044,16 @@ async function runInteractiveWizard(options, detected, userTier) {
|
|
|
5042
5044
|
name: "aiBehavior",
|
|
5043
5045
|
message: chalk8.white("AI behavior rules (type to filter):"),
|
|
5044
5046
|
choices: AI_BEHAVIOR_RULES.map((r) => ({
|
|
5045
|
-
title: r.recommended ? `${r.label} ${chalk8.green("\u2605")}` : r.label,
|
|
5047
|
+
title: r.recommended ? `${r.label} ${chalk8.green("\u2605 recommended")}` : r.label,
|
|
5046
5048
|
value: r.id,
|
|
5047
|
-
description: chalk8.gray(r.description)
|
|
5048
|
-
|
|
5049
|
+
description: chalk8.gray(r.description),
|
|
5050
|
+
selected: true
|
|
5051
|
+
// All selected by default
|
|
5049
5052
|
})),
|
|
5050
5053
|
hint: chalk8.gray("type to filter \u2022 space select \u2022 enter confirm"),
|
|
5051
5054
|
instructions: false
|
|
5052
5055
|
}, promptConfig);
|
|
5053
|
-
answers.aiBehavior = aiBehaviorResponse.aiBehavior ||
|
|
5056
|
+
answers.aiBehavior = aiBehaviorResponse.aiBehavior || AI_BEHAVIOR_RULES.map((r) => r.id);
|
|
5054
5057
|
if (answers.aiBehavior.length > 0) {
|
|
5055
5058
|
console.log(chalk8.green(" \u2713 Selected:"));
|
|
5056
5059
|
for (const ruleId of answers.aiBehavior) {
|