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.
Files changed (2) hide show
  1. package/dist/index.js +15 -4
  2. 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 session events
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 sessionID = event.properties?.info?.id;
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: "Checking learning status...",
235
+ message: "Session started!",
225
236
  variant: "info",
226
- duration: 2e3
237
+ duration: 3e3
227
238
  }
228
239
  }).catch(() => {
229
240
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-learning-opencode",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "VibeLearning plugin for OpenCode - spaced repetition learning while coding",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",