lynxprompt 1.4.3 → 1.4.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 +21 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3184,6 +3184,15 @@ function generateFileContent(options, platform2) {
|
|
|
3184
3184
|
sections.push(`# ${projectName} - AI Assistant Configuration`);
|
|
3185
3185
|
sections.push("");
|
|
3186
3186
|
}
|
|
3187
|
+
if (options.useGitWorktrees && (isMarkdown || isMdc)) {
|
|
3188
|
+
sections.push("## Before Starting Any Coding Task");
|
|
3189
|
+
sections.push("");
|
|
3190
|
+
sections.push("1. Always create a new git worktree for the task");
|
|
3191
|
+
sections.push("2. Use the naming convention: `git worktree add -b ai/[task-description] ../[repo-name]-ai-[task-description]`");
|
|
3192
|
+
sections.push("3. Navigate to the worktree directory before making any changes");
|
|
3193
|
+
sections.push("4. Commit changes when the task is finished. Merge to main, and clean the worktree.");
|
|
3194
|
+
sections.push("");
|
|
3195
|
+
}
|
|
3187
3196
|
if (options.enableAutoUpdate && options.blueprintId && (isMarkdown || isMdc)) {
|
|
3188
3197
|
const bpId = options.blueprintId.startsWith("bp_") ? options.blueprintId : `bp_${options.blueprintId}`;
|
|
3189
3198
|
const preferCli = options.preferCliSync !== false;
|
|
@@ -4058,7 +4067,7 @@ function generateYamlConfig(options, platform2) {
|
|
|
4058
4067
|
|
|
4059
4068
|
// src/commands/wizard.ts
|
|
4060
4069
|
var DRAFTS_DIR = ".lynxprompt/drafts";
|
|
4061
|
-
var CLI_VERSION = "1.4.
|
|
4070
|
+
var CLI_VERSION = "1.4.4";
|
|
4062
4071
|
async function saveDraftLocally(name, config2, stepReached) {
|
|
4063
4072
|
const draftsPath = join4(process.cwd(), DRAFTS_DIR);
|
|
4064
4073
|
await mkdir3(draftsPath, { recursive: true });
|
|
@@ -6018,6 +6027,14 @@ async function runInteractiveWizard(options, detected, userTier) {
|
|
|
6018
6027
|
// Default to hybrid for most projects
|
|
6019
6028
|
}, promptConfig);
|
|
6020
6029
|
answers.commitWorkflow = commitWorkflowResponse.commitWorkflow || defaultWorkflow;
|
|
6030
|
+
const useGitWorktreesResponse = await prompts3({
|
|
6031
|
+
type: "confirm",
|
|
6032
|
+
name: "useGitWorktrees",
|
|
6033
|
+
message: chalk7.white("\u{1F332} Do you plan on working with several AI agent sessions in this repository?"),
|
|
6034
|
+
initial: true,
|
|
6035
|
+
hint: "If yes, AI will be instructed to always use git worktrees for each task"
|
|
6036
|
+
}, promptConfig);
|
|
6037
|
+
answers.useGitWorktrees = useGitWorktreesResponse.useGitWorktrees ?? true;
|
|
6021
6038
|
const cicdChoices = [
|
|
6022
6039
|
{ title: chalk7.gray("\u23ED Skip"), value: "" },
|
|
6023
6040
|
...CICD_OPTIONS.map((c) => ({
|
|
@@ -7420,6 +7437,8 @@ async function runInteractiveWizard(options, detected, userTier) {
|
|
|
7420
7437
|
planModeFrequency: answers.planModeFrequency,
|
|
7421
7438
|
// Commit workflow
|
|
7422
7439
|
commitWorkflow: answers.commitWorkflow,
|
|
7440
|
+
// Git worktrees for parallel AI sessions
|
|
7441
|
+
useGitWorktrees: answers.useGitWorktrees,
|
|
7423
7442
|
// Additional libraries (not in predefined lists)
|
|
7424
7443
|
additionalLibraries: answers.additionalLibraries,
|
|
7425
7444
|
// Docker image names
|
|
@@ -9584,7 +9603,7 @@ function handleError2(error) {
|
|
|
9584
9603
|
}
|
|
9585
9604
|
|
|
9586
9605
|
// src/index.ts
|
|
9587
|
-
var CLI_VERSION2 = "1.4.
|
|
9606
|
+
var CLI_VERSION2 = "1.4.4";
|
|
9588
9607
|
var program = new Command();
|
|
9589
9608
|
program.name("lynxprompt").description("CLI for LynxPrompt - Generate AI IDE configuration files").version(CLI_VERSION2);
|
|
9590
9609
|
program.command("wizard").description("Generate AI IDE configuration (recommended for most users)").option("-n, --name <name>", "Project name").option("-d, --description <description>", "Project description").option("-s, --stack <stack>", "Tech stack (comma-separated)").option("-f, --format <format>", "Output format: agents, cursor, or comma-separated for multiple").option("-p, --platforms <platforms>", "Alias for --format (deprecated)").option("--persona <persona>", "AI persona (fullstack, backend, frontend, devops, data, security)").option("--boundaries <level>", "Boundary preset (conservative, standard, permissive)").option("-y, --yes", "Skip prompts, use defaults (generates AGENTS.md)").option("-o, --output <dir>", "Output directory (default: current directory)").option("--repo-url <url>", "Analyze remote repository URL (GitHub/GitLab supported)").option("--blueprint", "Generate with [[VARIABLE|default]] placeholders for templates").option("--license <type>", "License type (mit, apache-2.0, gpl-3.0, etc.)").option("--ci-cd <platform>", "CI/CD platform (github_actions, gitlab_ci, jenkins, etc.)").option("--project-type <type>", "Project type (work, leisure, opensource, learning)").option("--detect-only", "Only detect project info, don't generate files").option("--load-draft <name>", "Load a saved wizard draft").option("--save-draft <name>", "Save wizard state as a draft (auto-saves at end)").option("--vars <values>", "Fill variables: VAR1=value1,VAR2=value2").action(wizardCommand);
|