vibe-learning-opencode 0.2.4 → 0.2.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.
- package/dist/index.js +15 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -209,10 +209,21 @@ var VibeLearningPlugin = (ctx) => {
|
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
return {
|
|
212
|
-
// Generic event handler for
|
|
212
|
+
// Generic event handler for ALL events
|
|
213
213
|
event: async ({ event }) => {
|
|
214
|
+
client.app.log({
|
|
215
|
+
level: "info",
|
|
216
|
+
message: `[VibeLearning] Event received: ${event.type}`
|
|
217
|
+
}).catch(() => {
|
|
218
|
+
});
|
|
214
219
|
if (event.type === "session.created") {
|
|
215
|
-
const
|
|
220
|
+
const props = event.properties;
|
|
221
|
+
const sessionID = props?.info?.id;
|
|
222
|
+
client.app.log({
|
|
223
|
+
level: "info",
|
|
224
|
+
message: `[VibeLearning] session.created - sessionID: ${sessionID}`
|
|
225
|
+
}).catch(() => {
|
|
226
|
+
});
|
|
216
227
|
if (!sessionID)
|
|
217
228
|
return;
|
|
218
229
|
lastSessionID = sessionID;
|
|
@@ -221,9 +232,9 @@ var VibeLearningPlugin = (ctx) => {
|
|
|
221
232
|
client.tui.showToast({
|
|
222
233
|
body: {
|
|
223
234
|
title: "\u{1F4DA} VibeLearning",
|
|
224
|
-
message: "
|
|
235
|
+
message: "Session started!",
|
|
225
236
|
variant: "info",
|
|
226
|
-
duration:
|
|
237
|
+
duration: 3e3
|
|
227
238
|
}
|
|
228
239
|
}).catch(() => {
|
|
229
240
|
});
|