lean-spec 0.2.0 → 0.2.1

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/CHANGELOG.md DELETED
@@ -1,326 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.2.0] - 2025-11-10
11
-
12
- **🎉 Official Public Release - Production Ready**
13
-
14
- This is the official v0.2.0 release, treating v0.1.x as alpha versions. LeanSpec is now production-ready for teams and solo developers.
15
-
16
- ### Highlights
17
-
18
- **First Principles Foundation:**
19
- - Operationalized five first principles with validation tooling
20
- - Context Economy enforced: Specs under 300 lines, warnings at 400+
21
- - Signal-to-Noise validation: Every line must inform decisions
22
- - Complete philosophy documentation guiding methodology
23
-
24
- **Quality & Validation:**
25
- - Comprehensive `lean-spec validate` with complexity analysis
26
- - Lint-style output format matching ESLint/TypeScript conventions
27
- - Sub-spec validation and relationship checking
28
- - Dogfooding complete: All specs follow our own principles
29
-
30
- **Documentation Excellence:**
31
- - 100% accurate documentation site (verified)
32
- - AI-assisted spec writing guide
33
- - Clear WHY vs HOW separation in docs
34
- - Comprehensive migration guides from ADRs/RFCs
35
- - First principles deeply documented
36
-
37
- **Developer Experience:**
38
- - Unified dashboard (board + stats + health metrics)
39
- - Pattern-aware list grouping with visual clarity
40
- - Improved init flow with pattern selection
41
- - MCP server stability improvements
42
- - Better error handling throughout
43
-
44
- ### Added
45
-
46
- **New Commands:**
47
- - `lean-spec migrate` - Migrate from existing tools (ADRs, RFCs, design docs)
48
- - `lean-spec archive` - Archive completed specs with metadata updates
49
- - `lean-spec backfill` - Backfill timestamps from git history
50
- - `lean-spec validate` - Comprehensive spec validation
51
-
52
- **Core Features:**
53
- - First principles validation (Context Economy, Signal-to-Noise, etc.)
54
- - Complexity analysis for specs and sub-specs
55
- - Bidirectional `related` and directional `depends_on` relationships
56
- - Sub-spec file support with validation
57
- - Pattern-based folder organization
58
-
59
- ### Changed
60
-
61
- **Breaking Changes:**
62
- - `lean-spec validate` output format now matches lint tools (ESLint-style)
63
- - Default validation mode is quiet success (use `--verbose` for all details)
64
-
65
- **User Experience:**
66
- - Unified dashboard combining board + stats + health summary
67
- - Pattern-aware list with visual icons and better grouping
68
- - Enhanced init flow with template/pattern selection
69
- - Clearer stats dashboard with actionable insights
70
-
71
- ### Fixed
72
- - MCP server error handling and stability
73
- - Documentation accuracy across all pages
74
- - Test suite: 402/402 passing (100%)
75
- - TypeScript/lint: Zero errors
76
- - Frontmatter parsing edge cases
77
-
78
- ### Philosophy & Methodology
79
-
80
- This release operationalizes LeanSpec's five first principles:
81
-
82
- 1. **Context Economy** - Fit in working memory (<300 lines target, 400 max)
83
- 2. **Signal-to-Noise Maximization** - Every word informs decisions
84
- 3. **Intent Over Implementation** - Capture why, not just how
85
- 4. **Bridge the Gap** - Both human and AI understand
86
- 5. **Progressive Disclosure** - Add complexity only when pain is felt
87
-
88
- **Practice What We Preach:**
89
- - All specs validated against principles
90
- - Large specs split using sub-spec pattern
91
- - Documentation follows progressive disclosure
92
- - Validation tooling prevents principle violations
93
-
94
- ### Migration Notes
95
-
96
- **From v0.1.x:**
97
- - Run `lean-spec validate` to check your specs
98
- - Review any specs >400 lines and consider splitting
99
- - Update to new validate output format (ESLint-style)
100
- - No breaking changes to commands or file formats
101
-
102
- **From other tools:**
103
- - Use `lean-spec migrate` for ADRs, RFCs, design docs
104
- - See documentation for detailed migration guides
105
- - AI-assisted migration available (Claude, Copilot)
106
-
107
- ### Acknowledgments
108
-
109
- Built with dogfooding: 63 specs written, 28 archived, all following our own principles.
110
-
111
- ## [0.1.5] - 2025-11-10
112
-
113
- ### Fixed
114
- - MCP server version now also read dynamically from package.json
115
- - Complete version consistency across CLI and MCP server
116
-
117
- ## [0.1.4] - 2025-11-10
118
-
119
- ### Fixed
120
- - Version now read dynamically from package.json instead of hardcoded in CLI
121
- - Ensures version consistency across the package
122
-
123
- ## [0.1.3] - 2025-11-10
124
-
125
- ### Added
126
-
127
- **New Commands:**
128
- - `lean-spec migrate` - Migrate from existing tools (ADRs, RFCs, design docs) with AI assistance
129
- - `lean-spec archive` - Archive completed specs with automatic frontmatter updates
130
- - `lean-spec backfill` - Backfill timestamps and metadata from git history
131
-
132
- **Documentation Enhancements:**
133
- - Complete documentation site overhaul with improved information architecture
134
- - AI-assisted spec writing guide with philosophy and best practices
135
- - Migration guides for teams coming from ADRs, RFCs, and other tools
136
- - First principles documentation (Context Economy, Signal-to-Noise, etc.)
137
- - Comprehensive core concepts guide with practical examples
138
-
139
- **Quality & Validation:**
140
- - Enhanced `lean-spec validate` with complexity analysis
141
- - Spec relationship clarity with bidirectional `related` and directional `depends_on`
142
- - Improved frontmatter handling and metadata management
143
-
144
- ### Changed
145
-
146
- **User Experience:**
147
- - Unified dashboard combining board view with project health metrics
148
- - Pattern-aware list grouping with visual icons and better organization
149
- - Improved init flow with pattern selection
150
- - Enhanced stats dashboard with actionable insights
151
- - Better MCP error handling and stability
152
-
153
- **Documentation:**
154
- - Restructured docs with clearer navigation and information flow
155
- - Updated README with AI-first positioning
156
- - Comprehensive examples and use cases
157
- - Improved CLI command documentation
158
-
159
- ### Fixed
160
- - MCP server stability issues with frontmatter parsing
161
- - TypeScript type errors in migrate command
162
- - Documentation accuracy issues across all guides
163
- - Frontmatter handling edge cases
164
-
165
- ### Philosophy
166
-
167
- This UAT release operationalizes LeanSpec's five first principles:
168
- 1. **Context Economy** - Specs fit in working memory (<400 lines)
169
- 2. **Signal-to-Noise** - Every word informs decisions
170
- 3. **Intent Over Implementation** - Capture why, not just how
171
- 4. **Bridge the Gap** - Both human and AI understand
172
- 5. **Progressive Disclosure** - Add complexity only when needed
173
-
174
- **Notable Completed Specs in this Release:**
175
- - 063: Migration from existing tools
176
- - 062: Documentation information architecture v2
177
- - 061: AI-assisted spec writing
178
- - 060: Core concepts coherence
179
- - 058: Docs overview polish
180
- - 057: Docs validation comprehensive
181
- - 056: Docs site accuracy audit
182
- - 055: README redesign (AI-first)
183
- - 054: Validate output (lint-style)
184
- - 052: Branding assets
185
- - 051: First principles documentation
186
- - 049: LeanSpec first principles foundation
187
- - 048: Spec complexity analysis
188
- - 047: Git backfill timestamps
189
- - 046: Stats dashboard refactor
190
- - 045: Unified dashboard
191
- - 044: Spec relationships clarity
192
-
193
- **Testing:**
194
- - All 261 tests passing (100% pass rate)
195
- - Zero critical bugs
196
- - MCP server stable
197
- - Documentation site builds cleanly
198
-
199
- **Ready for:** UAT testing before official 0.2.0 launch
200
-
201
- ## [0.1.2] - 2025-11-10
202
-
203
- ### Changed
204
-
205
- **BREAKING: Command and directory naming migration**
206
- - **Command name**: `lspec` → `lean-spec` (full name for clarity and consistency)
207
- - **Config directory**: `.lspec/` → `.lean-spec/` (matches package and command name)
208
- - **Binary**: Only `lean-spec` command available (removed `lspec` alias)
209
-
210
- **Benefits:**
211
- - ✅ Consistency: Package name, command, and config directory all use `lean-spec`
212
- - ✅ Clarity: `npx lean-spec` works immediately (matches npm package name)
213
- - ✅ Simplicity: Single command to remember, no abbreviations
214
-
215
- **Migration Guide for Existing Users:**
216
-
217
- 1. **Uninstall old version:**
218
- ```bash
219
- npm uninstall -g lean-spec
220
- ```
221
-
222
- 2. **Install new version:**
223
- ```bash
224
- npm install -g lean-spec
225
- ```
226
-
227
- 3. **Update existing projects:**
228
- ```bash
229
- # Rename config directory
230
- mv .lspec .lean-spec
231
- ```
232
-
233
- 4. **Update commands:**
234
- - Old: `lspec init` → New: `lean-spec init`
235
- - Old: `lspec board` → New: `lean-spec board`
236
- - Old: `npx lspec` → New: `npx lean-spec`
237
-
238
- **All documentation, examples, and specs updated to reflect new naming.**
239
-
240
- ## [0.1.1] - 2025-11-07
241
-
242
- ### Changed
243
-
244
- **BREAKING: `lspec validate` output format redesigned** (spec 054)
245
- - Output now follows mainstream lint tool conventions (ESLint, TypeScript, Prettier)
246
- - File-centric grouping: All issues for a spec are shown together
247
- - Quiet success by default: Only specs with issues are shown, passing specs are summarized
248
- - ESLint-style format: Aligned columns with `severity message rule-name`
249
- - Relative paths shown instead of absolute paths
250
- - Exit codes remain unchanged: 0 for success/warnings, 1 for errors
251
-
252
- ### Added
253
-
254
- **`lspec validate` new flags:**
255
- - `--verbose`: Show all passing specs (restores detailed output)
256
- - `--quiet`: Suppress warnings, only show errors
257
- - `--format json`: Output results as JSON for CI integration
258
- - `--rule <name>`: Filter issues by specific rule (e.g., `max-lines`, `frontmatter`)
259
-
260
- **Migration Guide:**
261
- - If you prefer the old verbose output, use `lspec validate --verbose`
262
- - The new default shows only specs with issues for better signal-to-noise ratio
263
- - Exit codes are unchanged, so CI pipelines should work without modification
264
- - JSON format is available for custom parsing: `lspec validate --format json`
265
-
266
- ### Fixed
267
- - Fixed potential crash in validate formatter when spec name is missing
268
-
269
- ## [0.1.0] - 2025-11-02
270
-
271
- ### Added
272
-
273
- **Core Features:**
274
- - CLI tool with comprehensive command set (`init`, `create`, `list`, `search`, `update`, `archive`, `files`, `templates`)
275
- - Project initialization with three built-in templates (minimal, standard, enterprise)
276
- - Spec creation with automatic directory structure and frontmatter
277
- - Frontmatter support with status tracking, tags, priority, and custom fields
278
- - Full-text search across specs using fuzzy matching
279
- - Dependency tracking between specs
280
-
281
- **Visualization & Organization:**
282
- - `lspec board` - Kanban-style board view with status columns
283
- - `lspec stats` - Work distribution and completion analytics
284
- - `lspec timeline` - Chronological view of spec creation
285
- - `lspec gantt` - Gantt chart visualization (requires mermaid-cli)
286
- - `lspec deps` - Dependency graph visualization
287
-
288
- **Developer Experience:**
289
- - Interactive prompts for all commands
290
- - Colorized terminal output
291
- - Spinner animations for long operations
292
- - Table-based displays for list views
293
- - React-based UI components (Ink)
294
-
295
- **Template System:**
296
- - Custom template support
297
- - Template marketplace (`lspec templates marketplace`)
298
- - Template variables for dynamic content
299
- - Three built-in templates with different complexity levels
300
-
301
- **Testing & Quality:**
302
- - 62 passing tests with comprehensive coverage
303
- - Integration tests for all commands
304
- - TypeScript with strict mode
305
- - Prettier configuration
306
-
307
- ### Documentation
308
- - Complete README with examples and API reference
309
- - AGENTS.md for AI agent integration
310
- - CONTRIBUTING.md for contributors
311
- - Individual spec READMEs for all 13 completed specs
312
-
313
- ### Technical
314
- - Built with TypeScript and tsup for fast builds
315
- - Commander.js for CLI argument parsing
316
- - Inquirer for interactive prompts
317
- - Chalk and Ora for beautiful terminal UI
318
- - Gray-matter for frontmatter parsing
319
- - Dayjs for date handling
320
-
321
- [0.1.5]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.5
322
- [0.1.4]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.4
323
- [0.1.3]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.3
324
- [0.1.2]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.2
325
- [0.1.1]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.1
326
- [0.1.0]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.0
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 codervisor
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.