dsh-plugin-ops-bundle 0.5.0 → 0.6.0
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/lib/client.js +22 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -35,6 +35,7 @@ var DICTS = {
|
|
|
35
35
|
zh: {
|
|
36
36
|
title: "健康检查",
|
|
37
37
|
subtitle: "dsh-ops 内嵌面板:扫描当前 profile 的插件健康状态",
|
|
38
|
+
feedback: "反馈",
|
|
38
39
|
refresh: "刷新",
|
|
39
40
|
scan: "扫描",
|
|
40
41
|
scanning: "扫描中…",
|
|
@@ -87,6 +88,7 @@ var DICTS = {
|
|
|
87
88
|
en: {
|
|
88
89
|
title: "Health Check",
|
|
89
90
|
subtitle: "Embedded dsh-ops panel: plugin health of the current profile",
|
|
91
|
+
feedback: "Feedback",
|
|
90
92
|
refresh: "Refresh",
|
|
91
93
|
scan: "Scan",
|
|
92
94
|
scanning: "Scanning…",
|
|
@@ -351,6 +353,25 @@ function HealthSection() {
|
|
|
351
353
|
setRag(next);
|
|
352
354
|
if (typeof localStorage !== "undefined") localStorage.setItem("dshops-rag", next ? "1" : "0");
|
|
353
355
|
};
|
|
356
|
+
const openFeedback = () => {
|
|
357
|
+
const lines = [
|
|
358
|
+
`- dsh-ops: ${info?.opsVersion ?? "unknown"}`,
|
|
359
|
+
"- surface: embedded bundle (dsh settings)",
|
|
360
|
+
`- OS: ${navigator.userAgent}`,
|
|
361
|
+
`- profile: ${profile === "" ? "n/a" : profile}`,
|
|
362
|
+
scan === null ? "- scan: not run" : `- scan: ${scan.counts.fatal} fatal / ${scan.counts.warn} warn`
|
|
363
|
+
];
|
|
364
|
+
const body = `### Environment
|
|
365
|
+
|
|
366
|
+
${lines.join("\n")}
|
|
367
|
+
|
|
368
|
+
### What happened
|
|
369
|
+
|
|
370
|
+
<!-- describe the problem -->
|
|
371
|
+
`;
|
|
372
|
+
const url = `https://github.com/f-infinite-z/dsh-plugin-ops/issues/new?template=bug.yml&title=${encodeURIComponent("[bug] ")}&body=${encodeURIComponent(body)}`;
|
|
373
|
+
window.open(url, "_blank");
|
|
374
|
+
};
|
|
354
375
|
const searchKnowledge = async () => {
|
|
355
376
|
const query = knowledgeQuery.trim();
|
|
356
377
|
if (query === "") {
|
|
@@ -405,6 +426,7 @@ function HealthSection() {
|
|
|
405
426
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshops-title", children: t.title }),
|
|
406
427
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshops-sub", children: t.subtitle }),
|
|
407
428
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "dshops-btn", onClick: () => setLang(lang === "zh" ? "en" : "zh"), children: lang === "zh" ? "EN" : "中文" }),
|
|
429
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "dshops-btn", onClick: openFeedback, children: t.feedback }),
|
|
408
430
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "dshops-btn", disabled: profile === "" || busy !== "", onClick: () => void load(profile), children: busy === "scan" ? t.scanning : t.refresh }),
|
|
409
431
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "dshops-btn dshops-btn-primary", disabled: profile === "" || busy !== "", onClick: () => void load(profile, true), children: t.scan })
|
|
410
432
|
] }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-ops-bundle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Embedded dsh bundle for dsh-plugin-ops: a settings-page health panel (scan, plugin rows, diagnosis chat) over the shared engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"dsh-plugin-ops-core": "0.
|
|
60
|
+
"dsh-plugin-ops-core": "0.6.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@deepseek-ai/cordis": "^4.0.0"
|