opencode-self-improvement 0.8.8 → 0.8.9

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/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-self-improvement",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "Durable memory for opencode: remember facts, decisions, and commands across sessions, plus a one-command per-repo setup (/repo-init).",
5
5
  "main": "index.ts",
6
6
  "exports": {
package/src/index.ts CHANGED
@@ -853,7 +853,7 @@ const impl = {
853
853
  continue;
854
854
  }
855
855
  if (ev?.type !== "message.updated") continue;
856
- const info = ev.properties?.info ?? ev.info;
856
+ const info = ev.properties?.info ?? ev.info ?? ev.data?.info;
857
857
  if (!info || info.role !== "assistant") continue;
858
858
  const sid = info.sessionID;
859
859
  const t = info.tokens;
@@ -916,7 +916,7 @@ const impl = {
916
916
  for await (const raw of eventApi.subscribe({ signal: controller.signal })) {
917
917
  const event = raw as Record<string, any>;
918
918
  if (event?.type !== "session.idle") continue;
919
- const sid = event.sessionID ?? event.properties?.sessionID;
919
+ const sid = event.sessionID ?? event.properties?.sessionID ?? event.data?.sessionID;
920
920
  if (typeof sid !== "string") continue;
921
921
  // Bind the idle session so captures stamp (and gate against)
922
922
  // that session's repo, not whatever tool call ran last.