lean-spec 0.2.6-dev.20251126064548 → 0.2.7-dev.20251126090057
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-KJ2FT3JZ.js → chunk-DRNMGD4H.js} +4921 -3676
- package/dist/chunk-DRNMGD4H.js.map +1 -0
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/templates/detailed/AGENTS.md +18 -1
- package/templates/standard/AGENTS.md +18 -1
- package/dist/chunk-KJ2FT3JZ.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { analyzeCommand, archiveCommand, backfillCommand, boardCommand, checkCommand, compactCommand, createCommand, depsCommand, examplesCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, validateCommand, viewCommand } from './chunk-
|
|
1
|
+
import { agentCommand, analyzeCommand, archiveCommand, backfillCommand, boardCommand, checkCommand, compactCommand, createCommand, depsCommand, examplesCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, validateCommand, viewCommand } from './chunk-DRNMGD4H.js';
|
|
2
2
|
import './chunk-LVD7ZAVZ.js';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import { readFileSync } from 'fs';
|
|
@@ -7,6 +7,7 @@ import { dirname, join } from 'path';
|
|
|
7
7
|
|
|
8
8
|
// src/commands/registry.ts
|
|
9
9
|
function registerCommands(program2) {
|
|
10
|
+
program2.addCommand(agentCommand());
|
|
10
11
|
program2.addCommand(analyzeCommand());
|
|
11
12
|
program2.addCommand(archiveCommand());
|
|
12
13
|
program2.addCommand(backfillCommand());
|
|
@@ -87,6 +88,7 @@ Command Groups:
|
|
|
87
88
|
templates Manage spec templates
|
|
88
89
|
|
|
89
90
|
Integration:
|
|
91
|
+
agent Dispatch specs to AI coding agents
|
|
90
92
|
mcp Start MCP server for AI assistants
|
|
91
93
|
ui Start local web UI for spec management
|
|
92
94
|
|
|
@@ -112,6 +114,9 @@ Examples:
|
|
|
112
114
|
$ lean-spec tokens 059
|
|
113
115
|
$ lean-spec analyze 045 --json
|
|
114
116
|
$ lean-spec split 045 --output README.md:1-150 --output DESIGN.md:151-end
|
|
117
|
+
$ lean-spec agent list
|
|
118
|
+
$ lean-spec agent run 045 --agent claude
|
|
119
|
+
$ lean-spec agent run 045 047 048 --parallel
|
|
115
120
|
$ lean-spec ui
|
|
116
121
|
$ lean-spec ui --port 3001 --no-open
|
|
117
122
|
$ lean-spec ui --specs ./docs/specs --dry-run
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/registry.ts","../src/cli.ts"],"names":["program"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/commands/registry.ts","../src/cli.ts"],"names":["program"],"mappings":";;;;;;;;AAoCO,SAAS,iBAAiBA,QAAAA,EAAwB;AAEvD,EAAAA,QAAAA,CAAQ,UAAA,CAAW,YAAA,EAAc,CAAA;AACjC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,cAAA,EAAgB,CAAA;AACnC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,cAAA,EAAgB,CAAA;AACnC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,eAAA,EAAiB,CAAA;AACpC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,YAAA,EAAc,CAAA;AACjC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,YAAA,EAAc,CAAA;AACjC,EAAAA,QAAAA,CAAQ,UAAA,CAAW,cAAA,EAAgB,CAAA;AACnC,EAAAA,QAAAA,CAAQ,UAAA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AA,EAAa,CAAA;AAClC;;;AC5DA,IAAM,UAAA,GAAa,aAAA,CAAc,MAAA,CAAA,IAAA,CAAY,GAAG,CAAA;AAChD,IAAM,SAAA,GAAY,QAAQ,UAAU,CAAA;AACpC,IAAM,cAAc,IAAA,CAAK,KAAA;AAAA,EACvB,YAAA,CAAa,IAAA,CAAK,SAAA,EAAW,iBAAiB,GAAG,OAAO;AAC1D,CAAA;AAEA,IAAM,OAAA,GAAU,IAAI,OAAA,EAAQ;AAE5B,OAAA,CACG,IAAA,CAAK,WAAW,CAAA,CAChB,WAAA,CAAY,2BAA2B,CAAA,CACvC,OAAA,CAAQ,YAAY,OAAO,CAAA;AAG9B,OAAA,CAAQ,YAAY,OAAA,EAAS;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CA0E5B,CAAA;AAGD,gBAAA,CAAiB,OAAO,CAAA;AAGxB,OAAA,CAAQ,KAAA,EAAM","file":"cli.js","sourcesContent":["import { Command } from 'commander';\nimport {\n agentCommand,\n analyzeCommand,\n archiveCommand,\n backfillCommand,\n boardCommand,\n checkCommand,\n compactCommand,\n createCommand,\n depsCommand,\n examplesCommand,\n filesCommand,\n ganttCommand,\n initCommand,\n linkCommand,\n listCommand,\n mcpCommand,\n migrateCommand,\n openCommand,\n searchCommand,\n splitCommand,\n statsCommand,\n templatesCommand,\n timelineCommand,\n tokensCommand,\n uiCommand,\n unlinkCommand,\n updateCommand,\n validateCommand,\n viewCommand,\n} from './index.js';\n\n/**\n * Register all commands in alphabetical order\n */\nexport function registerCommands(program: Command): void {\n // Alphabetically sorted command registration\n program.addCommand(agentCommand());\n program.addCommand(analyzeCommand());\n program.addCommand(archiveCommand());\n program.addCommand(backfillCommand());\n program.addCommand(boardCommand());\n program.addCommand(checkCommand());\n program.addCommand(compactCommand());\n program.addCommand(createCommand());\n program.addCommand(depsCommand());\n program.addCommand(examplesCommand());\n program.addCommand(filesCommand());\n program.addCommand(ganttCommand());\n program.addCommand(initCommand());\n program.addCommand(linkCommand());\n program.addCommand(listCommand());\n program.addCommand(mcpCommand());\n program.addCommand(migrateCommand());\n program.addCommand(openCommand());\n program.addCommand(searchCommand());\n program.addCommand(splitCommand());\n program.addCommand(statsCommand());\n program.addCommand(templatesCommand());\n program.addCommand(timelineCommand());\n program.addCommand(tokensCommand());\n program.addCommand(uiCommand());\n program.addCommand(unlinkCommand());\n program.addCommand(updateCommand());\n program.addCommand(validateCommand());\n program.addCommand(viewCommand());\n}\n","import { Command } from 'commander';\nimport { readFileSync } from 'fs';\nimport { fileURLToPath } from 'url';\nimport { dirname, join } from 'path';\nimport { registerCommands } from './commands/registry.js';\n\n// Get version from package.json\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\nconst packageJson = JSON.parse(\n readFileSync(join(__dirname, '../package.json'), 'utf-8')\n);\n\nconst program = new Command();\n\nprogram\n .name('lean-spec')\n .description('Manage LeanSpec documents')\n .version(packageJson.version);\n\n// Add custom help text with grouped commands\nprogram.addHelpText('after', `\nCommand Groups:\n\n Core Workflow:\n archive <spec> Move spec to archived/\n backfill [specs...] Backfill timestamps from git history\n create <name> Create new spec\n examples List example projects for tutorials\n init Initialize LeanSpec in current directory\n link <spec> Add relationships between specs\n migrate <input-path> Migrate specs from other SDD tools\n unlink <spec> Remove relationships between specs\n update <spec> Update spec metadata\n \n Discovery & Search:\n files <spec> List files in a spec\n list List all specs\n open <spec> Open spec in editor\n search <query> Full-text search with metadata filters\n view <spec> View spec content\n \n Project Analytics:\n board Show Kanban-style board view\n deps <spec> Show dependency graph for a spec\n gantt Show timeline with dependencies\n stats Show aggregate statistics\n timeline Show creation/completion over time\n \n Quality & Optimization:\n analyze <spec> Analyze spec complexity and structure\n check Check for sequence conflicts\n tokens [spec] Count tokens for LLM context management\n validate [specs...] Validate specs for quality issues\n \n Advanced Editing:\n compact <spec> Remove specified line ranges from spec\n split <spec> Split spec into multiple files\n \n Configuration:\n templates Manage spec templates\n \n Integration:\n agent Dispatch specs to AI coding agents\n mcp Start MCP server for AI assistants\n ui Start local web UI for spec management\n\nExamples:\n $ lean-spec init\n $ lean-spec init -y\n $ lean-spec init --example dark-theme\n $ lean-spec init --example dashboard-widgets --name my-demo\n $ lean-spec examples\n $ lean-spec create my-feature --priority high\n $ lean-spec list --status in-progress\n $ lean-spec view 042\n $ lean-spec link 085 --depends-on 042,035\n $ lean-spec link 085 --related 082\n $ lean-spec unlink 085 --depends-on 042\n $ lean-spec deps 085\n $ lean-spec backfill --dry-run\n $ lean-spec migrate ./docs/adr\n $ lean-spec migrate ./docs/rfcs --with copilot\n $ lean-spec board --tag backend\n $ lean-spec search \"authentication\"\n $ lean-spec validate\n $ lean-spec tokens 059\n $ lean-spec analyze 045 --json\n $ lean-spec split 045 --output README.md:1-150 --output DESIGN.md:151-end\n $ lean-spec agent list\n $ lean-spec agent run 045 --agent claude\n $ lean-spec agent run 045 047 048 --parallel\n $ lean-spec ui\n $ lean-spec ui --port 3001 --no-open\n $ lean-spec ui --specs ./docs/specs --dry-run\n`);\n\n// Register all commands (alphabetically ordered)\nregisterCommands(program);\n\n// Parse and execute\nprogram.parse();\n"]}
|
package/dist/mcp-server.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Project: {project_name}
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- ═══════════════════════════════════════════════════════════════════════════
|
|
6
|
+
👇 TODO: Fill in your project context below (then delete these comments)
|
|
7
|
+
═══════════════════════════════════════════════════════════════════════════ -->
|
|
8
|
+
|
|
9
|
+
### 📋 Project Context
|
|
10
|
+
|
|
11
|
+
**What this project does:**
|
|
12
|
+
_TODO: Describe your project in 1-2 sentences_
|
|
13
|
+
|
|
14
|
+
**Tech stack:**
|
|
15
|
+
_TODO: List main technologies (e.g., Node.js, React, PostgreSQL)_
|
|
16
|
+
|
|
17
|
+
**Key objectives:**
|
|
18
|
+
_TODO: What are you building toward? (e.g., Launch MVP by Q1)_
|
|
19
|
+
|
|
20
|
+
<!-- ═══════════════════════════════════════════════════════════════════════════
|
|
21
|
+
👆 End of TODO section - Delete these comment markers when done
|
|
22
|
+
═══════════════════════════════════════════════════════════════════════════ -->
|
|
6
23
|
|
|
7
24
|
## 🚨 CRITICAL: Before ANY Task
|
|
8
25
|
|
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Project: {project_name}
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!-- ═══════════════════════════════════════════════════════════════════════════
|
|
6
|
+
👇 TODO: Fill in your project context below (then delete these comments)
|
|
7
|
+
═══════════════════════════════════════════════════════════════════════════ -->
|
|
8
|
+
|
|
9
|
+
### 📋 Project Context
|
|
10
|
+
|
|
11
|
+
**What this project does:**
|
|
12
|
+
_TODO: Describe your project in 1-2 sentences_
|
|
13
|
+
|
|
14
|
+
**Tech stack:**
|
|
15
|
+
_TODO: List main technologies (e.g., Node.js, React, PostgreSQL)_
|
|
16
|
+
|
|
17
|
+
**Key objectives:**
|
|
18
|
+
_TODO: What are you building toward? (e.g., Launch MVP by Q1)_
|
|
19
|
+
|
|
20
|
+
<!-- ═══════════════════════════════════════════════════════════════════════════
|
|
21
|
+
👆 End of TODO section - Delete these comment markers when done
|
|
22
|
+
═══════════════════════════════════════════════════════════════════════════ -->
|
|
6
23
|
|
|
7
24
|
## 🚨 CRITICAL: Before ANY Task
|
|
8
25
|
|