lean-spec 0.2.5-dev.20251124060913 → 0.2.5-dev.20251124064307
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/{chunk-6FKLWECL.js → chunk-FYYLWDI6.js} +19 -3
- package/dist/{chunk-6FKLWECL.js.map → chunk-FYYLWDI6.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/templates/_shared/agents-components/enterprise-approval.md +3 -1
- package/templates/_shared/agents-components/workflow-enterprise.md +3 -1
- package/templates/_shared/agents-components/workflow-standard-detailed.md +3 -1
- package/templates/_shared/agents-components/workflow-standard.md +3 -1
- package/templates/enterprise/files/AGENTS.md +6 -2
- package/templates/minimal/files/AGENTS.md +3 -1
- package/templates/standard/files/AGENTS.md +3 -1
|
@@ -2003,7 +2003,7 @@ var __dirname = path15.dirname(fileURLToPath(import.meta.url));
|
|
|
2003
2003
|
var TEMPLATES_DIR = path15.join(__dirname, "..", "templates");
|
|
2004
2004
|
var EXAMPLES_DIR = path15.join(TEMPLATES_DIR, "examples");
|
|
2005
2005
|
function initCommand() {
|
|
2006
|
-
return new Command("init").description("Initialize LeanSpec in current directory").option("-y, --yes", "Skip prompts and use defaults (quick start with standard template)").option("--example
|
|
2006
|
+
return new Command("init").description("Initialize LeanSpec in current directory").option("-y, --yes", "Skip prompts and use defaults (quick start with standard template)").option("--example [name]", "Scaffold an example project for tutorials (interactive if no name provided)").option("--name <dirname>", "Custom directory name for example project").option("--list", "List available example projects").action(async (options) => {
|
|
2007
2007
|
if (options.list) {
|
|
2008
2008
|
await listExamples();
|
|
2009
2009
|
return;
|
|
@@ -2271,6 +2271,18 @@ async function scaffoldExample(exampleName, customName) {
|
|
|
2271
2271
|
const examplePath = path15.join(EXAMPLES_DIR, exampleName);
|
|
2272
2272
|
await copyDirectoryRecursive(examplePath, targetPath);
|
|
2273
2273
|
console.log(chalk19.green("\u2713 Copied example project"));
|
|
2274
|
+
const originalCwd = process.cwd();
|
|
2275
|
+
try {
|
|
2276
|
+
process.chdir(targetPath);
|
|
2277
|
+
console.log(chalk19.gray("Initializing LeanSpec..."));
|
|
2278
|
+
await initProject(true);
|
|
2279
|
+
console.log(chalk19.green("\u2713 Initialized LeanSpec"));
|
|
2280
|
+
} catch (error) {
|
|
2281
|
+
console.error(chalk19.red("Error initializing LeanSpec:"), error);
|
|
2282
|
+
process.exit(1);
|
|
2283
|
+
} finally {
|
|
2284
|
+
process.chdir(originalCwd);
|
|
2285
|
+
}
|
|
2274
2286
|
const packageManager = await detectPackageManager();
|
|
2275
2287
|
console.log(chalk19.gray(`Installing dependencies with ${packageManager}...`));
|
|
2276
2288
|
try {
|
|
@@ -2287,6 +2299,10 @@ async function scaffoldExample(exampleName, customName) {
|
|
|
2287
2299
|
console.log("");
|
|
2288
2300
|
console.log(chalk19.green("\u2713 Example project ready!"));
|
|
2289
2301
|
console.log("");
|
|
2302
|
+
console.log(chalk19.gray("Created:"));
|
|
2303
|
+
console.log(chalk19.gray(` - Application code (${example.tech.join(", ")})`));
|
|
2304
|
+
console.log(chalk19.gray(" - LeanSpec files (AGENTS.md, .lean-spec/, specs/)"));
|
|
2305
|
+
console.log("");
|
|
2290
2306
|
console.log("Next steps:");
|
|
2291
2307
|
console.log(chalk19.cyan(` 1. cd ${targetDirName}`));
|
|
2292
2308
|
console.log(chalk19.cyan(" 2. Open this project in your editor"));
|
|
@@ -8792,5 +8808,5 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
8792
8808
|
}
|
|
8793
8809
|
|
|
8794
8810
|
export { analyzeCommand, archiveCommand, backfillCommand, boardCommand, checkCommand, compactCommand, createCommand, createMcpServer, depsCommand, examplesCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, validateCommand, viewCommand };
|
|
8795
|
-
//# sourceMappingURL=chunk-
|
|
8796
|
-
//# sourceMappingURL=chunk-
|
|
8811
|
+
//# sourceMappingURL=chunk-FYYLWDI6.js.map
|
|
8812
|
+
//# sourceMappingURL=chunk-FYYLWDI6.js.map
|