@aipanel/dsh-plugin 1.3.7 → 1.3.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 +5 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1261,8 +1261,11 @@ async function runCommandCheck(check, target, phase, severity, optional = false)
|
|
|
1261
1261
|
if (failure) return { text: failure, diagnostics: [] };
|
|
1262
1262
|
const raw = rawCommandOutput(outcome);
|
|
1263
1263
|
try {
|
|
1264
|
-
|
|
1265
|
-
|
|
1264
|
+
const produced2 = check.adapter ? await runAdapterModule(check, outcome, cwd, fileSet) : adaptBuiltinFormat(check.format ?? "text", check, raw, cwd, severity);
|
|
1265
|
+
if (phase === "edit" && outcome.exitCode === 0 && produced2.diagnostics.length === 0) {
|
|
1266
|
+
return { ...produced2, text: void 0, notes: void 0 };
|
|
1267
|
+
}
|
|
1268
|
+
return produced2;
|
|
1266
1269
|
} catch (error) {
|
|
1267
1270
|
const reason = error instanceof Error ? error.message : String(error);
|
|
1268
1271
|
const excerpt = raw.replace(/\s+/g, " ").trim().slice(0, 200);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aipanel/dsh-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AIPanel for DeepSeek Harness (dsh):注入审查工具 run_diagnostics、编辑后自动诊断。",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"vue-tsc": "^3.3.9"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@aipanel/core": "1.3.
|
|
19
|
+
"@aipanel/core": "1.3.8",
|
|
20
20
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
21
21
|
"@deepseek-ai/dsh-agent": "^0.1.7-alpha.2",
|
|
22
22
|
"@deepseek-ai/dsh-llm": "^0.1.7-alpha.2",
|