vibe-learning-opencode 0.2.11 → 0.2.12
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/dist/index.js +10 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,6 @@ var recentConcepts = [];
|
|
|
11
11
|
var seniorEnabled = true;
|
|
12
12
|
var afterEnabled = true;
|
|
13
13
|
var lastSessionID = null;
|
|
14
|
-
var shownToastForSession = null;
|
|
15
14
|
var FILE_CONCEPTS = [
|
|
16
15
|
{ pattern: /test|spec|__tests__/i, concept: "unit-testing" },
|
|
17
16
|
{ pattern: /auth|login|session|jwt|oauth/i, concept: "authentication" },
|
|
@@ -195,22 +194,17 @@ var VibeLearningPlugin = async (ctx) => {
|
|
|
195
194
|
});
|
|
196
195
|
};
|
|
197
196
|
return {
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
message: `Active (${modeInfo}). /learn for status.`,
|
|
207
|
-
variant: "info",
|
|
208
|
-
duration: 3e3
|
|
209
|
-
}
|
|
210
|
-
}).catch(() => {
|
|
211
|
-
});
|
|
197
|
+
"session.created": async (input) => {
|
|
198
|
+
const modeInfo = seniorEnabled && afterEnabled ? "Full mode" : seniorEnabled ? "Senior mode" : afterEnabled ? "After mode" : "Off";
|
|
199
|
+
client.tui.showToast({
|
|
200
|
+
body: {
|
|
201
|
+
title: "\u{1F393} VibeLearning",
|
|
202
|
+
message: `Active (${modeInfo}). /learn for status.`,
|
|
203
|
+
variant: "info",
|
|
204
|
+
duration: 3e3
|
|
212
205
|
}
|
|
213
|
-
}
|
|
206
|
+
}).catch(() => {
|
|
207
|
+
});
|
|
214
208
|
},
|
|
215
209
|
"tool.execute.after": async (input, output) => {
|
|
216
210
|
lastSessionID = input.sessionID;
|