opencode-sonarqube 0.1.7 → 0.1.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.
- package/dist/index.js +8 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19204,6 +19204,11 @@ function generateTokenName(projectKey) {
|
|
|
19204
19204
|
}
|
|
19205
19205
|
async function bootstrap(options) {
|
|
19206
19206
|
const { config: config2, directory, force = false } = options;
|
|
19207
|
+
try {
|
|
19208
|
+
const { appendFileSync } = await import("node:fs");
|
|
19209
|
+
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [BOOTSTRAP] Starting bootstrap directory=${directory} config.projectKey="${config2.projectKey || "(empty)"}"
|
|
19210
|
+
`);
|
|
19211
|
+
} catch {}
|
|
19207
19212
|
logger5.info("Starting SonarQube bootstrap", { directory });
|
|
19208
19213
|
if (!force) {
|
|
19209
19214
|
const state2 = await loadProjectState(directory);
|
|
@@ -19228,8 +19233,8 @@ async function bootstrap(options) {
|
|
|
19228
19233
|
logger5.info("Connected to SonarQube", { version: health.version });
|
|
19229
19234
|
const detection = await detectProjectType(directory);
|
|
19230
19235
|
logger5.info("Detected project type", { languages: detection.languages });
|
|
19231
|
-
const projectKey = config2.projectKey
|
|
19232
|
-
const projectName = config2.projectName
|
|
19236
|
+
const projectKey = config2.projectKey || sanitizeProjectKey(await deriveProjectKey(directory));
|
|
19237
|
+
const projectName = config2.projectName || projectKey;
|
|
19233
19238
|
logger5.info("Project identification", { projectKey, projectName });
|
|
19234
19239
|
const projectsApi = new ProjectsAPI(adminClient);
|
|
19235
19240
|
let isNewProject = false;
|
|
@@ -20092,7 +20097,7 @@ function getSeveritiesFromLevel(level) {
|
|
|
20092
20097
|
init_types2();
|
|
20093
20098
|
import { appendFileSync } from "node:fs";
|
|
20094
20099
|
try {
|
|
20095
|
-
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [LOAD] Plugin module loaded!
|
|
20100
|
+
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [LOAD] Plugin module loaded! CWD=${process.cwd()}
|
|
20096
20101
|
`);
|
|
20097
20102
|
} catch {}
|
|
20098
20103
|
var LOG_FILE = "/tmp/sonarqube-plugin-debug.log";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sonarqube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
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.8",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|