vibe-learning-opencode 0.1.3 → 0.1.5

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 (2) hide show
  1. package/dist/index.js +34 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -70,26 +70,34 @@ After mode behavior: Ask learning questions AFTER task completion.`,
70
70
  Before mode behavior: Check understanding BEFORE implementation. Ask one question, then proceed.`,
71
71
  senior: `Execute NOW: Call mcp__vibe-learning__set_mode with mode="senior". Confirm Senior mode enabled.
72
72
 
73
- CRITICAL - FOR ALL SUBSEQUENT TASKS IN THIS SESSION, follow this EXACTLY:
73
+ CRITICAL - FOR ALL SUBSEQUENT TASKS, test understanding like a senior developer:
74
74
 
75
75
  **[VibeLearning Senior Mode]**
76
- [Round 1/3] [One short question]?
77
- _(skip: just say "skip" to proceed directly)_
76
+ [Round 1/3] [Senior-level question]?
77
+ _(skip: say "skip" to proceed)_
78
78
 
79
- Flow (MUST follow):
80
- - Round 1: Show header + question + skip hint
81
- - Round 2: ALWAYS ask "[Round 2/3] What alternatives did you consider? Tradeoffs?"
82
- - Round 3: If Round 2 vague, "[Round 3/3] Hint: [hint]. What do you think?"
83
- - After 2-3 rounds: "Good thinking! [summary]. Implementing now."
79
+ Question Style - Test understanding, not gather requirements:
80
+ \u274C WRONG: "What data will you cache?" (requirements gathering)
81
+ \u274C WRONG: "Redis or Memcached?" (tool selection)
82
+ \u2705 RIGHT: "Why do you need caching here?" (reasoning)
83
+ \u2705 RIGHT: "What is cache-aside pattern? How is it different from write-through?" (concept)
84
+ \u2705 RIGHT: "What problems can caching introduce?" (tradeoffs)
84
85
 
85
- \u26A0\uFE0F STRICT RULES:
86
- - ONE short question per message
87
- - Wait for answer before next round
88
- - Minimum 2 rounds before implementing
89
- - If user says "skip", proceed to implementation immediately
86
+ Flow:
87
+ - Round 1: Test conceptual understanding or ask WHY
88
+ - Round 2: Ask about tradeoffs, edge cases, or compare alternatives
89
+ - Round 3: (if needed) Give hint and ask again
90
+ - FINAL STEP (MANDATORY): Call record_learning tool, THEN say "Good! Implementing now."
91
+
92
+ \u26A0\uFE0F CRITICAL - After final round, IMMEDIATELY call:
93
+ mcp__vibe-learning__record_learning({
94
+ concept_id: "kebab-case-concept", // e.g., "redis-caching"
95
+ level: 3,
96
+ result: "correct" | "partial" | "skipped"
97
+ })
98
+ DO NOT say "Implementing now" until record_learning is called.
90
99
 
91
- \u274C WRONG: "What about X? And Y? Also Z?"
92
- \u2705 RIGHT: "[Round 1/3] Why JWT over session-based auth?"`,
100
+ ONE question per message. Wait for answer.`,
93
101
  "senior-light": `Execute NOW: Call mcp__vibe-learning__set_mode with mode="senior_light". Confirm mode changed.
94
102
 
95
103
  Senior Light behavior: Present counterarguments but proceed after round 1. Don't block, just give feedback.`
@@ -100,15 +108,24 @@ var MODE_BEHAVIOR_PROMPTS = {
100
108
  Format (MUST show header on Round 1):
101
109
  **[VibeLearning Senior Mode]**
102
110
  [Round 1/3] [One short question]?
111
+ _(skip: say "skip" to proceed)_
103
112
 
104
113
  Flow:
105
114
  - Round 1: MUST show header + "[Round 1/3] Why this approach?"
106
115
  - Round 2: ALWAYS ask "[Round 2/3] What alternatives did you consider? Tradeoffs?"
107
116
  (Skip only if user named 2+ alternatives with specific tradeoffs)
108
117
  - Round 3: If Round 2 vague, "[Round 3/3] Hint: [hint]. What do you think?"
109
- - After Round 2/3: "Good thinking! [tradeoff summary]. Implementing now."
118
+ - FINAL STEP (MANDATORY): Call record_learning, THEN say "Good thinking! Implementing now."
119
+
120
+ \u26A0\uFE0F CRITICAL - After final round, IMMEDIATELY call:
121
+ mcp__vibe-learning__record_learning({
122
+ concept_id: "kebab-case-concept",
123
+ level: 3,
124
+ result: "correct" | "partial" | "skipped"
125
+ })
126
+ DO NOT say "Implementing now" until record_learning is called.
110
127
 
111
- ONE question per round, one sentence. Be strict like a real senior.`,
128
+ ONE question per round. Be strict like a real senior.`,
112
129
  before: `[VibeLearning - Before Mode]
113
130
 
114
131
  Ask ONE short question: "Before implementing, [question]?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-learning-opencode",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "VibeLearning plugin for OpenCode - spaced repetition learning while coding",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",