@boshu2/vibe-check 1.6.1 → 1.7.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.
Files changed (107) hide show
  1. package/.agents/bundles/automatic-learning-cadence-plan-2025-12-02.md +1297 -0
  2. package/.agents/bundles/automatic-learning-cadence-research-2025-12-02.md +481 -0
  3. package/.agents/bundles/dashboard-data-quality-plan.md +458 -0
  4. package/.agents/bundles/rating-scoring-alignment-plan.md +427 -0
  5. package/.agents/bundles/rpi-session-capture-plan-2025-12-02.md +693 -0
  6. package/.agents/bundles/rpi-session-capture-research-2025-12-02.md +433 -0
  7. package/.agents/bundles/session-integration-plan-2025-12-02.md +144 -0
  8. package/CHANGELOG.md +17 -0
  9. package/CLAUDE.md +74 -2
  10. package/Makefile +173 -0
  11. package/README.md +35 -2
  12. package/claude-progress.json +34 -5
  13. package/claude-progress.txt +66 -0
  14. package/dashboard/app.js +699 -66
  15. package/dashboard/chart.min.js +20 -0
  16. package/dashboard/dashboard-data.js +764 -0
  17. package/dashboard/dashboard-data.json +182 -71
  18. package/dashboard/index.html +139 -14
  19. package/dashboard/styles.css +579 -4
  20. package/dist/cli.js +1 -1
  21. package/dist/cli.js.map +1 -1
  22. package/dist/commands/analyze.d.ts.map +1 -1
  23. package/dist/commands/analyze.js +38 -2
  24. package/dist/commands/analyze.js.map +1 -1
  25. package/dist/commands/dashboard.js +4 -1
  26. package/dist/commands/dashboard.js.map +1 -1
  27. package/dist/commands/index.d.ts +1 -1
  28. package/dist/commands/index.d.ts.map +1 -1
  29. package/dist/commands/index.js +3 -3
  30. package/dist/commands/index.js.map +1 -1
  31. package/dist/commands/learn.d.ts +3 -0
  32. package/dist/commands/learn.d.ts.map +1 -0
  33. package/dist/commands/learn.js +161 -0
  34. package/dist/commands/learn.js.map +1 -0
  35. package/dist/commands/lesson.d.ts +8 -0
  36. package/dist/commands/lesson.d.ts.map +1 -0
  37. package/dist/commands/lesson.js +206 -0
  38. package/dist/commands/lesson.js.map +1 -0
  39. package/dist/commands/profile.d.ts.map +1 -1
  40. package/dist/commands/profile.js +3 -202
  41. package/dist/commands/profile.js.map +1 -1
  42. package/dist/commands/session.d.ts +51 -0
  43. package/dist/commands/session.d.ts.map +1 -0
  44. package/dist/commands/session.js +561 -0
  45. package/dist/commands/session.js.map +1 -0
  46. package/dist/gamification/index.d.ts +1 -3
  47. package/dist/gamification/index.d.ts.map +1 -1
  48. package/dist/gamification/index.js +2 -5
  49. package/dist/gamification/index.js.map +1 -1
  50. package/dist/gamification/pattern-memory.d.ts +1 -1
  51. package/dist/gamification/pattern-memory.d.ts.map +1 -1
  52. package/dist/gamification/pattern-memory.js.map +1 -1
  53. package/dist/gamification/profile.d.ts +2 -2
  54. package/dist/gamification/profile.d.ts.map +1 -1
  55. package/dist/gamification/profile.js +2 -15
  56. package/dist/gamification/profile.js.map +1 -1
  57. package/dist/gamification/types.d.ts +8 -2
  58. package/dist/gamification/types.d.ts.map +1 -1
  59. package/dist/gamification/types.js.map +1 -1
  60. package/dist/insights/index.d.ts.map +1 -1
  61. package/dist/insights/index.js +16 -4
  62. package/dist/insights/index.js.map +1 -1
  63. package/dist/insights/types.d.ts +14 -0
  64. package/dist/insights/types.d.ts.map +1 -1
  65. package/dist/learning/cadence.d.ts +15 -0
  66. package/dist/learning/cadence.d.ts.map +1 -0
  67. package/dist/learning/cadence.js +130 -0
  68. package/dist/learning/cadence.js.map +1 -0
  69. package/dist/learning/index.d.ts +19 -0
  70. package/dist/learning/index.d.ts.map +1 -0
  71. package/dist/learning/index.js +35 -0
  72. package/dist/learning/index.js.map +1 -0
  73. package/dist/learning/lessons-storage.d.ts +48 -0
  74. package/dist/learning/lessons-storage.d.ts.map +1 -0
  75. package/dist/learning/lessons-storage.js +266 -0
  76. package/dist/learning/lessons-storage.js.map +1 -0
  77. package/dist/learning/lessons-types.d.ts +83 -0
  78. package/dist/learning/lessons-types.d.ts.map +1 -0
  79. package/dist/learning/lessons-types.js +15 -0
  80. package/dist/learning/lessons-types.js.map +1 -0
  81. package/dist/learning/nudges.d.ts +20 -0
  82. package/dist/learning/nudges.d.ts.map +1 -0
  83. package/dist/learning/nudges.js +68 -0
  84. package/dist/learning/nudges.js.map +1 -0
  85. package/dist/learning/retrospective.d.ts +27 -0
  86. package/dist/learning/retrospective.d.ts.map +1 -0
  87. package/dist/learning/retrospective.js +184 -0
  88. package/dist/learning/retrospective.js.map +1 -0
  89. package/dist/learning/storage.d.ts +44 -0
  90. package/dist/learning/storage.d.ts.map +1 -0
  91. package/dist/learning/storage.js +194 -0
  92. package/dist/learning/storage.js.map +1 -0
  93. package/dist/learning/surfacing.d.ts +36 -0
  94. package/dist/learning/surfacing.d.ts.map +1 -0
  95. package/dist/learning/surfacing.js +255 -0
  96. package/dist/learning/surfacing.js.map +1 -0
  97. package/dist/learning/synthesis.d.ts +17 -0
  98. package/dist/learning/synthesis.d.ts.map +1 -0
  99. package/dist/learning/synthesis.js +293 -0
  100. package/dist/learning/synthesis.js.map +1 -0
  101. package/dist/learning/types.d.ts +60 -0
  102. package/dist/learning/types.d.ts.map +1 -0
  103. package/dist/learning/types.js +17 -0
  104. package/dist/learning/types.js.map +1 -0
  105. package/docs/METRICS.md +528 -0
  106. package/feature-list.json +21 -0
  107. package/package.json +1 -1
package/Makefile ADDED
@@ -0,0 +1,173 @@
1
+ # vibe-check Makefile
2
+ # All npm commands and development shortcuts
3
+
4
+ .PHONY: help build dev start test test-coverage lint clean install publish dashboard watch profile analyze session-start session-end
5
+
6
+ # Default target
7
+ help:
8
+ @echo "vibe-check Development Commands"
9
+ @echo "================================"
10
+ @echo ""
11
+ @echo "Build & Run:"
12
+ @echo " make build - Compile TypeScript to dist/"
13
+ @echo " make dev - Run with ts-node (no compile)"
14
+ @echo " make start - Run compiled version"
15
+ @echo " make clean - Remove dist/ directory"
16
+ @echo ""
17
+ @echo "Testing:"
18
+ @echo " make test - Run all tests"
19
+ @echo " make test-coverage - Run tests with coverage report"
20
+ @echo " make test-watch - Run tests in watch mode"
21
+ @echo ""
22
+ @echo "Publishing:"
23
+ @echo " make install - Install dependencies"
24
+ @echo " make publish - Build, test, and publish to npm"
25
+ @echo " make version-patch - Bump patch version (1.0.x)"
26
+ @echo " make version-minor - Bump minor version (1.x.0)"
27
+ @echo " make version-major - Bump major version (x.0.0)"
28
+ @echo ""
29
+ @echo "Vibe-Check Commands:"
30
+ @echo " make dashboard - Open visual dashboard"
31
+ @echo " make watch - Real-time spiral detection"
32
+ @echo " make profile - Show XP, streaks, achievements"
33
+ @echo " make analyze - Analyze last week"
34
+ @echo " make analyze-today - Analyze today only"
35
+ @echo " make timeline - Show coding timeline"
36
+ @echo ""
37
+ @echo "Session Commands:"
38
+ @echo " make session-start - Start session (prompts for level)"
39
+ @echo " make session-end - End session and get metrics"
40
+ @echo " make session-status - Show active session info"
41
+ @echo ""
42
+
43
+ # ============================================
44
+ # Build & Run
45
+ # ============================================
46
+
47
+ build:
48
+ npm run build
49
+
50
+ dev:
51
+ npm run dev
52
+
53
+ start:
54
+ npm run start
55
+
56
+ clean:
57
+ rm -rf dist/
58
+
59
+ # ============================================
60
+ # Testing
61
+ # ============================================
62
+
63
+ test:
64
+ npm test
65
+
66
+ test-coverage:
67
+ npm run test:coverage
68
+
69
+ test-watch:
70
+ npx vitest watch
71
+
72
+ # ============================================
73
+ # Publishing
74
+ # ============================================
75
+
76
+ install:
77
+ npm install
78
+
79
+ publish: build test
80
+ npm publish --access=public
81
+
82
+ version-patch:
83
+ npm version patch
84
+
85
+ version-minor:
86
+ npm version minor
87
+
88
+ version-major:
89
+ npm version major
90
+
91
+ # ============================================
92
+ # Vibe-Check Commands
93
+ # ============================================
94
+
95
+ dashboard:
96
+ node dist/cli.js dashboard
97
+
98
+ watch:
99
+ node dist/cli.js watch
100
+
101
+ profile:
102
+ node dist/cli.js profile
103
+
104
+ analyze:
105
+ node dist/cli.js --since "1 week ago" --score
106
+
107
+ analyze-today:
108
+ node dist/cli.js --since "today" --score
109
+
110
+ analyze-json:
111
+ node dist/cli.js --since "1 week ago" --score --format json
112
+
113
+ timeline:
114
+ node dist/cli.js timeline --since "1 week ago"
115
+
116
+ timeline-expand:
117
+ node dist/cli.js timeline --since "1 week ago" --expand
118
+
119
+ # ============================================
120
+ # Session Commands
121
+ # ============================================
122
+
123
+ session-start:
124
+ @read -p "Vibe Level (0-5): " level; \
125
+ node dist/cli.js session start --level $$level
126
+
127
+ session-start-json:
128
+ @read -p "Vibe Level (0-5): " level; \
129
+ node dist/cli.js session start --level $$level --format json
130
+
131
+ session-end:
132
+ node dist/cli.js session end
133
+
134
+ session-end-json:
135
+ node dist/cli.js session end --format json
136
+
137
+ session-status:
138
+ node dist/cli.js session status
139
+
140
+ # ============================================
141
+ # Learning Commands
142
+ # ============================================
143
+
144
+ learn:
145
+ node dist/cli.js learn
146
+
147
+ lessons:
148
+ node dist/cli.js lesson --list
149
+
150
+ lesson-stats:
151
+ node dist/cli.js lesson --stats
152
+
153
+ # ============================================
154
+ # Shortcuts
155
+ # ============================================
156
+
157
+ # Quick check (alias for analyze)
158
+ check: analyze
159
+
160
+ # Full analysis with all features
161
+ full:
162
+ node dist/cli.js --since "1 week ago" --score --verbose
163
+
164
+ # Export dashboard data without opening browser
165
+ export-dashboard:
166
+ node dist/cli.js dashboard --no-open
167
+
168
+ # Cache management
169
+ cache-stats:
170
+ node dist/cli.js cache --stats
171
+
172
+ cache-clear:
173
+ node dist/cli.js cache --clear
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # vibe-check
2
2
 
3
- ![Vibe-Check Dashboard](docs/images/dashboard.png)
4
-
5
3
  [![npm version](https://img.shields.io/npm/v/@boshu2/vibe-check.svg)](https://www.npmjs.com/package/@boshu2/vibe-check)
6
4
  [![CI](https://github.com/boshu2/vibe-check/actions/workflows/ci.yml/badge.svg)](https://github.com/boshu2/vibe-check/actions/workflows/ci.yml)
7
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
6
 
7
+ ![Vibe-Check Dashboard](docs/images/dashboard.png)
8
+
9
9
  **Git-powered metrics for AI-assisted coding.** Catch debug spirals before they catch you.
10
10
 
11
11
  ```bash
@@ -191,6 +191,34 @@ jobs:
191
191
 
192
192
  ---
193
193
 
194
+ ## Session Integration
195
+
196
+ Integrate with Claude Code's `/session-start` and `/session-end` commands:
197
+
198
+ ```bash
199
+ # At session start - capture baseline
200
+ vibe-check session start --level 3
201
+
202
+ # At session end - get metrics for claude-progress.json
203
+ vibe-check session end --format json
204
+ ```
205
+
206
+ Output includes failure pattern detection:
207
+ ```json
208
+ {
209
+ "metrics": { "trust_pass_rate": 92, "rework_ratio": 11, ... },
210
+ "retro": {
211
+ "failure_patterns_hit": [],
212
+ "failure_patterns_avoided": ["Debug Spiral", "Context Amnesia"],
213
+ "learnings": ["Test-first approach prevented spirals"]
214
+ }
215
+ }
216
+ ```
217
+
218
+ Used by the [AgentOps session-management plugin](https://github.com/boshu2/agentops).
219
+
220
+ ---
221
+
194
222
  ## All Commands
195
223
 
196
224
  ```
@@ -200,7 +228,12 @@ vibe-check dashboard Visual dashboard + insights
200
228
  vibe-check profile XP, streaks, achievements
201
229
  vibe-check timeline Coding journey visualization
202
230
  vibe-check start --level <n> Declare vibe level (0-5)
231
+ vibe-check session start Capture baseline for session
232
+ vibe-check session end Get session metrics + patterns
233
+ vibe-check session status Show active session info
203
234
  vibe-check intervene Record spiral intervention
235
+ vibe-check learn Extract learnings from patterns
236
+ vibe-check lesson Manage synthesized lessons
204
237
  vibe-check init-hook Install git hook
205
238
  vibe-check cache Manage local storage
206
239
  ```
@@ -161,15 +161,44 @@
161
161
  }
162
162
  ],
163
163
  "current_state": {
164
- "working_on": null,
164
+ "phase": "brainstorming",
165
+ "working_on": "Feature audit - cut/enhance/add analysis",
165
166
  "blockers": [],
166
167
  "next_steps": [
167
- "Implement insight-dashboard-plan-2025-11-30.md (vibe-check dashboard command)",
168
- "npm version minor && npm publish (v1.6.0)",
169
- "Consider multi-repo aggregation for v2.0"
168
+ "Decide: Cut learning system (10 files, ~1500 lines)?",
169
+ "Decide: Cut advanced gamification (challenges, leaderboards, badges)?",
170
+ "Decide: Add `vibe-check now` quick check?",
171
+ "Consider npm publish for v1.7.0"
170
172
  ],
171
- "resume_summary": "Storage hardening + cross-session queries + regression detection complete. Research + plan done for insight engine and dashboard. Ready to implement dashboard command."
173
+ "resume_summary": "Session integration complete. Ran feature audit: 78 files is bloated, recommend cutting to ~35. Learning system (10 files) and advanced gamification (5 files) are over-engineered. Core value is analyze + watch + basic gamification."
172
174
  },
175
+ "sessions": [
176
+ {
177
+ "session_id": "2025-12-02-001",
178
+ "started": "2025-12-02T13:00:00Z",
179
+ "ended": "2025-12-02T19:10:00Z",
180
+ "vibe_level": 4,
181
+ "summary": "Session integration + docs: Built vibe-check session commands, updated AgentOps plugin, added 14 tests, created Makefile, ran feature audit",
182
+ "commits": ["0a2198f", "7e11c27", "e35f39a", "b0b7567", "a949ed4", "16c73f2"],
183
+ "features_completed": [],
184
+ "metrics": {
185
+ "trust_pass_rate": 100,
186
+ "rework_ratio": 0,
187
+ "iteration_velocity": 6,
188
+ "flow_efficiency": 100,
189
+ "vibe_score": 88
190
+ },
191
+ "retro": {
192
+ "failure_patterns_hit": [],
193
+ "failure_patterns_avoided": ["Debug Spiral", "Context Amnesia", "Velocity Crash"],
194
+ "learnings": [
195
+ "Session command integration enables automatic metrics capture",
196
+ "Feature audit reveals 50% of codebase is speculative features",
197
+ "Learning system has zero adoption evidence - candidate for removal"
198
+ ]
199
+ }
200
+ }
201
+ ],
173
202
  "sessions_continued": [
174
203
  {
175
204
  "session_id": "2025-11-30-005",
@@ -3,6 +3,42 @@ Created: 2025-11-29
3
3
 
4
4
  ## Session Log
5
5
 
6
+ --- 2025-12-02 - Automatic Learning Cadence Research & Planning ---
7
+
8
+ VIBE LEVEL: 4 (Research/Planning, exploratory)
9
+
10
+ COMPLETED:
11
+ - Research on automatic learning integration:
12
+ - Mapped 6 existing learning mechanisms in vibe-check
13
+ - Identified 4 natural trigger points (session boundary, streak, timeline, dashboard)
14
+ - Researched FSRS algorithm, behavioral nudges, retrospective tools
15
+ - Created comprehensive implementation plan:
16
+ - 6 new files in src/learning/ module
17
+ - New `vibe-check learn` command (--retro, --status, --pattern)
18
+ - Auto-nudges displayed after gamification output
19
+ - Weekly retro reminders, pattern warnings, level-up hints
20
+ - Added VIBE-032 to feature-list.json (planned, not implemented)
21
+
22
+ COMMITS: None (planning session)
23
+
24
+ ARTIFACTS:
25
+ - .agents/bundles/automatic-learning-cadence-research-2025-12-02.md
26
+ - .agents/bundles/automatic-learning-cadence-plan-2025-12-02.md
27
+
28
+ REMAINING:
29
+ - /implement automatic-learning-cadence-plan-2025-12-02.md
30
+ - Test learn command and nudge display
31
+ - Then implement ml-learning-loop-complete-plan-2025-11-28.md
32
+
33
+ NEXT SESSION SHOULD:
34
+ - Run /implement automatic-learning-cadence-plan-2025-12-02.md
35
+ - Create 6 files: types.ts, storage.ts, cadence.ts, nudges.ts, retrospective.ts, index.ts
36
+ - Add learn command to CLI
37
+ - Integrate with recordSession() and analyze output
38
+ - npm test && npm run dev learn --status
39
+
40
+ ================================================================================
41
+
6
42
  --- 2025-11-30 12:00 - Storage Enhancement Session ---
7
43
 
8
44
  VIBE LEVEL: 5 (Infrastructure, high trust)
@@ -456,3 +492,33 @@ NEXT SESSION COULD:
456
492
 
457
493
  ================================================================================
458
494
 
495
+
496
+ --- 2025-12-02 12:10 - Session Integration + Feature Audit ---
497
+
498
+ COMPLETED:
499
+ - Built vibe-check session commands (start/end/status) with baseline capture
500
+ - Updated AgentOps session-management plugin with vibe-check integration
501
+ - Updated workspace slash commands (/session-start, /session-end)
502
+ - Added 14 session tests (40 total tests passing)
503
+ - Created Makefile with all npm commands
504
+ - Updated CLAUDE.md with architecture and command docs
505
+ - Ran comprehensive feature audit (78 files analyzed)
506
+
507
+ METRICS:
508
+ - Trust Pass Rate: 100%
509
+ - Rework Ratio: 0%
510
+ - VibeScore: 88%
511
+ - Rating: ELITE
512
+
513
+ FEATURE AUDIT FINDINGS:
514
+ - KEEP: analyze, watch, profile, basic gamification, pattern memory
515
+ - CUT CANDIDATES: learning system (10 files), intervention memory (2 files),
516
+ advanced gamification (5 files), semantic-free metrics (4 files)
517
+ - ADD CANDIDATES: vibe-check now (quick check), spiral notifications, pattern advice
518
+
519
+ NEXT SESSION SHOULD:
520
+ - Decide on feature cuts (learning system is biggest candidate)
521
+ - Implement vibe-check now for ultra-fast spiral check
522
+ - Consider npm publish v1.7.0
523
+
524
+ ================================================================================