opencode-sonarqube 0.1.5 → 0.1.7
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 +23 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20091,6 +20091,10 @@ function getSeveritiesFromLevel(level) {
|
|
|
20091
20091
|
// src/index.ts
|
|
20092
20092
|
init_types2();
|
|
20093
20093
|
import { appendFileSync } from "node:fs";
|
|
20094
|
+
try {
|
|
20095
|
+
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [LOAD] Plugin module loaded!
|
|
20096
|
+
`);
|
|
20097
|
+
} catch {}
|
|
20094
20098
|
var LOG_FILE = "/tmp/sonarqube-plugin-debug.log";
|
|
20095
20099
|
var debugLog = {
|
|
20096
20100
|
_write: (level, msg, extra) => {
|
|
@@ -20228,7 +20232,13 @@ Use \`sonarqube({ action: "issues" })\` to see details or \`sonarqube({ action:
|
|
|
20228
20232
|
});
|
|
20229
20233
|
await showToast(qgFailed ? "SonarQube: Quality Gate Failed" : "SonarQube: Issues Found", qgFailed ? "error" : "info");
|
|
20230
20234
|
}
|
|
20231
|
-
} catch {
|
|
20235
|
+
} catch (error45) {
|
|
20236
|
+
try {
|
|
20237
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20238
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [ERROR] performInitialQualityCheck FAILED: ${error45}
|
|
20239
|
+
`);
|
|
20240
|
+
} catch {}
|
|
20241
|
+
}
|
|
20232
20242
|
};
|
|
20233
20243
|
const showToast = async (message, variant = "info") => {
|
|
20234
20244
|
try {
|
|
@@ -20538,6 +20548,11 @@ Git operation completed with changes. Consider running:
|
|
|
20538
20548
|
}
|
|
20539
20549
|
},
|
|
20540
20550
|
"experimental.chat.system.transform": async (_input, output) => {
|
|
20551
|
+
try {
|
|
20552
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20553
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [HOOK] experimental.chat.system.transform ENTERED
|
|
20554
|
+
`);
|
|
20555
|
+
} catch {}
|
|
20541
20556
|
debugLog.info("=== experimental.chat.system.transform START ===");
|
|
20542
20557
|
await loadPluginConfig();
|
|
20543
20558
|
const sonarConfig = pluginConfig?.["sonarqube"];
|
|
@@ -20599,7 +20614,13 @@ ${config2.level === "enterprise" ? `This project follows enterprise-level qualit
|
|
|
20599
20614
|
- \`sonarqube({ action: "worstfiles" })\` - Find files needing most attention
|
|
20600
20615
|
- \`sonarqube({ action: "issues" })\` - See all issues`;
|
|
20601
20616
|
output.system.push(systemContext);
|
|
20602
|
-
} catch {
|
|
20617
|
+
} catch (error45) {
|
|
20618
|
+
try {
|
|
20619
|
+
const { appendFileSync: appendFileSync2 } = await import("node:fs");
|
|
20620
|
+
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [ERROR] experimental.chat.system.transform FAILED: ${error45}
|
|
20621
|
+
`);
|
|
20622
|
+
} catch {}
|
|
20623
|
+
}
|
|
20603
20624
|
},
|
|
20604
20625
|
tool: {
|
|
20605
20626
|
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.7",
|
|
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.6",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|