lynxprompt 2.0.8 → 2.0.9

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 CHANGED
@@ -18,7 +18,7 @@ var config = new Conf({
18
18
  },
19
19
  apiUrl: {
20
20
  type: "string",
21
- default: "https://api.lynxprompt.com"
21
+ default: "https://lynxprompt.com"
22
22
  },
23
23
  user: {
24
24
  type: "object",
@@ -31,7 +31,7 @@ var config = new Conf({
31
31
  }
32
32
  },
33
33
  defaults: {
34
- apiUrl: "https://api.lynxprompt.com"
34
+ apiUrl: "https://lynxprompt.com"
35
35
  }
36
36
  });
37
37
  function getToken() {
@@ -145,16 +145,18 @@ var ApiClient = class {
145
145
  return this.request(`/api/blueprints?${params}`);
146
146
  }
147
147
  async createBlueprint(data) {
148
+ const payload = { ...data, content: void 0, content_base64: Buffer.from(data.content).toString("base64") };
148
149
  return this.request("/api/v1/blueprints", {
149
150
  method: "POST",
150
- body: JSON.stringify(data)
151
+ body: JSON.stringify(payload)
151
152
  });
152
153
  }
153
154
  async updateBlueprint(id, data) {
154
155
  const apiId = id.startsWith("bp_") ? id : `bp_${id}`;
156
+ const payload = data.content ? { ...data, content: void 0, content_base64: Buffer.from(data.content).toString("base64") } : data;
155
157
  return this.request(`/api/v1/blueprints/${apiId}`, {
156
158
  method: "PUT",
157
- body: JSON.stringify(data)
159
+ body: JSON.stringify(payload)
158
160
  });
159
161
  }
160
162
  // Hierarchy endpoints
@@ -3212,7 +3214,7 @@ function generateFileContent(options, platform2) {
3212
3214
  sections.push("## Before Starting Any Coding Task");
3213
3215
  sections.push("");
3214
3216
  sections.push("1. Check existing worktrees with `git worktree list` and create a new one for this task if needed");
3215
- sections.push("2. Use the naming convention: `git worktree add -b ai/[task-description] ../[repo-name]-ai-[task-description]`");
3217
+ sections.push("2. Use the naming convention: `git worktree add -b ai/<task> .worktrees/<task>`");
3216
3218
  sections.push("3. Navigate to the worktree directory before making any changes");
3217
3219
  sections.push("4. Commit changes when the task is finished. Merge to main, and clean the worktree.");
3218
3220
  sections.push("");
@@ -5527,7 +5529,7 @@ var TEST_FRAMEWORKS2 = TEST_FRAMEWORKS;
5527
5529
 
5528
5530
  // src/commands/wizard.ts
5529
5531
  var DRAFTS_DIR = ".lynxprompt/drafts";
5530
- var CLI_VERSION = "2.0.8";
5532
+ var CLI_VERSION = "2.0.9";
5531
5533
  async function saveDraftLocally(name, config2, stepReached) {
5532
5534
  const draftsPath = join4(process.cwd(), DRAFTS_DIR);
5533
5535
  await mkdir3(draftsPath, { recursive: true });
@@ -11179,7 +11181,7 @@ async function configCommand(action, valueArg) {
11179
11181
  }
11180
11182
 
11181
11183
  // src/index.ts
11182
- var CLI_VERSION2 = "2.0.8";
11184
+ var CLI_VERSION2 = "2.0.9";
11183
11185
  var program = new Command();
11184
11186
  program.name("lynxprompt").description("CLI for LynxPrompt - Generate AI IDE configuration files").version(CLI_VERSION2);
11185
11187
  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);