opencode-sonarqube 2.0.2 → 2.0.3

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 +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20980,10 +20980,11 @@ ${blockerNote}Use \`sonarqube({ action: "issues" })\` to see details or \`sonarq
20980
20980
  return;
20981
20981
  }
20982
20982
  const payload = event.properties;
20983
- if (payload?.id) {
20984
- currentSessionId = payload.id;
20983
+ const sessionId = payload?.info?.id;
20984
+ if (sessionId) {
20985
+ currentSessionId = sessionId;
20985
20986
  if (event.type === "session.created") {
20986
- mapSessionToDirectory(payload.id, effectiveDirectory);
20987
+ mapSessionToDirectory(sessionId, effectiveDirectory);
20987
20988
  }
20988
20989
  }
20989
20990
  };
@@ -20992,8 +20993,8 @@ ${blockerNote}Use \`sonarqube({ action: "issues" })\` to see details or \`sonarq
20992
20993
  return;
20993
20994
  }
20994
20995
  const payload = event.properties;
20995
- if (payload?.path && !shouldIgnoreFile2(payload.path)) {
20996
- hooks.fileEdited({ filePath: payload.path });
20996
+ if (payload?.file && !shouldIgnoreFile2(payload.file)) {
20997
+ hooks.fileEdited({ filePath: payload.file });
20997
20998
  }
20998
20999
  };
20999
21000
  const injectAnalysisResults = async (message, _config, sessionId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sonarqube",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "OpenCode Plugin for SonarQube integration - Enterprise-level code quality from the start",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",