vibe-learning-opencode 0.2.11 → 0.2.13
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 +4 -4
- 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" },
|
|
@@ -194,11 +193,12 @@ var VibeLearningPlugin = async (ctx) => {
|
|
|
194
193
|
});
|
|
195
194
|
});
|
|
196
195
|
};
|
|
196
|
+
let toastShownForSession = null;
|
|
197
197
|
return {
|
|
198
198
|
"tool.execute.before": async (input) => {
|
|
199
|
-
if (input.tool.startsWith("
|
|
200
|
-
if (
|
|
201
|
-
|
|
199
|
+
if (input.tool.startsWith("vibe-learning_")) {
|
|
200
|
+
if (toastShownForSession !== input.sessionID) {
|
|
201
|
+
toastShownForSession = input.sessionID;
|
|
202
202
|
const modeInfo = seniorEnabled && afterEnabled ? "Full mode" : seniorEnabled ? "Senior mode" : afterEnabled ? "After mode" : "Off";
|
|
203
203
|
client.tui.showToast({
|
|
204
204
|
body: {
|