@lmzhen/dsh-evolution-skill-health 0.32.2 → 0.32.4
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 +1 -1
- package/lib/index.js +8 -5
- package/package.json +6 -6
package/lib/client.js
CHANGED
|
@@ -12,7 +12,7 @@ window.__ModuleLoader__.load({
|
|
|
12
12
|
}
|
|
13
13
|
function injectStyles(doc, css, tagId) {
|
|
14
14
|
if (doc === void 0) return () => {};
|
|
15
|
-
|
|
15
|
+
doc.querySelector("style[data-plugin-css=\"" + tagId + "\"]")?.remove();
|
|
16
16
|
const tag = doc.createElement("style");
|
|
17
17
|
tag.setAttribute("data-plugin-css", tagId);
|
|
18
18
|
tag.textContent = css;
|
package/lib/index.js
CHANGED
|
@@ -61,17 +61,20 @@ function makeSkillHealthRoutes(deps, _audit) {
|
|
|
61
61
|
if (request.method !== "GET") return methodNotAllowed(["GET"]);
|
|
62
62
|
const curator = deps.getCurator();
|
|
63
63
|
const view = curator?.healthView === void 0 ? void 0 : await curator.healthView();
|
|
64
|
-
const
|
|
65
|
-
const
|
|
64
|
+
const scanComplete = Array.isArray(view);
|
|
65
|
+
const rows = scanComplete ? toRouteRows(view) : [];
|
|
66
|
+
const proposalsRead = await deps.getProposals?.();
|
|
67
|
+
const proposals = Array.isArray(proposalsRead) ? proposalsRead : [];
|
|
68
|
+
const proposalStatus = Array.isArray(proposalsRead) ? "available" : "unavailable";
|
|
66
69
|
return json(200, {
|
|
67
70
|
ok: true,
|
|
68
71
|
data: {
|
|
69
72
|
rows,
|
|
70
|
-
truncated:
|
|
73
|
+
truncated: !scanComplete,
|
|
71
74
|
readAt: Date.now(),
|
|
72
|
-
scan: { status:
|
|
75
|
+
scan: { status: scanComplete ? "complete" : "unavailable" },
|
|
73
76
|
proposals,
|
|
74
|
-
proposalStatus
|
|
77
|
+
proposalStatus
|
|
75
78
|
}
|
|
76
79
|
});
|
|
77
80
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"version": "0.32.
|
|
14
|
+
"version": "0.32.4",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
46
|
-
"@lmzhen/dsh-evolution-curator": "^0.32.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.32.4",
|
|
46
|
+
"@lmzhen/dsh-evolution-curator": "^0.32.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
50
50
|
"@types/react": "~18.3.1",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
53
|
-
"@lmzhen/dsh-evolution-curator": "^0.32.
|
|
52
|
+
"@lmzhen/dsh-evolution-core": "^0.32.4",
|
|
53
|
+
"@lmzhen/dsh-evolution-curator": "^0.32.4"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lmzhen/dsh-evolution-client-kit": "^0.32.
|
|
56
|
+
"@lmzhen/dsh-evolution-client-kit": "^0.32.4"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|