opencode-sonarqube 0.1.5 → 0.1.6
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 +19 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20228,7 +20228,13 @@ Use \`sonarqube({ action: "issues" })\` to see details or \`sonarqube({ action:
|
|
|
20228
20228
|
});
|
|
20229
20229
|
await showToast(qgFailed ? "SonarQube: Quality Gate Failed" : "SonarQube: Issues Found", qgFailed ? "error" : "info");
|
|
20230
20230
|
}
|
|
20231
|
-
} catch {
|
|
20231
|
+
} catch (error45) {
|
|
20232
|
+
try {
|
|
20233
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20234
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [ERROR] performInitialQualityCheck FAILED: ${error45}
|
|
20235
|
+
`);
|
|
20236
|
+
} catch {}
|
|
20237
|
+
}
|
|
20232
20238
|
};
|
|
20233
20239
|
const showToast = async (message, variant = "info") => {
|
|
20234
20240
|
try {
|
|
@@ -20538,6 +20544,11 @@ Git operation completed with changes. Consider running:
|
|
|
20538
20544
|
}
|
|
20539
20545
|
},
|
|
20540
20546
|
"experimental.chat.system.transform": async (_input, output) => {
|
|
20547
|
+
try {
|
|
20548
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20549
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [HOOK] experimental.chat.system.transform ENTERED
|
|
20550
|
+
`);
|
|
20551
|
+
} catch {}
|
|
20541
20552
|
debugLog.info("=== experimental.chat.system.transform START ===");
|
|
20542
20553
|
await loadPluginConfig();
|
|
20543
20554
|
const sonarConfig = pluginConfig?.["sonarqube"];
|
|
@@ -20599,7 +20610,13 @@ ${config2.level === "enterprise" ? `This project follows enterprise-level qualit
|
|
|
20599
20610
|
- \`sonarqube({ action: "worstfiles" })\` - Find files needing most attention
|
|
20600
20611
|
- \`sonarqube({ action: "issues" })\` - See all issues`;
|
|
20601
20612
|
output.system.push(systemContext);
|
|
20602
|
-
} catch {
|
|
20613
|
+
} catch (error45) {
|
|
20614
|
+
try {
|
|
20615
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20616
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [ERROR] experimental.chat.system.transform FAILED: ${error45}
|
|
20617
|
+
`);
|
|
20618
|
+
} catch {}
|
|
20619
|
+
}
|
|
20603
20620
|
},
|
|
20604
20621
|
tool: {
|
|
20605
20622
|
sonarqube: tool({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sonarqube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"homepage": "https://github.com/mguttmann/opencode-sonarqube#readme",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@opencode-ai/plugin": "^1.1.34",
|
|
41
|
-
"opencode-sonarqube": "0.1.
|
|
41
|
+
"opencode-sonarqube": "0.1.5",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|