opencode-sonarqube 0.2.7 → 0.2.8
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 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20583,8 +20583,14 @@ Git operation completed with changes. Consider running:
|
|
|
20583
20583
|
}, "experimental.session.compacting"),
|
|
20584
20584
|
"experimental.chat.system.transform": safeAsync(async (_input, output) => {
|
|
20585
20585
|
safeLog(`=== system.transform ENTERED ===`);
|
|
20586
|
+
safeLog(` _input keys: ${JSON.stringify(Object.keys(_input || {}))}`);
|
|
20587
|
+
safeLog(` _input: ${JSON.stringify(_input, null, 2)?.substring(0, 1000)}`);
|
|
20588
|
+
safeLog(` output keys: ${JSON.stringify(Object.keys(output || {}))}`);
|
|
20586
20589
|
safeLog(` pluginImportUrl: "${pluginImportUrl}"`);
|
|
20587
20590
|
safeLog(` effectiveDirectory: "${effectiveDirectory}"`);
|
|
20591
|
+
const inputAny = _input;
|
|
20592
|
+
const contextDir = inputAny?.directory || inputAny?.worktree || inputAny?.cwd || inputAny?.context?.directory;
|
|
20593
|
+
safeLog(` contextDir from input: "${contextDir}"`);
|
|
20588
20594
|
await loadPluginConfig();
|
|
20589
20595
|
const sonarConfig = pluginConfig?.["sonarqube"];
|
|
20590
20596
|
const config2 = loadConfig(sonarConfig);
|
|
@@ -20592,8 +20598,8 @@ Git operation completed with changes. Consider running:
|
|
|
20592
20598
|
safeLog(` config level is off or null, returning early`);
|
|
20593
20599
|
return;
|
|
20594
20600
|
}
|
|
20595
|
-
const dir = getDirectory();
|
|
20596
|
-
safeLog(`
|
|
20601
|
+
const dir = contextDir || getDirectory();
|
|
20602
|
+
safeLog(` FINAL dir used: "${dir}"`);
|
|
20597
20603
|
const state = await getProjectState(dir);
|
|
20598
20604
|
if (!state?.projectKey)
|
|
20599
20605
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sonarqube",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
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.2.
|
|
41
|
+
"opencode-sonarqube": "0.2.7",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|