@ipation/specbridge 1.2.0 → 1.3.0
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 +70 -1
- package/README.md +32 -1
- package/dist/cli.js +704 -209
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +146 -13
- package/dist/index.js +153 -42
- package/dist/index.js.map +1 -1
- package/dist/public/index.html +551 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,76 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [1.
|
|
10
|
+
## [1.3.0] - 2026-02-03
|
|
11
|
+
|
|
12
|
+
### Phase 5: Foundational Trust & Propagation (v1.3 - Non-Breaking)
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
#### Structured Constraints
|
|
17
|
+
- **Machine-readable constraint specification**: New optional `check` block in constraints with `verifier` and `params` fields
|
|
18
|
+
- **Backward compatibility**: Legacy `verifier` field continues to work; `check` block takes priority when present
|
|
19
|
+
- **Type-safe parameters**: Structured parameters passed to verifiers, validated by Zod schema
|
|
20
|
+
- **Better verifier selection**: Three-tier priority system - check.verifier → verifier field → auto-detection
|
|
21
|
+
|
|
22
|
+
#### Verification Debuggability
|
|
23
|
+
- **--explain mode**: New `specbridge verify --explain` flag shows detailed verification trace
|
|
24
|
+
- **Constraint application tracking**: See which constraints applied/skipped for each file and why
|
|
25
|
+
- **Verifier selection visibility**: Shows which verifier was selected and why
|
|
26
|
+
- **Execution metrics**: Displays violation count and execution time per constraint
|
|
27
|
+
- **Error transparency**: Failed verifications show full error details in explanation
|
|
28
|
+
|
|
29
|
+
#### Stop Silent Failures
|
|
30
|
+
- **Warning system**: Missing verifiers now log warnings with available alternatives
|
|
31
|
+
- **Error reporting**: Verifier exceptions logged with full stack traces
|
|
32
|
+
- **Structured diagnostics**: `VerificationResult` includes `warnings` and `errors` arrays
|
|
33
|
+
- **CLI output**: Warnings and errors displayed before summary with proper formatting
|
|
34
|
+
- **Non-blocking errors**: Verification continues after errors instead of silently stopping
|
|
35
|
+
|
|
36
|
+
#### Propagation Exposure
|
|
37
|
+
- **Impact analysis command**: New `specbridge impact <decision-id>` command
|
|
38
|
+
- **Change type support**: Analyze created, modified, or deprecated decisions
|
|
39
|
+
- **Affected files tracking**: Shows all files impacted with violation counts
|
|
40
|
+
- **Auto-fix detection**: Identifies which violations can be automatically fixed
|
|
41
|
+
- **Migration planning**: Generated step-by-step migration plans (automated vs manual)
|
|
42
|
+
- **Effort estimation**: Calculates low/medium/high effort based on violation complexity
|
|
43
|
+
- **JSON output**: Machine-readable format via `--json` flag
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
- **VerificationResult interface**: Added optional `warnings` and `errors` fields
|
|
47
|
+
- **VerificationEngine**: Enhanced error handling with detailed logging
|
|
48
|
+
- **Verifier selection**: Updated priority system to support structured check blocks
|
|
49
|
+
|
|
50
|
+
### Documentation
|
|
51
|
+
- **Decision format**: Updated with new `check` block format examples
|
|
52
|
+
- **CLI help**: Enhanced with new --explain option documentation
|
|
53
|
+
|
|
54
|
+
### Tests
|
|
55
|
+
- **18 new tests**: Added comprehensive test coverage for v1.3 features
|
|
56
|
+
- ConstraintCheckSchema validation tests
|
|
57
|
+
- ExplainReporter functionality tests
|
|
58
|
+
- Impact command integration tests
|
|
59
|
+
- **969 total tests passing**: All existing tests continue to pass
|
|
60
|
+
|
|
61
|
+
### Migration Notes
|
|
62
|
+
- **No breaking changes**: All existing decision files work without modification
|
|
63
|
+
- **Optional adoption**: New features can be adopted incrementally
|
|
64
|
+
- **Forward compatible**: Decisions with `check` blocks validate successfully
|
|
65
|
+
|
|
66
|
+
## [1.2.1] - 2026-02-03
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
- **Dashboard Chart.js rendering**: Fixed chart initialization timing issue by adding 100ms delay to ensure canvas element is fully mounted before rendering
|
|
70
|
+
- **Build process**: Configured tsup to automatically copy dashboard static files (`src/dashboard/public/`) to `dist/public/` during build
|
|
71
|
+
- **Chart enhancements**: Added better error handling, formatted date labels, tooltips, and improved visual styling for compliance trend chart
|
|
72
|
+
|
|
73
|
+
### Changed
|
|
74
|
+
- **Build output**: Dashboard static files now automatically included in build output without manual intervention
|
|
75
|
+
- **.gitignore**: Added `.playwright-mcp/` and `.specbridge/reports/history/` to ignore test and runtime artifacts
|
|
76
|
+
|
|
77
|
+
## [1.2.0] - 2026-02-03
|
|
78
|
+
|
|
79
|
+
### Phase 4: Analytics & Insights
|
|
11
80
|
|
|
12
81
|
### Added
|
|
13
82
|
|
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ SpecBridge creates a living integration layer between design intent and implemen
|
|
|
16
16
|
- **Verification Engine** - Continuously verifies code compliance at multiple levels
|
|
17
17
|
- **Propagation Engine** - Analyzes impact when architectural decisions change
|
|
18
18
|
- **Compliance Reporting** - Provides dashboards and tracks conformity over time
|
|
19
|
+
- **Analytics & Insights** - AI-generated insights, drift detection, and trend analysis
|
|
20
|
+
- **Interactive Dashboard** - Real-time compliance monitoring with visual charts
|
|
19
21
|
- **Agent Interface** - Exposes decisions to code generation agents (Copilot, Claude, etc.)
|
|
20
22
|
|
|
21
23
|
## Installation
|
|
@@ -92,7 +94,31 @@ specbridge report
|
|
|
92
94
|
specbridge report --format markdown --save
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
|
|
97
|
+
Track compliance trends over time:
|
|
98
|
+
```bash
|
|
99
|
+
specbridge report --trend --days 30
|
|
100
|
+
specbridge report --drift
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 6. Analyze compliance with AI insights
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
specbridge analytics
|
|
107
|
+
specbridge analytics --insights
|
|
108
|
+
specbridge analytics auth-001
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Get AI-generated insights about compliance trends, violations, and decision impact.
|
|
112
|
+
|
|
113
|
+
### 7. Launch interactive dashboard
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
specbridge dashboard
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Open your browser to view real-time compliance metrics, trend charts, and insights.
|
|
120
|
+
|
|
121
|
+
### 8. Integrate with AI agents
|
|
96
122
|
|
|
97
123
|
```bash
|
|
98
124
|
specbridge context src/api/auth.ts
|
|
@@ -222,6 +248,11 @@ verification:
|
|
|
222
248
|
| `specbridge decision create <id>` | Create new decision |
|
|
223
249
|
| `specbridge decision validate` | Validate decision files |
|
|
224
250
|
| `specbridge report` | Generate compliance report |
|
|
251
|
+
| `specbridge report --trend` | Show compliance trends over time |
|
|
252
|
+
| `specbridge report --drift` | Analyze drift since last report |
|
|
253
|
+
| `specbridge analytics` | Analyze compliance with AI insights |
|
|
254
|
+
| `specbridge analytics <id>` | Analyze specific decision |
|
|
255
|
+
| `specbridge dashboard` | Launch interactive web dashboard |
|
|
225
256
|
| `specbridge hook install` | Install git hooks |
|
|
226
257
|
| `specbridge hook run` | Run verification (for hooks) |
|
|
227
258
|
| `specbridge context <file>` | Generate agent context |
|