vibe-learning-opencode 0.2.12 → 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 +16 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -193,18 +193,24 @@ var VibeLearningPlugin = async (ctx) => {
|
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
+
let toastShownForSession = null;
|
|
196
197
|
return {
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
198
|
+
"tool.execute.before": async (input) => {
|
|
199
|
+
if (input.tool.startsWith("vibe-learning_")) {
|
|
200
|
+
if (toastShownForSession !== input.sessionID) {
|
|
201
|
+
toastShownForSession = input.sessionID;
|
|
202
|
+
const modeInfo = seniorEnabled && afterEnabled ? "Full mode" : seniorEnabled ? "Senior mode" : afterEnabled ? "After mode" : "Off";
|
|
203
|
+
client.tui.showToast({
|
|
204
|
+
body: {
|
|
205
|
+
title: "\u{1F393} VibeLearning",
|
|
206
|
+
message: `Active (${modeInfo}). /learn for status.`,
|
|
207
|
+
variant: "info",
|
|
208
|
+
duration: 3e3
|
|
209
|
+
}
|
|
210
|
+
}).catch(() => {
|
|
211
|
+
});
|
|
205
212
|
}
|
|
206
|
-
}
|
|
207
|
-
});
|
|
213
|
+
}
|
|
208
214
|
},
|
|
209
215
|
"tool.execute.after": async (input, output) => {
|
|
210
216
|
lastSessionID = input.sessionID;
|