prjct-cli 0.10.8 → 0.10.10
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 +72 -0
- package/CLAUDE.md +121 -996
- package/core/agentic/context-builder.js +18 -17
- package/core/agentic/prompt-builder.js +70 -58
- package/package.json +1 -1
- package/templates/analysis/patterns.md +60 -0
- package/templates/commands/done.md +129 -15
- package/templates/commands/feature.md +262 -21
- package/templates/commands/ship.md +244 -23
- package/templates/commands/sync.md +256 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.10] - 2025-11-28
|
|
4
|
+
|
|
5
|
+
### Refactored - Agentic Architecture Optimization
|
|
6
|
+
|
|
7
|
+
Major refactoring to make prjct-cli truly agentic with 70% context reduction:
|
|
8
|
+
|
|
9
|
+
- **CLAUDE.md** - Reduced from 1,079 to 204 lines (81% reduction)
|
|
10
|
+
- Removed verbose examples and implementation pseudocode
|
|
11
|
+
- Kept only critical rules and command reference
|
|
12
|
+
- Cleaner, more focused instructions for Claude
|
|
13
|
+
|
|
14
|
+
- **Templates Expanded to Executable Specs**
|
|
15
|
+
- `done.md`: 24 → 138 lines with step-by-step instructions
|
|
16
|
+
- `ship.md`: 36 → 257 lines with full decision trees
|
|
17
|
+
- `feature.md`: 35 → 276 lines with value analysis flow
|
|
18
|
+
- `sync.md`: 72 → 263 lines with agent generation rules
|
|
19
|
+
|
|
20
|
+
- **patterns.md** - Simplified from 207 to 61 lines (70% reduction)
|
|
21
|
+
- Removed verbose SOLID explanations
|
|
22
|
+
- Focused on detection steps and output format
|
|
23
|
+
|
|
24
|
+
- **prompt-builder.js** - Conditional injection for efficiency
|
|
25
|
+
- Agents only injected for code-modifying commands
|
|
26
|
+
- Pattern summary extraction (800 bytes vs 6KB)
|
|
27
|
+
- File list compressed (5 files vs 20)
|
|
28
|
+
|
|
29
|
+
### Impact
|
|
30
|
+
- Context per command: ~54KB → ~18KB (67% reduction)
|
|
31
|
+
- Templates now executable specifications with:
|
|
32
|
+
- Explicit paths and variables
|
|
33
|
+
- Decision trees with IF/ELSE
|
|
34
|
+
- Error handling at each step
|
|
35
|
+
- JSONL format specifications
|
|
36
|
+
- Concrete examples
|
|
37
|
+
|
|
38
|
+
## [0.10.9] - 2025-11-28
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- **Code Pattern Detection & Enforcement** - New system to detect and enforce code patterns
|
|
43
|
+
- `templates/analysis/patterns.md` - Template for detecting SOLID, DRY, naming conventions
|
|
44
|
+
- Detects design patterns: Factory, Singleton, Observer, Repository, Strategy
|
|
45
|
+
- Identifies anti-patterns: God classes, spaghetti code, copy-paste, magic numbers
|
|
46
|
+
- Extracts conventions: naming, style, async patterns, error handling
|
|
47
|
+
- Generates recommendations with specific file locations and fixes
|
|
48
|
+
|
|
49
|
+
### Enhanced
|
|
50
|
+
|
|
51
|
+
- **`/p:sync` Command** - Now includes pattern analysis
|
|
52
|
+
- Samples 5-10 source files across directories
|
|
53
|
+
- Detects SOLID compliance with evidence
|
|
54
|
+
- Extracts naming and style conventions
|
|
55
|
+
- Flags anti-patterns with severity (HIGH/MEDIUM/LOW)
|
|
56
|
+
- Saves analysis to `analysis/patterns.md`
|
|
57
|
+
- Updates CLAUDE.md with patterns summary
|
|
58
|
+
|
|
59
|
+
- **Context Builder** - Added `codePatterns` path for pattern detection
|
|
60
|
+
- All code-modifying commands now load patterns automatically
|
|
61
|
+
- Commands: now, build, feature, design, cleanup, fix, test, spec, work
|
|
62
|
+
|
|
63
|
+
- **Prompt Builder** - Includes patterns in code generation prompts
|
|
64
|
+
- Full patterns file included for code-modifying commands
|
|
65
|
+
- Explicit instruction: "ALL new code MUST respect these patterns"
|
|
66
|
+
- Anti-pattern prevention: "NO anti-patterns allowed"
|
|
67
|
+
|
|
68
|
+
### Impact
|
|
69
|
+
|
|
70
|
+
- New code automatically follows project conventions
|
|
71
|
+
- Anti-patterns detected and flagged before they're introduced
|
|
72
|
+
- Better code quality, performance, and scalability
|
|
73
|
+
- Reduced technical debt from day one
|
|
74
|
+
|
|
3
75
|
## [0.10.8] - 2025-11-28
|
|
4
76
|
|
|
5
77
|
### Added
|