@aipanel/dsh-plugin 1.2.20 → 1.2.21
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 +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -809,7 +809,10 @@ function buildNodeContext(e) {
|
|
|
809
809
|
const loc = e.line ? e.column ? `:${e.line}:${e.column}` : `:${e.line}` : "";
|
|
810
810
|
if (e.filePath) lines.push(`\u6E90\u7801\u6587\u4EF6\u8DEF\u5F84\uFF1A${e.filePath}${loc}`);
|
|
811
811
|
if (e.description) lines.push(`DOM \u5143\u7D20\u9009\u62E9\u5668\uFF1A${e.description}`);
|
|
812
|
-
if (e.innerText)
|
|
812
|
+
if (e.innerText) {
|
|
813
|
+
const text = e.innerText.slice(0, 20).replace(/\r?\n/g, "\\n");
|
|
814
|
+
lines.push(`DOM \u5143\u7D20\u5185\u90E8\u6587\u672C\uFF1A${text}`);
|
|
815
|
+
}
|
|
813
816
|
if (e.previewPageUrl) lines.push(`\u7528\u6237\u9009\u4E2D\u8282\u70B9\u65F6\u7684\u9875\u9762 URL\uFF1A${e.previewPageUrl}`);
|
|
814
817
|
return lines.join("\n");
|
|
815
818
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aipanel/dsh-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AIPanel for DeepSeek Harness (dsh):注入审查工具 run_diagnostics、编辑后自动诊断。",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@deepseek-ai/dsh-user-questions": "^0.1.5-rc.1",
|
|
26
26
|
"@deepseek-ai/dsh-util-values": "^0.1.5-rc.1",
|
|
27
27
|
"esbuild": "^0.25.0",
|
|
28
|
-
"@aipanel/core": "1.2.
|
|
28
|
+
"@aipanel/core": "1.2.21"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --target=node18 --external:@deepseek-ai/* --external:node:* --external:vue-tsc",
|