lynxprompt 2.0.2 → 2.0.3
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 +5 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -516,8 +516,7 @@ function handleApiError(error) {
|
|
|
516
516
|
if (error.statusCode === 401) {
|
|
517
517
|
console.error(chalk4.red("Your session has expired. Please run 'lynxprompt login' again."));
|
|
518
518
|
} else if (error.statusCode === 403) {
|
|
519
|
-
console.error(chalk4.red("API access error. Please check your
|
|
520
|
-
console.error(chalk4.gray("Visit https://lynxprompt.com/pricing for plan details."));
|
|
519
|
+
console.error(chalk4.red("API access error. Please check your account."));
|
|
521
520
|
} else {
|
|
522
521
|
console.error(chalk4.red(`Error: ${error.message}`));
|
|
523
522
|
}
|
|
@@ -5482,7 +5481,7 @@ var TEST_FRAMEWORKS2 = TEST_FRAMEWORKS;
|
|
|
5482
5481
|
|
|
5483
5482
|
// src/commands/wizard.ts
|
|
5484
5483
|
var DRAFTS_DIR = ".lynxprompt/drafts";
|
|
5485
|
-
var CLI_VERSION = "2.0.
|
|
5484
|
+
var CLI_VERSION = "2.0.3";
|
|
5486
5485
|
async function saveDraftLocally(name, config2, stepReached) {
|
|
5487
5486
|
const draftsPath = join4(process.cwd(), DRAFTS_DIR);
|
|
5488
5487
|
await mkdir3(draftsPath, { recursive: true });
|
|
@@ -6516,7 +6515,7 @@ async function runWizardWithDraftProtection(options) {
|
|
|
6516
6515
|
const accessibleSteps = getAvailableSteps(userTier);
|
|
6517
6516
|
const lockedSteps = WIZARD_STEPS.length - accessibleSteps.length;
|
|
6518
6517
|
if (lockedSteps > 0) {
|
|
6519
|
-
console.log(chalk7.gray(` ${lockedSteps} step${lockedSteps > 1 ? "s" : ""} locked
|
|
6518
|
+
console.log(chalk7.gray(` ${lockedSteps} step${lockedSteps > 1 ? "s" : ""} locked.`));
|
|
6520
6519
|
console.log();
|
|
6521
6520
|
}
|
|
6522
6521
|
let detected = await detectProject(process.cwd());
|
|
@@ -8883,10 +8882,9 @@ async function searchCommand(query, options) {
|
|
|
8883
8882
|
}
|
|
8884
8883
|
}
|
|
8885
8884
|
function printSearchResult(result) {
|
|
8886
|
-
const priceInfo = result.price ? chalk8.yellow(`\u20AC${(result.price / 100).toFixed(2)}`) : chalk8.green("Free");
|
|
8887
8885
|
const officialBadge = result.isOfficial ? chalk8.magenta(" \u2605 Official") : "";
|
|
8888
8886
|
console.log(` ${chalk8.bold(result.name)}${officialBadge}`);
|
|
8889
|
-
console.log(` ${chalk8.cyan(result.id)}
|
|
8887
|
+
console.log(` ${chalk8.cyan(result.id)}`);
|
|
8890
8888
|
if (result.description) {
|
|
8891
8889
|
console.log(` ${chalk8.gray(truncate2(result.description, 60))}`);
|
|
8892
8890
|
}
|
|
@@ -9129,8 +9127,6 @@ function validateMarkdown(content, filename) {
|
|
|
9129
9127
|
}
|
|
9130
9128
|
}
|
|
9131
9129
|
const secretPatterns = [
|
|
9132
|
-
/sk[_-][a-zA-Z0-9]{20,}/,
|
|
9133
|
-
// Stripe-like keys
|
|
9134
9130
|
/ghp_[a-zA-Z0-9]{36}/,
|
|
9135
9131
|
// GitHub tokens
|
|
9136
9132
|
/api[_-]?key[_-]?=\s*[a-zA-Z0-9]{20,}/i
|
|
@@ -11070,7 +11066,7 @@ async function configCommand(action, valueArg) {
|
|
|
11070
11066
|
}
|
|
11071
11067
|
|
|
11072
11068
|
// src/index.ts
|
|
11073
|
-
var CLI_VERSION2 = "2.0.
|
|
11069
|
+
var CLI_VERSION2 = "2.0.3";
|
|
11074
11070
|
var program = new Command();
|
|
11075
11071
|
program.name("lynxprompt").description("CLI for LynxPrompt - Generate AI IDE configuration files").version(CLI_VERSION2);
|
|
11076
11072
|
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);
|