lean-spec 0.2.7-dev.20251128020042 → 0.2.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.
@@ -2401,7 +2401,7 @@ var EXAMPLES = {
2401
2401
  description: "Add dark theme support to a professional admin dashboard with charts",
2402
2402
  difficulty: "beginner",
2403
2403
  tutorial: "Your First Spec with AI",
2404
- tutorialUrl: "https://leanspec.dev/docs/tutorials/first-spec-with-ai",
2404
+ tutorialUrl: "https://lean-spec.dev/docs/tutorials/first-spec-with-ai",
2405
2405
  tech: ["HTML", "CSS", "JavaScript", "Chart.js", "Express.js"],
2406
2406
  files: 6,
2407
2407
  lines: 420
@@ -2412,7 +2412,7 @@ var EXAMPLES = {
2412
2412
  description: "Add three new widgets to an analytics dashboard",
2413
2413
  difficulty: "intermediate",
2414
2414
  tutorial: "Managing Multiple Features",
2415
- tutorialUrl: "https://leanspec.dev/docs/tutorials/multiple-features",
2415
+ tutorialUrl: "https://lean-spec.dev/docs/tutorials/multiple-features",
2416
2416
  tech: ["React", "Vite"],
2417
2417
  files: 17,
2418
2418
  lines: 300
@@ -2423,7 +2423,7 @@ var EXAMPLES = {
2423
2423
  description: "Extract reusable API client from monolithic code",
2424
2424
  difficulty: "intermediate",
2425
2425
  tutorial: "Refactoring with Specs",
2426
- tutorialUrl: "https://leanspec.dev/docs/tutorials/refactoring-specs",
2426
+ tutorialUrl: "https://lean-spec.dev/docs/tutorials/refactoring-specs",
2427
2427
  tech: ["Node.js"],
2428
2428
  files: 7,
2429
2429
  lines: 250
@@ -2632,6 +2632,26 @@ async function upgradeConfig(cwd) {
2632
2632
  }
2633
2633
  }
2634
2634
  }
2635
+ const agentsPath = path12.join(cwd, "AGENTS.md");
2636
+ let agentsCreated = false;
2637
+ let agentsPreserved = false;
2638
+ try {
2639
+ await fs8.access(agentsPath);
2640
+ agentsPreserved = true;
2641
+ } catch {
2642
+ const templateDir = path12.join(TEMPLATES_DIR, "standard");
2643
+ const agentsSourcePath = path12.join(templateDir, "AGENTS.md");
2644
+ try {
2645
+ const projectName = await getProjectName2(cwd);
2646
+ let agentsContent = await fs8.readFile(agentsSourcePath, "utf-8");
2647
+ agentsContent = agentsContent.replace(/\{project_name\}/g, projectName);
2648
+ await fs8.writeFile(agentsPath, agentsContent, "utf-8");
2649
+ agentsCreated = true;
2650
+ console.log(chalk15.green("\u2713 Created missing AGENTS.md"));
2651
+ } catch (error) {
2652
+ console.log(chalk15.yellow(`\u26A0 Could not create AGENTS.md: ${error}`));
2653
+ }
2654
+ }
2635
2655
  await saveConfig(upgradedConfig, cwd);
2636
2656
  console.log("");
2637
2657
  console.log(chalk15.green("\u2713 Configuration upgraded!"));
@@ -2641,10 +2661,15 @@ async function upgradeConfig(cwd) {
2641
2661
  if (templatesUpdated) {
2642
2662
  console.log(chalk15.gray(" - Missing templates added"));
2643
2663
  }
2664
+ if (agentsCreated) {
2665
+ console.log(chalk15.gray(" - AGENTS.md created (was missing)"));
2666
+ }
2644
2667
  console.log("");
2645
2668
  console.log(chalk15.gray("What was preserved:"));
2646
2669
  console.log(chalk15.gray(" - Your specs/ directory"));
2647
- console.log(chalk15.gray(" - Your AGENTS.md"));
2670
+ if (agentsPreserved) {
2671
+ console.log(chalk15.gray(" - Your AGENTS.md"));
2672
+ }
2648
2673
  console.log(chalk15.gray(" - Your custom settings"));
2649
2674
  console.log("");
2650
2675
  }
@@ -8061,5 +8086,5 @@ if (import.meta.url === `file://${process.argv[1]}`) {
8061
8086
  }
8062
8087
 
8063
8088
  export { agentCommand, analyzeCommand, archiveCommand, boardCommand, checkCommand, compactCommand, createCommand, createMcpServer, depsCommand, examplesCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, viewCommand };
8064
- //# sourceMappingURL=chunk-JMVYXJV4.js.map
8065
- //# sourceMappingURL=chunk-JMVYXJV4.js.map
8089
+ //# sourceMappingURL=chunk-EBSQ7FUR.js.map
8090
+ //# sourceMappingURL=chunk-EBSQ7FUR.js.map